From d84e4ed6c3f88d52c95f1491a050daa924e14b87 Mon Sep 17 00:00:00 2001 From: Yohe-Am <56622350+Yohe-Am@users.noreply.github.com> Date: Mon, 2 Sep 2024 11:28:15 +0300 Subject: [PATCH] refactor: flatten deps and improve repo folder (#821) - Renames `libs/` to `src/`. - Moves `typegate/`, `meta-cli`, `typegraph/`, `meta-lsp/` to `src/`. - Renames `dev/` to `tools/` - Moves `website/` to `docs/metatype.dev`/ - Moves `src/typegate/tests` to `tests/` - Moves `src/typegraph/deno/dev` to `tools/jsr/` - Moves `src/typegraph/deno/sdk` to `src/typegraph/deno/` - Renames `src/deno` to `src/mt_deno` - Bumps deno to `1.46.1` - Bumps rust toolchain to `1.80.1` - Moves all rust dependencies to workspace section - Moves `tools/task-*.ts` to `tools/task/*.ts` - Moves `cliff.toml`, `Cross.toml`, `ruff.toml` to `tools/` - Uses deno [workspaces](https://docs.deno.com/runtime/manual/basics/workspaces/) to organize `src/typegraph/deno`, `src/typegate`, `tools/`, `tests/` and more. - Closes MET-607 - Updates poetry to 1.8.3 - Bumps metatype to version 0.4.9-rc1 - [x] Update CONTRIBUTING.md - [x] Fix CI workflows - [x] Fix Dockerfile - [x] Fix all tests #### Migration notes - No end user changes required - [x] The change comes with new or modified tests - [ ] Hard-to-understand functions have explanatory comments - [ ] End-user documentation is updated to reflect the change --------- Co-authored-by: Estifanos Bireda <77430541+destifo@users.noreply.github.com> --- typegate/.env.sample => .env.sample | 0 .ghjk/deno.lock | 37 +- .ghjk/lock.json | 904 +++++++++----- .github/workflows/nightly.yml | 4 +- .github/workflows/publish-website.yml | 6 +- .github/workflows/release.yml | 10 +- .github/workflows/tests.yml | 52 +- .gitignore | 36 +- .vscode/settings.json | 29 +- CONTRIBUTING.md | 8 +- Cargo.lock | 1095 +++++++++++------ Cargo.toml | 134 +- README.md | 10 +- deno.jsonc | 64 + typegate/deno.lock => deno.lock | 496 +++++++- dev/Dockerfile.dockerignore | 18 - dev/tasks-fetch.ts | 31 - dev/tasks-lint.ts | 22 - {website => docs/metatype.dev}/.eslintignore | 0 {website => docs/metatype.dev}/.eslintrc.cjs | 0 .../metatype.dev}/.prettierignore | 0 {website => docs/metatype.dev}/.vale.ini | 0 .../metatype.dev}/babel.config.js | 0 .../2023-03-15-emulating-servers/index.mdx | 0 .../2023-06-18-programmable-glue/index.mdx | 4 +- .../2023-11-27-node-compatibility/index.mdx | 0 .../index.mdx | 0 .../eda.drawio.svg | 0 .../index.mdx | 0 .../saga.drawio.svg | 0 .../docs/concepts/RFCs/M0-template.mdx | 0 .../docs/concepts/RFCs/index.mdx | 0 .../artifact_upload_protocol.drawio.svg | 0 .../docs/concepts/architecture/index.mdx | 0 .../docs/concepts/comparisons/index.mdx | 0 .../docs/concepts/features-overview/index.mdx | 28 +- .../docs/concepts/mental-model/index.mdx | 10 +- .../docs/guides/contributing.mdx | 2 +- .../guides/external-functions/ctx.graphql | 0 .../guides/external-functions/gql.graphql | 0 .../docs/guides/external-functions/index.mdx | 24 +- .../guides/external-functions/math.graphql | 0 .../guides/external-functions/metagen.graphql | 0 .../docs/guides/files-upload/index.mdx | 0 .../import-external-modules/func.graphql | 0 .../guides/import-external-modules/index.mdx | 4 +- .../guides/programmatic-deployment/index.mdx | 8 +- .../metatype.dev}/docs/guides/rest/index.mdx | 4 +- .../securing-requests/authentication.graphql | 0 .../guides/securing-requests/cors.graphql | 0 .../docs/guides/securing-requests/cors.py | 0 .../docs/guides/securing-requests/index.mdx | 8 +- .../guides/securing-requests/policies.graphql | 0 .../metatype.dev}/docs/guides/self-hosting.md | 0 .../docs/guides/test-your-typegraph/index.mdx | 0 .../docs/guides/wasm-functions/index.mdx | 14 +- .../guides/wasm-functions/metagen.graphql | 0 {website => docs/metatype.dev}/docs/index.mdx | 0 .../docs/reference/changelog.mdx | 2 +- .../docs/reference/ecosystem/index.mdx | 0 .../reference/meta-cli/available-commands.mdx | 0 .../reference/meta-cli/configuration-file.mdx | 0 .../meta-cli/embedded-typegate/index.mdx | 0 .../docs/reference/meta-cli/index.mdx | 0 .../docs/reference/metagen/index.mdx | 26 +- .../docs/reference/policies/index.mdx | 4 +- .../docs/reference/policies/policies.graphql | 0 .../docs/reference/rest/index.mdx | 0 .../docs/reference/runtimes/deno/deno.graphql | 0 .../docs/reference/runtimes/deno/index.mdx | 4 +- .../runtimes/graphql/graphql.graphql | 0 .../docs/reference/runtimes/graphql/index.mdx | 4 +- .../docs/reference/runtimes/http/http.graphql | 0 .../docs/reference/runtimes/http/index.mdx | 4 +- .../docs/reference/runtimes/index.mdx | 0 .../docs/reference/runtimes/kv/index.mdx | 4 +- .../runtimes/prisma/database.graphql | 0 .../docs/reference/runtimes/prisma/index.mdx | 4 +- .../docs/reference/runtimes/python/index.mdx | 0 .../docs/reference/runtimes/random/index.mdx | 8 +- .../runtimes/random/random-field.graphql | 0 .../reference/runtimes/random/random.graphql | 0 .../docs/reference/runtimes/s3/index.mdx | 0 .../reference/runtimes/temporal/index.mdx | 4 +- .../docs/reference/runtimes/wasm/index.mdx | 0 .../typegate/authentication/basic.graphql | 0 .../typegate/authentication/index.mdx | 12 +- .../typegate/authentication/jwt.graphql | 0 .../typegate/authentication/oauth2.graphql | 0 .../typegate/authentication/oauth2.tsx | 0 .../docs/reference/typegate/cors/cors.graphql | 0 .../docs/reference/typegate/cors/index.mdx | 0 .../docs/reference/typegate/index.mdx | 0 .../typegate/rate-limiting/index.mdx | 4 +- .../typegate/rate-limiting/rate.graphql | 0 .../typegate/synchronization/index.mdx | 0 .../docs/reference/typegraph/index.mdx | 0 .../docs/reference/types/functions.mdx | 0 .../docs/reference/types/importers/google.py_ | 0 .../docs/reference/types/importers/google.pyi | 0 .../reference/types/importers/importer.py_ | 0 .../types/importers/index.mdx.disabled | 0 .../types/importers/typegraph_std.py_ | 0 .../docs/reference/types/index.mdx | 0 .../docs/reference/types/injections.mdx | 4 +- .../types/parameter-transformations.mdx | 0 .../metatype.dev}/docs/sidebars.js | 0 .../tutorials/metatype-basics/execute.graphql | 0 .../docs/tutorials/metatype-basics/index.mdx | 20 +- .../tutorials/metatype-basics/md2html.ts.src | 0 .../metatype-basics/policies.graphql | 0 .../tutorials/metatype-basics/prisma.graphql | 0 .../tutorials/metatype-basics/query.graphql | 0 .../tutorials/metatype-basics/random.graphql | 0 .../tutorials/metatype-basics/reduce.graphql | 0 .../docs/tutorials/quick-start/index.mdx | 0 .../metatype.dev}/docusaurus.config.js | 12 +- {website => docs/metatype.dev}/globals.d.ts | 0 {website => docs/metatype.dev}/package.json | 0 .../packages/code-loader-transform.js | 0 .../metatype.dev}/packages/code-loader.js | 0 .../metatype.dev}/packages/tailwindcss.js | 0 {website => docs/metatype.dev}/pnpm-lock.yaml | 0 .../shared/components.drawio.svg | 0 .../metatype.dev}/shared/cors/cors.graphql | 0 .../metatype.dev}/shared/cors/index.mdx | 4 +- .../metatype.dev}/shared/evolution.drawio.svg | 0 .../metatype.dev}/shared/install/meta-cli.mdx | 0 .../metatype.dev}/shared/install/typegate.mdx | 0 .../shared/install/typegraph.mdx | 0 .../shared/meta-cli/embedded-typegate.mdx | 0 .../metatype.dev}/shared/metatype-intro.mdx | 0 .../shared/projects/first-project.graphql | 0 .../shared/projects/first-project.mdx | 0 .../projects/tab-first-project-python.mdx | 6 +- .../shared/projects/tab-first-project-ts.mdx | 6 +- .../metatype.dev}/shared/s3/files.graphql | 0 .../metatype.dev}/shared/s3/index.mdx | 4 +- .../metatype.dev}/shared/upgrade/index.mdx | 0 .../metatype.dev}/shared/upgrade/meta-cli.mdx | 0 .../shared/upgrade/python-sdk.mdx | 0 .../shared/upgrade/typescript-sdk.mdx | 0 .../src/components/BlogIntro/index.tsx | 0 .../src/components/ChoicePicker/index.tsx | 0 .../src/components/CompareLandscape.tsx | 0 .../src/components/DocButton/index.tsx | 0 .../components/DocButton/styles.module.scss | 0 .../src/components/Features/index.tsx | 0 .../src/components/Giscus/index.tsx | 0 .../src/components/MiniQL/graphiql.tsx | 0 .../src/components/MiniQL/index.tsx | 0 .../src/components/MiniQL/memory_store.ts | 0 .../src/components/Newsletter/index.tsx | 0 .../PythonPackageManagerTabs/index.tsx | 0 .../src/components/SDKTabs/index.tsx | 0 .../src/components/TGExample/index.tsx | 0 .../components/TsPackageManagerTabs/index.tsx | 0 .../src/components/animations/animated.tsx | 0 .../components/animations/animated_canvas.tsx | 0 .../src/components/animations/block.tsx | 0 .../src/components/animations/doublearrow.tsx | 0 .../src/components/animations/hooks.tsx | 0 .../src/components/animations/textarrow.tsx | 0 .../metatype.dev}/src/components/castles.tsx | 0 .../metatype.dev}/src/css/custom.scss | 0 .../metatype.dev}/src/pages/index.graphql | 0 .../metatype.dev}/src/pages/index.tsx | 4 +- .../src/pages/legal/privacy-policy.md | 0 .../metatype.dev}/src/pages/legal/terms.md | 0 .../src/states/package_manager.ts | 0 .../metatype.dev}/src/states/sdk.ts | 0 .../src/theme/DocItem/Paginator/index.js | 0 .../DocItem/Paginator/styles.module.scss | 0 .../metatype.dev}/src/theme/Root.js | 0 .../metatype.dev}/static/.nojekyll | 0 .../icons/bring-your-own-components.svg | 0 .../static/icons/commercial-support.svg | 0 .../static/icons/compose-api-blocks.svg | 0 .../static/icons/design-discover.svg | 0 .../static/icons/iterate-quickly.svg | 0 .../static/icons/secure-by-default.svg | 0 .../static/images/castles/building.png | Bin .../static/images/castles/modulable.png | Bin .../static/images/castles/reusable.png | Bin .../static/images/castles/stable.png | Bin .../static/images/demo-thumbnail.png | Bin .../execution-flow-paradigms/durable-exec.svg | 0 .../images}/execution-flow-paradigms/eda.png | Bin .../saga-overview.png | Bin .../saga-pattern-order-delivery.png | Bin .../start-workflow-result.png | Bin .../temporal-web-ui.png | Bin .../metatype.dev}/static/images/favicon.ico | Bin .../images/homepage/devhunt_tab_dark.svg | 0 .../homepage/devhunt_tab_dark_orange.svg | 0 .../images/homepage/devhunt_tab_orange.svg | 0 .../images/homepage/devhunt_tab_solid.svg | 0 .../static/images/homepage/tab_grey.svg | 0 .../metatype.dev}/static/images/logo-bg.svg | 0 .../metatype.dev}/static/images/logo.png | Bin .../metatype.dev}/static/images/logo.svg | 0 .../static/images/runtimes/deno.svg | 0 .../images/runtimes/google-apis-explorer.svg | 0 .../static/images/runtimes/graphql.svg | 0 .../static/images/runtimes/grpc.svg | 0 .../static/images/runtimes/http.svg | 0 .../static/images/runtimes/mariadb.svg | 0 .../static/images/runtimes/mongodb.svg | 0 .../static/images/runtimes/postgresql.svg | 0 .../static/images/runtimes/python.svg | 0 .../static/images/runtimes/s3.svg | 0 .../static/images/runtimes/sqlite.svg | 0 .../static/images/runtimes/temporal.svg | 0 .../static/images/runtimes/wasmedge.svg | 0 .../metatype.dev}/static/images/slack.png | Bin .../static/images/system_setup.drawio.svg | 0 .../static/images/tutorial/query-result.png | Bin .../images/tutorial/running-typegate.png | Bin .../static/images/tutorial/tg-on-typegate.png | Bin .../metatype.dev}/tailwind.config.js | 0 {website => docs/metatype.dev}/tsconfig.json | 0 .../image.drawio.svg | 0 .../automatic-crud-validation/index.mdx | 4 +- .../backend-for-frontend/image.drawio.svg | 0 .../use-cases/backend-for-frontend/index.mdx | 4 +- .../backend-for-frontend/query.graphql | 0 .../use-cases/faas-runner/image.drawio.svg | 0 .../use-cases/faas-runner/index.mdx | 4 +- .../use-cases/faas-runner/query.gql | 0 .../use-cases/graphql-server/image.drawio.svg | 0 .../use-cases/graphql-server/index.mdx | 4 +- .../use-cases/graphql-server/query.gql | 0 .../use-cases/iam-provider/image.drawio.svg | 0 .../use-cases/iam-provider/index.mdx | 4 +- .../use-cases/iam-provider/query.gql | 0 .../image.drawio.svg | 0 .../microservice-orchestration/index.mdx | 4 +- .../microservice-orchestration/query.gql | 0 .../orm-for-the-edge/image.drawio.svg | 0 .../use-cases/orm-for-the-edge/index.mdx | 4 +- .../metatype.dev}/use-cases/prisma.graphql | 0 .../programmable-api-gateway/image.drawio.svg | 0 .../programmable-api-gateway/index.mdx | 4 +- .../programmable-api-gateway/query.gql | 0 .../metatype.dev}/use-cases/sidebars.js | 0 .../vale/Vocab/Metatype/accept.txt | 0 .../vale/Vocab/Metatype/reject.txt | 0 examples/deno.json | 5 - examples/deno.jsonc | 5 + examples/templates/deno/api/example.ts | 6 +- examples/templates/deno/compose.yml | 2 +- examples/templates/node/compose.yml | 2 +- examples/templates/node/package.json | 2 +- examples/templates/python/compose.yml | 2 +- examples/templates/python/pyproject.toml | 4 +- examples/typegraphs/metagen/rs/build.sh | 5 +- examples/typegraphs/metagen/rs/mdk.rs | 2 +- ghjk.ts | 45 +- libs/metagen/metatype.yaml | 0 poetry.lock | 162 +-- pyproject.toml | 12 +- rust-toolchain.toml | 3 +- {libs => src}/common/Cargo.toml | 37 +- {libs => src}/common/src/archive.rs | 0 {libs => src}/common/src/graphql.rs | 0 {libs => src}/common/src/lib.rs | 0 {libs => src}/common/src/node.rs | 0 {libs => src}/common/src/typegraph/mod.rs | 0 .../src/typegraph/parameter_transform.rs | 0 .../common/src/typegraph/runtimes/deno.rs | 0 .../common/src/typegraph/runtimes/graphql.rs | 0 .../common/src/typegraph/runtimes/http.rs | 0 .../common/src/typegraph/runtimes/kv.rs | 0 .../common/src/typegraph/runtimes/mod.rs | 0 .../common/src/typegraph/runtimes/prisma.rs | 0 .../common/src/typegraph/runtimes/python.rs | 0 .../common/src/typegraph/runtimes/random.rs | 0 .../common/src/typegraph/runtimes/s3.rs | 0 .../src/typegraph/runtimes/substantial.rs | 0 .../common/src/typegraph/runtimes/temporal.rs | 0 .../common/src/typegraph/runtimes/wasm.rs | 0 {libs => src}/common/src/typegraph/types.rs | 0 {libs => src}/common/src/typegraph/utils.rs | 0 .../common/src/typegraph/validator/common.rs | 0 .../common/src/typegraph/validator/input.rs | 0 .../common/src/typegraph/validator/mod.rs | 0 .../common/src/typegraph/validator/types.rs | 0 .../common/src/typegraph/validator/value.rs | 0 {libs => src}/common/src/typegraph/visitor.rs | 0 {meta-cli => src/meta-cli}/Cargo.toml | 84 +- {meta-cli => src/meta-cli}/build.rs | 0 .../meta-cli}/src/cli/completion.rs | 0 {meta-cli => src/meta-cli}/src/cli/deploy.rs | 2 +- {meta-cli => src/meta-cli}/src/cli/dev.rs | 0 {meta-cli => src/meta-cli}/src/cli/doctor.rs | 0 {meta-cli => src/meta-cli}/src/cli/gen.rs | 0 {meta-cli => src/meta-cli}/src/cli/list.rs | 0 {meta-cli => src/meta-cli}/src/cli/mod.rs | 0 {meta-cli => src/meta-cli}/src/cli/new.rs | 0 .../meta-cli}/src/cli/serialize.rs | 0 .../meta-cli}/src/cli/typegate.rs | 12 +- {meta-cli => src/meta-cli}/src/cli/ui/mod.rs | 0 .../meta-cli}/src/cli/undeploy.rs | 0 {meta-cli => src/meta-cli}/src/cli/upgrade.rs | 0 {meta-cli => src/meta-cli}/src/config.rs | 14 +- .../src/deploy/actor-model.drawio.svg | 0 .../meta-cli}/src/deploy/actors/console.rs | 0 .../src/deploy/actors/console/input.rs | 0 .../meta-cli}/src/deploy/actors/discovery.rs | 0 .../meta-cli}/src/deploy/actors/mod.rs | 0 .../src/deploy/actors/push_manager/state.rs | 0 .../meta-cli}/src/deploy/actors/task.rs | 8 +- .../src/deploy/actors/task/action.rs | 0 .../src/deploy/actors/task/command.rs | 0 .../src/deploy/actors/task/command/python.rs | 0 .../deploy/actors/task/command/typescript.rs | 0 .../src/deploy/actors/task/deploy.rs | 0 .../deploy/actors/task/deploy/migrations.rs | 0 .../meta-cli}/src/deploy/actors/task/list.rs | 0 .../src/deploy/actors/task/serialize.rs | 0 .../meta-cli}/src/deploy/actors/task_io.rs | 0 .../src/deploy/actors/task_manager.rs | 0 .../src/deploy/actors/task_manager/report.rs | 0 .../actors/task_manager/signal_handler.rs | 0 .../meta-cli}/src/deploy/actors/typegate.rs | 11 +- .../meta-cli}/src/deploy/actors/watcher.rs | 0 {meta-cli => src/meta-cli}/src/deploy/mod.rs | 0 .../meta-cli}/src/deploy/push/mod.rs | 0 .../meta-cli}/src/deploy/push/pusher.rs | 23 +- {meta-cli => src/meta-cli}/src/fs.rs | 0 .../meta-cli}/src/global_config.rs | 0 {meta-cli => src/meta-cli}/src/logger.rs | 0 {libs/metagen => src/meta-cli}/src/macros.rs | 0 {meta-cli => src/meta-cli}/src/main.rs | 0 {meta-cli => src/meta-cli}/src/secrets.rs | 0 {meta-cli => src/meta-cli}/src/tests/mod.rs | 0 {meta-cli => src/meta-cli}/src/tests/utils.rs | 0 .../src/typegraph/dependency_graph.rs | 0 .../src/typegraph/loader/discovery.rs | 0 .../meta-cli}/src/typegraph/loader/mod.rs | 0 .../meta-cli}/src/typegraph/mod.rs | 0 {meta-cli => src/meta-cli}/src/utils/clap.rs | 0 {meta-cli => src/meta-cli}/src/utils/mod.rs | 0 .../meta-cli}/src/utils/shell_words.rs | 0 .../meta-cli}/tests/graphs/nested/graph0.py | 0 {meta-cli => src/meta-cli}/tests/metatype.yml | 0 {meta-lsp => src/meta-lsp}/.eslintrc.yml | 0 {meta-lsp => src/meta-lsp}/.vscodeignore | 0 {meta-lsp => src/meta-lsp}/LICENSE.md | 0 {meta-lsp => src/meta-lsp}/README.md | 0 {meta-lsp => src/meta-lsp}/logo.png | 0 {meta-lsp => src/meta-lsp}/package.json | 2 +- {meta-lsp => src/meta-lsp}/pnpm-lock.yaml | 0 .../meta-lsp}/pnpm-workspace.yaml | 0 .../meta-lsp}/ts-language-server/package.json | 2 +- .../src/analysis/diagnostics/context.ts | 0 .../src/analysis/exposed_function.ts | 0 .../src/analysis/runtimes/mod.ts | 0 .../src/analysis/typescript-semantic/scope.ts | 0 .../typescript-semantic/semantic-node.ts | 0 .../analysis/typescript-semantic/symbols.ts | 0 .../analysis/typescript-semantic/utils/mod.ts | 0 .../ts-language-server/src/lsp_client.ts | 0 .../ts-language-server/src/parser.ts | 0 .../ts-language-server/src/server.ts | 0 .../src/server/documents.ts | 0 .../ts-language-server/src/server/index.ts | 0 .../meta-lsp}/ts-language-server/src/types.ts | 0 .../expose_analysis_test.ts.snap | 0 .../tests/expose_analysis.test.ts | 0 .../tests/typegraphs/deno_types.ts | 0 .../ts-language-server/tests/utils.ts | 0 {meta-lsp => src/meta-lsp}/tsconfig.json | 0 .../vscode-metatype-support/package.json | 2 +- .../vscode-metatype-support/pnpm-lock.yaml | 0 .../vscode-metatype-support/src/extension.ts | 0 .../vscode-metatype-support/tsconfig.json | 0 {libs => src}/metagen/Cargo.toml | 28 +- .../metagen/fixtures/client_rs/Cargo.toml | 0 .../metagen/fixtures/client_rs/main.rs | 0 .../metagen/fixtures/client_ts/deno.json | 0 .../metagen/fixtures/client_ts/main.ts | 0 .../metagen/fixtures/mat_rust/lib.rs | 0 {libs => src}/metagen/fixtures/placeholder | 0 {libs => src}/metagen/fixtures/tg.ts | 0 {libs => src}/metagen/fixtures/tg2.ts | 0 src/metagen/metatype.yaml | 3 + {libs => src}/metagen/src/client_py/mod.rs | 0 .../metagen/src/client_py/node_metas.rs | 0 .../metagen/src/client_py/selections.rs | 0 .../metagen/src/client_py/static/client.py | 0 {libs => src}/metagen/src/client_py/types.rs | 0 {libs => src}/metagen/src/client_py/utils.rs | 0 {libs => src}/metagen/src/client_rs/mod.rs | 0 .../metagen/src/client_rs/node_metas.rs | 0 .../metagen/src/client_rs/selections.rs | 0 .../metagen/src/client_rs/static/Cargo.toml | 0 .../metagen/src/client_rs/static/client.rs | 0 .../metagen/src/client_rs/static/lib.rs | 0 {libs => src}/metagen/src/client_ts/mod.rs | 0 .../metagen/src/client_ts/node_metas.rs | 0 .../metagen/src/client_ts/selections.rs | 0 .../metagen/src/client_ts/static/mod.ts | 0 {libs => src}/metagen/src/config.rs | 0 {libs => src}/metagen/src/lib.rs | 0 {meta-cli => src/metagen}/src/macros.rs | 0 {libs => src}/metagen/src/mdk_python/mod.rs | 0 .../src/mdk_python/static/main.py.jinja | 0 .../src/mdk_python/static/struct.py.jinja | 0 .../src/mdk_python/static/types.py.jinja | 0 {libs => src}/metagen/src/mdk_python/types.rs | 0 {libs => src}/metagen/src/mdk_python/utils.rs | 0 {libs => src}/metagen/src/mdk_rust/mod.rs | 2 +- .../metagen/src/mdk_rust/static/Cargo.toml | 0 .../metagen/src/mdk_rust/static/lib.rs | 0 .../metagen/src/mdk_rust/static/mdk.rs | 2 +- {libs => src}/metagen/src/mdk_rust/stubs.rs | 0 {libs => src}/metagen/src/mdk_rust/types.rs | 0 {libs => src}/metagen/src/mdk_rust/utils.rs | 0 .../metagen/src/mdk_substantial/mod.rs | 0 .../src/mdk_substantial/static/substantial.py | 0 .../src/mdk_substantial/static/types.py | 0 .../src/mdk_substantial/static/workflow.py | 0 .../metagen/src/mdk_typescript/mod.rs | 0 .../metagen/src/mdk_typescript/static/mdk.ts | 0 .../metagen/src/mdk_typescript/types.rs | 0 .../metagen/src/mdk_typescript/utils.rs | 0 {libs => src}/metagen/src/shared/client.rs | 0 {libs => src}/metagen/src/shared/mod.rs | 0 {libs => src}/metagen/src/shared/types.rs | 0 {libs => src}/metagen/src/tests/fixtures.rs | 4 +- {libs => src}/metagen/src/tests/mod.rs | 0 {libs => src}/metagen/src/utils.rs | 0 {libs/deno => src/mt_deno}/Cargo.toml | 2 +- {libs/deno => src/mt_deno}/src/lib.rs | 32 +- {libs => src}/pyrt_wit_wire/main.py | 0 {libs => src}/pyrt_wit_wire/pyproject.toml | 2 +- src/typegate/deno.jsonc | 34 + .../typegate}/engine/00_runtime.js | 0 src/typegate/engine/Cargo.toml | 68 + {typegate => src/typegate}/engine/bindings.ts | 0 {typegate => src/typegate}/engine/build.rs | 4 +- .../typegate}/engine/runtime.d.ts | 0 {typegate => src/typegate}/engine/runtime.js | 0 {typegate => src/typegate}/engine/src/ext.rs | 4 +- {typegate => src/typegate}/engine/src/lib.rs | 6 +- .../typegate}/engine/src/runtimes.rs | 0 .../typegate}/engine/src/runtimes/prisma.rs | 0 .../engine/src/runtimes/prisma/engine.rs | 0 .../src/runtimes/prisma/engine_import.rs | 0 .../engine/src/runtimes/prisma/migration.rs | 0 .../engine/src/runtimes/prisma/utils.rs | 0 .../typegate}/engine/src/runtimes/temporal.rs | 0 .../typegate}/engine/src/runtimes/wasm.rs | 0 .../engine/src/runtimes/wasm/conversion.rs | 0 .../typegate}/engine/src/runtimes/wit_wire.rs | 6 +- .../typegate}/engine/src/typegraph.rs | 2 +- {typegate => src/typegate}/src/config.ts | 18 +- .../typegate}/src/config/loader.ts | 4 +- .../typegate}/src/config/shared.ts | 0 .../typegate}/src/config/types.ts | 6 +- {typegate => src/typegate}/src/crypto.ts | 4 +- .../src/engine/computation_engine.ts | 12 +- .../typegate}/src/engine/planner/args.ts | 22 +- .../src/engine/planner/dependency_resolver.ts | 15 +- .../src/engine/planner/injection_utils.ts | 2 +- .../typegate}/src/engine/planner/mod.ts | 17 +- .../engine/planner/parameter_transformer.ts | 8 +- .../typegate}/src/engine/planner/policies.ts | 8 +- .../typegate}/src/engine/query_engine.ts | 21 +- .../typegate}/src/engine/stage_id.ts | 0 .../src/engine/typecheck/code_generator.ts | 22 +- .../typegate}/src/engine/typecheck/common.ts | 4 +- .../typecheck/inline_validators/boolean.ts | 2 +- .../typecheck/inline_validators/common.ts | 0 .../inline_validators/constraints.ts | 2 +- .../typecheck/inline_validators/file.ts | 4 +- .../typecheck/inline_validators/list.ts | 4 +- .../engine/typecheck/inline_validators/mod.ts | 0 .../typecheck/inline_validators/number.ts | 4 +- .../typecheck/inline_validators/object.ts | 6 +- .../typecheck/inline_validators/string.ts | 4 +- .../typegate}/src/engine/typecheck/input.ts | 12 +- .../src/engine/typecheck/matching_variant.ts | 16 +- .../typegate}/src/engine/typecheck/result.ts | 22 +- {typegate => src/typegate}/src/errors.ts | 4 +- .../typegate}/src/libs/jsonpath.ts | 0 {typegate => src/typegate}/src/log.ts | 6 +- {typegate => src/typegate}/src/main.ts | 0 .../typegate}/src/runtimes/Runtime.ts | 6 +- .../typegate}/src/runtimes/deno.ts | 0 .../typegate}/src/runtimes/deno/deno.ts | 12 +- .../src/runtimes/deno/deno_messenger.ts | 4 +- .../src/runtimes/deno/shared_types.ts | 4 +- .../typegate}/src/runtimes/deno/worker.ts | 4 +- .../typegate}/src/runtimes/graphql.ts | 2 +- .../typegate}/src/runtimes/http.ts | 10 +- {typegate => src/typegate}/src/runtimes/kv.ts | 8 +- .../typegate}/src/runtimes/mod.ts | 4 +- .../patterns/messenger/async_messenger.ts | 4 +- .../messenger/lazy_async_messenger.ts | 8 +- .../src/runtimes/patterns/messenger/types.ts | 0 .../typegate}/src/runtimes/prisma.ts | 0 .../runtimes/prisma/hooks/generate_schema.ts | 10 +- .../src/runtimes/prisma/hooks/mod.ts | 0 .../runtimes/prisma/hooks/run_migrations.ts | 8 +- .../src/runtimes/prisma/migration.ts | 8 +- .../typegate}/src/runtimes/prisma/mod.ts | 0 .../typegate}/src/runtimes/prisma/prisma.ts | 12 +- .../typegate}/src/runtimes/prisma/types.ts | 4 +- .../typegate}/src/runtimes/python.ts | 8 +- .../typegate}/src/runtimes/random.ts | 6 +- {typegate => src/typegate}/src/runtimes/s3.ts | 12 +- .../typegate}/src/runtimes/temporal.ts | 6 +- .../typegate}/src/runtimes/typegate.ts | 16 +- .../typegate}/src/runtimes/typegraph.ts | 18 +- .../runtimes/utils/graphql_forward_vars.ts | 4 +- .../src/runtimes/utils/graphql_inline_vars.ts | 8 +- .../typegate}/src/runtimes/utils/http.ts | 0 .../typegate}/src/runtimes/wasm_reflected.ts | 10 +- .../typegate}/src/runtimes/wasm_wire.ts | 8 +- .../typegate}/src/runtimes/wit_wire/mod.ts | 6 +- .../src/services/artifact_service.ts | 4 +- .../typegate}/src/services/auth/cookies.ts | 4 +- .../typegate}/src/services/auth/mod.ts | 10 +- .../src/services/auth/protocols/basic.ts | 10 +- .../src/services/auth/protocols/internal.ts | 6 +- .../src/services/auth/protocols/jwt.ts | 8 +- .../src/services/auth/protocols/oauth2.ts | 14 +- .../src/services/auth/protocols/protocol.ts | 0 .../typegate}/src/services/auth/routes/mod.ts | 2 +- .../src/services/auth/routes/take.ts | 2 +- .../src/services/auth/routes/validate.ts | 2 +- .../typegate}/src/services/graphql_service.ts | 12 +- .../typegate}/src/services/info_service.ts | 0 .../typegate}/src/services/middlewares.ts | 2 +- .../src/services/playground_service.ts | 2 +- .../typegate}/src/services/responses.ts | 2 +- .../typegate}/src/services/rest_service.ts | 6 +- {typegate => src/typegate}/src/sync/mod.ts | 0 .../typegate}/src/sync/replicated_map.ts | 2 +- .../typegate}/src/sync/typegraph.ts | 10 +- .../typegate}/src/system_typegraphs.ts | 10 +- .../typegate}/src/transports/graphql/gq.ts | 2 +- .../src/transports/graphql/graphql.ts | 4 +- .../src/transports/graphql/request_parser.ts | 0 .../src/transports/graphql/typegraph.ts | 4 +- .../typegate}/src/transports/graphql/utils.ts | 4 +- .../transports/rest/rest_schema_generator.ts | 2 +- .../typegate}/src/typegate/artifacts/local.ts | 21 +- .../typegate}/src/typegate/artifacts/mod.ts | 12 +- .../src/typegate/artifacts/shared.ts | 19 +- .../typegate}/src/typegate/hooks.ts | 4 +- .../typegate/src/typegate}/memory_register.ts | 13 +- .../typegate}/src/typegate/mod.ts | 18 +- .../typegate/src/typegate}/no_limiter.ts | 2 +- .../typegate}/src/typegate/rate_limiter.ts | 11 +- .../typegate}/src/typegate/register.ts | 8 +- .../typegate}/src/typegraph/mod.ts | 12 +- .../typegate}/src/typegraph/type_node.ts | 0 .../typegate}/src/typegraph/types.ts | 0 .../typegate}/src/typegraph/utils.ts | 10 +- .../typegate}/src/typegraph/versions.ts | 4 +- .../typegate}/src/typegraph/visitor.ts | 4 +- .../src/typegraphs/introspection.json | 0 .../typegate}/src/typegraphs/introspection.py | 0 .../src/typegraphs/prisma_migration.json | 0 .../src/typegraphs/prisma_migration.py | 0 .../typegate}/src/typegraphs/typegate.json | 0 .../typegate}/src/typegraphs/typegate.py | 0 {typegate => src/typegate}/src/types.ts | 16 +- {typegate => src/typegate}/src/utils.ts | 14 +- {typegate => src/typegate}/src/utils/hash.ts | 3 +- .../typegate}/standalone/Cargo.toml | 0 .../typegate}/standalone/src/config.rs | 4 +- .../typegate}/standalone/src/logger.rs | 0 .../typegate}/standalone/src/main.rs | 8 +- {typegraph => src/typegraph}/core/Cargo.toml | 42 +- .../typegraph}/core/src/conversion/hash.rs | 0 .../typegraph}/core/src/conversion/mod.rs | 0 .../src/conversion/parameter_transform.rs | 0 .../typegraph}/core/src/conversion/params.rs | 0 .../core/src/conversion/policies.rs | 0 .../core/src/conversion/runtimes.rs | 0 .../typegraph}/core/src/conversion/types.rs | 0 .../typegraph}/core/src/errors.rs | 0 .../typegraph}/core/src/global_store.rs | 2 +- {typegraph => src/typegraph}/core/src/lib.rs | 0 .../typegraph}/core/src/logger.rs | 0 .../typegraph}/core/src/params/apply.rs | 0 .../typegraph}/core/src/params/mod.rs | 0 .../typegraph}/core/src/runtimes/aws/mod.rs | 0 .../typegraph}/core/src/runtimes/deno.rs | 0 .../typegraph}/core/src/runtimes/graphql.rs | 0 .../typegraph}/core/src/runtimes/mod.rs | 0 .../core/src/runtimes/prisma/constraints.rs | 0 .../core/src/runtimes/prisma/context.rs | 0 .../core/src/runtimes/prisma/errors.rs | 0 .../core/src/runtimes/prisma/migration.rs | 0 .../core/src/runtimes/prisma/mod.rs | 0 .../core/src/runtimes/prisma/model.rs | 0 .../runtimes/prisma/relationship/discovery.rs | 0 .../src/runtimes/prisma/relationship/mod.rs | 0 .../type_generation/additional_filters.rs | 0 .../prisma/type_generation/aggregate.rs | 0 .../runtimes/prisma/type_generation/count.rs | 0 .../prisma/type_generation/filters.rs | 0 .../prisma/type_generation/group_by.rs | 0 .../prisma/type_generation/input_type.rs | 0 .../runtimes/prisma/type_generation/mod.rs | 0 .../prisma/type_generation/order_by.rs | 0 .../prisma/type_generation/out_type.rs | 0 .../type_generation/query_input_type.rs | 0 .../type_generation/query_where_expr.rs | 0 ...r__test__query_unique_where_expr user.snap | 0 ...ere_expr__tests__Post__QueryWhereExpr.snap | 0 ...ere_expr__tests__User__QueryWhereExpr.snap | 0 ..._generation__test__aggregate Post out.snap | 0 ...eneration__test__aggregate Record out.snap | 0 ..._generation__test__aggregate User out.snap | 0 ...eneration__test__create_many Post inp.snap | 0 ...eneration__test__create_many Post out.snap | 0 ...eration__test__create_many Record inp.snap | 0 ...eration__test__create_many Record out.snap | 0 ...eneration__test__create_many User inp.snap | 0 ...eneration__test__create_many User out.snap | 0 ...generation__test__create_one Post inp.snap | 0 ...neration__test__create_one Record inp.snap | 0 ...generation__test__create_one User inp.snap | 0 ...generation__test__find_first Post out.snap | 0 ...neration__test__find_first Record out.snap | 0 ...generation__test__find_first User out.snap | 0 ..._generation__test__find_many Post inp.snap | 0 ..._generation__test__find_many Post out.snap | 0 ...eneration__test__find_many Record inp.snap | 0 ...eneration__test__find_many Record out.snap | 0 ..._generation__test__find_many User inp.snap | 0 ..._generation__test__find_many User out.snap | 0 ...eneration__test__find_unique Post inp.snap | 0 ...eneration__test__find_unique Post out.snap | 0 ...eration__test__find_unique Record inp.snap | 0 ...eration__test__find_unique Record out.snap | 0 ...eneration__test__find_unique User inp.snap | 0 ...eneration__test__find_unique User out.snap | 0 ...e_generation__test__group_by Post inp.snap | 0 ...e_generation__test__group_by Post out.snap | 0 ...generation__test__group_by Record inp.snap | 0 ...generation__test__group_by Record out.snap | 0 ...e_generation__test__group_by User inp.snap | 0 ...e_generation__test__group_by User out.snap | 0 ...eneration__test__update_many Post inp.snap | 0 ...eration__test__update_many Record inp.snap | 0 ...eneration__test__update_many User inp.snap | 0 ...generation__test__update_one Post inp.snap | 0 ...neration__test__update_one Record inp.snap | 0 ...generation__test__update_one User inp.snap | 0 ..._generation__where___test__where Post.snap | 0 ...eneration__where___test__where Record.snap | 0 ..._generation__where___test__where User.snap | 0 .../runtimes/prisma/type_generation/where_.rs | 0 .../type_generation/with_nested_count.rs | 0 .../core/src/runtimes/prisma/type_utils.rs | 0 .../typegraph}/core/src/runtimes/python.rs | 0 .../typegraph}/core/src/runtimes/random.rs | 0 .../core/src/runtimes/substantial.rs | 0 .../typegraph}/core/src/runtimes/temporal.rs | 0 .../typegraph}/core/src/runtimes/typegate.rs | 0 .../typegraph}/core/src/runtimes/typegraph.rs | 0 .../typegraph}/core/src/runtimes/wasm.rs | 0 ...core__tests__successful_serialization.snap | 0 {typegraph => src/typegraph}/core/src/t.rs | 0 .../typegraph}/core/src/test_utils.rs | 0 .../typegraph}/core/src/typedef/boolean.rs | 0 .../typegraph}/core/src/typedef/either.rs | 0 .../typegraph}/core/src/typedef/file.rs | 0 .../typegraph}/core/src/typedef/float.rs | 0 .../typegraph}/core/src/typedef/func.rs | 0 .../typegraph}/core/src/typedef/integer.rs | 0 .../typegraph}/core/src/typedef/list.rs | 0 .../typegraph}/core/src/typedef/mod.rs | 0 .../typegraph}/core/src/typedef/optional.rs | 0 .../typegraph}/core/src/typedef/string.rs | 0 .../typegraph}/core/src/typedef/struct_.rs | 0 .../typegraph}/core/src/typedef/union.rs | 0 .../typegraph}/core/src/typegraph.rs | 0 .../typegraph}/core/src/types/mod.rs | 0 .../typegraph}/core/src/types/subgraph/map.rs | 0 .../typegraph}/core/src/types/subgraph/mod.rs | 0 .../typegraph}/core/src/types/type_def.rs | 0 .../typegraph}/core/src/types/type_id.rs | 0 .../typegraph}/core/src/types/type_ref.rs | 0 .../typegraph}/core/src/utils/archive.rs | 0 .../typegraph}/core/src/utils/artifacts.rs | 0 .../typegraph}/core/src/utils/fs.rs | 0 .../core/src/utils/metagen_utils.rs | 0 .../typegraph}/core/src/utils/mod.rs | 0 .../typegraph}/core/src/utils/oauth2/mod.rs | 0 .../typegraph}/core/src/utils/oauth2/std.rs | 0 .../typegraph}/core/src/utils/pathlib.rs | 0 .../core/src/utils/postprocess/deno_rt.rs | 0 .../core/src/utils/postprocess/mod.rs | 0 .../core/src/utils/postprocess/prisma_rt.rs | 0 .../core/src/utils/postprocess/python_rt.rs | 0 .../src/utils/postprocess/substantial_rt.rs | 0 .../core/src/utils/postprocess/validation.rs | 0 .../core/src/utils/postprocess/wasm_rt.rs | 0 .../typegraph}/core/src/utils/reduce.rs | 0 .../typegraph}/core/src/validation/errors.rs | 0 .../core/src/validation/materializers.rs | 0 .../typegraph}/core/src/validation/mod.rs | 0 .../typegraph}/core/src/validation/types.rs | 0 .../typegraph}/core/wit/typegraph.wit | 0 .../sdk => src/typegraph/deno}/LICENSE.md | 0 .../jsr.json => src/typegraph/deno/deno.json | 2 +- .../typegraph/deno}/src/deps/_import.ts | 0 .../typegraph/deno}/src/deps/mod.ts | 0 .../sdk => src/typegraph/deno}/src/effects.ts | 0 .../typegraph/deno}/src/envs/cli.ts | 0 .../typegraph/deno}/src/host/host.d.ts | 0 .../typegraph/deno}/src/host/host.js | 0 .../sdk => src/typegraph/deno}/src/index.ts | 0 .../deno/sdk => src/typegraph/deno}/src/io.ts | 0 .../sdk => src/typegraph/deno}/src/metagen.ts | 0 .../sdk => src/typegraph/deno}/src/params.ts | 0 .../sdk => src/typegraph/deno}/src/policy.ts | 0 .../typegraph/deno}/src/providers/aws.ts | 0 .../typegraph/deno}/src/providers/prisma.ts | 0 .../typegraph/deno}/src/providers/temporal.ts | 0 .../typegraph/deno}/src/runtimes/deno.ts | 0 .../typegraph/deno}/src/runtimes/graphql.ts | 0 .../typegraph/deno}/src/runtimes/http.ts | 0 .../typegraph/deno}/src/runtimes/kv.ts | 0 .../typegraph/deno}/src/runtimes/mod.ts | 0 .../typegraph/deno}/src/runtimes/python.ts | 0 .../typegraph/deno}/src/runtimes/random.ts | 0 .../deno}/src/runtimes/substantial.ts | 0 .../typegraph/deno}/src/runtimes/wasm.ts | 0 .../typegraph/deno}/src/tg_artifact_upload.ts | 0 .../typegraph/deno}/src/tg_deploy.ts | 0 .../typegraph/deno}/src/tg_manage.ts | 0 .../typegraph/deno}/src/typegraph.ts | 0 .../sdk => src/typegraph/deno}/src/types.ts | 0 .../typegraph/deno}/src/utils/func_utils.ts | 0 .../deno}/src/utils/injection_utils.ts | 0 .../typegraph/deno}/src/utils/type_utils.ts | 0 .../sdk => src/typegraph/deno}/src/wit.ts | 0 .../typegraph}/python/LICENSE.md | 0 src/typegraph/python/poetry.lock | 154 +++ .../typegraph}/python/pyproject.toml | 2 +- .../typegraph}/python/typegraph/__init__.py | 2 +- .../python/typegraph/deploy/request.py | 0 .../typegraph}/python/typegraph/effects.py | 0 .../typegraph}/python/typegraph/envs/cli.py | 0 .../typegraph}/python/typegraph/g.py | 0 .../python/typegraph/graph/metagen.py | 0 .../python/typegraph/graph/params.py | 0 .../python/typegraph/graph/shared_types.py | 0 .../typegraph/graph/tg_artifact_upload.py | 0 .../python/typegraph/graph/tg_deploy.py | 0 .../python/typegraph/graph/tg_manage.py | 0 .../python/typegraph/graph/typegraph.py | 0 .../typegraph}/python/typegraph/host/host.py | 0 .../typegraph}/python/typegraph/injection.py | 0 .../typegraph}/python/typegraph/io.py | 0 .../typegraph}/python/typegraph/policy.py | 0 .../python/typegraph/providers/__init__.py | 0 .../python/typegraph/providers/aws.py | 0 .../python/typegraph/providers/prisma.py | 0 .../python/typegraph/providers/temporal.py | 0 .../python/typegraph/runtimes/__init__.py | 0 .../python/typegraph/runtimes/base.py | 0 .../python/typegraph/runtimes/deno.py | 0 .../python/typegraph/runtimes/graphql.py | 0 .../python/typegraph/runtimes/http.py | 0 .../python/typegraph/runtimes/kv.py | 0 .../python/typegraph/runtimes/python.py | 0 .../python/typegraph/runtimes/random.py | 0 .../python/typegraph/runtimes/substantial.py | 0 .../python/typegraph/runtimes/wasm.py | 0 .../typegraph}/python/typegraph/t.py | 0 .../typegraph}/python/typegraph/utils.py | 0 .../typegraph}/python/typegraph/wit.py | 0 {wit => src/wit}/deps.lock | 0 {wit => src/wit}/deps.toml | 0 {wit => src/wit}/deps/cli/command.wit | 0 {wit => src/wit}/deps/cli/environment.wit | 0 {wit => src/wit}/deps/cli/exit.wit | 0 {wit => src/wit}/deps/cli/imports.wit | 0 {wit => src/wit}/deps/cli/run.wit | 0 {wit => src/wit}/deps/cli/stdio.wit | 0 {wit => src/wit}/deps/cli/terminal.wit | 0 .../wit}/deps/clocks/monotonic-clock.wit | 0 {wit => src/wit}/deps/clocks/wall-clock.wit | 0 {wit => src/wit}/deps/clocks/world.wit | 0 {wit => src/wit}/deps/filesystem/preopens.wit | 0 {wit => src/wit}/deps/filesystem/types.wit | 0 {wit => src/wit}/deps/filesystem/world.wit | 0 {wit => src/wit}/deps/io/error.wit | 0 {wit => src/wit}/deps/io/poll.wit | 0 {wit => src/wit}/deps/io/streams.wit | 0 {wit => src/wit}/deps/io/world.wit | 0 .../wit}/deps/random/insecure-seed.wit | 0 {wit => src/wit}/deps/random/insecure.wit | 0 {wit => src/wit}/deps/random/random.wit | 0 {wit => src/wit}/deps/random/world.wit | 0 .../wit}/deps/sockets/instance-network.wit | 0 .../wit}/deps/sockets/ip-name-lookup.wit | 0 {wit => src/wit}/deps/sockets/network.wit | 0 .../wit}/deps/sockets/tcp-create-socket.wit | 0 {wit => src/wit}/deps/sockets/tcp.wit | 0 .../wit}/deps/sockets/udp-create-socket.wit | 0 {wit => src/wit}/deps/sockets/udp.wit | 0 {wit => src/wit}/deps/sockets/world.wit | 0 {wit => src/wit}/wit-wire.wit | 0 {libs => src}/xtask/Cargo.toml | 9 +- {libs => src}/xtask/src/deno.rs | 2 + {libs => src}/xtask/src/main.rs | 0 .../artifacts/artifacts_test.ts | 8 +- {typegate/tests => tests}/auth/auth.py | 0 {typegate/tests => tests}/auth/auth_test.ts | 12 +- .../auto/__snapshots__/auto_test.ts.snap | 0 {typegate/tests => tests}/auto/auto_test.ts_ | 2 +- .../tests => tests}/auto/test/test-1.graphql | 0 {typegate/tests => tests}/auto/test/test.py | 0 .../common_utils/proposition_test.ts | 4 +- .../tests => tests}/common_utils/url_test.ts | 4 +- .../tests => tests}/crypto/crypto_test.ts | 6 +- tests/deno.jsonc | 29 + .../docs/how-tos/prog_deploy/prog_deploy.py | 0 .../docs/how-tos/prog_deploy/prog_deploy.ts | 1 + .../how-tos/prog_deploy/prog_deploy_test.ts | 4 +- .../docs/how-tos/prog_deploy/prog_remove.py | 0 .../docs/how-tos/prog_deploy/prog_remove.ts | 0 .../how-tos/prog_deploy/scripts/say_hello.ts | 0 {typegate/tests => tests}/e2e/cli/.gitignore | 0 .../tests => tests}/e2e/cli/deploy_test.ts | 2 +- {typegate/tests => tests}/e2e/cli/dev_test.ts | 20 +- {typegate/tests => tests}/e2e/cli/select.sh | 0 .../e2e/cli/templates/migration.py | 0 .../tests => tests}/e2e/cli/undeploy_test.ts | 0 .../e2e/nextjs/apollo/.eslintrc.json | 0 .../e2e/nextjs/apollo/.gitignore | 0 .../e2e/nextjs/apollo/app/favicon.ico | Bin .../e2e/nextjs/apollo/app/layout.tsx | 0 .../e2e/nextjs/apollo/app/page.tsx | 0 .../e2e/nextjs/apollo/next.config.js | 0 .../e2e/nextjs/apollo/package.json | 0 .../e2e/nextjs/apollo/pages/api/apollo.ts | 0 .../e2e/nextjs/apollo/pnpm-lock.yaml | 0 .../e2e/nextjs/apollo/postcss.config.js | 0 .../e2e/nextjs/apollo/public/.keep | 0 .../e2e/nextjs/apollo/tailwind.config.ts | 0 .../e2e/nextjs/apollo/tsconfig.json | 0 .../tests => tests}/e2e/nextjs/apollo_test.ts | 6 +- .../e2e/nextjs/typegraph/apollo.py | 0 .../e2e/published/published_test.ts | 78 +- .../e2e/self_deploy/scripts/main.ts | 0 .../e2e/self_deploy/self_deploy.ts | 0 .../e2e/self_deploy/self_deploy_test.ts | 6 +- .../e2e/templates/templates_test.ts | 11 +- .../__snapshots__/typegraph_test.ts.snap | 0 .../__snapshots__/validator_test.ts.snap | 0 .../e2e/typegraph/typegraph_test.ts | 4 +- .../e2e/typegraph/typegraphs/deno/complex.ts | 0 .../typegraphs/deno/multiple_runtimes.ts | 0 .../typegraphs/deno/scripts/three.ts | 0 .../e2e/typegraph/typegraphs/deno/simple.ts | 0 .../typegraph/typegraphs/python/complex.py | 0 .../typegraphs/python/multiple_runtimes.py | 0 .../typegraphs/python/scripts/three.ts | 0 .../e2e/typegraph/typegraphs/python/simple.py | 0 .../e2e/typegraph/validator.py | 0 .../e2e/typegraph/validator_test.ts | 2 +- .../e2e/website/website_test.ts | 18 +- {typegate/tests => tests}/graphql/graphql.py | 0 .../tests => tests}/graphql/graphql_test.ts | 4 +- .../graphql/request_parser_test.ts | 4 +- .../http_utils/http_utils_test.ts | 4 +- .../tests => tests}/importers/gql_original.py | 0 .../importers/importers_test.ts.disabled | 0 .../importers/introspection.json | 0 .../importers/introspection.py | 0 .../importers/openapi_original.py | 0 .../importers/openapi_schema.json | 0 .../importers/openapi_schema.py | 0 .../tests => tests}/injection/injection.py | 0 .../tests => tests}/injection/injection.ts | 0 .../injection/injection_test.ts | 2 +- .../injection/nested_context.py | 0 .../tests => tests}/internal/internal.py | 0 .../tests => tests}/internal/internal_test.ts | 0 .../tests => tests}/internal/ts/logic.ts | 0 .../__snapshots__/introspection_test.ts.snap | 0 .../__snapshots__/union_either_test.ts.snap | 0 .../introspection/introspection_test.ts | 0 .../introspection/union_either.py | 0 .../introspection/union_either_test.ts | 0 .../__snapshots__/metagen_test.ts.snap | 4 +- .../tests => tests}/metagen/metagen_test.ts | 19 +- .../metagen/typegraphs/identities.py | 0 .../typegraphs/identities/metatype.yml | 0 .../typegraphs/identities/py/handlers.py | 0 .../identities/py/handlers_types.py | 0 .../typegraphs/identities/rs/Cargo.lock | 0 .../typegraphs/identities/rs/Cargo.toml | 0 .../metagen/typegraphs/identities/rs/build.sh | 2 +- .../metagen/typegraphs/identities/rs/lib.rs | 0 .../metagen/typegraphs/identities/rs/mdk.rs | 2 +- .../typegraphs/identities/ts/deno.json | 0 .../typegraphs/identities/ts/handlers.ts | 0 .../metagen/typegraphs/identities/ts/mdk.ts | 1 + .../metagen/typegraphs/metagen.py | 0 .../metagen/typegraphs/metagen.ts | 0 .../metagen/typegraphs/python.py | 0 .../metagen/typegraphs/sample.ts | 0 .../metagen/typegraphs/sample/metatype.yml | 0 .../metagen/typegraphs/sample/py/client.py | 36 +- .../metagen/typegraphs/sample/py/main.py | 0 .../metagen/typegraphs/sample/rs/Cargo.lock | 0 .../metagen/typegraphs/sample/rs/Cargo.toml | 0 .../metagen/typegraphs/sample/rs/client.rs | 30 +- .../metagen/typegraphs/sample/rs/main.rs | 0 .../metagen/typegraphs/sample/ts/client.ts | 56 +- .../metagen/typegraphs/sample/ts/main.ts | 0 {typegate/tests => tests}/metatype.yml | 0 .../tests => tests}/misc/publish_test.ts | 10 +- .../misc/typegate_config_test.ts.disabled | 0 .../multi_typegraph/multi_typegraph.py | 0 .../multi_typegraph/multi_typegraph.ts | 0 .../multi_typegraph/multi_typegraph_test.ts | 0 {typegate/tests => tests}/nesting/nesting.py | 0 .../tests => tests}/nesting/nesting_test.ts | 0 {typegate/tests => tests}/params/apply.py | 0 .../params/apply_nested_context.py | 0 .../tests => tests}/params/apply_test.ts | 0 .../__snapshots__/planner_test.ts.snap | 0 .../planner/default_args_test.ts | 0 {typegate/tests => tests}/planner/planner.py | 0 .../tests => tests}/planner/planner_test.ts | 4 +- .../tests => tests}/policies/effects_py.py | 0 .../tests => tests}/policies/policies.py | 0 .../tests => tests}/policies/policies_jwt.py | 0 .../policies/policies_jwt_format.py | 0 .../policies/policies_jwt_injection.py | 0 .../policies/policies_jwt_test.ts | 2 +- .../tests => tests}/policies/policies_test.ts | 2 +- .../tests => tests}/policies/ts/effects.ts | 0 .../tests => tests}/policies/ts/policies.ts | 0 .../prisma/20240711030527_init/migration.sql | 52 + .../prisma/20240711030719_init/migration.sql | 52 + .../prisma/20240711033036_init/migration.sql | 52 + .../prisma/20240711033536_init/migration.sql | 52 + .../prisma/migration_lock.toml | 3 + .../prisma/20240711030413_init/migration.sql | 10 + .../prisma/20240711032926_init/migration.sql | 10 + .../prisma/20240814052852_init/migration.sql | 10 + .../injection/prisma/migration_lock.toml | 3 + .../prisma/20240711030744_init/migration.sql | 7 + .../prisma/20240711033545_init/migration.sql | 7 + .../mixed-runtime/prisma/migration_lock.toml | 3 + .../prisma/20240711030744_init/migration.sql | 34 + .../prisma/20240711033549_init/migration.sql | 34 + .../prisma/migration_lock.toml | 3 + .../db1/20240711030754_init/migration.sql | 7 + .../db1/20240711033554_init/migration.sql | 7 + .../multiple-runtimes/db1/migration_lock.toml | 3 + .../db2/20240711030754_init/migration.sql | 7 + .../db2/20240711033555_init/migration.sql | 7 + .../multiple-runtimes/db2/migration_lock.toml | 3 + .../prisma/20240711030805_init/migration.sql | 20 + .../prisma/20240711033609_init/migration.sql | 20 + .../normal-1-1/prisma/migration_lock.toml | 3 + .../prisma/20240711030809_init/migration.sql | 20 + .../prisma/20240711033612_init/migration.sql | 20 + .../optional-1-1/prisma/migration_lock.toml | 3 + .../prisma/20240711030756_init/migration.sql | 30 + .../prisma/20240711033601_init/migration.sql | 30 + .../optional-1-n/prisma/migration_lock.toml | 3 + .../prisma/20240711030805_init/migration.sql | 12 + .../prisma/20240711033617_init/migration.sql | 12 + .../prisma/migration_lock.toml | 3 + .../prisma/20240711030807_init/migration.sql | 20 + .../prisma/20240711033610_init/migration.sql | 20 + .../prisma_normal/prisma/migration_lock.toml | 3 + .../prisma/20240711030758_init/migration.sql | 30 + .../prisma/20240711033603_init/migration.sql | 30 + .../prisma_opt_1/prisma/migration_lock.toml | 3 + .../prisma/20240711031129_init/migration.sql | 6 + .../prisma/20240711034130_init/migration.sql | 6 + .../typename/prisma/migration_lock.toml | 3 + .../prisma_migrate/prisma_migrate_test.ts | 6 +- .../__snapshots__/query_parsers_test.ts.snap | 0 .../query_parsers/graphql_namespaces.py | 0 .../query_parsers/query_parsers_test.ts | 0 .../random/injection/random_injection.py | 0 .../random/injection/random_injection.ts | 0 .../random/injection/random_injection_test.ts | 0 {typegate/tests => tests}/random/random.ts | 0 {typegate/tests => tests}/random/random_.py | 0 .../tests => tests}/random/random_test.ts | 0 .../rate_limiter/rate_limiter_test.ts | 6 +- .../invalid_ref_error_message/invalid_ref.py | 0 .../invalid_ref_test.ts | 2 +- .../rest/__snapshots__/rest_test.ts.snap | 0 .../rest/custom/custom_loader.ts | 8 +- {typegate/tests => tests}/rest/custom/m.gql | 0 .../tests => tests}/rest/custom/q.graphql | 0 .../rest/rest_custom_loader.ts | 0 {typegate/tests => tests}/rest/rest_schema.ts | 0 {typegate/tests => tests}/rest/rest_simple.py | 0 {typegate/tests => tests}/rest/rest_test.ts | 4 +- .../tests => tests}/runtimes/deno/deno.py | 0 .../tests => tests}/runtimes/deno/deno_dep.py | 0 .../tests => tests}/runtimes/deno/deno_dep.ts | 0 .../tests => tests}/runtimes/deno/deno_dir.py | 0 .../tests => tests}/runtimes/deno/deno_dir.ts | 0 .../runtimes/deno/deno_dir_test.ts | 0 .../runtimes/deno/deno_duplicate_artifact.py | 0 .../runtimes/deno/deno_duplicate_artifact.ts | 0 .../runtimes/deno/deno_glob_test.ts | 0 .../runtimes/deno/deno_globs.py | 0 .../runtimes/deno/deno_globs.ts | 0 .../runtimes/deno/deno_no_artifact.py | 0 .../runtimes/deno/deno_partial.py | 0 .../runtimes/deno/deno_reload.py | 0 .../runtimes/deno/deno_sync_test.ts | 4 +- .../runtimes/deno/deno_test.ts | 2 +- .../runtimes/deno/deno_typescript.ts | 0 .../runtimes/deno/dynamic/1.ts | 0 .../runtimes/deno/dynamic/2.ts | 0 .../runtimes/deno/reload/template.ts | 0 .../tests => tests}/runtimes/deno/ts/deno.ts | 0 .../runtimes/deno/ts/dep/main.ts | 0 .../runtimes/deno/ts/dep/nested/dep.ts | 0 .../runtimes/deno/ts/math-npm.ts | 1 + .../tests => tests}/runtimes/deno/ts/math.ts | 1 + .../__snapshots__/graphql_test.ts.snap | 0 .../runtimes/graphql/graphql_test.ts | 2 +- .../graphql/typegraphs/deno/graphql.ts | 0 .../graphql/typegraphs/python/graphql.py | 0 .../runtimes/http/http_content_type.py | 0 .../runtimes/http/http_content_type_test.ts | 0 .../tests => tests}/runtimes/http/http_py.py | 0 .../runtimes/http/http_test.ts | 0 .../runtimes/kv/__snapshots__/kv_test.ts.snap | 0 {typegate/tests => tests}/runtimes/kv/kv.py | 0 {typegate/tests => tests}/runtimes/kv/kv.ts | 0 .../tests => tests}/runtimes/kv/kv_test.ts | 0 .../runtimes/prisma/full_prisma_mapping.py | 0 .../prisma/full_prisma_mapping_test.ts | 0 .../runtimes/prisma/graphql_variables_test.ts | 4 +- .../runtimes/prisma/mixed_runtime.py | 0 .../runtimes/prisma/mixed_runtime_test.ts | 0 .../runtimes/prisma/multi_relations.py | 0 .../runtimes/prisma/multi_relations_test.ts | 0 .../runtimes/prisma/multiple_runtimes.py | 0 .../runtimes/prisma/multiple_runtimes_test.ts | 0 .../runtimes/prisma/normal_1_1.py | 0 .../runtimes/prisma/normal_1_1.ts | 0 .../runtimes/prisma/one_to_many_test.ts | 0 .../runtimes/prisma/one_to_one_test.ts | 2 +- .../runtimes/prisma/optional_1_1.py | 0 .../runtimes/prisma/optional_1_n.py | 0 .../runtimes/prisma/optional_1_n.ts | 0 .../tests => tests}/runtimes/prisma/prisma.py | 0 .../runtimes/prisma/prisma_edgecases.py | 0 .../runtimes/prisma/prisma_edgecases_test.ts | 0 .../runtimes/prisma/prisma_test.ts | 4 +- .../runtimes/prisma/query_builder_test.ts | 4 +- .../runtimes/prisma/schema_generation.py | 0 .../runtimes/prisma/schema_generation_test.ts | 10 +- .../runtimes/python/py/hello.py | 0 .../runtimes/python/py/nested/dep.py | 0 .../tests => tests}/runtimes/python/python.py | 0 .../tests => tests}/runtimes/python/python.ts | 0 .../runtimes/python/python_dir.py | 0 .../runtimes/python/python_dir.ts | 0 .../runtimes/python/python_dir_test.ts | 0 .../python/python_duplicate_artifact.py | 0 .../python/python_duplicate_artifact.ts | 0 .../runtimes/python/python_glob_test.ts | 0 .../runtimes/python/python_globs.py | 0 .../runtimes/python/python_globs.ts | 0 .../runtimes/python/python_no_artifact.py | 0 .../runtimes/python/python_no_artifact.ts | 0 .../runtimes/python/python_sync_test.ts | 4 +- .../runtimes/python/python_test.ts | 8 +- .../runtimes/s3/__snapshots__/s3_test.ts.snap | 0 {typegate/tests => tests}/runtimes/s3/s3.py | 0 {typegate/tests => tests}/runtimes/s3/s3.ts | 0 .../tests => tests}/runtimes/s3/s3_test.ts | 2 +- .../__snapshots__/temporal_test.ts.snap | 0 .../runtimes/temporal/temporal.py | 0 .../runtimes/temporal/temporal.ts | 0 .../runtimes/temporal/temporal_test.ts | 4 +- .../runtimes/temporal/worker/activities.ts | 0 .../runtimes/temporal/worker/package.json | 0 .../runtimes/temporal/worker/pnpm-lock.yaml | 0 .../runtimes/temporal/worker/tsconfig.json | 0 .../runtimes/temporal/worker/worker.ts | 0 .../runtimes/temporal/worker/workflows.ts | 0 .../typegate_prisma_test.ts.snap | 0 .../typegate_runtime_test.ts.snap | 0 .../runtimes/typegate/typegate_prisma_test.ts | 0 .../typegate/typegate_runtime_test.ts | 0 .../runtimes/wasm_reflected/rust/Cargo.lock | 2 +- .../runtimes/wasm_reflected/rust/Cargo.toml | 2 +- .../runtimes/wasm_reflected/rust/build.sh | 0 .../runtimes/wasm_reflected/rust/src/lib.rs | 0 .../wasm_reflected/rust/wit/example.wit | 0 .../runtimes/wasm_reflected/wasm_duplicate.py | 0 .../runtimes/wasm_reflected/wasm_reflected.py | 0 .../runtimes/wasm_reflected/wasm_reflected.ts | 0 .../wasm_reflected/wasm_reflected_test.ts | 0 .../runtimes/wasm_reflected/wasm_sync_test.ts | 2 +- .../runtimes/wasm_wire/rust/Cargo.lock | 0 .../runtimes/wasm_wire/rust/Cargo.toml | 0 .../runtimes/wasm_wire/rust/build.sh | 2 +- .../runtimes/wasm_wire/rust/lib.rs | 0 .../runtimes/wasm_wire/rust/mdk.rs | 2 +- .../runtimes/wasm_wire/wasm_duplicate.ts | 0 .../runtimes/wasm_wire/wasm_sync_test.ts | 2 +- .../runtimes/wasm_wire/wasm_wire.py | 0 .../runtimes/wasm_wire/wasm_wire.ts | 0 .../runtimes/wasm_wire/wasm_wire_test.ts | 2 +- .../schema_validation/circular.py | 0 .../schema_validation/circular_test.ts | 0 .../schema_validation/ts/circular.ts | 0 .../__snapshots__/class_syntax_test.ts.snap | 0 .../tests => tests}/simple/class_syntax.py | 0 .../simple/class_syntax_test.ts | 0 .../tests => tests}/simple/error_message.py | 0 .../simple/error_message_test.ts | 0 {typegate/tests => tests}/simple/simple.py | 0 .../tests => tests}/simple/simple_test.ts | 0 .../tests => tests}/sync/sync_config_test.ts | 6 +- .../sync/typegraph_sync_test.ts.disable | 2 +- .../array_of_optional_test.ts.snap | 0 .../__snapshots__/either_test.ts.snap | 0 .../__snapshots__/union_test.ts.snap | 0 .../type_nodes/array_of_optional.py | 0 .../type_nodes/array_of_optional_test.ts | 0 .../tests => tests}/type_nodes/either_node.py | 0 .../tests => tests}/type_nodes/either_test.ts | 0 .../type_nodes/ts/either/user_register.ts | 0 .../type_nodes/ts/union/color_converter.ts | 9 +- .../type_nodes/ts/union/phone_register.ts | 0 .../type_nodes/ts/union/vec_normalizer.ts | 0 .../tests => tests}/type_nodes/union_node.py | 0 .../type_nodes/union_node_attr.py | 0 .../type_nodes/union_node_attr_test.ts | 0 .../type_nodes/union_node_quantifier.py | 0 .../type_nodes/union_node_quantifier_test.ts | 0 .../tests => tests}/type_nodes/union_test.ts | 2 +- .../input_validator_test.ts.snap | 0 .../__snapshots__/typecheck_test.ts.snap | 0 .../typecheck/input_validator_test.ts | 6 +- {typegate/tests => tests}/typecheck/reduce.ts | 0 .../tests => tests}/typecheck/reduce_py.py | 0 .../typecheck/reduce_syntax_test.ts | 0 .../tests => tests}/typecheck/type_alias.py | 0 .../typecheck/type_alias_test.ts | 0 .../tests => tests}/typecheck/typecheck.py | 0 .../typecheck/typecheck_test.ts | 6 +- .../tests => tests}/typegraph/version_test.ts | 14 +- .../tests => tests}/typename/typename.py | 0 .../tests => tests}/typename/typename_test.ts | 0 {typegate/tests => tests}/utils/assert.ts | 0 {typegate/tests => tests}/utils/autotest.ts | 8 +- .../tests => tests}/utils/bindings_test.ts | 0 {typegate/tests => tests}/utils/database.ts | 0 {typegate/tests => tests}/utils/date.ts | 0 {typegate/tests => tests}/utils/dir.ts | 6 +- {typegate/tests => tests}/utils/hooks.ts | 2 +- {typegate/tests => tests}/utils/meta.ts | 0 {typegate/tests => tests}/utils/migrations.ts | 14 +- {typegate/tests => tests}/utils/mock_fetch.ts | 0 {typegate/tests => tests}/utils/mod.ts | 10 +- {typegate/tests => tests}/utils/process.ts | 4 +- .../utils/query/file_extractor.ts | 0 .../utils/query/graphql_query.ts | 6 +- {typegate/tests => tests}/utils/query/mod.ts | 10 +- .../tests => tests}/utils/query/rest_query.ts | 2 +- .../tests => tests}/utils/router@0.0.5.ts | 0 {typegate/tests => tests}/utils/s3.ts | 0 {typegate/tests => tests}/utils/shell.ts | 0 .../tests => tests}/utils/single_register.ts | 4 +- {typegate/tests => tests}/utils/test.ts | 18 +- .../tests => tests}/utils/test_module.ts | 2 +- .../tests => tests}/utils/tg_deploy_script.py | 0 .../tests => tests}/utils/tg_deploy_script.ts | 5 +- {typegate/tests => tests}/vars/vars.py | 0 {typegate/tests => tests}/vars/vars_test.ts | 0 Cross.toml => tools/Cross.toml | 0 {dev => tools}/Dockerfile | 45 +- tools/Dockerfile.dockerignore | 23 + {dev => tools}/LICENSE-Elastic-2.0.md | 0 {dev => tools}/LICENSE-MPL-2.0.md | 0 cliff.toml => tools/cliff.toml | 0 codecov.yml => tools/codecov.yml | 0 .../compose}/compose.adminer.yml | 0 {dev/envs => tools/compose}/compose.base.yml | 0 .../compose}/compose.elastic.yml | 0 .../compose}/compose.imgproxy.yml | 0 .../envs => tools/compose}/compose.prisma.yml | 0 {dev => tools}/consts.ts | 40 +- {dev => tools}/cross.Dockerfile | 2 +- tools/deno.jsonc | 5 + tools/deno.lock | 638 ++++++++++ {dev => tools}/deps.ts | 30 +- {dev => tools}/envoy.yaml | 0 {dev => tools}/installs.ts | 1 + {typegraph/deno/dev => tools/jsr}/common.ts | 8 +- .../deno/dev => tools/jsr}/deno2node.ts | 14 +- .../dev => tools/jsr}/fix-declarations.ts | 32 +- {typegraph/deno/dev => tools/jsr}/jsr-gen.ts | 12 +- {dev => tools}/license-header-Elastic-2.0.txt | 0 {dev => tools}/license-header-MPL-2.0.txt | 0 ruff.toml => tools/ruff.toml | 0 dev/tasks-build.ts => tools/tasks/build.ts | 35 +- dev/tasks-dev.ts => tools/tasks/dev.ts | 20 +- tools/tasks/fetch.ts | 29 + .../tasks/install.ts | 38 +- tools/tasks/lint.ts | 47 + dev/tasks-lock.ts => tools/tasks/lock.ts | 17 +- tools/tasks/mod.ts | 19 + dev/tasks-test.ts => tools/tasks/test.ts | 15 +- {dev => tools}/test.ts | 18 +- {dev => tools}/tree-view.ts | 5 +- {dev => tools}/typegraph-size.ts | 3 +- {dev => tools}/update.ts | 19 +- {dev => tools}/utils.ts | 9 +- {dev => tools}/verdaccio/config.yaml | 0 typegate/deno.jsonc | 23 - typegate/engine/Cargo.toml | 56 - typegate/import_map.json | 38 - .../metagen/typegraphs/sample/ts/deno.json | 1 - typegraph/python/poetry.lock | 143 --- whiz.yaml | 34 +- 1239 files changed, 5172 insertions(+), 2405 deletions(-) rename typegate/.env.sample => .env.sample (100%) create mode 100644 deno.jsonc rename typegate/deno.lock => deno.lock (76%) delete mode 100644 dev/Dockerfile.dockerignore delete mode 100644 dev/tasks-fetch.ts delete mode 100644 dev/tasks-lint.ts rename {website => docs/metatype.dev}/.eslintignore (100%) rename {website => docs/metatype.dev}/.eslintrc.cjs (100%) rename {website => docs/metatype.dev}/.prettierignore (100%) rename {website => docs/metatype.dev}/.vale.ini (100%) rename {website => docs/metatype.dev}/babel.config.js (100%) rename {website => docs/metatype.dev}/blog/2023-03-15-emulating-servers/index.mdx (100%) rename {website => docs/metatype.dev}/blog/2023-06-18-programmable-glue/index.mdx (92%) rename {website => docs/metatype.dev}/blog/2023-11-27-node-compatibility/index.mdx (100%) rename {website => docs/metatype.dev}/blog/2024-05-09-programmatic-deployment/index.mdx (100%) rename {website => docs/metatype.dev}/blog/2024-08-27-distributed-execution-flow-paradigms/eda.drawio.svg (100%) rename {website => docs/metatype.dev}/blog/2024-08-27-distributed-execution-flow-paradigms/index.mdx (100%) rename {website => docs/metatype.dev}/blog/2024-08-27-distributed-execution-flow-paradigms/saga.drawio.svg (100%) rename {website => docs/metatype.dev}/docs/concepts/RFCs/M0-template.mdx (100%) rename {website => docs/metatype.dev}/docs/concepts/RFCs/index.mdx (100%) rename {website => docs/metatype.dev}/docs/concepts/architecture/artifact_upload_protocol.drawio.svg (100%) rename {website => docs/metatype.dev}/docs/concepts/architecture/index.mdx (100%) rename {website => docs/metatype.dev}/docs/concepts/comparisons/index.mdx (100%) rename {website => docs/metatype.dev}/docs/concepts/features-overview/index.mdx (95%) rename {website => docs/metatype.dev}/docs/concepts/mental-model/index.mdx (93%) rename {website => docs/metatype.dev}/docs/guides/contributing.mdx (72%) rename {website => docs/metatype.dev}/docs/guides/external-functions/ctx.graphql (100%) rename {website => docs/metatype.dev}/docs/guides/external-functions/gql.graphql (100%) rename {website => docs/metatype.dev}/docs/guides/external-functions/index.mdx (84%) rename {website => docs/metatype.dev}/docs/guides/external-functions/math.graphql (100%) rename {website => docs/metatype.dev}/docs/guides/external-functions/metagen.graphql (100%) rename {website => docs/metatype.dev}/docs/guides/files-upload/index.mdx (100%) rename {website => docs/metatype.dev}/docs/guides/import-external-modules/func.graphql (100%) rename {website => docs/metatype.dev}/docs/guides/import-external-modules/index.mdx (92%) rename {website => docs/metatype.dev}/docs/guides/programmatic-deployment/index.mdx (73%) rename {website => docs/metatype.dev}/docs/guides/rest/index.mdx (84%) rename {website => docs/metatype.dev}/docs/guides/securing-requests/authentication.graphql (100%) rename {website => docs/metatype.dev}/docs/guides/securing-requests/cors.graphql (100%) rename {website => docs/metatype.dev}/docs/guides/securing-requests/cors.py (100%) rename {website => docs/metatype.dev}/docs/guides/securing-requests/index.mdx (92%) rename {website => docs/metatype.dev}/docs/guides/securing-requests/policies.graphql (100%) rename {website => docs/metatype.dev}/docs/guides/self-hosting.md (100%) rename {website => docs/metatype.dev}/docs/guides/test-your-typegraph/index.mdx (100%) rename {website => docs/metatype.dev}/docs/guides/wasm-functions/index.mdx (89%) rename {website => docs/metatype.dev}/docs/guides/wasm-functions/metagen.graphql (100%) rename {website => docs/metatype.dev}/docs/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/changelog.mdx (74%) rename {website => docs/metatype.dev}/docs/reference/ecosystem/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/meta-cli/available-commands.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/meta-cli/configuration-file.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/meta-cli/embedded-typegate/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/meta-cli/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/metagen/index.mdx (85%) rename {website => docs/metatype.dev}/docs/reference/policies/index.mdx (89%) rename {website => docs/metatype.dev}/docs/reference/policies/policies.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/rest/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/deno/deno.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/deno/index.mdx (89%) rename {website => docs/metatype.dev}/docs/reference/runtimes/graphql/graphql.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/graphql/index.mdx (93%) rename {website => docs/metatype.dev}/docs/reference/runtimes/http/http.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/http/index.mdx (94%) rename {website => docs/metatype.dev}/docs/reference/runtimes/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/kv/index.mdx (84%) rename {website => docs/metatype.dev}/docs/reference/runtimes/prisma/database.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/prisma/index.mdx (98%) rename {website => docs/metatype.dev}/docs/reference/runtimes/python/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/random/index.mdx (88%) rename {website => docs/metatype.dev}/docs/reference/runtimes/random/random-field.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/random/random.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/s3/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/runtimes/temporal/index.mdx (86%) rename {website => docs/metatype.dev}/docs/reference/runtimes/wasm/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/typegate/authentication/basic.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/typegate/authentication/index.mdx (92%) rename {website => docs/metatype.dev}/docs/reference/typegate/authentication/jwt.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/typegate/authentication/oauth2.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/typegate/authentication/oauth2.tsx (100%) rename {website => docs/metatype.dev}/docs/reference/typegate/cors/cors.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/typegate/cors/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/typegate/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/typegate/rate-limiting/index.mdx (84%) rename {website => docs/metatype.dev}/docs/reference/typegate/rate-limiting/rate.graphql (100%) rename {website => docs/metatype.dev}/docs/reference/typegate/synchronization/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/typegraph/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/types/functions.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/types/importers/google.py_ (100%) rename {website => docs/metatype.dev}/docs/reference/types/importers/google.pyi (100%) rename {website => docs/metatype.dev}/docs/reference/types/importers/importer.py_ (100%) rename {website => docs/metatype.dev}/docs/reference/types/importers/index.mdx.disabled (100%) rename {website => docs/metatype.dev}/docs/reference/types/importers/typegraph_std.py_ (100%) rename {website => docs/metatype.dev}/docs/reference/types/index.mdx (100%) rename {website => docs/metatype.dev}/docs/reference/types/injections.mdx (91%) rename {website => docs/metatype.dev}/docs/reference/types/parameter-transformations.mdx (100%) rename {website => docs/metatype.dev}/docs/sidebars.js (100%) rename {website => docs/metatype.dev}/docs/tutorials/metatype-basics/execute.graphql (100%) rename {website => docs/metatype.dev}/docs/tutorials/metatype-basics/index.mdx (97%) rename {website => docs/metatype.dev}/docs/tutorials/metatype-basics/md2html.ts.src (100%) rename {website => docs/metatype.dev}/docs/tutorials/metatype-basics/policies.graphql (100%) rename {website => docs/metatype.dev}/docs/tutorials/metatype-basics/prisma.graphql (100%) rename {website => docs/metatype.dev}/docs/tutorials/metatype-basics/query.graphql (100%) rename {website => docs/metatype.dev}/docs/tutorials/metatype-basics/random.graphql (100%) rename {website => docs/metatype.dev}/docs/tutorials/metatype-basics/reduce.graphql (100%) rename {website => docs/metatype.dev}/docs/tutorials/quick-start/index.mdx (100%) rename {website => docs/metatype.dev}/docusaurus.config.js (93%) rename {website => docs/metatype.dev}/globals.d.ts (100%) rename {website => docs/metatype.dev}/package.json (100%) rename {website => docs/metatype.dev}/packages/code-loader-transform.js (100%) rename {website => docs/metatype.dev}/packages/code-loader.js (100%) rename {website => docs/metatype.dev}/packages/tailwindcss.js (100%) rename {website => docs/metatype.dev}/pnpm-lock.yaml (100%) rename {website => docs/metatype.dev}/shared/components.drawio.svg (100%) rename {website => docs/metatype.dev}/shared/cors/cors.graphql (100%) rename {website => docs/metatype.dev}/shared/cors/index.mdx (89%) rename {website => docs/metatype.dev}/shared/evolution.drawio.svg (100%) rename {website => docs/metatype.dev}/shared/install/meta-cli.mdx (100%) rename {website => docs/metatype.dev}/shared/install/typegate.mdx (100%) rename {website => docs/metatype.dev}/shared/install/typegraph.mdx (100%) rename {website => docs/metatype.dev}/shared/meta-cli/embedded-typegate.mdx (100%) rename {website => docs/metatype.dev}/shared/metatype-intro.mdx (100%) rename {website => docs/metatype.dev}/shared/projects/first-project.graphql (100%) rename {website => docs/metatype.dev}/shared/projects/first-project.mdx (100%) rename {website => docs/metatype.dev}/shared/projects/tab-first-project-python.mdx (96%) rename {website => docs/metatype.dev}/shared/projects/tab-first-project-ts.mdx (96%) rename {website => docs/metatype.dev}/shared/s3/files.graphql (100%) rename {website => docs/metatype.dev}/shared/s3/index.mdx (90%) rename {website => docs/metatype.dev}/shared/upgrade/index.mdx (100%) rename {website => docs/metatype.dev}/shared/upgrade/meta-cli.mdx (100%) rename {website => docs/metatype.dev}/shared/upgrade/python-sdk.mdx (100%) rename {website => docs/metatype.dev}/shared/upgrade/typescript-sdk.mdx (100%) rename {website => docs/metatype.dev}/src/components/BlogIntro/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/ChoicePicker/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/CompareLandscape.tsx (100%) rename {website => docs/metatype.dev}/src/components/DocButton/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/DocButton/styles.module.scss (100%) rename {website => docs/metatype.dev}/src/components/Features/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/Giscus/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/MiniQL/graphiql.tsx (100%) rename {website => docs/metatype.dev}/src/components/MiniQL/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/MiniQL/memory_store.ts (100%) rename {website => docs/metatype.dev}/src/components/Newsletter/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/PythonPackageManagerTabs/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/SDKTabs/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/TGExample/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/TsPackageManagerTabs/index.tsx (100%) rename {website => docs/metatype.dev}/src/components/animations/animated.tsx (100%) rename {website => docs/metatype.dev}/src/components/animations/animated_canvas.tsx (100%) rename {website => docs/metatype.dev}/src/components/animations/block.tsx (100%) rename {website => docs/metatype.dev}/src/components/animations/doublearrow.tsx (100%) rename {website => docs/metatype.dev}/src/components/animations/hooks.tsx (100%) rename {website => docs/metatype.dev}/src/components/animations/textarrow.tsx (100%) rename {website => docs/metatype.dev}/src/components/castles.tsx (100%) rename {website => docs/metatype.dev}/src/css/custom.scss (100%) rename {website => docs/metatype.dev}/src/pages/index.graphql (100%) rename {website => docs/metatype.dev}/src/pages/index.tsx (98%) rename {website => docs/metatype.dev}/src/pages/legal/privacy-policy.md (100%) rename {website => docs/metatype.dev}/src/pages/legal/terms.md (100%) rename {website => docs/metatype.dev}/src/states/package_manager.ts (100%) rename {website => docs/metatype.dev}/src/states/sdk.ts (100%) rename {website => docs/metatype.dev}/src/theme/DocItem/Paginator/index.js (100%) rename {website => docs/metatype.dev}/src/theme/DocItem/Paginator/styles.module.scss (100%) rename {website => docs/metatype.dev}/src/theme/Root.js (100%) rename {website => docs/metatype.dev}/static/.nojekyll (100%) rename {website => docs/metatype.dev}/static/icons/bring-your-own-components.svg (100%) rename {website => docs/metatype.dev}/static/icons/commercial-support.svg (100%) rename {website => docs/metatype.dev}/static/icons/compose-api-blocks.svg (100%) rename {website => docs/metatype.dev}/static/icons/design-discover.svg (100%) rename {website => docs/metatype.dev}/static/icons/iterate-quickly.svg (100%) rename {website => docs/metatype.dev}/static/icons/secure-by-default.svg (100%) rename {website => docs/metatype.dev}/static/images/castles/building.png (100%) rename {website => docs/metatype.dev}/static/images/castles/modulable.png (100%) rename {website => docs/metatype.dev}/static/images/castles/reusable.png (100%) rename {website => docs/metatype.dev}/static/images/castles/stable.png (100%) rename {website => docs/metatype.dev}/static/images/demo-thumbnail.png (100%) rename {website/static/images/blog => docs/metatype.dev/static/images}/execution-flow-paradigms/durable-exec.svg (100%) rename {website/static/images/blog => docs/metatype.dev/static/images}/execution-flow-paradigms/eda.png (100%) rename {website/static/images/blog => docs/metatype.dev/static/images}/execution-flow-paradigms/saga-overview.png (100%) rename {website/static/images/blog => docs/metatype.dev/static/images}/execution-flow-paradigms/saga-pattern-order-delivery.png (100%) rename {website/static/images/blog => docs/metatype.dev/static/images}/execution-flow-paradigms/start-workflow-result.png (100%) rename {website/static/images/blog => docs/metatype.dev/static/images}/execution-flow-paradigms/temporal-web-ui.png (100%) rename {website => docs/metatype.dev}/static/images/favicon.ico (100%) rename {website => docs/metatype.dev}/static/images/homepage/devhunt_tab_dark.svg (100%) rename {website => docs/metatype.dev}/static/images/homepage/devhunt_tab_dark_orange.svg (100%) rename {website => docs/metatype.dev}/static/images/homepage/devhunt_tab_orange.svg (100%) rename {website => docs/metatype.dev}/static/images/homepage/devhunt_tab_solid.svg (100%) rename {website => docs/metatype.dev}/static/images/homepage/tab_grey.svg (100%) rename {website => docs/metatype.dev}/static/images/logo-bg.svg (100%) rename {website => docs/metatype.dev}/static/images/logo.png (100%) rename {website => docs/metatype.dev}/static/images/logo.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/deno.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/google-apis-explorer.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/graphql.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/grpc.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/http.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/mariadb.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/mongodb.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/postgresql.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/python.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/s3.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/sqlite.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/temporal.svg (100%) rename {website => docs/metatype.dev}/static/images/runtimes/wasmedge.svg (100%) rename {website => docs/metatype.dev}/static/images/slack.png (100%) rename {website => docs/metatype.dev}/static/images/system_setup.drawio.svg (100%) rename {website => docs/metatype.dev}/static/images/tutorial/query-result.png (100%) rename {website => docs/metatype.dev}/static/images/tutorial/running-typegate.png (100%) rename {website => docs/metatype.dev}/static/images/tutorial/tg-on-typegate.png (100%) rename {website => docs/metatype.dev}/tailwind.config.js (100%) rename {website => docs/metatype.dev}/tsconfig.json (100%) rename {website => docs/metatype.dev}/use-cases/automatic-crud-validation/image.drawio.svg (100%) rename {website => docs/metatype.dev}/use-cases/automatic-crud-validation/index.mdx (92%) rename {website => docs/metatype.dev}/use-cases/backend-for-frontend/image.drawio.svg (100%) rename {website => docs/metatype.dev}/use-cases/backend-for-frontend/index.mdx (90%) rename {website => docs/metatype.dev}/use-cases/backend-for-frontend/query.graphql (100%) rename {website => docs/metatype.dev}/use-cases/faas-runner/image.drawio.svg (100%) rename {website => docs/metatype.dev}/use-cases/faas-runner/index.mdx (92%) rename {website => docs/metatype.dev}/use-cases/faas-runner/query.gql (100%) rename {website => docs/metatype.dev}/use-cases/graphql-server/image.drawio.svg (100%) rename {website => docs/metatype.dev}/use-cases/graphql-server/index.mdx (92%) rename {website => docs/metatype.dev}/use-cases/graphql-server/query.gql (100%) rename {website => docs/metatype.dev}/use-cases/iam-provider/image.drawio.svg (100%) rename {website => docs/metatype.dev}/use-cases/iam-provider/index.mdx (92%) rename {website => docs/metatype.dev}/use-cases/iam-provider/query.gql (100%) rename {website => docs/metatype.dev}/use-cases/microservice-orchestration/image.drawio.svg (100%) rename {website => docs/metatype.dev}/use-cases/microservice-orchestration/index.mdx (90%) rename {website => docs/metatype.dev}/use-cases/microservice-orchestration/query.gql (100%) rename {website => docs/metatype.dev}/use-cases/orm-for-the-edge/image.drawio.svg (100%) rename {website => docs/metatype.dev}/use-cases/orm-for-the-edge/index.mdx (91%) rename {website => docs/metatype.dev}/use-cases/prisma.graphql (100%) rename {website => docs/metatype.dev}/use-cases/programmable-api-gateway/image.drawio.svg (100%) rename {website => docs/metatype.dev}/use-cases/programmable-api-gateway/index.mdx (90%) rename {website => docs/metatype.dev}/use-cases/programmable-api-gateway/query.gql (100%) rename {website => docs/metatype.dev}/use-cases/sidebars.js (100%) rename {website => docs/metatype.dev}/vale/Vocab/Metatype/accept.txt (100%) rename {website => docs/metatype.dev}/vale/Vocab/Metatype/reject.txt (100%) delete mode 100644 examples/deno.json create mode 100644 examples/deno.jsonc delete mode 100644 libs/metagen/metatype.yaml rename {libs => src}/common/Cargo.toml (55%) rename {libs => src}/common/src/archive.rs (100%) rename {libs => src}/common/src/graphql.rs (100%) rename {libs => src}/common/src/lib.rs (100%) rename {libs => src}/common/src/node.rs (100%) rename {libs => src}/common/src/typegraph/mod.rs (100%) rename {libs => src}/common/src/typegraph/parameter_transform.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/deno.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/graphql.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/http.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/kv.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/mod.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/prisma.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/python.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/random.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/s3.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/substantial.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/temporal.rs (100%) rename {libs => src}/common/src/typegraph/runtimes/wasm.rs (100%) rename {libs => src}/common/src/typegraph/types.rs (100%) rename {libs => src}/common/src/typegraph/utils.rs (100%) rename {libs => src}/common/src/typegraph/validator/common.rs (100%) rename {libs => src}/common/src/typegraph/validator/input.rs (100%) rename {libs => src}/common/src/typegraph/validator/mod.rs (100%) rename {libs => src}/common/src/typegraph/validator/types.rs (100%) rename {libs => src}/common/src/typegraph/validator/value.rs (100%) rename {libs => src}/common/src/typegraph/visitor.rs (100%) rename {meta-cli => src/meta-cli}/Cargo.toml (62%) rename {meta-cli => src/meta-cli}/build.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/completion.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/deploy.rs (99%) rename {meta-cli => src/meta-cli}/src/cli/dev.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/doctor.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/gen.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/list.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/mod.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/new.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/serialize.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/typegate.rs (82%) rename {meta-cli => src/meta-cli}/src/cli/ui/mod.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/undeploy.rs (100%) rename {meta-cli => src/meta-cli}/src/cli/upgrade.rs (100%) rename {meta-cli => src/meta-cli}/src/config.rs (96%) rename {meta-cli => src/meta-cli}/src/deploy/actor-model.drawio.svg (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/console.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/console/input.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/discovery.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/mod.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/push_manager/state.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task.rs (97%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task/action.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task/command.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task/command/python.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task/command/typescript.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task/deploy.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task/deploy/migrations.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task/list.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task/serialize.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task_io.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task_manager.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task_manager/report.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/task_manager/signal_handler.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/actors/typegate.rs (97%) rename {meta-cli => src/meta-cli}/src/deploy/actors/watcher.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/mod.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/push/mod.rs (100%) rename {meta-cli => src/meta-cli}/src/deploy/push/pusher.rs (80%) rename {meta-cli => src/meta-cli}/src/fs.rs (100%) rename {meta-cli => src/meta-cli}/src/global_config.rs (100%) rename {meta-cli => src/meta-cli}/src/logger.rs (100%) rename {libs/metagen => src/meta-cli}/src/macros.rs (100%) rename {meta-cli => src/meta-cli}/src/main.rs (100%) rename {meta-cli => src/meta-cli}/src/secrets.rs (100%) rename {meta-cli => src/meta-cli}/src/tests/mod.rs (100%) rename {meta-cli => src/meta-cli}/src/tests/utils.rs (100%) rename {meta-cli => src/meta-cli}/src/typegraph/dependency_graph.rs (100%) rename {meta-cli => src/meta-cli}/src/typegraph/loader/discovery.rs (100%) rename {meta-cli => src/meta-cli}/src/typegraph/loader/mod.rs (100%) rename {meta-cli => src/meta-cli}/src/typegraph/mod.rs (100%) rename {meta-cli => src/meta-cli}/src/utils/clap.rs (100%) rename {meta-cli => src/meta-cli}/src/utils/mod.rs (100%) rename {meta-cli => src/meta-cli}/src/utils/shell_words.rs (100%) rename {meta-cli => src/meta-cli}/tests/graphs/nested/graph0.py (100%) rename {meta-cli => src/meta-cli}/tests/metatype.yml (100%) rename {meta-lsp => src/meta-lsp}/.eslintrc.yml (100%) rename {meta-lsp => src/meta-lsp}/.vscodeignore (100%) rename {meta-lsp => src/meta-lsp}/LICENSE.md (100%) rename {meta-lsp => src/meta-lsp}/README.md (100%) rename {meta-lsp => src/meta-lsp}/logo.png (100%) rename {meta-lsp => src/meta-lsp}/package.json (98%) rename {meta-lsp => src/meta-lsp}/pnpm-lock.yaml (100%) rename {meta-lsp => src/meta-lsp}/pnpm-workspace.yaml (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/package.json (96%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/analysis/diagnostics/context.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/analysis/exposed_function.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/analysis/runtimes/mod.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/analysis/typescript-semantic/scope.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/analysis/typescript-semantic/semantic-node.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/analysis/typescript-semantic/symbols.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/analysis/typescript-semantic/utils/mod.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/lsp_client.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/parser.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/server.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/server/documents.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/server/index.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/src/types.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/tests/__snapshots__/expose_analysis_test.ts.snap (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/tests/expose_analysis.test.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/tests/typegraphs/deno_types.ts (100%) rename {meta-lsp => src/meta-lsp}/ts-language-server/tests/utils.ts (100%) rename {meta-lsp => src/meta-lsp}/tsconfig.json (100%) rename {meta-lsp => src/meta-lsp}/vscode-metatype-support/package.json (96%) rename {meta-lsp => src/meta-lsp}/vscode-metatype-support/pnpm-lock.yaml (100%) rename {meta-lsp => src/meta-lsp}/vscode-metatype-support/src/extension.ts (100%) rename {meta-lsp => src/meta-lsp}/vscode-metatype-support/tsconfig.json (100%) rename {libs => src}/metagen/Cargo.toml (51%) rename {libs => src}/metagen/fixtures/client_rs/Cargo.toml (100%) rename {libs => src}/metagen/fixtures/client_rs/main.rs (100%) rename {libs => src}/metagen/fixtures/client_ts/deno.json (100%) rename {libs => src}/metagen/fixtures/client_ts/main.ts (100%) rename {libs => src}/metagen/fixtures/mat_rust/lib.rs (100%) rename {libs => src}/metagen/fixtures/placeholder (100%) rename {libs => src}/metagen/fixtures/tg.ts (100%) rename {libs => src}/metagen/fixtures/tg2.ts (100%) create mode 100644 src/metagen/metatype.yaml rename {libs => src}/metagen/src/client_py/mod.rs (100%) rename {libs => src}/metagen/src/client_py/node_metas.rs (100%) rename {libs => src}/metagen/src/client_py/selections.rs (100%) rename {libs => src}/metagen/src/client_py/static/client.py (100%) rename {libs => src}/metagen/src/client_py/types.rs (100%) rename {libs => src}/metagen/src/client_py/utils.rs (100%) rename {libs => src}/metagen/src/client_rs/mod.rs (100%) rename {libs => src}/metagen/src/client_rs/node_metas.rs (100%) rename {libs => src}/metagen/src/client_rs/selections.rs (100%) rename {libs => src}/metagen/src/client_rs/static/Cargo.toml (100%) rename {libs => src}/metagen/src/client_rs/static/client.rs (100%) rename {libs => src}/metagen/src/client_rs/static/lib.rs (100%) rename {libs => src}/metagen/src/client_ts/mod.rs (100%) rename {libs => src}/metagen/src/client_ts/node_metas.rs (100%) rename {libs => src}/metagen/src/client_ts/selections.rs (100%) rename {libs => src}/metagen/src/client_ts/static/mod.ts (100%) rename {libs => src}/metagen/src/config.rs (100%) rename {libs => src}/metagen/src/lib.rs (100%) rename {meta-cli => src/metagen}/src/macros.rs (100%) rename {libs => src}/metagen/src/mdk_python/mod.rs (100%) rename {libs => src}/metagen/src/mdk_python/static/main.py.jinja (100%) rename {libs => src}/metagen/src/mdk_python/static/struct.py.jinja (100%) rename {libs => src}/metagen/src/mdk_python/static/types.py.jinja (100%) rename {libs => src}/metagen/src/mdk_python/types.rs (100%) rename {libs => src}/metagen/src/mdk_python/utils.rs (100%) rename {libs => src}/metagen/src/mdk_rust/mod.rs (99%) rename {libs => src}/metagen/src/mdk_rust/static/Cargo.toml (100%) rename {libs => src}/metagen/src/mdk_rust/static/lib.rs (100%) rename {libs => src}/metagen/src/mdk_rust/static/mdk.rs (99%) rename {libs => src}/metagen/src/mdk_rust/stubs.rs (100%) rename {libs => src}/metagen/src/mdk_rust/types.rs (100%) rename {libs => src}/metagen/src/mdk_rust/utils.rs (100%) rename {libs => src}/metagen/src/mdk_substantial/mod.rs (100%) rename {libs => src}/metagen/src/mdk_substantial/static/substantial.py (100%) rename {libs => src}/metagen/src/mdk_substantial/static/types.py (100%) rename {libs => src}/metagen/src/mdk_substantial/static/workflow.py (100%) rename {libs => src}/metagen/src/mdk_typescript/mod.rs (100%) rename {libs => src}/metagen/src/mdk_typescript/static/mdk.ts (100%) rename {libs => src}/metagen/src/mdk_typescript/types.rs (100%) rename {libs => src}/metagen/src/mdk_typescript/utils.rs (100%) rename {libs => src}/metagen/src/shared/client.rs (100%) rename {libs => src}/metagen/src/shared/mod.rs (100%) rename {libs => src}/metagen/src/shared/types.rs (100%) rename {libs => src}/metagen/src/tests/fixtures.rs (96%) rename {libs => src}/metagen/src/tests/mod.rs (100%) rename {libs => src}/metagen/src/utils.rs (100%) rename {libs/deno => src/mt_deno}/Cargo.toml (84%) rename {libs/deno => src/mt_deno}/src/lib.rs (91%) rename {libs => src}/pyrt_wit_wire/main.py (100%) rename {libs => src}/pyrt_wit_wire/pyproject.toml (93%) create mode 100644 src/typegate/deno.jsonc rename {typegate => src/typegate}/engine/00_runtime.js (100%) create mode 100644 src/typegate/engine/Cargo.toml rename {typegate => src/typegate}/engine/bindings.ts (100%) rename {typegate => src/typegate}/engine/build.rs (97%) rename {typegate => src/typegate}/engine/runtime.d.ts (100%) rename {typegate => src/typegate}/engine/runtime.js (100%) rename {typegate => src/typegate}/engine/src/ext.rs (99%) rename {typegate => src/typegate}/engine/src/lib.rs (98%) rename {typegate => src/typegate}/engine/src/runtimes.rs (100%) rename {typegate => src/typegate}/engine/src/runtimes/prisma.rs (100%) rename {typegate => src/typegate}/engine/src/runtimes/prisma/engine.rs (100%) rename {typegate => src/typegate}/engine/src/runtimes/prisma/engine_import.rs (100%) rename {typegate => src/typegate}/engine/src/runtimes/prisma/migration.rs (100%) rename {typegate => src/typegate}/engine/src/runtimes/prisma/utils.rs (100%) rename {typegate => src/typegate}/engine/src/runtimes/temporal.rs (100%) rename {typegate => src/typegate}/engine/src/runtimes/wasm.rs (100%) rename {typegate => src/typegate}/engine/src/runtimes/wasm/conversion.rs (100%) rename {typegate => src/typegate}/engine/src/runtimes/wit_wire.rs (99%) rename {typegate => src/typegate}/engine/src/typegraph.rs (96%) rename {typegate => src/typegate}/src/config.ts (90%) rename {typegate => src/typegate}/src/config/loader.ts (94%) rename {typegate => src/typegate}/src/config/shared.ts (100%) rename {typegate => src/typegate}/src/config/types.ts (95%) rename {typegate => src/typegate}/src/crypto.ts (96%) rename {typegate => src/typegate}/src/engine/computation_engine.ts (96%) rename {typegate => src/typegate}/src/engine/planner/args.ts (98%) rename {typegate => src/typegate}/src/engine/planner/dependency_resolver.ts (92%) rename {typegate => src/typegate}/src/engine/planner/injection_utils.ts (98%) rename {typegate => src/typegate}/src/engine/planner/mod.ts (97%) rename {typegate => src/typegate}/src/engine/planner/parameter_transformer.ts (97%) rename {typegate => src/typegate}/src/engine/planner/policies.ts (97%) rename {typegate => src/typegate}/src/engine/query_engine.ts (95%) rename {typegate => src/typegate}/src/engine/stage_id.ts (100%) rename {typegate => src/typegate}/src/engine/typecheck/code_generator.ts (97%) rename {typegate => src/typegate}/src/engine/typecheck/common.ts (93%) rename {typegate => src/typegate}/src/engine/typecheck/inline_validators/boolean.ts (84%) rename {typegate => src/typegate}/src/engine/typecheck/inline_validators/common.ts (100%) rename {typegate => src/typegate}/src/engine/typecheck/inline_validators/constraints.ts (96%) rename {typegate => src/typegate}/src/engine/typecheck/inline_validators/file.ts (91%) rename {typegate => src/typegate}/src/engine/typecheck/inline_validators/list.ts (89%) rename {typegate => src/typegate}/src/engine/typecheck/inline_validators/mod.ts (100%) rename {typegate => src/typegate}/src/engine/typecheck/inline_validators/number.ts (89%) rename {typegate => src/typegate}/src/engine/typecheck/inline_validators/object.ts (94%) rename {typegate => src/typegate}/src/engine/typecheck/inline_validators/string.ts (93%) rename {typegate => src/typegate}/src/engine/typecheck/input.ts (96%) rename {typegate => src/typegate}/src/engine/typecheck/matching_variant.ts (92%) rename {typegate => src/typegate}/src/engine/typecheck/result.ts (97%) rename {typegate => src/typegate}/src/errors.ts (97%) rename {typegate => src/typegate}/src/libs/jsonpath.ts (100%) rename {typegate => src/typegate}/src/log.ts (91%) rename {typegate => src/typegate}/src/main.ts (100%) rename {typegate => src/typegate}/src/runtimes/Runtime.ts (91%) rename {typegate => src/typegate}/src/runtimes/deno.ts (100%) rename {typegate => src/typegate}/src/runtimes/deno/deno.ts (95%) rename {typegate => src/typegate}/src/runtimes/deno/deno_messenger.ts (96%) rename {typegate => src/typegate}/src/runtimes/deno/shared_types.ts (92%) rename {typegate => src/typegate}/src/runtimes/deno/worker.ts (97%) rename {typegate => src/typegate}/src/runtimes/graphql.ts (98%) rename {typegate => src/typegate}/src/runtimes/http.ts (95%) rename {typegate => src/typegate}/src/runtimes/kv.ts (91%) rename {typegate => src/typegate}/src/runtimes/mod.ts (91%) rename {typegate => src/typegate}/src/runtimes/patterns/messenger/async_messenger.ts (96%) rename {typegate => src/typegate}/src/runtimes/patterns/messenger/lazy_async_messenger.ts (96%) rename {typegate => src/typegate}/src/runtimes/patterns/messenger/types.ts (100%) rename {typegate => src/typegate}/src/runtimes/prisma.ts (100%) rename {typegate => src/typegate}/src/runtimes/prisma/hooks/generate_schema.ts (97%) rename {typegate => src/typegate}/src/runtimes/prisma/hooks/mod.ts (100%) rename {typegate => src/typegate}/src/runtimes/prisma/hooks/run_migrations.ts (97%) rename {typegate => src/typegate}/src/runtimes/prisma/migration.ts (96%) rename {typegate => src/typegate}/src/runtimes/prisma/mod.ts (100%) rename {typegate => src/typegate}/src/runtimes/prisma/prisma.ts (96%) rename {typegate => src/typegate}/src/runtimes/prisma/types.ts (80%) rename {typegate => src/typegate}/src/runtimes/python.ts (96%) rename {typegate => src/typegate}/src/runtimes/random.ts (96%) rename {typegate => src/typegate}/src/runtimes/s3.ts (96%) rename {typegate => src/typegate}/src/runtimes/temporal.ts (96%) rename {typegate => src/typegate}/src/runtimes/typegate.ts (97%) rename {typegate => src/typegate}/src/runtimes/typegraph.ts (97%) rename {typegate => src/typegate}/src/runtimes/utils/graphql_forward_vars.ts (98%) rename {typegate => src/typegate}/src/runtimes/utils/graphql_inline_vars.ts (96%) rename {typegate => src/typegate}/src/runtimes/utils/http.ts (100%) rename {typegate => src/typegate}/src/runtimes/wasm_reflected.ts (92%) rename {typegate => src/typegate}/src/runtimes/wasm_wire.ts (94%) rename {typegate => src/typegate}/src/runtimes/wit_wire/mod.ts (97%) rename {typegate => src/typegate}/src/services/artifact_service.ts (98%) rename {typegate => src/typegate}/src/services/auth/cookies.ts (90%) rename {typegate => src/typegate}/src/services/auth/mod.ts (92%) rename {typegate => src/typegate}/src/services/auth/protocols/basic.ts (83%) rename {typegate => src/typegate}/src/services/auth/protocols/internal.ts (88%) rename {typegate => src/typegate}/src/services/auth/protocols/jwt.ts (87%) rename {typegate => src/typegate}/src/services/auth/protocols/oauth2.ts (95%) rename {typegate => src/typegate}/src/services/auth/protocols/protocol.ts (100%) rename {typegate => src/typegate}/src/services/auth/routes/mod.ts (80%) rename {typegate => src/typegate}/src/services/auth/routes/take.ts (96%) rename {typegate => src/typegate}/src/services/auth/routes/validate.ts (97%) rename {typegate => src/typegate}/src/services/graphql_service.ts (91%) rename {typegate => src/typegate}/src/services/info_service.ts (100%) rename {typegate => src/typegate}/src/services/middlewares.ts (96%) rename {typegate => src/typegate}/src/services/playground_service.ts (98%) rename {typegate => src/typegate}/src/services/responses.ts (96%) rename {typegate => src/typegate}/src/services/rest_service.ts (97%) rename {typegate => src/typegate}/src/sync/mod.ts (100%) rename {typegate => src/typegate}/src/sync/replicated_map.ts (98%) rename {typegate => src/typegate}/src/sync/typegraph.ts (91%) rename {typegate => src/typegate}/src/system_typegraphs.ts (90%) rename {typegate => src/typegate}/src/transports/graphql/gq.ts (93%) rename {typegate => src/typegate}/src/transports/graphql/graphql.ts (95%) rename {typegate => src/typegate}/src/transports/graphql/request_parser.ts (100%) rename {typegate => src/typegate}/src/transports/graphql/typegraph.ts (96%) rename {typegate => src/typegate}/src/transports/graphql/utils.ts (93%) rename {typegate => src/typegate}/src/transports/rest/rest_schema_generator.ts (98%) rename {typegate => src/typegate}/src/typegate/artifacts/local.ts (94%) rename {typegate => src/typegate}/src/typegate/artifacts/mod.ts (95%) rename {typegate => src/typegate}/src/typegate/artifacts/shared.ts (94%) rename {typegate => src/typegate}/src/typegate/hooks.ts (90%) rename {typegate/tests/utils => src/typegate/src/typegate}/memory_register.ts (79%) rename {typegate => src/typegate}/src/typegate/mod.ts (96%) rename {typegate/tests/utils => src/typegate/src/typegate}/no_limiter.ts (86%) rename {typegate => src/typegate}/src/typegate/rate_limiter.ts (95%) rename {typegate => src/typegate}/src/typegate/register.ts (93%) rename {typegate => src/typegate}/src/typegraph/mod.ts (97%) rename {typegate => src/typegate}/src/typegraph/type_node.ts (100%) rename {typegate => src/typegate}/src/typegraph/types.ts (100%) rename {typegate => src/typegate}/src/typegraph/utils.ts (94%) rename {typegate => src/typegate}/src/typegraph/versions.ts (94%) rename {typegate => src/typegate}/src/typegraph/visitor.ts (97%) rename {typegate => src/typegate}/src/typegraphs/introspection.json (100%) rename {typegate => src/typegate}/src/typegraphs/introspection.py (100%) rename {typegate => src/typegate}/src/typegraphs/prisma_migration.json (100%) rename {typegate => src/typegate}/src/typegraphs/prisma_migration.py (100%) rename {typegate => src/typegate}/src/typegraphs/typegate.json (100%) rename {typegate => src/typegate}/src/typegraphs/typegate.py (100%) rename {typegate => src/typegate}/src/types.ts (82%) rename {typegate => src/typegate}/src/utils.ts (95%) rename {typegate => src/typegate}/src/utils/hash.ts (80%) rename {typegate => src/typegate}/standalone/Cargo.toml (100%) rename {typegate => src/typegate}/standalone/src/config.rs (87%) rename {typegate => src/typegate}/standalone/src/logger.rs (100%) rename {typegate => src/typegate}/standalone/src/main.rs (90%) rename {typegraph => src/typegraph}/core/Cargo.toml (53%) rename {typegraph => src/typegraph}/core/src/conversion/hash.rs (100%) rename {typegraph => src/typegraph}/core/src/conversion/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/conversion/parameter_transform.rs (100%) rename {typegraph => src/typegraph}/core/src/conversion/params.rs (100%) rename {typegraph => src/typegraph}/core/src/conversion/policies.rs (100%) rename {typegraph => src/typegraph}/core/src/conversion/runtimes.rs (100%) rename {typegraph => src/typegraph}/core/src/conversion/types.rs (100%) rename {typegraph => src/typegraph}/core/src/errors.rs (100%) rename {typegraph => src/typegraph}/core/src/global_store.rs (99%) rename {typegraph => src/typegraph}/core/src/lib.rs (100%) rename {typegraph => src/typegraph}/core/src/logger.rs (100%) rename {typegraph => src/typegraph}/core/src/params/apply.rs (100%) rename {typegraph => src/typegraph}/core/src/params/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/aws/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/deno.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/graphql.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/constraints.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/context.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/errors.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/migration.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/model.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/relationship/discovery.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/relationship/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/additional_filters.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/aggregate.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/count.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/filters.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/group_by.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/input_type.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/order_by.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/out_type.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/query_input_type.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/query_where_expr.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_unique_where_expr__test__query_unique_where_expr user.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__Post__QueryWhereExpr.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__User__QueryWhereExpr.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Post out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Record out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate User out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Post inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Record inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one User inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Post out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Record out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first User out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User out.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Post inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Record inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many User inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Post inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Record inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one User inp.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Post.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Record.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where User.snap (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/where_.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_generation/with_nested_count.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/prisma/type_utils.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/python.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/random.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/substantial.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/temporal.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/typegate.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/typegraph.rs (100%) rename {typegraph => src/typegraph}/core/src/runtimes/wasm.rs (100%) rename {typegraph => src/typegraph}/core/src/snapshots/typegraph_core__tests__successful_serialization.snap (100%) rename {typegraph => src/typegraph}/core/src/t.rs (100%) rename {typegraph => src/typegraph}/core/src/test_utils.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/boolean.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/either.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/file.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/float.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/func.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/integer.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/list.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/optional.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/string.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/struct_.rs (100%) rename {typegraph => src/typegraph}/core/src/typedef/union.rs (100%) rename {typegraph => src/typegraph}/core/src/typegraph.rs (100%) rename {typegraph => src/typegraph}/core/src/types/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/types/subgraph/map.rs (100%) rename {typegraph => src/typegraph}/core/src/types/subgraph/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/types/type_def.rs (100%) rename {typegraph => src/typegraph}/core/src/types/type_id.rs (100%) rename {typegraph => src/typegraph}/core/src/types/type_ref.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/archive.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/artifacts.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/fs.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/metagen_utils.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/oauth2/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/oauth2/std.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/pathlib.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/postprocess/deno_rt.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/postprocess/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/postprocess/prisma_rt.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/postprocess/python_rt.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/postprocess/substantial_rt.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/postprocess/validation.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/postprocess/wasm_rt.rs (100%) rename {typegraph => src/typegraph}/core/src/utils/reduce.rs (100%) rename {typegraph => src/typegraph}/core/src/validation/errors.rs (100%) rename {typegraph => src/typegraph}/core/src/validation/materializers.rs (100%) rename {typegraph => src/typegraph}/core/src/validation/mod.rs (100%) rename {typegraph => src/typegraph}/core/src/validation/types.rs (100%) rename {typegraph => src/typegraph}/core/wit/typegraph.wit (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/LICENSE.md (100%) rename typegraph/deno/sdk/jsr.json => src/typegraph/deno/deno.json (98%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/deps/_import.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/deps/mod.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/effects.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/envs/cli.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/host/host.d.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/host/host.js (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/index.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/io.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/metagen.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/params.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/policy.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/providers/aws.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/providers/prisma.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/providers/temporal.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/runtimes/deno.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/runtimes/graphql.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/runtimes/http.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/runtimes/kv.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/runtimes/mod.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/runtimes/python.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/runtimes/random.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/runtimes/substantial.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/runtimes/wasm.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/tg_artifact_upload.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/tg_deploy.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/tg_manage.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/typegraph.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/types.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/utils/func_utils.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/utils/injection_utils.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/utils/type_utils.ts (100%) rename {typegraph/deno/sdk => src/typegraph/deno}/src/wit.ts (100%) rename {typegraph => src/typegraph}/python/LICENSE.md (100%) create mode 100644 src/typegraph/python/poetry.lock rename {typegraph => src/typegraph}/python/pyproject.toml (97%) rename {typegraph => src/typegraph}/python/typegraph/__init__.py (92%) rename {typegraph => src/typegraph}/python/typegraph/deploy/request.py (100%) rename {typegraph => src/typegraph}/python/typegraph/effects.py (100%) rename {typegraph => src/typegraph}/python/typegraph/envs/cli.py (100%) rename {typegraph => src/typegraph}/python/typegraph/g.py (100%) rename {typegraph => src/typegraph}/python/typegraph/graph/metagen.py (100%) rename {typegraph => src/typegraph}/python/typegraph/graph/params.py (100%) rename {typegraph => src/typegraph}/python/typegraph/graph/shared_types.py (100%) rename {typegraph => src/typegraph}/python/typegraph/graph/tg_artifact_upload.py (100%) rename {typegraph => src/typegraph}/python/typegraph/graph/tg_deploy.py (100%) rename {typegraph => src/typegraph}/python/typegraph/graph/tg_manage.py (100%) rename {typegraph => src/typegraph}/python/typegraph/graph/typegraph.py (100%) rename {typegraph => src/typegraph}/python/typegraph/host/host.py (100%) rename {typegraph => src/typegraph}/python/typegraph/injection.py (100%) rename {typegraph => src/typegraph}/python/typegraph/io.py (100%) rename {typegraph => src/typegraph}/python/typegraph/policy.py (100%) rename {typegraph => src/typegraph}/python/typegraph/providers/__init__.py (100%) rename {typegraph => src/typegraph}/python/typegraph/providers/aws.py (100%) rename {typegraph => src/typegraph}/python/typegraph/providers/prisma.py (100%) rename {typegraph => src/typegraph}/python/typegraph/providers/temporal.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/__init__.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/base.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/deno.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/graphql.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/http.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/kv.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/python.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/random.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/substantial.py (100%) rename {typegraph => src/typegraph}/python/typegraph/runtimes/wasm.py (100%) rename {typegraph => src/typegraph}/python/typegraph/t.py (100%) rename {typegraph => src/typegraph}/python/typegraph/utils.py (100%) rename {typegraph => src/typegraph}/python/typegraph/wit.py (100%) rename {wit => src/wit}/deps.lock (100%) rename {wit => src/wit}/deps.toml (100%) rename {wit => src/wit}/deps/cli/command.wit (100%) rename {wit => src/wit}/deps/cli/environment.wit (100%) rename {wit => src/wit}/deps/cli/exit.wit (100%) rename {wit => src/wit}/deps/cli/imports.wit (100%) rename {wit => src/wit}/deps/cli/run.wit (100%) rename {wit => src/wit}/deps/cli/stdio.wit (100%) rename {wit => src/wit}/deps/cli/terminal.wit (100%) rename {wit => src/wit}/deps/clocks/monotonic-clock.wit (100%) rename {wit => src/wit}/deps/clocks/wall-clock.wit (100%) rename {wit => src/wit}/deps/clocks/world.wit (100%) rename {wit => src/wit}/deps/filesystem/preopens.wit (100%) rename {wit => src/wit}/deps/filesystem/types.wit (100%) rename {wit => src/wit}/deps/filesystem/world.wit (100%) rename {wit => src/wit}/deps/io/error.wit (100%) rename {wit => src/wit}/deps/io/poll.wit (100%) rename {wit => src/wit}/deps/io/streams.wit (100%) rename {wit => src/wit}/deps/io/world.wit (100%) rename {wit => src/wit}/deps/random/insecure-seed.wit (100%) rename {wit => src/wit}/deps/random/insecure.wit (100%) rename {wit => src/wit}/deps/random/random.wit (100%) rename {wit => src/wit}/deps/random/world.wit (100%) rename {wit => src/wit}/deps/sockets/instance-network.wit (100%) rename {wit => src/wit}/deps/sockets/ip-name-lookup.wit (100%) rename {wit => src/wit}/deps/sockets/network.wit (100%) rename {wit => src/wit}/deps/sockets/tcp-create-socket.wit (100%) rename {wit => src/wit}/deps/sockets/tcp.wit (100%) rename {wit => src/wit}/deps/sockets/udp-create-socket.wit (100%) rename {wit => src/wit}/deps/sockets/udp.wit (100%) rename {wit => src/wit}/deps/sockets/world.wit (100%) rename {wit => src/wit}/wit-wire.wit (100%) rename {libs => src}/xtask/Cargo.toml (52%) rename {libs => src}/xtask/src/deno.rs (98%) rename {libs => src}/xtask/src/main.rs (100%) rename {typegate/tests => tests}/artifacts/artifacts_test.ts (96%) rename {typegate/tests => tests}/auth/auth.py (100%) rename {typegate/tests => tests}/auth/auth_test.ts (96%) rename {typegate/tests => tests}/auto/__snapshots__/auto_test.ts.snap (100%) rename {typegate/tests => tests}/auto/auto_test.ts_ (83%) rename {typegate/tests => tests}/auto/test/test-1.graphql (100%) rename {typegate/tests => tests}/auto/test/test.py (100%) rename {typegate/tests => tests}/common_utils/proposition_test.ts (91%) rename {typegate/tests => tests}/common_utils/url_test.ts (91%) rename {typegate/tests => tests}/crypto/crypto_test.ts (86%) create mode 100644 tests/deno.jsonc rename {typegate/tests => tests}/docs/how-tos/prog_deploy/prog_deploy.py (100%) rename {typegate/tests => tests}/docs/how-tos/prog_deploy/prog_deploy.ts (97%) rename {typegate/tests => tests}/docs/how-tos/prog_deploy/prog_deploy_test.ts (96%) rename {typegate/tests => tests}/docs/how-tos/prog_deploy/prog_remove.py (100%) rename {typegate/tests => tests}/docs/how-tos/prog_deploy/prog_remove.ts (100%) rename {typegate/tests => tests}/docs/how-tos/prog_deploy/scripts/say_hello.ts (100%) rename {typegate/tests => tests}/e2e/cli/.gitignore (100%) rename {typegate/tests => tests}/e2e/cli/deploy_test.ts (99%) rename {typegate/tests => tests}/e2e/cli/dev_test.ts (95%) rename {typegate/tests => tests}/e2e/cli/select.sh (100%) rename {typegate/tests => tests}/e2e/cli/templates/migration.py (100%) rename {typegate/tests => tests}/e2e/cli/undeploy_test.ts (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/.eslintrc.json (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/.gitignore (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/app/favicon.ico (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/app/layout.tsx (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/app/page.tsx (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/next.config.js (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/package.json (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/pages/api/apollo.ts (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/pnpm-lock.yaml (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/postcss.config.js (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/public/.keep (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/tailwind.config.ts (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo/tsconfig.json (100%) rename {typegate/tests => tests}/e2e/nextjs/apollo_test.ts (97%) rename {typegate/tests => tests}/e2e/nextjs/typegraph/apollo.py (100%) rename {typegate/tests => tests}/e2e/published/published_test.ts (87%) rename {typegate/tests => tests}/e2e/self_deploy/scripts/main.ts (100%) rename {typegate/tests => tests}/e2e/self_deploy/self_deploy.ts (100%) rename {typegate/tests => tests}/e2e/self_deploy/self_deploy_test.ts (90%) rename {typegate/tests => tests}/e2e/templates/templates_test.ts (90%) rename {typegate/tests => tests}/e2e/typegraph/__snapshots__/typegraph_test.ts.snap (100%) rename {typegate/tests => tests}/e2e/typegraph/__snapshots__/validator_test.ts.snap (100%) rename {typegate/tests => tests}/e2e/typegraph/typegraph_test.ts (88%) rename {typegate/tests => tests}/e2e/typegraph/typegraphs/deno/complex.ts (100%) rename {typegate/tests => tests}/e2e/typegraph/typegraphs/deno/multiple_runtimes.ts (100%) rename {typegate/tests => tests}/e2e/typegraph/typegraphs/deno/scripts/three.ts (100%) rename {typegate/tests => tests}/e2e/typegraph/typegraphs/deno/simple.ts (100%) rename {typegate/tests => tests}/e2e/typegraph/typegraphs/python/complex.py (100%) rename {typegate/tests => tests}/e2e/typegraph/typegraphs/python/multiple_runtimes.py (100%) rename {typegate/tests => tests}/e2e/typegraph/typegraphs/python/scripts/three.ts (100%) rename {typegate/tests => tests}/e2e/typegraph/typegraphs/python/simple.py (100%) rename {typegate/tests => tests}/e2e/typegraph/validator.py (100%) rename {typegate/tests => tests}/e2e/typegraph/validator_test.ts (95%) rename {typegate/tests => tests}/e2e/website/website_test.ts (87%) rename {typegate/tests => tests}/graphql/graphql.py (100%) rename {typegate/tests => tests}/graphql/graphql_test.ts (96%) rename {typegate/tests => tests}/graphql/request_parser_test.ts (89%) rename {typegate/tests => tests}/http_utils/http_utils_test.ts (91%) rename {typegate/tests => tests}/importers/gql_original.py (100%) rename {typegate/tests => tests}/importers/importers_test.ts.disabled (100%) rename {typegate/tests => tests}/importers/introspection.json (100%) rename {typegate/tests => tests}/importers/introspection.py (100%) rename {typegate/tests => tests}/importers/openapi_original.py (100%) rename {typegate/tests => tests}/importers/openapi_schema.json (100%) rename {typegate/tests => tests}/importers/openapi_schema.py (100%) rename {typegate/tests => tests}/injection/injection.py (100%) rename {typegate/tests => tests}/injection/injection.ts (100%) rename {typegate/tests => tests}/injection/injection_test.ts (99%) rename {typegate/tests => tests}/injection/nested_context.py (100%) rename {typegate/tests => tests}/internal/internal.py (100%) rename {typegate/tests => tests}/internal/internal_test.ts (100%) rename {typegate/tests => tests}/internal/ts/logic.ts (100%) rename {typegate/tests => tests}/introspection/__snapshots__/introspection_test.ts.snap (100%) rename {typegate/tests => tests}/introspection/__snapshots__/union_either_test.ts.snap (100%) rename {typegate/tests => tests}/introspection/introspection_test.ts (100%) rename {typegate/tests => tests}/introspection/union_either.py (100%) rename {typegate/tests => tests}/introspection/union_either_test.ts (100%) rename {typegate/tests => tests}/metagen/__snapshots__/metagen_test.ts.snap (99%) rename {typegate/tests => tests}/metagen/metagen_test.ts (96%) rename {typegate/tests => tests}/metagen/typegraphs/identities.py (100%) rename {typegate/tests => tests}/metagen/typegraphs/identities/metatype.yml (100%) rename {typegate/tests => tests}/metagen/typegraphs/identities/py/handlers.py (100%) rename {typegate/tests => tests}/metagen/typegraphs/identities/py/handlers_types.py (100%) rename {typegate/tests => tests}/metagen/typegraphs/identities/rs/Cargo.lock (100%) rename {typegate/tests => tests}/metagen/typegraphs/identities/rs/Cargo.toml (100%) rename {typegate/tests => tests}/metagen/typegraphs/identities/rs/build.sh (87%) rename {typegate/tests => tests}/metagen/typegraphs/identities/rs/lib.rs (100%) rename {typegate/tests => tests}/metagen/typegraphs/identities/rs/mdk.rs (99%) rename {typegate/tests => tests}/metagen/typegraphs/identities/ts/deno.json (100%) rename {typegate/tests => tests}/metagen/typegraphs/identities/ts/handlers.ts (100%) rename {typegate/tests => tests}/metagen/typegraphs/identities/ts/mdk.ts (99%) rename {typegate/tests => tests}/metagen/typegraphs/metagen.py (100%) rename {typegate/tests => tests}/metagen/typegraphs/metagen.ts (100%) rename {typegate/tests => tests}/metagen/typegraphs/python.py (100%) rename {typegate/tests => tests}/metagen/typegraphs/sample.ts (100%) rename {typegate/tests => tests}/metagen/typegraphs/sample/metatype.yml (100%) rename {typegate/tests => tests}/metagen/typegraphs/sample/py/client.py (100%) rename {typegate/tests => tests}/metagen/typegraphs/sample/py/main.py (100%) rename {typegate/tests => tests}/metagen/typegraphs/sample/rs/Cargo.lock (100%) rename {typegate/tests => tests}/metagen/typegraphs/sample/rs/Cargo.toml (100%) rename {typegate/tests => tests}/metagen/typegraphs/sample/rs/client.rs (100%) rename {typegate/tests => tests}/metagen/typegraphs/sample/rs/main.rs (100%) rename {typegate/tests => tests}/metagen/typegraphs/sample/ts/client.ts (99%) rename {typegate/tests => tests}/metagen/typegraphs/sample/ts/main.ts (100%) rename {typegate/tests => tests}/metatype.yml (100%) rename {typegate/tests => tests}/misc/publish_test.ts (81%) rename {typegate/tests => tests}/misc/typegate_config_test.ts.disabled (100%) rename {typegate/tests => tests}/multi_typegraph/multi_typegraph.py (100%) rename {typegate/tests => tests}/multi_typegraph/multi_typegraph.ts (100%) rename {typegate/tests => tests}/multi_typegraph/multi_typegraph_test.ts (100%) rename {typegate/tests => tests}/nesting/nesting.py (100%) rename {typegate/tests => tests}/nesting/nesting_test.ts (100%) rename {typegate/tests => tests}/params/apply.py (100%) rename {typegate/tests => tests}/params/apply_nested_context.py (100%) rename {typegate/tests => tests}/params/apply_test.ts (100%) rename {typegate/tests => tests}/planner/__snapshots__/planner_test.ts.snap (100%) rename {typegate/tests => tests}/planner/default_args_test.ts (100%) rename {typegate/tests => tests}/planner/planner.py (100%) rename {typegate/tests => tests}/planner/planner_test.ts (97%) rename {typegate/tests => tests}/policies/effects_py.py (100%) rename {typegate/tests => tests}/policies/policies.py (100%) rename {typegate/tests => tests}/policies/policies_jwt.py (100%) rename {typegate/tests => tests}/policies/policies_jwt_format.py (100%) rename {typegate/tests => tests}/policies/policies_jwt_injection.py (100%) rename {typegate/tests => tests}/policies/policies_jwt_test.ts (95%) rename {typegate/tests => tests}/policies/policies_test.ts (98%) rename {typegate/tests => tests}/policies/ts/effects.ts (100%) rename {typegate/tests => tests}/policies/ts/policies.ts (100%) create mode 100644 tests/prisma-migrations/full-prisma-mapping/prisma/20240711030527_init/migration.sql create mode 100644 tests/prisma-migrations/full-prisma-mapping/prisma/20240711030719_init/migration.sql create mode 100644 tests/prisma-migrations/full-prisma-mapping/prisma/20240711033036_init/migration.sql create mode 100644 tests/prisma-migrations/full-prisma-mapping/prisma/20240711033536_init/migration.sql create mode 100644 tests/prisma-migrations/full-prisma-mapping/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/injection/prisma/20240711030413_init/migration.sql create mode 100644 tests/prisma-migrations/injection/prisma/20240711032926_init/migration.sql create mode 100644 tests/prisma-migrations/injection/prisma/20240814052852_init/migration.sql create mode 100644 tests/prisma-migrations/injection/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/mixed-runtime/prisma/20240711030744_init/migration.sql create mode 100644 tests/prisma-migrations/mixed-runtime/prisma/20240711033545_init/migration.sql create mode 100644 tests/prisma-migrations/mixed-runtime/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/multi-relations/prisma/20240711030744_init/migration.sql create mode 100644 tests/prisma-migrations/multi-relations/prisma/20240711033549_init/migration.sql create mode 100644 tests/prisma-migrations/multi-relations/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/multiple-runtimes/db1/20240711030754_init/migration.sql create mode 100644 tests/prisma-migrations/multiple-runtimes/db1/20240711033554_init/migration.sql create mode 100644 tests/prisma-migrations/multiple-runtimes/db1/migration_lock.toml create mode 100644 tests/prisma-migrations/multiple-runtimes/db2/20240711030754_init/migration.sql create mode 100644 tests/prisma-migrations/multiple-runtimes/db2/20240711033555_init/migration.sql create mode 100644 tests/prisma-migrations/multiple-runtimes/db2/migration_lock.toml create mode 100644 tests/prisma-migrations/normal-1-1/prisma/20240711030805_init/migration.sql create mode 100644 tests/prisma-migrations/normal-1-1/prisma/20240711033609_init/migration.sql create mode 100644 tests/prisma-migrations/normal-1-1/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/optional-1-1/prisma/20240711030809_init/migration.sql create mode 100644 tests/prisma-migrations/optional-1-1/prisma/20240711033612_init/migration.sql create mode 100644 tests/prisma-migrations/optional-1-1/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/optional-1-n/prisma/20240711030756_init/migration.sql create mode 100644 tests/prisma-migrations/optional-1-n/prisma/20240711033601_init/migration.sql create mode 100644 tests/prisma-migrations/optional-1-n/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/prisma-edgecases/prisma/20240711030805_init/migration.sql create mode 100644 tests/prisma-migrations/prisma-edgecases/prisma/20240711033617_init/migration.sql create mode 100644 tests/prisma-migrations/prisma-edgecases/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/prisma_normal/prisma/20240711030807_init/migration.sql create mode 100644 tests/prisma-migrations/prisma_normal/prisma/20240711033610_init/migration.sql create mode 100644 tests/prisma-migrations/prisma_normal/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/prisma_opt_1/prisma/20240711030758_init/migration.sql create mode 100644 tests/prisma-migrations/prisma_opt_1/prisma/20240711033603_init/migration.sql create mode 100644 tests/prisma-migrations/prisma_opt_1/prisma/migration_lock.toml create mode 100644 tests/prisma-migrations/typename/prisma/20240711031129_init/migration.sql create mode 100644 tests/prisma-migrations/typename/prisma/20240711034130_init/migration.sql create mode 100644 tests/prisma-migrations/typename/prisma/migration_lock.toml rename {typegate/tests => tests}/prisma_migrate/prisma_migrate_test.ts (97%) rename {typegate/tests => tests}/query_parsers/__snapshots__/query_parsers_test.ts.snap (100%) rename {typegate/tests => tests}/query_parsers/graphql_namespaces.py (100%) rename {typegate/tests => tests}/query_parsers/query_parsers_test.ts (100%) rename {typegate/tests => tests}/random/injection/random_injection.py (100%) rename {typegate/tests => tests}/random/injection/random_injection.ts (100%) rename {typegate/tests => tests}/random/injection/random_injection_test.ts (100%) rename {typegate/tests => tests}/random/random.ts (100%) rename {typegate/tests => tests}/random/random_.py (100%) rename {typegate/tests => tests}/random/random_test.ts (100%) rename {typegate/tests => tests}/rate_limiter/rate_limiter_test.ts (98%) rename {typegate/tests => tests}/regression/invalid_ref_error_message/invalid_ref.py (100%) rename {typegate/tests => tests}/regression/invalid_ref_error_message/invalid_ref_test.ts (87%) rename {typegate/tests => tests}/rest/__snapshots__/rest_test.ts.snap (100%) rename {typegate/tests => tests}/rest/custom/custom_loader.ts (64%) rename {typegate/tests => tests}/rest/custom/m.gql (100%) rename {typegate/tests => tests}/rest/custom/q.graphql (100%) rename {typegate/tests => tests}/rest/rest_custom_loader.ts (100%) rename {typegate/tests => tests}/rest/rest_schema.ts (100%) rename {typegate/tests => tests}/rest/rest_simple.py (100%) rename {typegate/tests => tests}/rest/rest_test.ts (96%) rename {typegate/tests => tests}/runtimes/deno/deno.py (100%) rename {typegate/tests => tests}/runtimes/deno/deno_dep.py (100%) rename {typegate/tests => tests}/runtimes/deno/deno_dep.ts (100%) rename {typegate/tests => tests}/runtimes/deno/deno_dir.py (100%) rename {typegate/tests => tests}/runtimes/deno/deno_dir.ts (100%) rename {typegate/tests => tests}/runtimes/deno/deno_dir_test.ts (100%) rename {typegate/tests => tests}/runtimes/deno/deno_duplicate_artifact.py (100%) rename {typegate/tests => tests}/runtimes/deno/deno_duplicate_artifact.ts (100%) rename {typegate/tests => tests}/runtimes/deno/deno_glob_test.ts (100%) rename {typegate/tests => tests}/runtimes/deno/deno_globs.py (100%) rename {typegate/tests => tests}/runtimes/deno/deno_globs.ts (100%) rename {typegate/tests => tests}/runtimes/deno/deno_no_artifact.py (100%) rename {typegate/tests => tests}/runtimes/deno/deno_partial.py (100%) rename {typegate/tests => tests}/runtimes/deno/deno_reload.py (100%) rename {typegate/tests => tests}/runtimes/deno/deno_sync_test.ts (99%) rename {typegate/tests => tests}/runtimes/deno/deno_test.ts (99%) rename {typegate/tests => tests}/runtimes/deno/deno_typescript.ts (100%) rename {typegate/tests => tests}/runtimes/deno/dynamic/1.ts (100%) rename {typegate/tests => tests}/runtimes/deno/dynamic/2.ts (100%) rename {typegate/tests => tests}/runtimes/deno/reload/template.ts (100%) rename {typegate/tests => tests}/runtimes/deno/ts/deno.ts (100%) rename {typegate/tests => tests}/runtimes/deno/ts/dep/main.ts (100%) rename {typegate/tests => tests}/runtimes/deno/ts/dep/nested/dep.ts (100%) rename {typegate/tests => tests}/runtimes/deno/ts/math-npm.ts (89%) rename {typegate/tests => tests}/runtimes/deno/ts/math.ts (91%) rename {typegate/tests => tests}/runtimes/graphql/__snapshots__/graphql_test.ts.snap (100%) rename {typegate/tests => tests}/runtimes/graphql/graphql_test.ts (98%) rename {typegate/tests => tests}/runtimes/graphql/typegraphs/deno/graphql.ts (100%) rename {typegate/tests => tests}/runtimes/graphql/typegraphs/python/graphql.py (100%) rename {typegate/tests => tests}/runtimes/http/http_content_type.py (100%) rename {typegate/tests => tests}/runtimes/http/http_content_type_test.ts (100%) rename {typegate/tests => tests}/runtimes/http/http_py.py (100%) rename {typegate/tests => tests}/runtimes/http/http_test.ts (100%) rename {typegate/tests => tests}/runtimes/kv/__snapshots__/kv_test.ts.snap (100%) rename {typegate/tests => tests}/runtimes/kv/kv.py (100%) rename {typegate/tests => tests}/runtimes/kv/kv.ts (100%) rename {typegate/tests => tests}/runtimes/kv/kv_test.ts (100%) rename {typegate/tests => tests}/runtimes/prisma/full_prisma_mapping.py (100%) rename {typegate/tests => tests}/runtimes/prisma/full_prisma_mapping_test.ts (100%) rename {typegate/tests => tests}/runtimes/prisma/graphql_variables_test.ts (94%) rename {typegate/tests => tests}/runtimes/prisma/mixed_runtime.py (100%) rename {typegate/tests => tests}/runtimes/prisma/mixed_runtime_test.ts (100%) rename {typegate/tests => tests}/runtimes/prisma/multi_relations.py (100%) rename {typegate/tests => tests}/runtimes/prisma/multi_relations_test.ts (100%) rename {typegate/tests => tests}/runtimes/prisma/multiple_runtimes.py (100%) rename {typegate/tests => tests}/runtimes/prisma/multiple_runtimes_test.ts (100%) rename {typegate/tests => tests}/runtimes/prisma/normal_1_1.py (100%) rename {typegate/tests => tests}/runtimes/prisma/normal_1_1.ts (100%) rename {typegate/tests => tests}/runtimes/prisma/one_to_many_test.ts (100%) rename {typegate/tests => tests}/runtimes/prisma/one_to_one_test.ts (97%) rename {typegate/tests => tests}/runtimes/prisma/optional_1_1.py (100%) rename {typegate/tests => tests}/runtimes/prisma/optional_1_n.py (100%) rename {typegate/tests => tests}/runtimes/prisma/optional_1_n.ts (100%) rename {typegate/tests => tests}/runtimes/prisma/prisma.py (100%) rename {typegate/tests => tests}/runtimes/prisma/prisma_edgecases.py (100%) rename {typegate/tests => tests}/runtimes/prisma/prisma_edgecases_test.ts (100%) rename {typegate/tests => tests}/runtimes/prisma/prisma_test.ts (97%) rename {typegate/tests => tests}/runtimes/prisma/query_builder_test.ts (92%) rename {typegate/tests => tests}/runtimes/prisma/schema_generation.py (100%) rename {typegate/tests => tests}/runtimes/prisma/schema_generation_test.ts (97%) rename {typegate/tests => tests}/runtimes/python/py/hello.py (100%) rename {typegate/tests => tests}/runtimes/python/py/nested/dep.py (100%) rename {typegate/tests => tests}/runtimes/python/python.py (100%) rename {typegate/tests => tests}/runtimes/python/python.ts (100%) rename {typegate/tests => tests}/runtimes/python/python_dir.py (100%) rename {typegate/tests => tests}/runtimes/python/python_dir.ts (100%) rename {typegate/tests => tests}/runtimes/python/python_dir_test.ts (100%) rename {typegate/tests => tests}/runtimes/python/python_duplicate_artifact.py (100%) rename {typegate/tests => tests}/runtimes/python/python_duplicate_artifact.ts (100%) rename {typegate/tests => tests}/runtimes/python/python_glob_test.ts (100%) rename {typegate/tests => tests}/runtimes/python/python_globs.py (100%) rename {typegate/tests => tests}/runtimes/python/python_globs.ts (100%) rename {typegate/tests => tests}/runtimes/python/python_no_artifact.py (100%) rename {typegate/tests => tests}/runtimes/python/python_no_artifact.ts (100%) rename {typegate/tests => tests}/runtimes/python/python_sync_test.ts (99%) rename {typegate/tests => tests}/runtimes/python/python_test.ts (97%) rename {typegate/tests => tests}/runtimes/s3/__snapshots__/s3_test.ts.snap (100%) rename {typegate/tests => tests}/runtimes/s3/s3.py (100%) rename {typegate/tests => tests}/runtimes/s3/s3.ts (100%) rename {typegate/tests => tests}/runtimes/s3/s3_test.ts (99%) rename {typegate/tests => tests}/runtimes/temporal/__snapshots__/temporal_test.ts.snap (100%) rename {typegate/tests => tests}/runtimes/temporal/temporal.py (100%) rename {typegate/tests => tests}/runtimes/temporal/temporal.ts (100%) rename {typegate/tests => tests}/runtimes/temporal/temporal_test.ts (97%) rename {typegate/tests => tests}/runtimes/temporal/worker/activities.ts (100%) rename {typegate/tests => tests}/runtimes/temporal/worker/package.json (100%) rename {typegate/tests => tests}/runtimes/temporal/worker/pnpm-lock.yaml (100%) rename {typegate/tests => tests}/runtimes/temporal/worker/tsconfig.json (100%) rename {typegate/tests => tests}/runtimes/temporal/worker/worker.ts (100%) rename {typegate/tests => tests}/runtimes/temporal/worker/workflows.ts (100%) rename {typegate/tests => tests}/runtimes/typegate/__snapshots__/typegate_prisma_test.ts.snap (100%) rename {typegate/tests => tests}/runtimes/typegate/__snapshots__/typegate_runtime_test.ts.snap (100%) rename {typegate/tests => tests}/runtimes/typegate/typegate_prisma_test.ts (100%) rename {typegate/tests => tests}/runtimes/typegate/typegate_runtime_test.ts (100%) rename {typegate/tests => tests}/runtimes/wasm_reflected/rust/Cargo.lock (99%) rename {typegate/tests => tests}/runtimes/wasm_reflected/rust/Cargo.toml (88%) rename {typegate/tests => tests}/runtimes/wasm_reflected/rust/build.sh (100%) rename {typegate/tests => tests}/runtimes/wasm_reflected/rust/src/lib.rs (100%) rename {typegate/tests => tests}/runtimes/wasm_reflected/rust/wit/example.wit (100%) rename {typegate/tests => tests}/runtimes/wasm_reflected/wasm_duplicate.py (100%) rename {typegate/tests => tests}/runtimes/wasm_reflected/wasm_reflected.py (100%) rename {typegate/tests => tests}/runtimes/wasm_reflected/wasm_reflected.ts (100%) rename {typegate/tests => tests}/runtimes/wasm_reflected/wasm_reflected_test.ts (100%) rename {typegate/tests => tests}/runtimes/wasm_reflected/wasm_sync_test.ts (98%) rename {typegate/tests => tests}/runtimes/wasm_wire/rust/Cargo.lock (100%) rename {typegate/tests => tests}/runtimes/wasm_wire/rust/Cargo.toml (100%) rename {typegate/tests => tests}/runtimes/wasm_wire/rust/build.sh (88%) rename {typegate/tests => tests}/runtimes/wasm_wire/rust/lib.rs (100%) rename {typegate/tests => tests}/runtimes/wasm_wire/rust/mdk.rs (99%) rename {typegate/tests => tests}/runtimes/wasm_wire/wasm_duplicate.ts (100%) rename {typegate/tests => tests}/runtimes/wasm_wire/wasm_sync_test.ts (98%) rename {typegate/tests => tests}/runtimes/wasm_wire/wasm_wire.py (100%) rename {typegate/tests => tests}/runtimes/wasm_wire/wasm_wire.ts (100%) rename {typegate/tests => tests}/runtimes/wasm_wire/wasm_wire_test.ts (98%) rename {typegate/tests => tests}/schema_validation/circular.py (100%) rename {typegate/tests => tests}/schema_validation/circular_test.ts (100%) rename {typegate/tests => tests}/schema_validation/ts/circular.ts (100%) rename {typegate/tests => tests}/simple/__snapshots__/class_syntax_test.ts.snap (100%) rename {typegate/tests => tests}/simple/class_syntax.py (100%) rename {typegate/tests => tests}/simple/class_syntax_test.ts (100%) rename {typegate/tests => tests}/simple/error_message.py (100%) rename {typegate/tests => tests}/simple/error_message_test.ts (100%) rename {typegate/tests => tests}/simple/simple.py (100%) rename {typegate/tests => tests}/simple/simple_test.ts (100%) rename {typegate/tests => tests}/sync/sync_config_test.ts (94%) rename {typegate/tests => tests}/sync/typegraph_sync_test.ts.disable (97%) rename {typegate/tests => tests}/type_nodes/__snapshots__/array_of_optional_test.ts.snap (100%) rename {typegate/tests => tests}/type_nodes/__snapshots__/either_test.ts.snap (100%) rename {typegate/tests => tests}/type_nodes/__snapshots__/union_test.ts.snap (100%) rename {typegate/tests => tests}/type_nodes/array_of_optional.py (100%) rename {typegate/tests => tests}/type_nodes/array_of_optional_test.ts (100%) rename {typegate/tests => tests}/type_nodes/either_node.py (100%) rename {typegate/tests => tests}/type_nodes/either_test.ts (100%) rename {typegate/tests => tests}/type_nodes/ts/either/user_register.ts (100%) rename {typegate/tests => tests}/type_nodes/ts/union/color_converter.ts (92%) rename {typegate/tests => tests}/type_nodes/ts/union/phone_register.ts (100%) rename {typegate/tests => tests}/type_nodes/ts/union/vec_normalizer.ts (100%) rename {typegate/tests => tests}/type_nodes/union_node.py (100%) rename {typegate/tests => tests}/type_nodes/union_node_attr.py (100%) rename {typegate/tests => tests}/type_nodes/union_node_attr_test.ts (100%) rename {typegate/tests => tests}/type_nodes/union_node_quantifier.py (100%) rename {typegate/tests => tests}/type_nodes/union_node_quantifier_test.ts (100%) rename {typegate/tests => tests}/type_nodes/union_test.ts (99%) rename {typegate/tests => tests}/typecheck/__snapshots__/input_validator_test.ts.snap (100%) rename {typegate/tests => tests}/typecheck/__snapshots__/typecheck_test.ts.snap (100%) rename {typegate/tests => tests}/typecheck/input_validator_test.ts (96%) rename {typegate/tests => tests}/typecheck/reduce.ts (100%) rename {typegate/tests => tests}/typecheck/reduce_py.py (100%) rename {typegate/tests => tests}/typecheck/reduce_syntax_test.ts (100%) rename {typegate/tests => tests}/typecheck/type_alias.py (100%) rename {typegate/tests => tests}/typecheck/type_alias_test.ts (100%) rename {typegate/tests => tests}/typecheck/typecheck.py (100%) rename {typegate/tests => tests}/typecheck/typecheck_test.ts (96%) rename {typegate/tests => tests}/typegraph/version_test.ts (86%) rename {typegate/tests => tests}/typename/typename.py (100%) rename {typegate/tests => tests}/typename/typename_test.ts (100%) rename {typegate/tests => tests}/utils/assert.ts (100%) rename {typegate/tests => tests}/utils/autotest.ts (94%) rename {typegate/tests => tests}/utils/bindings_test.ts (100%) rename {typegate/tests => tests}/utils/database.ts (100%) rename {typegate/tests => tests}/utils/date.ts (100%) rename {typegate/tests => tests}/utils/dir.ts (60%) rename {typegate/tests => tests}/utils/hooks.ts (95%) rename {typegate/tests => tests}/utils/meta.ts (100%) rename {typegate/tests => tests}/utils/migrations.ts (83%) rename {typegate/tests => tests}/utils/mock_fetch.ts (100%) rename {typegate/tests => tests}/utils/mod.ts (88%) rename {typegate/tests => tests}/utils/process.ts (93%) rename {typegate/tests => tests}/utils/query/file_extractor.ts (100%) rename {typegate/tests => tests}/utils/query/graphql_query.ts (94%) rename {typegate/tests => tests}/utils/query/mod.ts (94%) rename {typegate/tests => tests}/utils/query/rest_query.ts (96%) rename {typegate/tests => tests}/utils/router@0.0.5.ts (100%) rename {typegate/tests => tests}/utils/s3.ts (100%) rename {typegate/tests => tests}/utils/shell.ts (100%) rename {typegate/tests => tests}/utils/single_register.ts (84%) rename {typegate/tests => tests}/utils/test.ts (95%) rename {typegate/tests => tests}/utils/test_module.ts (92%) rename {typegate/tests => tests}/utils/tg_deploy_script.py (100%) rename {typegate/tests => tests}/utils/tg_deploy_script.ts (93%) rename {typegate/tests => tests}/vars/vars.py (100%) rename {typegate/tests => tests}/vars/vars_test.ts (100%) rename Cross.toml => tools/Cross.toml (100%) rename {dev => tools}/Dockerfile (75%) create mode 100644 tools/Dockerfile.dockerignore rename {dev => tools}/LICENSE-Elastic-2.0.md (100%) rename {dev => tools}/LICENSE-MPL-2.0.md (100%) rename cliff.toml => tools/cliff.toml (100%) rename codecov.yml => tools/codecov.yml (100%) rename {dev/envs => tools/compose}/compose.adminer.yml (100%) rename {dev/envs => tools/compose}/compose.base.yml (100%) rename {dev/envs => tools/compose}/compose.elastic.yml (100%) rename {dev/envs => tools/compose}/compose.imgproxy.yml (100%) rename {dev/envs => tools/compose}/compose.prisma.yml (100%) rename {dev => tools}/consts.ts (75%) rename {dev => tools}/cross.Dockerfile (98%) create mode 100644 tools/deno.jsonc create mode 100644 tools/deno.lock rename {dev => tools}/deps.ts (70%) rename {dev => tools}/envoy.yaml (100%) rename {dev => tools}/installs.ts (92%) rename {typegraph/deno/dev => tools/jsr}/common.ts (52%) rename {typegraph/deno/dev => tools/jsr}/deno2node.ts (83%) rename {typegraph/deno/dev => tools/jsr}/fix-declarations.ts (75%) rename {typegraph/deno/dev => tools/jsr}/jsr-gen.ts (77%) rename {dev => tools}/license-header-Elastic-2.0.txt (100%) rename {dev => tools}/license-header-MPL-2.0.txt (100%) rename ruff.toml => tools/ruff.toml (100%) rename dev/tasks-build.ts => tools/tasks/build.ts (73%) rename dev/tasks-dev.ts => tools/tasks/dev.ts (90%) create mode 100644 tools/tasks/fetch.ts rename dev/tasks-install.ts => tools/tasks/install.ts (72%) create mode 100644 tools/tasks/lint.ts rename dev/tasks-lock.ts => tools/tasks/lock.ts (78%) create mode 100644 tools/tasks/mod.ts rename dev/tasks-test.ts => tools/tasks/test.ts (80%) rename {dev => tools}/test.ts (96%) rename {dev => tools}/tree-view.ts (91%) rename {dev => tools}/typegraph-size.ts (92%) rename {dev => tools}/update.ts (85%) rename {dev => tools}/utils.ts (91%) rename {dev => tools}/verdaccio/config.yaml (100%) delete mode 100644 typegate/deno.jsonc delete mode 100644 typegate/engine/Cargo.toml delete mode 100644 typegate/import_map.json delete mode 100644 typegate/tests/metagen/typegraphs/sample/ts/deno.json delete mode 100644 typegraph/python/poetry.lock diff --git a/typegate/.env.sample b/.env.sample similarity index 100% rename from typegate/.env.sample rename to .env.sample diff --git a/.ghjk/deno.lock b/.ghjk/deno.lock index 3ff9615ac0..a51f9eea71 100644 --- a/.ghjk/deno.lock +++ b/.ghjk/deno.lock @@ -6,13 +6,20 @@ "jsr:@david/which@^0.4.1": "jsr:@david/which@0.4.1", "jsr:@std/assert@^0.221.0": "jsr:@std/assert@0.221.0", "jsr:@std/bytes@^0.221.0": "jsr:@std/bytes@0.221.0", + "jsr:@std/bytes@^1.0.2-rc.3": "jsr:@std/bytes@1.0.2", + "jsr:@std/cli@^1.0.3": "jsr:@std/cli@1.0.3", "jsr:@std/fmt@^0.221.0": "jsr:@std/fmt@0.221.0", + "jsr:@std/fmt@^1.0.0": "jsr:@std/fmt@1.0.0", "jsr:@std/fs@0.221.0": "jsr:@std/fs@0.221.0", + "jsr:@std/fs@^1.0.1": "jsr:@std/fs@1.0.1", "jsr:@std/io@0.221.0": "jsr:@std/io@0.221.0", "jsr:@std/io@^0.221.0": "jsr:@std/io@0.221.0", "jsr:@std/path@0.221.0": "jsr:@std/path@0.221.0", "jsr:@std/path@^0.221.0": "jsr:@std/path@0.221.0", + "jsr:@std/path@^1.0.2": "jsr:@std/path@1.0.2", + "jsr:@std/semver@^1.0.1": "jsr:@std/semver@1.0.1", "jsr:@std/streams@0.221.0": "jsr:@std/streams@0.221.0", + "jsr:@std/streams@1": "jsr:@std/streams@1.0.1", "npm:@noble/hashes@1.4.0": "npm:@noble/hashes@1.4.0", "npm:multiformats@13.1.0": "npm:multiformats@13.1.0", "npm:zod-validation-error@3.3.0": "npm:zod-validation-error@3.3.0_zod@3.23.8", @@ -39,9 +46,18 @@ "@std/bytes@0.221.0": { "integrity": "64a047011cf833890a4a2ab7293ac55a1b4f5a050624ebc6a0159c357de91966" }, + "@std/bytes@1.0.2": { + "integrity": "fbdee322bbd8c599a6af186a1603b3355e59a5fb1baa139f8f4c3c9a1b3e3d57" + }, + "@std/cli@1.0.3": { + "integrity": "9a0488b5d2e58d29dce106a941eecec7181fae996bf0d2225563f1ca7e4b100c" + }, "@std/fmt@0.221.0": { "integrity": "379fed69bdd9731110f26b9085aeb740606b20428ce6af31ef6bd45ef8efa62a" }, + "@std/fmt@1.0.0": { + "integrity": "8a95c9fdbb61559418ccbc0f536080cf43341655e1444f9d375a66886ceaaa3d" + }, "@std/fs@0.221.0": { "integrity": "028044450299de8ed5a716ade4e6d524399f035513b85913794f4e81f07da286", "dependencies": [ @@ -49,6 +65,12 @@ "jsr:@std/path@^0.221.0" ] }, + "@std/fs@1.0.1": { + "integrity": "d6914ca2c21abe591f733b31dbe6331e446815e513e2451b3b9e472daddfefcb", + "dependencies": [ + "jsr:@std/path@^1.0.2" + ] + }, "@std/io@0.221.0": { "integrity": "faf7f8700d46ab527fa05cc6167f4b97701a06c413024431c6b4d207caa010da", "dependencies": [ @@ -62,11 +84,23 @@ "jsr:@std/assert@^0.221.0" ] }, + "@std/path@1.0.2": { + "integrity": "a452174603f8c620bd278a380c596437a9eef50c891c64b85812f735245d9ec7" + }, + "@std/semver@1.0.1": { + "integrity": "f0c9b41b70e27e8cdfe9252b486c55a727d66ead72625e0fa1aae75f45ca15e1" + }, "@std/streams@0.221.0": { "integrity": "47f2f74634b47449277c0ee79fe878da4424b66bd8975c032e3afdca88986e61", "dependencies": [ "jsr:@std/io@^0.221.0" ] + }, + "@std/streams@1.0.1": { + "integrity": "b07008b83fd7ae08965920d0fd700e07caf233bdd81e0ef1c8cca6c4140da364", + "dependencies": [ + "jsr:@std/bytes@^1.0.2-rc.3" + ] } }, "npm": { @@ -91,7 +125,8 @@ } }, "redirects": { - "https://github.com/levibostian/deno-udd/raw/ignore-prerelease/mod.ts": "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/mod.ts" + "https://github.com/levibostian/deno-udd/raw/ignore-prerelease/mod.ts": "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/mod.ts", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1//mod.ts": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/mod.ts" }, "remote": { "https://deno.land/std@0.116.0/_util/assert.ts": "2f868145a042a11d5ad0a3c748dcf580add8a0dbc0e876eaa0026303a5488f58", diff --git a/.ghjk/lock.json b/.ghjk/lock.json index b7703c0204..2955c03219 100644 --- a/.ghjk/lock.json +++ b/.ghjk/lock.json @@ -1,6 +1,6 @@ { "version": "0", - "platform": "aarch64-darwin", + "platform": "x86_64-linux", "moduleEntries": { "ports": { "version": "0", @@ -690,8 +690,14 @@ "locked": true, "specifiedVersion": true }, - "bciqe6tpdv6hffdbc7hql52w3ivpdls47lgpuhsa3hzsryrwx7ty5dgy": { - "version": "3.30.2", + "bciqogkh34iffsgpjzg5m2tuyvt5e2phqsbbo6wh6nckxaojckmmasga": { + "version": "v1.46.1", + "buildDepConfigs": {}, + "portRef": "deno_ghrel@0.1.0", + "specifiedVersion": true + }, + "bciqjrdkuk366snl5rgzvkskacsphzernzelmhhu3sgkbpst6yptbpnq": { + "version": "1.8.3", "buildDepConfigs": { "cpy_bs_ghrel": { "version": "3.12.2", @@ -715,8 +721,8 @@ } }, "portRef": "pipi_pypi@0.1.0", - "packageName": "cmake", - "specifiedVersion": false + "packageName": "poetry", + "specifiedVersion": true } } }, @@ -735,35 +741,75 @@ "sets": { "ghjkEnvProvInstSet___main": { "installs": [ - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya" + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet____rust": { "installs": [ "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya" + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty" + ], + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" + }, + "ghjkEnvProvInstSet___dev": { + "installs": [ + "bciqbx637744bfiyvprs77xdnvdt7uuwmtlntfjpwmkda672gklkbpmi", + "bciqdoqocirh7aseu5o5hfqaj3sb3pfd3z3rlvig26xttmcmsoljuz6i", + "bciqjsjvkjm6xvoovs6y3y6me32422zr5wc5njs4kwfmmyf6nt6jzv2i", + "bciqdf7jtq3zzhn676t2dr7fyve47fj7coajtymmye353lrrluskjk7q", + "bciqeaqeduyhykw7s7gq6ney6ci7deheq3etgdwkvg55mwbzdhz2opra", + "bciqdtuhf425g6prb5fyupbcokttmkill6wyqk7bkphx3ueltl5mvu4q", + "bciqmvgsg7h3ohj3m7das4bznahgt6tyq7mamta3n2vorulqvml7mywq", + "bciqicdqw36v63cbrscwsgtu2htrmwmgtfoxexv4rx5d2y24vytxbuma", + "bciqe33uhsuaesrjk6luzxrbbimwg5ydt6x2lrieelwbr7aft4g2qwsy", + "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", + "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa", + "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa", + "bciqihcmo6l5uwzih3e3ujc55curep4arfomo6rzkdsfim74unxexiqy", + "bciqezep4ufkgwesldlm5etyfkgdsiickfudx7cosydcz6xtgeorn2hy", + "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq", + "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa", + "bciqojan3zglnfctnmqyxvnxaha46yrnlhj77j3kw4mxadvauqepqdba", + "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y", + "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la", + "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" + }, + "ghjkEnvProvInstSet___oci": { + "installs": [ + "bciqbx637744bfiyvprs77xdnvdt7uuwmtlntfjpwmkda672gklkbpmi", + "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", + "bciqojan3zglnfctnmqyxvnxaha46yrnlhj77j3kw4mxadvauqepqdba", + "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y", + "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la", + "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq" + ], + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet____ecma": { "installs": [ "bciqezep4ufkgwesldlm5etyfkgdsiickfudx7cosydcz6xtgeorn2hy", "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq", "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya" + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet____python": { "installs": [ "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa", "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa", - "bciqh7qqm2bohoswnwjywael2m3f6xn4n6ceifyw4usrmaahjioldq6a", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya" + "bciqihcmo6l5uwzih3e3ujc55curep4arfomo6rzkdsfim74unxexiqy", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet____wasm": { "installs": [ @@ -771,9 +817,9 @@ "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y", "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la", "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya" + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet___ci": { "installs": [ @@ -782,11 +828,11 @@ "bciqicdqw36v63cbrscwsgtu2htrmwmgtfoxexv4rx5d2y24vytxbuma", "bciqe33uhsuaesrjk6luzxrbbimwg5ydt6x2lrieelwbr7aft4g2qwsy", "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa", "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa", - "bciqh7qqm2bohoswnwjywael2m3f6xn4n6ceifyw4usrmaahjioldq6a", + "bciqihcmo6l5uwzih3e3ujc55curep4arfomo6rzkdsfim74unxexiqy", "bciqezep4ufkgwesldlm5etyfkgdsiickfudx7cosydcz6xtgeorn2hy", "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq", "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa", @@ -795,114 +841,88 @@ "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la", "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" - }, - "ghjkEnvProvInstSet___dev": { - "installs": [ - "bciqdoqocirh7aseu5o5hfqaj3sb3pfd3z3rlvig26xttmcmsoljuz6i", - "bciqjsjvkjm6xvoovs6y3y6me32422zr5wc5njs4kwfmmyf6nt6jzv2i", - "bciqdf7jtq3zzhn676t2dr7fyve47fj7coajtymmye353lrrluskjk7q", - "bciqeaqeduyhykw7s7gq6ney6ci7deheq3etgdwkvg55mwbzdhz2opra", - "bciqdtuhf425g6prb5fyupbcokttmkill6wyqk7bkphx3ueltl5mvu4q", - "bciqmvgsg7h3ohj3m7das4bznahgt6tyq7mamta3n2vorulqvml7mywq", - "bciqicdqw36v63cbrscwsgtu2htrmwmgtfoxexv4rx5d2y24vytxbuma", - "bciqe33uhsuaesrjk6luzxrbbimwg5ydt6x2lrieelwbr7aft4g2qwsy", - "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", - "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa", - "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa", - "bciqh7qqm2bohoswnwjywael2m3f6xn4n6ceifyw4usrmaahjioldq6a", - "bciqezep4ufkgwesldlm5etyfkgdsiickfudx7cosydcz6xtgeorn2hy", - "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq", - "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa", - "bciqojan3zglnfctnmqyxvnxaha46yrnlhj77j3kw4mxadvauqepqdba", - "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y", - "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la", - "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq" - ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet_______task_env_lint-udeps": { "installs": [ "bciqezkigmtx5tweeflmn27yofgwybmgbat7g6jg4xmxamomsdpvenay", "bciqiknd2vbwhxng2oy5d7qjpor7jq74pulaeijfrywyggv4mw3wngsi", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya" + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet_______task_env_dev-website": { "installs": [ "bciqezep4ufkgwesldlm5etyfkgdsiickfudx7cosydcz6xtgeorn2hy", "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq", "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa", "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa", - "bciqh7qqm2bohoswnwjywael2m3f6xn4n6ceifyw4usrmaahjioldq6a" + "bciqihcmo6l5uwzih3e3ujc55curep4arfomo6rzkdsfim74unxexiqy" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet_______task_env_test-rust": { "installs": [ "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", "bciqezep4ufkgwesldlm5etyfkgdsiickfudx7cosydcz6xtgeorn2hy", "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq", "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa", "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa", "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa", - "bciqh7qqm2bohoswnwjywael2m3f6xn4n6ceifyw4usrmaahjioldq6a" + "bciqihcmo6l5uwzih3e3ujc55curep4arfomo6rzkdsfim74unxexiqy" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet_______task_env_dev-eg-tgraphs": { "installs": [ "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", "bciqezep4ufkgwesldlm5etyfkgdsiickfudx7cosydcz6xtgeorn2hy", "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq", "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa", "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa", "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa", - "bciqh7qqm2bohoswnwjywael2m3f6xn4n6ceifyw4usrmaahjioldq6a" + "bciqihcmo6l5uwzih3e3ujc55curep4arfomo6rzkdsfim74unxexiqy" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet_______task_env_build-tgraph-core": { "installs": [ "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", "bciqojan3zglnfctnmqyxvnxaha46yrnlhj77j3kw4mxadvauqepqdba", "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y", "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la", "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet_______task_env_build-tgraph-py": { "installs": [ "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", "bciqojan3zglnfctnmqyxvnxaha46yrnlhj77j3kw4mxadvauqepqdba", "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y", "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la", "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq", "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa", "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa", - "bciqh7qqm2bohoswnwjywael2m3f6xn4n6ceifyw4usrmaahjioldq6a" + "bciqihcmo6l5uwzih3e3ujc55curep4arfomo6rzkdsfim74unxexiqy" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet_______task_env_build-tgraph-ts": { "installs": [ "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", "bciqojan3zglnfctnmqyxvnxaha46yrnlhj77j3kw4mxadvauqepqdba", "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y", "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la", @@ -911,30 +931,18 @@ "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq", "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" }, "ghjkEnvProvInstSet_______task_env_build-sys-tgraphs": { "installs": [ "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty", "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa", "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa", - "bciqh7qqm2bohoswnwjywael2m3f6xn4n6ceifyw4usrmaahjioldq6a" + "bciqihcmo6l5uwzih3e3ujc55curep4arfomo6rzkdsfim74unxexiqy" ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" - }, - "ghjkEnvProvInstSet___oci": { - "installs": [ - "bciqj5xfgcxzfw3tusoy4v53dcinxqxskfwe3lylcjevxl6mbroky5za", - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui", - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya", - "bciqojan3zglnfctnmqyxvnxaha46yrnlhj77j3kw4mxadvauqepqdba", - "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y", - "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la", - "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq" - ], - "allowedBuildDeps": "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki" + "allowedBuildDeps": "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga" } } } @@ -946,144 +954,149 @@ "version-bump": { "ty": "denoFile@v1", "key": "version-bump", - "envKey": "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi" + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" }, "version-print": { "ty": "denoFile@v1", "key": "version-print", "desc": "Print $METATYPE_VERSION", - "envKey": "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi" + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" }, "test-lsp": { "ty": "denoFile@v1", "key": "test-lsp", - "envKey": "bciqg5tyxjk3n5hnomlukrr4jty54ne4kfzthqbqmef6tsze4thjl6xq" + "envKey": "bciqclszw6iggx6sevxab56z3k7gh5hne7jzx24clywryxz24qjo5gji" }, "test-rust": { "ty": "denoFile@v1", "key": "test-rust", - "envKey": "bciqov4rontailrkkhq4mmg6unksfithoszn3abi3pyfqnvlh6ynkvka" + "envKey": "bciqov6tmz5jhf6kitm7hptd6b74cw5zb7pt7rxqy3ktmqqn3hvaj4za" }, "test-website": { "ty": "denoFile@v1", "key": "test-website", - "workingDir": "./website", - "envKey": "bciqg5tyxjk3n5hnomlukrr4jty54ne4kfzthqbqmef6tsze4thjl6xq" + "workingDir": "./docs/metatype.dev", + "envKey": "bciqclszw6iggx6sevxab56z3k7gh5hne7jzx24clywryxz24qjo5gji" }, "test-e2e": { "ty": "denoFile@v1", "key": "test-e2e", - "desc": "Shorthand for `dev/test.ts`", - "envKey": "bciqdyc67uwyl5pkoaaohvgmnpdtuamame6zvktiegfai562fuw5oiiq" + "desc": "Shorthand for `tools/test.ts`", + "envKey": "bciqhtsq7g2mld3t64e7xolzrcbguzxihcrkftvuupv6af56prrgfpwy" }, "lock-sed": { "ty": "denoFile@v1", "key": "lock-sed", "desc": "Update versions", - "envKey": "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi" + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" + }, + "lint-deno": { + "ty": "denoFile@v1", + "key": "lint-deno", + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" }, "lint-udeps": { "ty": "denoFile@v1", "key": "lint-udeps", "desc": "Check for unused cargo depenencies", - "envKey": "bciqgbrnhfvvtmoua3evkupx3f7tt6ma45tpnjsoh5lw5y2igquul76y" + "envKey": "bciqe5ao7vzfelgdas65p7frjodat2yz6mz7jk2yup2ulv5ycd44afyi" }, "install-wasi-adapter": { "ty": "denoFile@v1", "key": "install-wasi-adapter", - "envKey": "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi" + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" }, "install-lsp": { "ty": "denoFile@v1", "key": "install-lsp", - "envKey": "bciqg5tyxjk3n5hnomlukrr4jty54ne4kfzthqbqmef6tsze4thjl6xq" + "envKey": "bciqclszw6iggx6sevxab56z3k7gh5hne7jzx24clywryxz24qjo5gji" }, "install-website": { "ty": "denoFile@v1", "key": "install-website", - "envKey": "bciqg5tyxjk3n5hnomlukrr4jty54ne4kfzthqbqmef6tsze4thjl6xq" + "envKey": "bciqclszw6iggx6sevxab56z3k7gh5hne7jzx24clywryxz24qjo5gji" }, "install-ts": { "ty": "denoFile@v1", "key": "install-ts", - "envKey": "bciqg5tyxjk3n5hnomlukrr4jty54ne4kfzthqbqmef6tsze4thjl6xq" + "envKey": "bciqclszw6iggx6sevxab56z3k7gh5hne7jzx24clywryxz24qjo5gji" }, "install-py": { "ty": "denoFile@v1", "key": "install-py", - "envKey": "bciqmpo7soabnkxibgqgurlc5lfy4a7jeglk6v45x4e4k7wnmwmztaqq" + "envKey": "bciqjmqirgadtrauceyhuq7gx5fuegiwl6s6x52dumzmwtqkno3srcsi" }, "install-sys": { "ty": "denoFile@v1", "key": "install-sys", "desc": "Print a command you can use to install system items", - "envKey": "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi" + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" }, "fetch-deno": { "ty": "denoFile@v1", "key": "fetch-deno", "desc": "Cache remote deno modules.", - "envKey": "bciqg5tyxjk3n5hnomlukrr4jty54ne4kfzthqbqmef6tsze4thjl6xq" + "envKey": "bciqclszw6iggx6sevxab56z3k7gh5hne7jzx24clywryxz24qjo5gji" }, "dev-website": { "ty": "denoFile@v1", "key": "dev-website", - "workingDir": "./website", + "workingDir": "./docs/metatype.dev", "desc": "Launch the website", - "envKey": "bciqadrkruydvgov2zwklcwohmuno4nalyc3pg3yomdumdxfstvo4pby" + "envKey": "bciqn4urah5beauhii24btx3t5eh2gsoqldg6hqiqn7wstpbcuecfj2y" }, "dev-gate5": { "ty": "denoFile@v1", "key": "dev-gate5", "desc": "Launch the typegate from the latests published image.", - "envKey": "bciqf6ly2orfkhcrpjkb6jx2p2igz6bvllqpuhotzlfmcjzwymmwr55q" + "envKey": "bciqizu3vblpk5gaendo6cyg42jzqa7zu6teyiodnfhoajdtbbv7q6za" }, "dev-gate4": { "ty": "denoFile@v1", "key": "dev-gate4", "desc": "Launch the typegate from the locally built typegate image.", - "envKey": "bciqf6ly2orfkhcrpjkb6jx2p2igz6bvllqpuhotzlfmcjzwymmwr55q" + "envKey": "bciqizu3vblpk5gaendo6cyg42jzqa7zu6teyiodnfhoajdtbbv7q6za" }, "dev-gate3": { "ty": "denoFile@v1", "key": "dev-gate3", "desc": "Launch the typegate from a locally found meta bin.", - "envKey": "bciqf6ly2orfkhcrpjkb6jx2p2igz6bvllqpuhotzlfmcjzwymmwr55q" + "envKey": "bciqizu3vblpk5gaendo6cyg42jzqa7zu6teyiodnfhoajdtbbv7q6za" }, "dev-gate2": { "ty": "denoFile@v1", "key": "dev-gate2", "desc": "Launch the typegate in sync mode.", - "envKey": "bciqolirh75zgvw6slig4cdhdupwepxo7tuqo53aoqmrptr5k66ubjei" + "envKey": "bciqk6b2h5s7wljd5gjygkc6wpoqvmt77xkgwfnnx7um2rhid5xb3tci" }, "dev-gate1": { "ty": "denoFile@v1", "key": "dev-gate1", "desc": "Launch the typegate in single-instance mode.", - "envKey": "bciqf6ly2orfkhcrpjkb6jx2p2igz6bvllqpuhotzlfmcjzwymmwr55q" + "envKey": "bciqizu3vblpk5gaendo6cyg42jzqa7zu6teyiodnfhoajdtbbv7q6za" }, "dev-eg-tgraphs": { "ty": "denoFile@v1", "key": "dev-eg-tgraphs", "desc": "meta dev example/typegraphs", - "envKey": "bciqgpx2na2og2c3ty363m2kq3gficj4l4wxlpnrwl5gqiuzooondwja" + "envKey": "bciqbgzsyj5gpkpixhvd4wihx4oa2qjmyf3ugdvdnemrr356mjxopkyy" }, "dev-compose": { "ty": "denoFile@v1", "key": "dev-compose", "desc": "Wrapper around docker compose to manage runtime dependencies", - "envKey": "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi" + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" }, "dev": { "ty": "denoFile@v1", "key": "dev", - "desc": "Execute dev/*.ts scripts.", - "envKey": "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi" + "desc": "Execute tools/*.ts scripts.", + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" }, "gen-pyrt-bind": { "ty": "denoFile@v1", "key": "gen-pyrt-bind", - "envKey": "bciqbc7tuunt52ewlomqkynauomfweotxpf6hzut7yz532bwk2gckn5a" + "envKey": "bciqk7aif25pqtsyncbnbdapte4lixsodypfxvmkepsuey74vgr4zb5q" }, "build-pyrt": { "ty": "denoFile@v1", @@ -1091,17 +1104,17 @@ "dependsOn": [ "gen-pyrt-bind" ], - "envKey": "bciqbc7tuunt52ewlomqkynauomfweotxpf6hzut7yz532bwk2gckn5a" + "envKey": "bciqk7aif25pqtsyncbnbdapte4lixsodypfxvmkepsuey74vgr4zb5q" }, "build-tgraph-ts-jsr": { "ty": "denoFile@v1", "key": "build-tgraph-ts-jsr", - "envKey": "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi" + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" }, "build-tgraph-core": { "ty": "denoFile@v1", "key": "build-tgraph-core", - "envKey": "bciqlo5nwzz6bg3k475s2w42hxaqdkixdva6tnew5gghedac5d3ng43y" + "envKey": "bciqayfl7nvr6g7qgplwj6ymglj7giqb6wz5pjw7tfct66fyrmnpcmwq" }, "build-tgraph-py": { "ty": "denoFile@v1", @@ -1109,7 +1122,7 @@ "dependsOn": [ "build-tgraph-core" ], - "envKey": "bciqi3ve7wig2zhcduvq2kt63yovunribk6kzbha3nucg5fkcuabt7xa" + "envKey": "bciqewdms4swk2kufu6idlcha7vc42auzhglynkpuv7ulnfdnpmdul2a" }, "build-tgraph-ts": { "ty": "denoFile@v1", @@ -1117,7 +1130,7 @@ "dependsOn": [ "build-tgraph-core" ], - "envKey": "bciqasechgtqcnyliotc6k53o62vzvfm5jut74mgewfwoz7j7szvibci" + "envKey": "bciqkqwta6epy65btclam4d25s5wph3mvhyg7fbxds4jbajx5uumx46q" }, "build-tgraph-ts-node": { "ty": "denoFile@v1", @@ -1125,7 +1138,7 @@ "dependsOn": [ "build-tgraph-ts" ], - "envKey": "bciqasechgtqcnyliotc6k53o62vzvfm5jut74mgewfwoz7j7szvibci" + "envKey": "bciqkqwta6epy65btclam4d25s5wph3mvhyg7fbxds4jbajx5uumx46q" }, "build-tgraph": { "ty": "denoFile@v1", @@ -1134,12 +1147,12 @@ "build-tgraph-py", "build-tgraph-ts-node" ], - "envKey": "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi" + "envKey": "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq" }, "build-sys-tgraphs": { "ty": "denoFile@v1", "key": "build-sys-tgraphs", - "envKey": "bciqdvyz2p7j7h7mk6edcuetyuu3qaexepnlzvh57auyrscxa7nx6n2q" + "envKey": "bciqhrqahrm3wdnsbfkt3f44hqw53fsolu622osigp5vmnuvp3jbb4wq" } }, "tasksNamed": [ @@ -1150,6 +1163,7 @@ "test-website", "test-e2e", "lock-sed", + "lint-deno", "lint-udeps", "install-wasi-adapter", "install-lsp", @@ -1183,13 +1197,13 @@ "id": "envs", "config": { "envs": { - "bciqc6sjkyyjd32glkf553dkax7lw66qkdlk4cvpwlnkqy62h3yz3bcy": { + "bciqkx2kodz5dx5pv3hjcc4vpirphyetattk4oks5pucb7dsqrgwzqwa": { "desc": "the default default environment.", "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1201,18 +1215,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet___main" } ] }, - "bciqafqvagd25nwvgyjqhk2rad3icmbdk5ezxckgfmqklfkb6lc7jvpi": { + "bciqfoerhfsehob65bmr7v5eka43ml4zbbt3aeot7zz5ijlb4oy2lucq": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1224,18 +1248,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet___main" } ] }, - "bciqgbrnhfvvtmoua3evkupx3f7tt6ma45tpnjsoh5lw5y2igquul76y": { + "bciqe5ao7vzfelgdas65p7frjodat2yz6mz7jk2yup2ulv5ycd44afyi": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1247,18 +1281,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet_______task_env_lint-udeps" } ] }, - "bciqbc7tuunt52ewlomqkynauomfweotxpf6hzut7yz532bwk2gckn5a": { + "bciqk7aif25pqtsyncbnbdapte4lixsodypfxvmkepsuey74vgr4zb5q": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1270,18 +1314,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet____wasm" } ] }, - "bciqmpo7soabnkxibgqgurlc5lfy4a7jeglk6v45x4e4k7wnmwmztaqq": { + "bciqjmqirgadtrauceyhuq7gx5fuegiwl6s6x52dumzmwtqkno3srcsi": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1293,18 +1347,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet____python" } ] }, - "bciqg5tyxjk3n5hnomlukrr4jty54ne4kfzthqbqmef6tsze4thjl6xq": { + "bciqclszw6iggx6sevxab56z3k7gh5hne7jzx24clywryxz24qjo5gji": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1316,18 +1380,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet____ecma" } ] }, - "bciqadrkruydvgov2zwklcwohmuno4nalyc3pg3yomdumdxfstvo4pby": { + "bciqn4urah5beauhii24btx3t5eh2gsoqldg6hqiqn7wstpbcuecfj2y": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1339,6 +1413,16 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "posix.envVar", "key": "TG_URL", @@ -1350,12 +1434,12 @@ } ] }, - "bciqahf2tfeocjdxm6vt4py7nen4konon5ufmjszqkuo4drhtj445zyi": { + "bciqjls65kmsyg36rd3onuorvgqh3xyw7i54yb2civyowpmovnnpbeza": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1367,18 +1451,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet____rust" } ] }, - "bciqov4rontailrkkhq4mmg6unksfithoszn3abi3pyfqnvlh6ynkvka": { + "bciqov6tmz5jhf6kitm7hptd6b74cw5zb7pt7rxqy3ktmqqn3hvaj4za": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1390,18 +1484,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet_______task_env_test-rust" } ] }, - "bciqf6ly2orfkhcrpjkb6jx2p2igz6bvllqpuhotzlfmcjzwymmwr55q": { + "bciqizu3vblpk5gaendo6cyg42jzqa7zu6teyiodnfhoajdtbbv7q6za": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1413,6 +1517,16 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "posix.envVar", "key": "PACKAGED", @@ -1433,6 +1547,16 @@ "key": "REDIS_URL", "val": "redis://:password@localhost:6379/0" }, + { + "ty": "posix.envVar", + "key": "TG_SECRET", + "val": "a4lNi0PbEItlFZbus1oeH/+wyIxi9uH6TpL8AIqIaMBNvp7SESmuUBbfUwC0prxhGhZqHw8vMDYZAGMhSZ4fLw==" + }, + { + "ty": "posix.envVar", + "key": "TG_ADMIN_PASSWORD", + "val": "password" + }, { "ty": "posix.envVar", "key": "TG_PORT", @@ -1444,12 +1568,12 @@ } ] }, - "bciqolirh75zgvw6slig4cdhdupwepxo7tuqo53aoqmrptr5k66ubjei": { + "bciqk6b2h5s7wljd5gjygkc6wpoqvmt77xkgwfnnx7um2rhid5xb3tci": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1461,6 +1585,16 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "posix.envVar", "key": "PACKAGED", @@ -1481,6 +1615,16 @@ "key": "REDIS_URL", "val": "redis://:password@localhost:6379/0" }, + { + "ty": "posix.envVar", + "key": "TG_SECRET", + "val": "a4lNi0PbEItlFZbus1oeH/+wyIxi9uH6TpL8AIqIaMBNvp7SESmuUBbfUwC0prxhGhZqHw8vMDYZAGMhSZ4fLw==" + }, + { + "ty": "posix.envVar", + "key": "TG_ADMIN_PASSWORD", + "val": "password" + }, { "ty": "posix.envVar", "key": "TG_PORT", @@ -1494,12 +1638,7 @@ { "ty": "posix.envVar", "key": "SYNC_REDIS_URL", - "val": "redis://localhost:6379/0" - }, - { - "ty": "posix.envVar", - "key": "SYNC_REDIS_PASSWORD", - "val": "password" + "val": "redis://:password@localhost:6379/123" }, { "ty": "posix.envVar", @@ -1532,12 +1671,12 @@ } ] }, - "bciqgpx2na2og2c3ty363m2kq3gficj4l4wxlpnrwl5gqiuzooondwja": { + "bciqbgzsyj5gpkpixhvd4wihx4oa2qjmyf3ugdvdnemrr356mjxopkyy": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1549,18 +1688,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet_______task_env_dev-eg-tgraphs" } ] }, - "bciqlo5nwzz6bg3k475s2w42hxaqdkixdva6tnew5gghedac5d3ng43y": { + "bciqayfl7nvr6g7qgplwj6ymglj7giqb6wz5pjw7tfct66fyrmnpcmwq": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1572,6 +1721,16 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "posix.envVar", "key": "WASM_FILE", @@ -1583,12 +1742,12 @@ } ] }, - "bciqi3ve7wig2zhcduvq2kt63yovunribk6kzbha3nucg5fkcuabt7xa": { + "bciqewdms4swk2kufu6idlcha7vc42auzhglynkpuv7ulnfdnpmdul2a": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1600,6 +1759,16 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "posix.envVar", "key": "WASM_FILE", @@ -1611,12 +1780,12 @@ } ] }, - "bciqasechgtqcnyliotc6k53o62vzvfm5jut74mgewfwoz7j7szvibci": { + "bciqkqwta6epy65btclam4d25s5wph3mvhyg7fbxds4jbajx5uumx46q": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1628,6 +1797,16 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "posix.envVar", "key": "WASM_FILE", @@ -1639,12 +1818,12 @@ } ] }, - "bciqdvyz2p7j7h7mk6edcuetyuu3qaexepnlzvh57auyrscxa7nx6n2q": { + "bciqhrqahrm3wdnsbfkt3f44hqw53fsolu622osigp5vmnuvp3jbb4wq": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1656,18 +1835,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet_______task_env_build-sys-tgraphs" } ] }, - "bciqdyc67uwyl5pkoaaohvgmnpdtuamame6zvktiegfai562fuw5oiiq": { + "bciqhtsq7g2mld3t64e7xolzrcbguzxihcrkftvuupv6af56prrgfpwy": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1679,18 +1868,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet___ci" } ] }, - "bciqf76zyyuyjv6qftg3snjga2c5me32myn2nxlclr4kryuy2nobtbii": { + "bciqlx64mqgsltfuryg4hrkc3rigpmrcfoxweppuye2gsvfifmb4762i": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1702,18 +1901,28 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet___dev" } ] }, - "bciqkx557bvfx3hn4pl47jx75x37twor5h5jarz7kbk2tvzqv4xpw3vq": { + "bciqpib7odt7u3wlasgekric54e7rsunltc5wlqppjnt3jq2faq4hbqi": { "provides": [ { "ty": "posix.envVar", "key": "RUST_LOG", - "val": "info,swc_ecma_codegen=off,tracing::span=off" + "val": "info,deno=warn,swc_ecma_codegen=off,tracing::span=off" }, { "ty": "posix.envVar", @@ -1725,6 +1934,16 @@ "key": "CLICOLOR_FORCE", "val": "1" }, + { + "ty": "posix.envVar", + "key": "CROSS_CONFIG", + "val": "tools/Cross.toml" + }, + { + "ty": "posix.envVar", + "key": "GIT_CLIFF_CONFIG", + "val": "tools/cliff.toml" + }, { "ty": "ghjk.ports.InstallSetRef", "setId": "ghjkEnvProvInstSet___oci" @@ -1734,21 +1953,21 @@ }, "defaultEnv": "dev", "envsNamed": { - "main": "bciqc6sjkyyjd32glkf553dkax7lw66qkdlk4cvpwlnkqy62h3yz3bcy", - "_wasm": "bciqbc7tuunt52ewlomqkynauomfweotxpf6hzut7yz532bwk2gckn5a", - "_python": "bciqmpo7soabnkxibgqgurlc5lfy4a7jeglk6v45x4e4k7wnmwmztaqq", - "_ecma": "bciqg5tyxjk3n5hnomlukrr4jty54ne4kfzthqbqmef6tsze4thjl6xq", - "_rust": "bciqahf2tfeocjdxm6vt4py7nen4konon5ufmjszqkuo4drhtj445zyi", - "ci": "bciqdyc67uwyl5pkoaaohvgmnpdtuamame6zvktiegfai562fuw5oiiq", - "dev": "bciqf76zyyuyjv6qftg3snjga2c5me32myn2nxlclr4kryuy2nobtbii", - "oci": "bciqkx557bvfx3hn4pl47jx75x37twor5h5jarz7kbk2tvzqv4xpw3vq" + "main": "bciqkx2kodz5dx5pv3hjcc4vpirphyetattk4oks5pucb7dsqrgwzqwa", + "_wasm": "bciqk7aif25pqtsyncbnbdapte4lixsodypfxvmkepsuey74vgr4zb5q", + "_python": "bciqjmqirgadtrauceyhuq7gx5fuegiwl6s6x52dumzmwtqkno3srcsi", + "_ecma": "bciqclszw6iggx6sevxab56z3k7gh5hne7jzx24clywryxz24qjo5gji", + "_rust": "bciqjls65kmsyg36rd3onuorvgqh3xyw7i54yb2civyowpmovnnpbeza", + "ci": "bciqhtsq7g2mld3t64e7xolzrcbguzxihcrkftvuupv6af56prrgfpwy", + "dev": "bciqlx64mqgsltfuryg4hrkc3rigpmrcfoxweppuye2gsvfifmb4762i", + "oci": "bciqpib7odt7u3wlasgekric54e7rsunltc5wlqppjnt3jq2faq4hbqi" } } } ], "blackboard": { - "bciqd5yzu6oghbke7anippco6lr6sgw2mv3c2esojkr3ta6f4ljwwuya": { - "version": "1.45.2", + "bciqirg723pselb4g77l6ssuytptohd3rvin4ybnwncidus52tfpu6ty": { + "version": "1.46.1", "port": { "ty": "denoWorker@v1", "name": "deno_ghrel", @@ -1925,7 +2144,7 @@ "portRef": "rustup_rustlang@0.1.0" } }, - "bciqfn3guc53gpo32zezii4g6it32cbmb5xli7e47d2qvurnqinz7edq": { + "bciqcdq3yzvmrmpyfrp3lahxiphozjqdkbexn5see75o363q45jkin6i": { "manifest": { "ty": "denoWorker@v1", "name": "rust_rustup", @@ -1958,7 +2177,7 @@ "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/rust.ts" }, "defaultInst": { - "version": "1.79.0", + "version": "1.80.1", "portRef": "rust_rustup@0.1.0", "profile": "minimal" } @@ -2082,14 +2301,14 @@ "portRef": "node_org@0.1.0" } }, - "bciqgdwpugwdrwifr6qqi3m6vs4y55edt7xkojyxk5zr5m3joowsgkki": { + "bciqizvwv7mgjomfc6m6mj7s6s2omae6cu3ec5d3ny7p2elte5ud7bga": { "tar_aa": "bciqb6ua63xodzwxngnbjq35hfikiwzb3dclbqkc7e6xgjdt5jin4pia", "git_aa": "bciqfl5s36w335ducrb6f6gwb3vuwup7vzqwwg67pq42xtkngsnxqobi", "curl_aa": "bciqcfe7qyxmokpn6pgtaj35r5qg74jkehuu6cvyrtcsnegvwlm64oqy", "unzip_aa": "bciqgkpwxjmo5phw5se4ugyiz4xua3xrd54quzmk7wdwpq3vghglogjy", "zstd_aa": "bciqmcvyepuficjj3mwshsbfecwdmzch5gwxqo557icnq4zujtdllh4a", "rustup_rustlang": "bciqbbs5l2j72vleufdba2nj4k4dnp3akxv4w74rhhpnz5buoixxnuqy", - "rust_rustup": "bciqfn3guc53gpo32zezii4g6it32cbmb5xli7e47d2qvurnqinz7edq", + "rust_rustup": "bciqcdq3yzvmrmpyfrp3lahxiphozjqdkbexn5see75o363q45jkin6i", "cargo_binstall_ghrel": "bciqj25jnt3hzhwfm6z2tkpfyxt7cpb2dbwavf75doh5d5qnwwdugljy", "pnpm_ghrel": "bciqfr2ubzsw3lefwt7mwuzlkct2cbwvo4l44hrrigfzx64uocww5rki", "asdf_plugin_git": "bciqhiohdon4chnr3oagakks2xii27bgc7eb56pglnr5gelp6p2rpw4i", @@ -2111,52 +2330,64 @@ "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/protoc.ts" } }, - "bciqbas5ccadnnnvdp2mtkt7xjmhvdtkgqeib5c2ir74cmyyrwfgfvui": { + "bciqlubbahrp4pxohyffmn5yj52atjgmn5nxepmkdev6wtmvpbx7kr7y": { + "buildDepConfigs": { + "asdf_plugin_git": { + "pluginRepo": "https://github.com/asdf-community/asdf-cmake", + "portRef": "asdf_plugin_git@0.1.0" + } + }, + "resolutionDepConfigs": { + "asdf_plugin_git": { + "pluginRepo": "https://github.com/asdf-community/asdf-cmake", + "portRef": "asdf_plugin_git@0.1.0" + } + }, "port": { "ty": "denoWorker@v1", - "name": "pipi_pypi", + "name": "asdf", "platforms": [ "x86_64-linux", "aarch64-linux", "x86_64-darwin", - "aarch64-darwin", - "x86_64-windows", - "aarch64-windows", - "x86_64-freebsd", - "aarch64-freebsd", - "x86_64-netbsd", - "aarch64-netbsd", - "x86_64-aix", - "aarch64-aix", - "x86_64-solaris", - "aarch64-solaris", - "x86_64-illumos", - "aarch64-illumos", - "x86_64-android", - "aarch64-android" + "aarch64-darwin" ], "version": "0.1.0", "buildDeps": [ { - "name": "cpy_bs_ghrel" + "name": "curl_aa" + }, + { + "name": "git_aa" + }, + { + "name": "asdf_plugin_git" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pipi.ts" + "resolutionDeps": [ + { + "name": "curl_aa" + }, + { + "name": "git_aa" + }, + { + "name": "asdf_plugin_git" + } + ], + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/asdf.ts" }, - "packageName": "cmake" + "pluginRepo": "https://github.com/asdf-community/asdf-cmake", + "installType": "version" }, - "bciqezep4ufkgwesldlm5etyfkgdsiickfudx7cosydcz6xtgeorn2hy": { - "version": "20.8.0", + "bciqbx637744bfiyvprs77xdnvdt7uuwmtlntfjpwmkda672gklkbpmi": { + "version": "v2.4.0", "port": { "ty": "denoWorker@v1", - "name": "node_org", + "name": "mold_ghrel", "platforms": [ "aarch64-linux", - "x86_64-linux", - "aarch64-darwin", - "x86_64-darwin", - "aarch64-windows", - "x86_64-windows" + "x86_64-linux" ], "version": "0.1.0", "buildDeps": [ @@ -2164,14 +2395,14 @@ "name": "tar_aa" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/node.ts" - } + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/mold.ts" + }, + "replaceLd": true }, - "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq": { - "version": "v9.4.0", + "bciqdoqocirh7aseu5o5hfqaj3sb3pfd3z3rlvig26xttmcmsoljuz6i": { "port": { "ty": "denoWorker@v1", - "name": "pnpm_ghrel", + "name": "act_ghrel", "platforms": [ "aarch64-linux", "x86_64-linux", @@ -2181,14 +2412,13 @@ "x86_64-windows" ], "version": "0.1.0", - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pnpm.ts" + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/act.ts" } }, - "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa": { - "version": "10.0.1", + "bciqjsjvkjm6xvoovs6y3y6me32422zr5wc5njs4kwfmmyf6nt6jzv2i": { "port": { "ty": "denoWorker@v1", - "name": "npmi_npm", + "name": "cargobi_cratesio", "platforms": [ "x86_64-linux", "aarch64-linux", @@ -2212,44 +2442,59 @@ "version": "0.1.0", "buildDeps": [ { - "name": "node_org" + "name": "cargo_binstall_ghrel" + }, + { + "name": "rust_rustup" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/npmi.ts" + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" }, - "packageName": "node-gyp" + "crateName": "whiz", + "locked": true }, - "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa": { - "version": "3.8.18", + "bciqdf7jtq3zzhn676t2dr7fyve47fj7coajtymmye353lrrluskjk7q": { "port": { "ty": "denoWorker@v1", - "name": "cpy_bs_ghrel", + "name": "cargobi_cratesio", "platforms": [ "x86_64-linux", "aarch64-linux", "x86_64-darwin", "aarch64-darwin", "x86_64-windows", - "aarch64-windows" + "aarch64-windows", + "x86_64-freebsd", + "aarch64-freebsd", + "x86_64-netbsd", + "aarch64-netbsd", + "x86_64-aix", + "aarch64-aix", + "x86_64-solaris", + "aarch64-solaris", + "x86_64-illumos", + "aarch64-illumos", + "x86_64-android", + "aarch64-android" ], "version": "0.1.0", "buildDeps": [ { - "name": "tar_aa" + "name": "cargo_binstall_ghrel" }, { - "name": "zstd_aa" + "name": "rust_rustup" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cpy_bs.ts" + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" }, - "releaseTag": "20240224" + "crateName": "wit-deps-cli", + "locked": true }, - "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa": { - "version": "0.4.7", + "bciqeaqeduyhykw7s7gq6ney6ci7deheq3etgdwkvg55mwbzdhz2opra": { "port": { "ty": "denoWorker@v1", - "name": "pipi_pypi", + "name": "cargobi_cratesio", "platforms": [ "x86_64-linux", "aarch64-linux", @@ -2273,15 +2518,19 @@ "version": "0.1.0", "buildDeps": [ { - "name": "cpy_bs_ghrel" + "name": "cargo_binstall_ghrel" + }, + { + "name": "rust_rustup" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pipi.ts" + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" }, - "packageName": "ruff" + "crateName": "git-cliff", + "locked": true }, - "bciqh7qqm2bohoswnwjywael2m3f6xn4n6ceifyw4usrmaahjioldq6a": { - "version": "1.7.0", + "bciqdtuhf425g6prb5fyupbcokttmkill6wyqk7bkphx3ueltl5mvu4q": { + "version": "3.7.1", "port": { "ty": "denoWorker@v1", "name": "pipi_pypi", @@ -2313,10 +2562,27 @@ ], "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pipi.ts" }, - "packageName": "poetry" + "packageName": "pre-commit" }, - "bciqojan3zglnfctnmqyxvnxaha46yrnlhj77j3kw4mxadvauqepqdba": { - "version": "0.116.1", + "bciqmvgsg7h3ohj3m7das4bznahgt6tyq7mamta3n2vorulqvml7mywq": { + "version": "v0.13.1", + "port": { + "ty": "denoWorker@v1", + "name": "temporal_cli_ghrel", + "platforms": [ + "aarch64-linux", + "x86_64-linux", + "aarch64-darwin", + "x86_64-darwin", + "aarch64-windows", + "x86_64-windows" + ], + "version": "0.1.0", + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/temporal_cli.ts" + } + }, + "bciqicdqw36v63cbrscwsgtu2htrmwmgtfoxexv4rx5d2y24vytxbuma": { + "version": "1.33.0", "port": { "ty": "denoWorker@v1", "name": "cargobi_cratesio", @@ -2351,11 +2617,11 @@ ], "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" }, - "crateName": "wasm-opt", + "crateName": "cargo-insta", "locked": true }, - "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y": { - "version": "1.208.1", + "bciqe33uhsuaesrjk6luzxrbbimwg5ydt6x2lrieelwbr7aft4g2qwsy": { + "version": "0.2.5", "port": { "ty": "denoWorker@v1", "name": "cargobi_cratesio", @@ -2390,49 +2656,40 @@ ], "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" }, - "crateName": "wasm-tools", + "crateName": "cross", "locked": true }, - "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la": { - "version": "0.13.4", + "bciqgpwvq6qf34xolzh65zr3v5dpyhahtybei46nnjmy2sitnoixwhsa": { + "version": "3.8.18", "port": { "ty": "denoWorker@v1", - "name": "pipi_pypi", + "name": "cpy_bs_ghrel", "platforms": [ "x86_64-linux", "aarch64-linux", "x86_64-darwin", "aarch64-darwin", "x86_64-windows", - "aarch64-windows", - "x86_64-freebsd", - "aarch64-freebsd", - "x86_64-netbsd", - "aarch64-netbsd", - "x86_64-aix", - "aarch64-aix", - "x86_64-solaris", - "aarch64-solaris", - "x86_64-illumos", - "aarch64-illumos", - "x86_64-android", - "aarch64-android" + "aarch64-windows" ], "version": "0.1.0", "buildDeps": [ { - "name": "cpy_bs_ghrel" + "name": "tar_aa" + }, + { + "name": "zstd_aa" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pipi.ts" + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cpy_bs.ts" }, - "packageName": "componentize-py" + "releaseTag": "20240224" }, - "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq": { - "version": "1.3.0", + "bciqkgncxbauys2qfguplxcz2auxrcyamj4b6htqk2fqvohfm3afd7sa": { + "version": "0.4.7", "port": { "ty": "denoWorker@v1", - "name": "npmi_npm", + "name": "pipi_pypi", "platforms": [ "x86_64-linux", "aarch64-linux", @@ -2456,15 +2713,15 @@ "version": "0.1.0", "buildDeps": [ { - "name": "node_org" + "name": "cpy_bs_ghrel" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/npmi.ts" + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pipi.ts" }, - "packageName": "@bytecodealliance/jco" + "packageName": "ruff" }, - "bciqdtuhf425g6prb5fyupbcokttmkill6wyqk7bkphx3ueltl5mvu4q": { - "version": "3.7.1", + "bciqihcmo6l5uwzih3e3ujc55curep4arfomo6rzkdsfim74unxexiqy": { + "version": "1.8.3", "port": { "ty": "denoWorker@v1", "name": "pipi_pypi", @@ -2496,13 +2753,13 @@ ], "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pipi.ts" }, - "packageName": "pre-commit" + "packageName": "poetry" }, - "bciqmvgsg7h3ohj3m7das4bznahgt6tyq7mamta3n2vorulqvml7mywq": { - "version": "v0.13.1", + "bciqezep4ufkgwesldlm5etyfkgdsiickfudx7cosydcz6xtgeorn2hy": { + "version": "20.8.0", "port": { "ty": "denoWorker@v1", - "name": "temporal_cli_ghrel", + "name": "node_org", "platforms": [ "aarch64-linux", "x86_64-linux", @@ -2512,14 +2769,36 @@ "x86_64-windows" ], "version": "0.1.0", - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/temporal_cli.ts" + "buildDeps": [ + { + "name": "tar_aa" + } + ], + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/node.ts" } }, - "bciqicdqw36v63cbrscwsgtu2htrmwmgtfoxexv4rx5d2y24vytxbuma": { - "version": "1.33.0", + "bciqaixkkacuuligsvtjcfdfgjgl65owtyspiiljb3vmutlgymecsiwq": { + "version": "v9.4.0", "port": { "ty": "denoWorker@v1", - "name": "cargobi_cratesio", + "name": "pnpm_ghrel", + "platforms": [ + "aarch64-linux", + "x86_64-linux", + "aarch64-darwin", + "x86_64-darwin", + "aarch64-windows", + "x86_64-windows" + ], + "version": "0.1.0", + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pnpm.ts" + } + }, + "bciqlt27ioikxnpkqq37hma7ibn5e5wpzfarbvoh77zwdkarwghtvzxa": { + "version": "10.0.1", + "port": { + "ty": "denoWorker@v1", + "name": "npmi_npm", "platforms": [ "x86_64-linux", "aarch64-linux", @@ -2543,19 +2822,15 @@ "version": "0.1.0", "buildDeps": [ { - "name": "cargo_binstall_ghrel" - }, - { - "name": "rust_rustup" + "name": "node_org" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/npmi.ts" }, - "crateName": "cargo-insta", - "locked": true + "packageName": "node-gyp" }, - "bciqe33uhsuaesrjk6luzxrbbimwg5ydt6x2lrieelwbr7aft4g2qwsy": { - "version": "0.2.5", + "bciqojan3zglnfctnmqyxvnxaha46yrnlhj77j3kw4mxadvauqepqdba": { + "version": "0.116.1", "port": { "ty": "denoWorker@v1", "name": "cargobi_cratesio", @@ -2590,26 +2865,11 @@ ], "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" }, - "crateName": "cross", + "crateName": "wasm-opt", "locked": true }, - "bciqdoqocirh7aseu5o5hfqaj3sb3pfd3z3rlvig26xttmcmsoljuz6i": { - "port": { - "ty": "denoWorker@v1", - "name": "act_ghrel", - "platforms": [ - "aarch64-linux", - "x86_64-linux", - "aarch64-darwin", - "x86_64-darwin", - "aarch64-windows", - "x86_64-windows" - ], - "version": "0.1.0", - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/act.ts" - } - }, - "bciqjsjvkjm6xvoovs6y3y6me32422zr5wc5njs4kwfmmyf6nt6jzv2i": { + "bciqcnbruy2q6trpvia52n2yis4t27taoz4mxkeguqz5aif7ex6rp26y": { + "version": "1.208.1", "port": { "ty": "denoWorker@v1", "name": "cargobi_cratesio", @@ -2644,13 +2904,14 @@ ], "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" }, - "crateName": "whiz", + "crateName": "wasm-tools", "locked": true }, - "bciqdf7jtq3zzhn676t2dr7fyve47fj7coajtymmye353lrrluskjk7q": { + "bciqpu7gxs3zm7i4gwp3m3cfdxwz27ixvsykdnbxrl5m5mt3xbb3b4la": { + "version": "0.13.4", "port": { "ty": "denoWorker@v1", - "name": "cargobi_cratesio", + "name": "pipi_pypi", "platforms": [ "x86_64-linux", "aarch64-linux", @@ -2674,21 +2935,18 @@ "version": "0.1.0", "buildDeps": [ { - "name": "cargo_binstall_ghrel" - }, - { - "name": "rust_rustup" + "name": "cpy_bs_ghrel" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pipi.ts" }, - "crateName": "wit-deps-cli", - "locked": true + "packageName": "componentize-py" }, - "bciqeaqeduyhykw7s7gq6ney6ci7deheq3etgdwkvg55mwbzdhz2opra": { + "bciqjme7csfq43oenkrsakdhaha34hgy6vdwkfffki2ank3kf6mjcguq": { + "version": "1.3.0", "port": { "ty": "denoWorker@v1", - "name": "cargobi_cratesio", + "name": "npmi_npm", "platforms": [ "x86_64-linux", "aarch64-linux", @@ -2712,16 +2970,12 @@ "version": "0.1.0", "buildDeps": [ { - "name": "cargo_binstall_ghrel" - }, - { - "name": "rust_rustup" + "name": "node_org" } ], - "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts" + "moduleSpecifier": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/npmi.ts" }, - "crateName": "git-cliff", - "locked": true + "packageName": "@bytecodealliance/jco" }, "bciqezkigmtx5tweeflmn27yofgwybmgbat7g6jg4xmxamomsdpvenay": { "version": "nightly-2024-05-26", diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index c0378952e6..5996d24b4a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -30,7 +30,7 @@ jobs: - uses: docker/build-push-action@v6 id: dev with: - file: dev/Dockerfile + file: tools/Dockerfile platforms: ${{ matrix.platform }} target: dev cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:base @@ -44,7 +44,7 @@ jobs: - uses: docker/build-push-action@v6 id: prd with: - file: dev/Dockerfile + file: tools/Dockerfile platforms: ${{ matrix.platform }} target: prd cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:nightly diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml index 2c8828352e..10f33031ca 100644 --- a/.github/workflows/publish-website.yml +++ b/.github/workflows/publish-website.yml @@ -17,7 +17,7 @@ jobs: filters: | website: - '.github/**' - - 'website/**' + - 'docs/metatype.dev/**' outputs: website: ${{ steps.filter.outputs.website }} @@ -39,13 +39,13 @@ jobs: python3 -m venv .venv source .venv/bin/activate poetry install --no-root - cd website + cd docs/metatype.dev pnpm install --frozen-lockfile pnpm build - uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: website/build + publish_dir: docs/metatype.dev/build user_name: "github-actions[bot]" user_email: "github-actions[bot]@users.noreply.github.com" cname: metatype.dev diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d5adc26a0..af2f6674d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -184,21 +184,21 @@ jobs: WASM_OPT=1 ghjk x build-tgraph - cd typegraph/python + cd src/typegraph/python poetry build [ "$OVERWRITE" == 'true' ] \ && poetry publish --skip-existing \ || poetry publish cd - - cd typegraph/node + cd src/typegraph/node pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" [ "$OVERWRITE" == 'true' ] \ && (pnpm publish --no-git-checks --force || true) \ || pnpm publish --no-git-checks cd - - cd typegraph/deno/sdk + cd src/typegraph/deno/ ghjk x build-tgraph-ts-jsr [ "$OVERWRITE" == 'true' ] \ && (deno publish --allow-slow-types --allow-dirty || true) \ @@ -241,7 +241,7 @@ jobs: - uses: docker/build-push-action@v6 id: build with: - file: dev/Dockerfile + file: tools/Dockerfile platforms: ${{ matrix.platform }} cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:latest outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true @@ -306,7 +306,7 @@ jobs: - uses: metatypedev/setup-ghjk@318209a9d215f70716a4ac89dbeb9653a2deb8bc - shell: bash run: | - cd meta-lsp + cd src/meta-lsp pnpm install --frozen-lockfile cd ts-language-server pnpm install --frozen-lockfile diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b799d79c34..9a7ade0008 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -46,35 +46,25 @@ jobs: filters: | website: - '.github/workflows/tests.yml' - - 'website/**' - meta-cli: - - '.github/workflows/tests.yml' - - 'libs/**' - - 'meta-cli/**' - - 'Cargo.lock' + - 'src/metatype.dev/**' typegate: # for the standalone/image (not typegate tests which rely on everything) - '.github/workflows/tests.yml' - - 'libs/**' - - 'typegate/**' # consider moving tests to other dir to improve test detection + - 'src/common/**' + - 'src/mt_deno/**' + - 'src/pyrt_wit_wire/**' + - 'src/typegate/**' + - 'src/wit/**' - 'Cargo.lock' full: - '.github/workflows/tests.yml' - - 'libs/**' - - 'typegate/**' - - 'typegraph/**' - - 'meta-cli/**' - - 'Cargo.lock' + - 'src/**' + - 'tests/**' - 'examples/**' - rust: - - '.github/workflows/tests.yml' - - 'libs/**' - 'Cargo.lock' outputs: website: ${{ steps.filter.outputs.website }} - meta-cli: ${{ steps.filter.outputs.meta-cli }} typegate: ${{ steps.filter.outputs.typegate }} full: ${{ steps.filter.outputs.full }} - rust: ${{ steps.filter.outputs.rust }} pre-commit: runs-on: ubuntu-latest @@ -194,7 +184,7 @@ jobs: uses: docker/build-push-action@v6 if: steps.check.outputs.has-permission with: - file: dev/Dockerfile + file: tools/Dockerfile platforms: ${{ matrix.platform }} push: false cache-from: type=registry,ref=docker.io/zifeo/metatype-cache:ci @@ -208,7 +198,7 @@ jobs: uses: docker/build-push-action@v6 if: "! steps.check.outputs.has-permission" with: - file: dev/Dockerfile + file: tools/Dockerfile platforms: ${{ matrix.platform }} push: false cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/typegate:latest @@ -262,6 +252,7 @@ jobs: ghjk x install-sys | bash ghjk x install-py + ghjk x install-wasi-adapter source .venv/bin/activate # this doesn't publish it but only builds it @@ -271,7 +262,6 @@ jobs: ghjk x dev-compose base prisma WASM_OPT=1 ghjk x build-tgraph - ls -osha typegraph/node ghjk x install-ts @@ -283,16 +273,16 @@ jobs: ghjk x test-e2e -- --coverage=coverage # FIXME: required due to https://github.com/denoland/deno/issues/21621#issuecomment-1887870712 - deno cache --import-map typegate/import_map.json \ - typegate/src/main.ts \ - typegate/tests/utils/*.ts \ - typegate/tests/runtimes/wasm_wire/*.ts \ - typegate/tests/runtimes/wasm_reflected/*.ts \ - typegate/tests/runtimes/python/*.ts \ - typegate/tests/e2e/self_deploy/self_deploy.ts \ - typegate/tests/metagen/typegraphs/metagen.ts \ - typegraph/deno/sdk/src/*.ts \ - dev/*.ts + deno cache --config src/typegate/deno.jsonc \ + src/typegate/src/main.ts \ + tests/utils/*.ts \ + tests/runtimes/wasm_wire/*.ts \ + tests/runtimes/wasm_reflected/*.ts \ + tests/runtimes/python/*.ts \ + tests/e2e/self_deploy/self_deploy.ts \ + tests/metagen/typegraphs/metagen.ts \ + src/typegraph/deno/src/*.ts \ + tools/*.ts deno --unstable-worker-options --unstable-net coverage ./coverage --lcov > coverage.lcov diff --git a/.gitignore b/.gitignore index 7aa113391e..3219643b3a 100644 --- a/.gitignore +++ b/.gitignore @@ -17,38 +17,40 @@ crash.log target **/*.rs.bk -meta-lsp/ts-language-server/out/ -meta-lsp/vscode-metatype-support/out/ -meta-lsp/*.vsix - -typegate/workers -typegate/codegen -typegate/tests/prisma-migrations -typegate/tests/e2e/cli/prisma-migrations -typegate/tests/importers/copy/ -typegate/tests/**/*.wasm +src/meta-lsp/ts-language-server/out/ +src/meta-lsp/vscode-metatype-support/out/ +src/meta-lsp/*.vsix + +src/typegate/workers +src/typegate/codegen + +tests/prisma-migrations +tests/e2e/cli/prisma-migrations +tests/importers/copy/ +tests/**/*.wasm + .env -typegate/native/bindings.json +src/typegate/native/bindings.json bindings node_modules build .docusaurus .cache-loader -website/vale/Google +docs/metatype.dev/vale/Google recipe.json *-debug.whiz.yaml tmp/ coverage* -typegraph/deno/sdk/src/gen -typegraph/deno/sdk/README.md -typegraph/node -typegraph/python/typegraph/gen +src/typegraph/deno/src/gen +src/typegraph/deno/README.md +src/typegraph/node +src/typegraph/python/typegraph/gen *.egg-info/ examples/typegraphs/migrations examples/typegraphs/**/*.wasm -libs/pyrt_wit_wire/wit_wire +src/pyrt_wit_wire/wit_wire diff --git a/.vscode/settings.json b/.vscode/settings.json index 6f27b88736..1905c2309e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,28 +1,20 @@ { "editor.formatOnSave": true, "files.exclude": { - "website/.docusaurus": true, - "website/node_modules": true + "docs/metatype.dev/.docusaurus": true, + "docs/metatype.dev/node_modules": true }, "deno.disablePaths": [ - "meta-lsp", - "typegraph/node", + "src/meta-lsp", + "src/typegraph/node", "examples/templates/node", - "website" + "docs/metatype.dev" ], - // "deno.enablePaths": [ - // "typegate", - // "dev", - // "examples/templates/deno", - // "examples/typegraphs", - // "typegraph/deno/dev", - // "typegraph/deno/sdk", - // "libs/metagen", - // "ghjk.ts", - // ".ghjk" - // ], - // "deno.config": "typegate/deno.jsonc", + "deno.config": "deno.jsonc", "deno.unstable": true, + "deno.codeLens.implementations": true, + "deno.codeLens.references": true, + "deno.codeLens.referencesAllFunctions": true, "typescript.suggest.completeFunctionCalls": true, "typescript.inlayHints.variableTypes.enabled": true, "typescript.inlayHints.propertyDeclarationTypes.enabled": true, @@ -33,9 +25,6 @@ "typescript.inlayHints.variableTypes.suppressWhenTypeMatchesName": true, "typescript.inlayHints.functionLikeReturnTypes.enabled": true, "rust-analyzer.checkOnSave": true, - "deno.codeLens.implementations": true, - "deno.codeLens.references": true, - "deno.codeLens.referencesAllFunctions": true, "editor.wordWrap": "on", "[python]": { "editor.defaultFormatter": "ms-python.black-formatter", diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5e7ccd74e4..7dc1f8d614 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -132,7 +132,7 @@ source .venv/bin/activate # depends on your shell ghjk x dev-compose all # or only the envs required (e.g. base prisma s3) ghjk x build-tgraph # build typegraph ghjk x test-e2e # all tests -ghjk x test-e2e runtimes/prisma/full_prisma_mapping_test.ts # isolated test +ghjk x test-e2e tests/runtimes/prisma/full_prisma_mapping_test.ts # isolated test ghjk x # more test tasks are availaible ghjk x dev-compose # shutdown all envs ``` @@ -170,12 +170,12 @@ rustflags = [ #### Local typegraph with Nodejs -Currently, the `typegraph/sdk/node/dist` project is generated dynamically. Depending on your package manager, the protocol used may differ. +Currently, the `src/typegraph/node/` project is generated dynamically using the `build-tgraph-ts-node` ghjk task. Depending on your package manager, the protocol used may differ. ```bash # uses the `file:..` protocol -npm install path/to/typegraph/sdk/node/dist +npm install path/to/typegraph/sdk/node/ # uses the `link:..` protocol (equivalent to `file:..` but for directories only) -pnpm install path/to/typegraph/sdk/node/dist +pnpm install path/to/typegraph/sdk/node/ ``` diff --git a/Cargo.lock b/Cargo.lock index 9cf0b129bc..34dd44b8f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -322,6 +322,9 @@ name = "arbitrary" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110" +dependencies = [ + "derive_arbitrary", +] [[package]] name = "arrayvec" @@ -378,7 +381,7 @@ dependencies = [ "proc-macro2", "quote", "syn 1.0.109", - "synstructure", + "synstructure 0.12.6", ] [[package]] @@ -718,9 +721,9 @@ checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base32" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23ce669cd6c8588f79e15cf450314f9638f967fc5770ff1c7c1deb0925ea7cfa" +checksum = "022dfe9eb35f19ebbcb51e0b40a5ab759f46ad60cadf7297e0bd085afb50e076" [[package]] name = "base36" @@ -1005,7 +1008,7 @@ dependencies = [ "bitvec", "chrono", "hex", - "indexmap 2.2.6", + "indexmap 2.4.0", "js-sys", "once_cell", "rand 0.8.5", @@ -1237,6 +1240,16 @@ dependencies = [ "winx", ] +[[package]] +name = "caseless" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "808dab3318747be122cb31d36de18d4d1c81277a76f8332a02b81a3d73463d7f" +dependencies = [ + "regex", + "unicode-normalization", +] + [[package]] name = "castaway" version = "0.2.3" @@ -1330,9 +1343,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.17" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80932e03c33999b9235edb8655bc9df3204adc9887c2f95b50cb1deb9fd54253" +checksum = "0fbb260a053428790f3de475e304ff84cdbc4face759ea7a3e64c1edd938a7fc" dependencies = [ "clap_builder", "clap_derive", @@ -1340,9 +1353,9 @@ dependencies = [ [[package]] name = "clap-verbosity-flag" -version = "2.2.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb9b20c0dd58e4c2e991c8d203bbeb76c11304d1011659686b5b644bc29aa478" +checksum = "63d19864d6b68464c59f7162c9914a0b569ddc2926b4a2d71afe62a9738eff53" dependencies = [ "clap", "log", @@ -1350,30 +1363,31 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.17" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6c0db58c659eef1c73e444d298c27322a1b52f6927d2ad470c0c0f96fa7b8fa" +checksum = "64b17d7ea74e9f833c7dbf2cbe4fb12ff26783eda4782a8975b72f895c9b4d99" dependencies = [ "anstream", "anstyle", "clap_lex", - "strsim 0.10.0", + "strsim 0.11.1", + "terminal_size", ] [[package]] name = "clap_complete" -version = "4.4.7" +version = "4.5.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfb0d4825b75ff281318c393e8e1b80c4da9fb75a6b1d98547d389d6fe1f48d2" +checksum = "a8670053e87c316345e384ca1f3eba3006fc6355ed8b8a1140d104e109e3df34" dependencies = [ "clap", ] [[package]] name = "clap_complete_fig" -version = "4.4.2" +version = "4.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87e571d70e22ec91d34e1c5317c8308035a2280d925167646bf094fc5de1737c" +checksum = "d494102c8ff3951810c72baf96910b980fb065ca5d3101243e6a8dc19747c86b" dependencies = [ "clap", "clap_complete", @@ -1381,11 +1395,11 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.4.7" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442" +checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0" dependencies = [ - "heck 0.4.1", + "heck 0.5.0", "proc-macro2", "quote", "syn 2.0.71", @@ -1393,18 +1407,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.6.0" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" - -[[package]] -name = "client_rs_static" -version = "0.0.1" -dependencies = [ - "reqwest 0.12.4", - "serde 1.0.204", - "serde_json", -] +checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" [[package]] name = "clipboard-win" @@ -1525,7 +1530,7 @@ dependencies = [ [[package]] name = "common" -version = "0.4.8" +version = "0.4.9-rc1" dependencies = [ "anyhow", "async-trait", @@ -1533,9 +1538,9 @@ dependencies = [ "colored", "flate2", "ignore", - "indexmap 2.2.6", + "indexmap 2.4.0", "indoc", - "itertools 0.11.0", + "itertools 0.13.0", "reqwest 0.11.27", "serde 1.0.204", "serde_json", @@ -1560,11 +1565,12 @@ dependencies = [ [[package]] name = "comrak" -version = "0.20.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f18e72341e6cdc7489cffb76f993812a14a906db54dedb020044ccc211dcaae" +checksum = "395ab67843c57df5a4ee29d610740828dbc928cc64ecf0f2a1d5cd0e98e107a9" dependencies = [ - "derive_builder", + "caseless", + "derive_builder 0.20.0", "entities", "memchr", "once_cell", @@ -1728,6 +1734,12 @@ dependencies = [ "libc", ] +[[package]] +name = "countme" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636" + [[package]] name = "cpp_demangle" version = "0.4.3" @@ -1965,6 +1977,12 @@ dependencies = [ "typenum", ] +[[package]] +name = "css_dataset" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25670139e591f1c2869eb8d0d977028f8d05e859132b4c874ecd02a00d3c9174" + [[package]] name = "ctr" version = "0.9.2" @@ -2195,6 +2213,12 @@ dependencies = [ "regex", ] +[[package]] +name = "debug-ignore" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffe7ed1d93f4553003e20b629abe9085e1e81b1429520f897f8f8860bc6dfc21" + [[package]] name = "debugid" version = "0.8.0" @@ -2207,9 +2231,10 @@ dependencies = [ [[package]] name = "deno" -version = "1.45.2" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "1.46.1" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ + "anstream", "async-trait", "base32", "base64 0.21.7", @@ -2234,10 +2259,11 @@ dependencies = [ "deno_lint", "deno_lockfile", "deno_npm", + "deno_package_json", "deno_runtime", "deno_semver", "deno_task_shell", - "deno_terminal", + "deno_terminal 0.2.0", "dissimilar", "dotenvy", "dprint-plugin-json", @@ -2252,30 +2278,38 @@ dependencies = [ "fs3", "glibc_version", "glob", + "http 1.1.0", + "http-body 1.0.1", + "http-body-util", + "hyper-util", "import_map", - "indexmap 2.2.6", + "indexmap 2.4.0", "jsonc-parser", "junction", "lazy-regex", "libc", + "libsui", "libz-sys", "log", "lsp-types 0.94.1", + "malva", + "markup_fmt", "memmem", "monch", "napi_sym", "nix 0.26.2", - "notify 5.0.0", + "node_resolver", + "notify", "once_cell", "open", "p256", "pathdiff", "percent-encoding", "phf 0.11.2", + "pretty_yaml", "quick-junit", "rand 0.8.5", "regex", - "reqwest 0.12.4", "ring 0.17.8", "runtimelib", "rustyline", @@ -2286,6 +2320,7 @@ dependencies = [ "sha2 0.10.8", "shell-escape", "spki", + "strsim 0.11.1", "tar", "tempfile", "text-size", @@ -2297,23 +2332,25 @@ dependencies = [ "twox-hash", "typed-arena", "uuid", + "walkdir", "which 4.4.2", "winapi", "winres", "zeromq", + "zip 2.2.0", "zstd 0.12.4", ] [[package]] name = "deno_ast" -version = "0.40.0" +version = "0.41.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d08372522975cce97fe0efbe42fea508c76eea4421619de6d63baae32792f7d" +checksum = "2a8207814a257d99164dbf780a73b9dee17af4db983f4b23ffbf20c7340d52f5" dependencies = [ "anyhow", "base64 0.21.7", "deno_media_type", - "deno_terminal", + "deno_terminal 0.1.1", "dprint-swc-ext", "once_cell", "percent-encoding", @@ -2350,8 +2387,8 @@ dependencies = [ [[package]] name = "deno_broadcast_channel" -version = "0.155.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.160.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "async-trait", "deno_core", @@ -2361,8 +2398,8 @@ dependencies = [ [[package]] name = "deno_cache" -version = "0.93.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.98.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "async-trait", "deno_core", @@ -2374,12 +2411,12 @@ dependencies = [ [[package]] name = "deno_cache_dir" -version = "0.10.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4036ac8ce97244e2a66df7b97412592acaf14671900460d28415703ad790cd70" +checksum = "b9fa4989e4c6b0409438e2a68a91e4e02858b0d8ba6e5bc6860af6b0d0f385e8" dependencies = [ "deno_media_type", - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "once_cell", "parking_lot 0.12.3", @@ -2392,8 +2429,8 @@ dependencies = [ [[package]] name = "deno_canvas" -version = "0.30.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.35.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", "deno_webgpu", @@ -2403,16 +2440,17 @@ dependencies = [ [[package]] name = "deno_config" -version = "0.22.2" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83df0c14d89f4e6e7ff91bfea0b4d5a0a33b4385c517ff4d8b4236d9834561e3" +checksum = "9657dbcc5210407fd9a1b1571310f2fe25c6dd6be2195c964d19f43d70045a95" dependencies = [ "anyhow", + "deno_package_json", "deno_semver", "glob", "ignore", "import_map", - "indexmap 2.2.6", + "indexmap 2.4.0", "jsonc-parser", "log", "percent-encoding", @@ -2424,17 +2462,17 @@ dependencies = [ [[package]] name = "deno_console" -version = "0.161.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.166.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", ] [[package]] name = "deno_core" -version = "0.293.0" +version = "0.306.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca4618658ef613af8978a4bada32231c6c31aeeb9a02b6c58a5df17168a082be" +checksum = "ff7e5ec71a92ab026b997ac1315bdfb3eeac6cf89dd20f816c9c02baebccd066" dependencies = [ "anyhow", "bincode", @@ -2449,6 +2487,7 @@ dependencies = [ "libc", "memoffset 0.9.1", "parking_lot 0.12.3", + "percent-encoding", "pin-project", "serde 1.0.204", "serde_json", @@ -2469,8 +2508,8 @@ checksum = "a13951ea98c0a4c372f162d669193b4c9d991512de9f2381dd161027f34b26b1" [[package]] name = "deno_cron" -version = "0.41.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.46.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "anyhow", "async-trait", @@ -2482,8 +2521,8 @@ dependencies = [ [[package]] name = "deno_crypto" -version = "0.175.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.180.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "aes", "aes-gcm", @@ -2516,9 +2555,9 @@ dependencies = [ [[package]] name = "deno_doc" -version = "0.142.0" +version = "0.146.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16293d4ab42fdb4b499bf0bdc30def02048525c59cf268f65a66c4ab1d4520dc" +checksum = "48063b68a1646ef64811171b683eb2993e08260b33b2bd987649679945099370" dependencies = [ "ammonia", "anyhow", @@ -2530,7 +2569,8 @@ dependencies = [ "handlebars", "html-escape", "import_map", - "indexmap 2.2.6", + "indexmap 2.4.0", + "itoa", "lazy_static 1.5.0", "regex", "serde 1.0.204", @@ -2541,9 +2581,9 @@ dependencies = [ [[package]] name = "deno_emit" -version = "0.43.1" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c60394020be62d8c0d7fa0808ece5d9607f822f4bd27453d248d528d11ae762" +checksum = "43a22b37181789a1b04ef823c168a194e821f8f3145d9d9d6b4da4207eba807d" dependencies = [ "anyhow", "base64 0.21.7", @@ -2558,27 +2598,40 @@ dependencies = [ [[package]] name = "deno_fetch" -version = "0.185.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.190.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ + "base64 0.21.7", "bytes", "data-url", "deno_core", "deno_permissions", "deno_tls", "dyn-clone", + "error_reporter", "http 1.1.0", - "reqwest 0.12.4", + "http-body-util", + "hyper 1.4.1", + "hyper-rustls", + "hyper-util", + "ipnet", + "percent-encoding", + "rustls-webpki 0.102.6", "serde 1.0.204", "serde_json", "tokio", + "tokio-rustls 0.26.0", + "tokio-socks", "tokio-util 0.7.11", + "tower", + "tower-http", + "tower-service", ] [[package]] name = "deno_ffi" -version = "0.148.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.153.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", "deno_permissions", @@ -2595,12 +2648,11 @@ dependencies = [ [[package]] name = "deno_fs" -version = "0.71.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.76.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "async-trait", "base32", - "deno_config", "deno_core", "deno_io", "deno_permissions", @@ -2612,13 +2664,14 @@ dependencies = [ "rayon", "serde 1.0.204", "winapi", + "windows-sys 0.52.0", ] [[package]] name = "deno_graph" -version = "0.80.1" +version = "0.81.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a71a3f1575d0309ac18ca2e7af88d64c15acd2c55d06fef0fbdfd7c69cecb09d" +checksum = "450d75c29d99fd7325dd19a1ed7c3afb18ec04d1f4a4762350a29cbe041647c3" dependencies = [ "anyhow", "async-trait", @@ -2629,7 +2682,7 @@ dependencies = [ "encoding_rs", "futures", "import_map", - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "monch", "once_cell", @@ -2645,8 +2698,8 @@ dependencies = [ [[package]] name = "deno_http" -version = "0.159.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.164.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "async-compression", "async-trait", @@ -2662,7 +2715,7 @@ dependencies = [ "http 1.1.0", "httparse", "hyper 0.14.30", - "hyper 1.4.0", + "hyper 1.4.1", "hyper-util", "itertools 0.10.5", "memmem", @@ -2682,26 +2735,30 @@ dependencies = [ [[package]] name = "deno_io" -version = "0.71.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.76.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "async-trait", "deno_core", "filetime", "fs3", + "libc", "log", "once_cell", "os_pipe", "parking_lot 0.12.3", + "pin-project", "rand 0.8.5", "tokio", + "uuid", "winapi", + "windows-sys 0.52.0", ] [[package]] name = "deno_kv" -version = "0.69.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.74.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "anyhow", "async-trait", @@ -2718,6 +2775,7 @@ dependencies = [ "denokv_sqlite", "faster-hex", "http 1.1.0", + "http-body-util", "log", "num-bigint", "prost", @@ -2730,9 +2788,9 @@ dependencies = [ [[package]] name = "deno_lint" -version = "0.60.1" +version = "0.63.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "598de34cdfb2a8ed335d8f2e33a75249445a9f81c8092a069fc562c2d5cdb9b6" +checksum = "e0e6cc8fcb4819dd5e12d640d6fc455217c66bda00e30fd6d46d2844e3e1bdcf" dependencies = [ "anyhow", "deno_ast", @@ -2740,6 +2798,7 @@ dependencies = [ "if_chain", "log", "once_cell", + "phf 0.11.2", "regex", "serde 1.0.204", "serde_json", @@ -2747,9 +2806,9 @@ dependencies = [ [[package]] name = "deno_lockfile" -version = "0.20.0" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23120f905aec2deed858820113e089551025b74e261c5c404812cd8e61421379" +checksum = "04beb67705d894d688e818870a701829223f6f485ef3ce0b8b2a7adac98d9583" dependencies = [ "serde 1.0.204", "serde_json", @@ -2769,8 +2828,8 @@ dependencies = [ [[package]] name = "deno_napi" -version = "0.91.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.97.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", "deno_permissions", @@ -2792,8 +2851,8 @@ dependencies = [ [[package]] name = "deno_net" -version = "0.153.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.158.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", "deno_permissions", @@ -2809,30 +2868,34 @@ dependencies = [ [[package]] name = "deno_node" -version = "0.98.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.103.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "aead-gcm-stream", "aes", "async-trait", + "base64 0.21.7", "blake2", "brotli", "bytes", "cbc", "const-oid", "data-encoding", - "deno_config", "deno_core", "deno_fetch", "deno_fs", "deno_io", "deno_media_type", "deno_net", + "deno_package_json", "deno_permissions", "deno_whoami", + "der", "digest 0.10.7", "dsa", "ecb", + "ecdsa", + "ed25519-dalek", "elliptic-curve", "errno 0.2.8", "faster-hex", @@ -2840,8 +2903,11 @@ dependencies = [ "hkdf", "home", "http 1.1.0", + "http-body-util", + "hyper 1.4.1", + "hyper-util", "idna 0.3.0", - "indexmap 2.2.6", + "indexmap 2.4.0", "ipnetwork", "k256", "lazy-regex", @@ -2849,6 +2915,8 @@ dependencies = [ "libz-sys", "md-5", "md4", + "memchr", + "node_resolver", "num-bigint", "num-bigint-dig", "num-integer", @@ -2860,9 +2928,9 @@ dependencies = [ "path-clean", "pbkdf2 0.12.2", "pin-project-lite", + "pkcs8", "rand 0.8.5", "regex", - "reqwest 0.12.4", "ring 0.17.8", "ripemd", "rsa", @@ -2876,20 +2944,22 @@ dependencies = [ "simd-json", "sm3", "spki", + "stable_deref_trait", "thiserror", "tokio", "url", "winapi", - "windows-sys 0.48.0", + "windows-sys 0.52.0", "x25519-dalek", "x509-parser", + "yoke", ] [[package]] name = "deno_npm" -version = "0.21.4" +version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9812c781ff6b2e0e45c32ccba9983bce84ecccf6f6a7006b750f8c5c9ac15e30" +checksum = "96d72068f4292455d48ac3b90c644ebf3150fb78c26a480cfb235a9642afe95c" dependencies = [ "anyhow", "async-trait", @@ -2906,9 +2976,9 @@ dependencies = [ [[package]] name = "deno_ops" -version = "0.169.0" +version = "0.182.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2f2d01d8999f283f6c94cfcabe206a599a1471969e8974fc19eb523d8a7b91f" +checksum = "623fee81066617b7a706923bc6364cd4181d35e6438e69d30dc8dd9ec94936f7" dependencies = [ "proc-macro-rules", "proc-macro2", @@ -2919,13 +2989,27 @@ dependencies = [ "thiserror", ] +[[package]] +name = "deno_package_json" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38cf6ea5cc98ea7ad58b0e84593773bea03fc0431071a296017bed4151e3dc1d" +dependencies = [ + "deno_semver", + "indexmap 2.4.0", + "serde 1.0.204", + "serde_json", + "thiserror", + "url", +] + [[package]] name = "deno_permissions" -version = "0.21.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.26.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", - "deno_terminal", + "deno_terminal 0.2.0", "fqdn", "libc", "log", @@ -2937,8 +3021,8 @@ dependencies = [ [[package]] name = "deno_runtime" -version = "0.169.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.175.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_ast", "deno_broadcast_channel", @@ -2958,7 +3042,7 @@ dependencies = [ "deno_net", "deno_node", "deno_permissions", - "deno_terminal", + "deno_terminal 0.2.0", "deno_tls", "deno_url", "deno_web", @@ -2973,13 +3057,14 @@ dependencies = [ "http 1.1.0", "http-body-util", "hyper 0.14.30", - "hyper 1.4.0", + "hyper 1.4.1", "hyper-util", "libc", "log", "netif", "nix 0.26.2", - "notify 5.0.0", + "node_resolver", + "notify", "ntapi", "once_cell", "percent-encoding", @@ -2994,14 +3079,14 @@ dependencies = [ "uuid", "which 4.4.2", "winapi", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "deno_semver" -version = "0.5.6" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "389b5a8c2dd48cc1aad25396c92d7461ddb0fcfae1faf8e00205837c53e34d3e" +checksum = "56feaf035e29320d11adf89eafa14f5447d3089deb1ce7de61ba7969195f5ff1" dependencies = [ "monch", "once_cell", @@ -3037,17 +3122,27 @@ dependencies = [ "termcolor", ] +[[package]] +name = "deno_terminal" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daef12499e89ee99e51ad6000a91f600d3937fb028ad4918af76810c5bc9e0d5" +dependencies = [ + "once_cell", + "termcolor", +] + [[package]] name = "deno_tls" -version = "0.148.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.153.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", "deno_native_certs", - "rustls 0.22.4", + "rustls 0.23.12", "rustls-pemfile 2.1.2", "rustls-tokio-stream", - "rustls-webpki 0.102.5", + "rustls-webpki 0.102.6", "serde 1.0.204", "tokio", "webpki-roots 0.26.3", @@ -3055,9 +3150,9 @@ dependencies = [ [[package]] name = "deno_unsync" -version = "0.3.10" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3c8b95582c2023dbb66fccc37421b374026f5915fa507d437cb566904db9a3a" +checksum = "2f36b4ef61a04ce201b925a5dffa90f88437d37fee4836c758470dd15ba7f05e" dependencies = [ "parking_lot 0.12.3", "tokio", @@ -3065,8 +3160,8 @@ dependencies = [ [[package]] name = "deno_url" -version = "0.161.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.166.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", "urlpattern", @@ -3074,8 +3169,8 @@ dependencies = [ [[package]] name = "deno_web" -version = "0.192.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.197.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "async-trait", "base64-simd 0.8.0", @@ -3092,8 +3187,8 @@ dependencies = [ [[package]] name = "deno_webgpu" -version = "0.128.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.133.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", "raw-window-handle", @@ -3105,16 +3200,16 @@ dependencies = [ [[package]] name = "deno_webidl" -version = "0.161.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.166.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", ] [[package]] name = "deno_websocket" -version = "0.166.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.171.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "bytes", "deno_core", @@ -3125,7 +3220,7 @@ dependencies = [ "h2 0.4.5", "http 1.1.0", "http-body-util", - "hyper 1.4.0", + "hyper 1.4.1", "hyper-util", "once_cell", "rustls-tokio-stream", @@ -3135,8 +3230,8 @@ dependencies = [ [[package]] name = "deno_webstorage" -version = "0.156.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.161.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "deno_core", "deno_web", @@ -3226,6 +3321,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" dependencies = [ "const-oid", + "der_derive", "pem-rfc7468", "zeroize", ] @@ -3244,6 +3340,17 @@ dependencies = [ "rusticata-macros", ] +[[package]] +name = "der_derive" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8034092389675178f570469e6c3b0465d3d30b4505c294a6550db47f3c17ad18" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.71", +] + [[package]] name = "deranged" version = "0.3.11" @@ -3265,13 +3372,33 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "derive_arbitrary" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.71", +] + [[package]] name = "derive_builder" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d67778784b508018359cbc8696edb3db78160bab2c2a28ba7f56ef6932997f8" dependencies = [ - "derive_builder_macro", + "derive_builder_macro 0.12.0", +] + +[[package]] +name = "derive_builder" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0350b5cb0331628a5916d6c5c0b72e97393b8b6b03b47a9284f4e7f5a405ffd7" +dependencies = [ + "derive_builder_macro 0.20.0", ] [[package]] @@ -3286,16 +3413,38 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "derive_builder_core" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d48cda787f839151732d396ac69e3473923d54312c070ee21e9effcaa8ca0b1d" +dependencies = [ + "darling 0.20.10", + "proc-macro2", + "quote", + "syn 2.0.71", +] + [[package]] name = "derive_builder_macro" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebcda35c7a396850a55ffeac740804b40ffec779b98fffbb1738f4033f0ee79e" dependencies = [ - "derive_builder_core", + "derive_builder_core 0.12.0", "syn 1.0.109", ] +[[package]] +name = "derive_builder_macro" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "206868b8242f27cecce124c19fd88157fbd0dd334df2587f36417bafbc85097b" +dependencies = [ + "derive_builder_core 0.20.0", + "syn 2.0.71", +] + [[package]] name = "derive_more" version = "0.99.17" @@ -3544,7 +3693,7 @@ dependencies = [ "anyhow", "bumpalo", "hashbrown 0.14.5", - "indexmap 2.2.6", + "indexmap 2.4.0", "rustc-hash", "serde 1.0.204", "unicode-width", @@ -3589,9 +3738,9 @@ dependencies = [ [[package]] name = "dprint-plugin-markdown" -version = "0.17.1" +version = "0.17.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da8df52eef864c2577ad3fb28c596935e2c0161eb09f6d5e239b10fecda2ec1c" +checksum = "6ef42762177b1a74b52b98fe946cb88fa4a01f149b56208de72b43d2be0a54c6" dependencies = [ "anyhow", "dprint-core", @@ -3604,9 +3753,9 @@ dependencies = [ [[package]] name = "dprint-plugin-typescript" -version = "0.91.3" +version = "0.91.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fecac09050c0bc7d19a0e47d3ce3cfc2e21780fb30b5081a5042fd49c1b020a2" +checksum = "390da1b0ba3761f824518a3e4f06ca273837ba16fac73560efd201342b980561" dependencies = [ "anyhow", "deno_ast", @@ -3619,9 +3768,9 @@ dependencies = [ [[package]] name = "dprint-swc-ext" -version = "0.17.1" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b909f9f9b22a6265839887544dce97b0b8e2b2635abf622f45613deb3de63e0" +checksum = "f385cdad3065151fae39262ad43003099234689856a0dc476e8804c5ba8f475b" dependencies = [ "allocator-api2", "bumpalo", @@ -3723,6 +3872,7 @@ checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ "curve25519-dalek", "ed25519", + "rand_core 0.6.4", "serde 1.0.204", "sha2 0.10.8", "signature", @@ -3730,6 +3880,19 @@ dependencies = [ "zeroize", ] +[[package]] +name = "editpe" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48cede2bb1b07dd598d269f973792c43e0cd92686d3b452bd6e01d7a8eb01211" +dependencies = [ + "debug-ignore", + "indexmap 2.4.0", + "log", + "thiserror", + "zerocopy", +] + [[package]] name = "either" version = "1.13.0" @@ -4038,6 +4201,12 @@ version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a0474425d51df81997e2f90a21591180b38eccf27292d755f3e30750225c175b" +[[package]] +name = "error_reporter" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31ae425815400e5ed474178a7a22e275a9687086a12ca63ec793ff292d8fdae8" + [[package]] name = "escape8259" version = "0.5.3" @@ -4046,11 +4215,12 @@ checksum = "5692dd7b5a1978a5aeb0ce83b7655c58ca8efdcb79d21036ea249da95afec2c6" [[package]] name = "eszip" -version = "0.72.2" +version = "0.75.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "671e5931ba2ba3415b8c410a70b767ca80e1b5b721b428aca2f234f9776cf848" +checksum = "67ab3253e0e6a99b79ffc6d7a6243ad541f54543768cecd2198b64476a5971f8" dependencies = [ "anyhow", + "async-trait", "base64 0.21.7", "deno_ast", "deno_graph", @@ -4058,6 +4228,7 @@ dependencies = [ "deno_semver", "futures", "hashlink", + "indexmap 2.4.0", "serde 1.0.204", "serde_json", "sha2 0.10.8", @@ -4115,7 +4286,7 @@ dependencies = [ "proc-macro2", "quote", "syn 1.0.109", - "synstructure", + "synstructure 0.12.6", ] [[package]] @@ -4172,13 +4343,14 @@ checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "fastwebsockets" -version = "0.6.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f63dd7b57f9b33b1741fa631c9522eb35d43e96dcca4a6a91d5e4ca7c93acdc1" +checksum = "26da0c7b5cef45c521a6f9cdfffdfeb6c9f5804fbac332deb5ae254634c7a6be" dependencies = [ "base64 0.21.7", + "bytes", "http-body-util", - "hyper 1.4.0", + "hyper 1.4.1", "hyper-util", "pin-project", "rand 0.8.5", @@ -4720,7 +4892,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" dependencies = [ "fallible-iterator 0.3.0", - "indexmap 2.2.6", + "indexmap 2.4.0", "stable_deref_trait", ] @@ -4978,7 +5150,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.2.6", + "indexmap 2.4.0", "slab", "tokio", "tokio-util 0.7.11", @@ -4997,7 +5169,7 @@ dependencies = [ "futures-core", "futures-sink", "http 1.1.0", - "indexmap 2.2.6", + "indexmap 2.4.0", "slab", "tokio", "tokio-util 0.7.11", @@ -5306,7 +5478,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.4.10", + "socket2 0.5.7", "tokio", "tower-service", "tracing", @@ -5315,9 +5487,9 @@ dependencies = [ [[package]] name = "hyper" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4fe55fb7a772d59a5ff1dfbff4fe0258d19b89fec4b233e75d35d5d2316badc" +checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" dependencies = [ "bytes", "futures-channel", @@ -5336,18 +5508,18 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.26.0" +version = "0.27.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0bea761b46ae2b24eb4aef630d8d1c398157b6fc29e6350ecf090a0b70c952c" +checksum = "5ee4be2c948921a1a5320b629c4193916ed787a7f7f293fd3f7f5a6c9de74155" dependencies = [ "futures-util", "http 1.1.0", - "hyper 1.4.0", + "hyper 1.4.1", "hyper-util", - "rustls 0.22.4", + "rustls 0.23.12", "rustls-pki-types", "tokio", - "tokio-rustls 0.25.0", + "tokio-rustls 0.26.0", "tower-service", ] @@ -5384,7 +5556,7 @@ checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" dependencies = [ "bytes", "http-body-util", - "hyper 1.4.0", + "hyper 1.4.1", "hyper-util", "native-tls", "tokio", @@ -5394,16 +5566,16 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab92f4f49ee4fb4f997c784b7a2e0fa70050211e0b6a287f898c3c9785ca956" +checksum = "cde7055719c54e36e95e8719f95883f22072a48ede39db7fc17a4e1d5281e9b9" dependencies = [ "bytes", "futures-channel", "futures-util", "http 1.1.0", "http-body 1.0.1", - "hyper 1.4.0", + "hyper 1.4.1", "pin-project-lite", "socket2 0.5.7", "tokio", @@ -5486,16 +5658,17 @@ checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" [[package]] name = "ignore" -version = "0.4.22" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1" +checksum = "dbe7873dab538a9a44ad79ede1faf5f30d49f9a5c883ddbab48bce81b64b7492" dependencies = [ - "crossbeam-deque", "globset", + "lazy_static 1.5.0", "log", "memchr", - "regex-automata 0.4.7", + "regex", "same-file", + "thread_local", "walkdir", "winapi-util", ] @@ -5519,7 +5692,7 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "373b8288ad259df0d1314e3e8b2fff0e5e63f22e01bc54ecd2c3c7ad77b9200c" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "percent-encoding", "serde 1.0.204", @@ -5565,9 +5738,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.6" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "93ead53efc7ea8ed3cfb0c79fc8023fbb782a5432b52830b6518941cebe6505c" dependencies = [ "equivalent", "hashbrown 0.14.5", @@ -5758,15 +5931,6 @@ dependencies = [ "either", ] -[[package]] -name = "itertools" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" -dependencies = [ - "either", -] - [[package]] name = "itertools" version = "0.12.1" @@ -5943,7 +6107,7 @@ dependencies = [ [[package]] name = "lade-sdk" version = "0.11.3" -source = "git+https://github.com/zifeo/lade?branch=main#8ae18b62b89b3e333f5b4c486209c971620e2aae" +source = "git+https://github.com/zifeo/lade?branch=fix/loosen-deps#10740e80518b2f6a2041300e86f6ed205a41378d" dependencies = [ "access-json", "anyhow", @@ -6186,6 +6350,19 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "libsui" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d0f34a58599483cd44a31ff3622dbcca0c50679af60f98b705069dc729e70cf" +dependencies = [ + "editpe", + "libc", + "sha2 0.10.8", + "windows-sys 0.48.0", + "zerocopy", +] + [[package]] name = "libz-sys" version = "1.1.18" @@ -6332,6 +6509,19 @@ dependencies = [ "libc", ] +[[package]] +name = "malva" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e6e9f16e424a6672f6726daf965333952dece79ef3d17aac712b92b3b72d0a8" +dependencies = [ + "aho-corasick 1.1.3", + "itertools 0.13.0", + "memchr", + "raffia", + "tiny_pretty", +] + [[package]] name = "maplit" version = "1.0.2" @@ -6352,6 +6542,19 @@ dependencies = [ "tendril", ] +[[package]] +name = "markup_fmt" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33edf0c364d53d5518cf663824e7d5d5339c844daa54bb0208bee5202dde88f1" +dependencies = [ + "aho-corasick 1.1.3", + "css_dataset", + "itertools 0.13.0", + "memchr", + "tiny_pretty", +] + [[package]] name = "match_cfg" version = "0.1.0" @@ -6469,7 +6672,7 @@ dependencies = [ [[package]] name = "meta-cli" -version = "0.4.8" +version = "0.4.9-rc1" dependencies = [ "actix", "assert_cmd", @@ -6484,6 +6687,7 @@ dependencies = [ "common", "crossbeam-channel", "ctrlc", + "dashmap", "derive_more", "dialoguer", "directories 5.0.1", @@ -6497,7 +6701,7 @@ dependencies = [ "grep", "ignore", "include_dir", - "indexmap 2.2.6", + "indexmap 2.4.0", "indoc", "itertools 0.13.0", "lade-sdk", @@ -6535,7 +6739,7 @@ dependencies = [ [[package]] name = "metagen" -version = "0.4.8" +version = "0.4.9-rc1" dependencies = [ "color-eyre", "common", @@ -6543,7 +6747,7 @@ dependencies = [ "futures-lite 2.3.0", "garde", "heck 0.5.0", - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "once_cell", "pretty_assertions", @@ -6862,11 +7066,11 @@ dependencies = [ [[package]] name = "mt_deno" -version = "0.4.8" +version = "0.4.9-rc1" dependencies = [ "anyhow", "deno", - "log", + "tracing", ] [[package]] @@ -6957,7 +7161,7 @@ dependencies = [ "bitflags 2.6.0", "codespan-reporting", "hexf-parse", - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "num-traits 0.2.19", "rustc-hash", @@ -6979,8 +7183,8 @@ dependencies = [ [[package]] name = "napi_sym" -version = "0.91.0" -source = "git+https://github.com/metatypedev/deno?branch=v1.45.2-embeddable#691f297537c4a3d9a12ce005c0478b4aee86287c" +version = "0.96.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" dependencies = [ "quote", "serde 1.0.204", @@ -7088,6 +7292,26 @@ dependencies = [ "libc", ] +[[package]] +name = "node_resolver" +version = "0.5.0" +source = "git+https://github.com/metatypedev/deno?branch=v1.46.1-embeddable#dfffb6e46dbed4075fd7b7b3b1528ec22d3bb216" +dependencies = [ + "anyhow", + "async-trait", + "deno_media_type", + "deno_package_json", + "futures", + "lazy-regex", + "once_cell", + "path-clean", + "regex", + "serde_json", + "thiserror", + "tokio", + "url", +] + [[package]] name = "nom" version = "5.1.3" @@ -7118,24 +7342,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "notify" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed2c66da08abae1c024c01d635253e402341b4060a12e99b31c7594063bf490a" -dependencies = [ - "bitflags 1.3.2", - "crossbeam-channel", - "filetime", - "fsevent-sys", - "inotify", - "kqueue", - "libc", - "mio", - "walkdir", - "winapi", -] - [[package]] name = "notify" version = "6.1.1" @@ -7162,7 +7368,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d40b221972a1fc5ef4d858a2f671fb34c75983eb385463dff3780eeff6a9d43" dependencies = [ "log", - "notify 6.1.1", + "notify", ] [[package]] @@ -7344,7 +7550,7 @@ checksum = "d8dd6c0cdf9429bce006e1362bfce61fa1bfd8c898a643ed8d2b471934701d3d" dependencies = [ "crc32fast", "hashbrown 0.14.5", - "indexmap 2.2.6", + "indexmap 2.4.0", "memchr", ] @@ -7900,7 +8106,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset 0.4.2", - "indexmap 2.2.6", + "indexmap 2.4.0", ] [[package]] @@ -8037,6 +8243,21 @@ dependencies = [ "spki", ] +[[package]] +name = "pkcs5" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e847e2c91a18bfa887dd028ec33f2fe6f25db77db3619024764914affe8b69a6" +dependencies = [ + "aes", + "cbc", + "der", + "pbkdf2 0.12.2", + "scrypt", + "sha2 0.10.8", + "spki", +] + [[package]] name = "pkcs8" version = "0.10.2" @@ -8044,6 +8265,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ "der", + "pkcs5", + "rand_core 0.6.4", "spki", ] @@ -8214,6 +8437,17 @@ dependencies = [ "yansi", ] +[[package]] +name = "pretty_yaml" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22ba50511591c8e1d84125f7e2e6d17ccb06865c484b812f5ee3af61f42a66be" +dependencies = [ + "rowan", + "tiny_pretty", + "yaml_parser", +] + [[package]] name = "prettyplease" version = "0.1.25" @@ -8353,11 +8587,10 @@ dependencies = [ [[package]] name = "process-wrap" version = "8.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38ee68ae331824036479c84060534b18254c864fa73366c58d86db3b7b811619" +source = "git+https://github.com/metatypedev/process-wrap?branch=fix/decrement-tokio-version#5c6aecd60aebcb3390375f9c3a695ee479304db3" dependencies = [ "futures", - "indexmap 2.2.6", + "indexmap 2.4.0", "nix 0.28.0", "tokio", "tracing", @@ -8554,9 +8787,9 @@ dependencies = [ [[package]] name = "pulldown-cmark" -version = "0.9.6" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57206b407293d2bcd3af849ce869d52068623f19e1b5ff8e8778e3309439682b" +checksum = "cb4e75767fbc9d92b90e4d0c011f61358cde9513b31ef07ea3631b15ffc3b4fd" dependencies = [ "bitflags 2.6.0", "memchr", @@ -8704,7 +8937,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d1a341ae463320e9f8f34adda49c8a85d81d4e8f34cce4397fb0350481552224" dependencies = [ "chrono", - "indexmap 2.2.6", + "indexmap 2.4.0", "quick-xml 0.31.0", "strip-ansi-escapes", "thiserror", @@ -8760,6 +8993,27 @@ dependencies = [ "nibble_vec", ] +[[package]] +name = "raffia" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c36f58fa7ad2f26bca656054c902becddeac5582df2bb31d4b4d2a148c62cfd5" +dependencies = [ + "raffia_macro", + "smallvec", +] + +[[package]] +name = "raffia_macro" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fdb50eb5bf734fa5a770680a61876a6ec77b99c1e0e52d1f18ad6ebfa85759f" +dependencies = [ + "heck 0.5.0", + "quote", + "syn 2.0.71", +] + [[package]] name = "rand" version = "0.7.3" @@ -8945,9 +9199,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.5" +version = "1.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" +checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" dependencies = [ "aho-corasick 1.1.3", "memchr", @@ -9075,19 +9329,15 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "566cafdd92868e0939d3fb961bd0dc25fcfaaed179291093b3d43e6b3150ea10" dependencies = [ - "async-compression", "base64 0.22.1", "bytes", - "encoding_rs", "futures-channel", "futures-core", "futures-util", - "h2 0.4.5", "http 1.1.0", "http-body 1.0.1", "http-body-util", - "hyper 1.4.0", - "hyper-rustls", + "hyper 1.4.1", "hyper-tls 0.6.0", "hyper-util", "ipnet", @@ -9098,26 +9348,18 @@ dependencies = [ "once_cell", "percent-encoding", "pin-project-lite", - "rustls 0.22.4", "rustls-pemfile 2.1.2", - "rustls-pki-types", "serde 1.0.204", "serde_json", "serde_urlencoded", "sync_wrapper", - "system-configuration", "tokio", "tokio-native-tls", - "tokio-rustls 0.25.0", - "tokio-socks", - "tokio-util 0.7.11", "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", - "wasm-streams", "web-sys", - "webpki-roots 0.26.3", "winreg 0.52.0", ] @@ -9221,6 +9463,18 @@ dependencies = [ "serde_derive", ] +[[package]] +name = "rowan" +version = "0.15.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a542b0253fa46e632d27a1dc5cf7b930de4df8659dc6e720b647fc72147ae3d" +dependencies = [ + "countme", + "hashbrown 0.14.5", + "rustc-hash", + "text-size", +] + [[package]] name = "rsa" version = "0.9.6" @@ -9243,9 +9497,9 @@ dependencies = [ [[package]] name = "runtimelib" -version = "0.11.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81f4969d577fe13ef40c8eb6fad2ccc66c26c800410672c847f5397699240b9d" +checksum = "0c3d817764e3971867351e6103955b17d808f5330e9ef63aaaaab55bf8c664c1" dependencies = [ "anyhow", "base64 0.22.1", @@ -9253,6 +9507,7 @@ dependencies = [ "chrono", "data-encoding", "dirs 5.0.1", + "futures", "glob", "rand 0.8.5", "ring 0.17.8", @@ -9402,14 +9657,15 @@ dependencies = [ [[package]] name = "rustls" -version = "0.22.4" +version = "0.23.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432" +checksum = "c58f8c84392efc0a126acce10fa59ff7b3d2ac06ab451a33f2741989b806b044" dependencies = [ "log", + "once_cell", "ring 0.17.8", "rustls-pki-types", - "rustls-webpki 0.102.5", + "rustls-webpki 0.102.6", "subtle", "zeroize", ] @@ -9466,12 +9722,12 @@ checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" [[package]] name = "rustls-tokio-stream" -version = "0.2.23" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c478c030dfd68498e6c59168d9eec4f8bead33152a5f3095ad4bdbdcea09d466" +checksum = "22557157d7395bc30727745b365d923f1ecc230c4c80b176545f3f4f08c46e33" dependencies = [ "futures", - "rustls 0.22.4", + "rustls 0.23.12", "socket2 0.5.7", "tokio", ] @@ -9488,9 +9744,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.102.5" +version = "0.102.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a6fccd794a42c2c105b513a2f62bc3fd8f3ba57a4593677ceb0bd035164d78" +checksum = "8e6b52d4fda176fd835fdc55a835d4a89b8499cad995885a21149d5ad62f852e" dependencies = [ "ring 0.17.8", "rustls-pki-types", @@ -9761,7 +10017,7 @@ dependencies = [ "tar", "tempfile", "urlencoding", - "zip", + "zip 0.6.6", "zipsign-api", ] @@ -9965,12 +10221,13 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.120" +version = "1.0.127" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5" +checksum = "8043c06d9f82bd7271361ed64f415fe5e12a77fdb52e573e7f06a516dea329ad" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.4.0", "itoa", + "memchr", "ryu", "serde 1.0.204", ] @@ -10009,9 +10266,9 @@ dependencies = [ [[package]] name = "serde_v8" -version = "0.202.0" +version = "0.215.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d179230030f377d5a788e4adc979262d586d7da286462f98b70da7f8b8a9d0b7" +checksum = "41001c84d438ec3ad2d86413993cd72cb00b4d47aad010fc562bfdbb9aeff71d" dependencies = [ "num-bigint", "serde 1.0.204", @@ -10040,7 +10297,7 @@ dependencies = [ "chrono", "hex", "indexmap 1.9.3", - "indexmap 2.2.6", + "indexmap 2.4.0", "serde 1.0.204", "serde_derive", "serde_json", @@ -10078,7 +10335,7 @@ version = "0.9.34+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.4.0", "itoa", "ryu", "serde 1.0.204", @@ -10684,6 +10941,19 @@ version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +[[package]] +name = "swc_allocator" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adc8bd3075d1c6964010333fae9ddcd91ad422a4f8eb8b3206a9b2b6afb4209e" +dependencies = [ + "bumpalo", + "hashbrown 0.14.5", + "ptr_meta", + "rustc-hash", + "triomphe", +] + [[package]] name = "swc_atoms" version = "0.6.7" @@ -10698,13 +10968,13 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.230.2" +version = "0.233.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c506ddddebb846f8e68780464e2fe1fdc0add4bc265659f713a71015ffcdb13" +checksum = "e9e0a88398e80a77bd6e1b523698a0f1ab3b12fbddd03c8a69a73963c02d3bbc" dependencies = [ "anyhow", "crc", - "indexmap 2.2.6", + "indexmap 2.4.0", "is-macro", "once_cell", "parking_lot 0.12.3", @@ -10742,9 +11012,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.34.4" +version = "0.36.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9087befec6b63911f9d2f239e4f91c9b21589c169b86ed2d616944d23cf4a243" +checksum = "1802b1642488aec58597dc55ea88992c165660d6e44e9838d4d93f7b78ab95f3" dependencies = [ "ast_node", "better_scoped_tls", @@ -10758,6 +11028,7 @@ dependencies = [ "serde 1.0.204", "siphasher", "sourcemap", + "swc_allocator", "swc_atoms", "swc_eq_ignore_macros", "swc_visit", @@ -10773,7 +11044,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "84b67e115ab136fe0eb03558bb0508ca7782eeb446a96d165508c48617e3fd94" dependencies = [ "anyhow", - "indexmap 2.2.6", + "indexmap 2.4.0", "serde 1.0.204", "serde_json", "swc_cached", @@ -10794,9 +11065,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.115.1" +version = "0.117.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7be1306930c235435a892104c00c2b5e16231043c085d5a10bd3e7537b15659b" +checksum = "a5da2f0310e8cd84b8c803095e75b2cbca872c71fc7f7404d4c9c8117d894960" dependencies = [ "bitflags 2.6.0", "is-macro", @@ -10812,16 +11083,16 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.151.1" +version = "0.154.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5141a8cb4eb69e090e6aea5d49061b46919be5210f3d084f9d9ad63d30f5cff" +checksum = "7badcda2c45056495ed94b957884099cb000470ae7901ba68db2e7fd48414a4b" dependencies = [ "memchr", "num-bigint", "once_cell", - "rustc-hash", "serde 1.0.204", "sourcemap", + "swc_allocator", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -10831,9 +11102,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen_macros" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "090e409af49c8d1a3c13b3aab1ed09dd4eda982207eb3e63c2ad342f072b49c8" +checksum = "859fabde36db38634f3fad548dd5e3410c1aebba1b67a3c63e67018fa57a0bca" dependencies = [ "proc-macro2", "quote", @@ -10843,9 +11114,9 @@ dependencies = [ [[package]] name = "swc_ecma_loader" -version = "0.46.1" +version = "0.48.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a9febebf047d1286e7b723fa2758f3229da2c103834f3eaee69833f46692612" +checksum = "a201c65ccbaa0c80fbcfd5c90dcc0bfc7ae62ac596f2233651ac715caf5d2c12" dependencies = [ "anyhow", "pathdiff", @@ -10857,9 +11128,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.146.12" +version = "0.148.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a4e0c2e85f12c63b85c805e923079b04d1fb3e25edd069d638eed5f2098de74" +checksum = "a8204235f635274dba4adc30c47ac896fd126ddfc53b27210676722423cbb2e7" dependencies = [ "either", "new_debug_unreachable", @@ -10879,13 +11150,13 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.140.3" +version = "0.143.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d37dc505c92af56d0f77cf6f31a6ccd37ac40cad1e01ff77277e0b1c70e8f8ff" +checksum = "6df81c1cbb920d9c47abe6fb105363b0f78df2c8f6b0910c4fdd2ad7cbdfb23d" dependencies = [ "better_scoped_tls", "bitflags 2.6.0", - "indexmap 2.2.6", + "indexmap 2.4.0", "once_cell", "phf 0.11.2", "rustc-hash", @@ -10902,9 +11173,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "0.129.0" +version = "0.132.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3eab5f8179e5b0aedf385eacc2c033691c6d211a7babd1bbbff12cf794a824e" +checksum = "53291bcdfca4bd4c2546c3170d7f0ea1d4f22f6fce2a531265ead010a9a2ebdf" dependencies = [ "swc_atoms", "swc_common", @@ -10928,12 +11199,12 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.201.2" +version = "0.204.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "724a8306e98c1b1f9640fc44c1acc0c971f6daa17651919e06b64f905d4a4564" +checksum = "3d7f9a903d6774d3f9005775badc25817296791ffed560f1b7e38aab62ca37ff" dependencies = [ "dashmap", - "indexmap 2.2.6", + "indexmap 2.4.0", "once_cell", "petgraph 0.6.5", "rustc-hash", @@ -10952,9 +11223,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "0.174.3" +version = "0.177.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6df8aa6752cc2fcf3d78ac67827542fb666e52283f2b26802aa058906bb750d3" +checksum = "a2d84d062b05ae89982a76ff47881a5e15bbd02e9b3c68dc14a3f5eacf48abca" dependencies = [ "either", "rustc-hash", @@ -10972,17 +11243,18 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.186.2" +version = "0.189.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "446da32cac8299973aaf1d37496562bfd0c1e4f3c3ab5d0af6f07f42e8184102" +checksum = "d411add563dd86d50b3db6e74e38def06587fa2fd370b430f71226688bfa6ded" dependencies = [ "base64 0.21.7", "dashmap", - "indexmap 2.2.6", + "indexmap 2.4.0", "once_cell", "serde 1.0.204", "sha1", "string_enum", + "swc_allocator", "swc_atoms", "swc_common", "swc_config", @@ -10996,9 +11268,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "0.191.2" +version = "0.194.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1ce8af2865449e714ae56dacb6b54b3f6dc4cc25074da4e39b878bd93c5e39c" +checksum = "4f73c4ae3eb15adc5865dc729c4e111040529cec5a349d56ed0b4a0de1a86242" dependencies = [ "ryu-js", "serde 1.0.204", @@ -11013,11 +11285,11 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.130.3" +version = "0.133.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13e62b199454a576c5fdbd7e1bef8ab88a395427456d8a713d994b7d469833aa" +checksum = "b6148af60d25da893aef037621e4869e9b580eb280e12f5a8d4f87fa5e4cd5da" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.4.0", "num_cpus", "once_cell", "rustc-hash", @@ -11032,10 +11304,11 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "0.101.0" +version = "0.103.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce0d997f0c9b4e181225f603d161f6757c2a97022258170982cfe005ec69ec92" +checksum = "ed8026e4d9abcb75d511bf7623d49e8e135f02f4f9a6bb7c115df8239cfe3d4f" dependencies = [ + "new_debug_unreachable", "num-bigint", "swc_atoms", "swc_common", @@ -11046,9 +11319,9 @@ dependencies = [ [[package]] name = "swc_eq_ignore_macros" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "695a1d8b461033d32429b5befbf0ad4d7a2c4d6ba9cd5ba4e0645c615839e8e4" +checksum = "63db0adcff29d220c3d151c5b25c0eabe7e32dd936212b84cdaa1392e3130497" dependencies = [ "proc-macro2", "quote", @@ -11057,11 +11330,11 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "0.22.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c00cf5c1687e9858fb9de1ffa90a3e21369095406e97ace870a389320d105b0a" +checksum = "f3f854cf8efc290aa927d31dab98b42011ff2341fecb2b27fdc817ef7b30ef3b" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.4.0", "petgraph 0.6.5", "rustc-hash", "swc_common", @@ -11069,9 +11342,9 @@ dependencies = [ [[package]] name = "swc_graph_analyzer" -version = "0.23.0" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a928a2ad8897fb78c38898ba342960863e9937b7a3de2d010d3204d85ce1b72a" +checksum = "d97d4b3b186f842f6def323db73f1bc90d7086bd5fa1fb4cca527e20c70f856e" dependencies = [ "auto_impl", "petgraph 0.6.5", @@ -11082,9 +11355,9 @@ dependencies = [ [[package]] name = "swc_macros_common" -version = "0.3.11" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91745f3561057493d2da768437c427c0e979dff7396507ae02f16c981c4a8466" +checksum = "f486687bfb7b5c560868f69ed2d458b880cebc9babebcb67e49f31b55c5bf847" dependencies = [ "proc-macro2", "quote", @@ -11093,19 +11366,18 @@ dependencies = [ [[package]] name = "swc_visit" -version = "0.5.14" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "043d11fe683dcb934583ead49405c0896a5af5face522e4682c16971ef7871b9" +checksum = "2e194d14f94121fd08b823d3379eedb3ce455785d9e0c3d2742c59377e283207" dependencies = [ "either", - "swc_visit_macros", ] [[package]] name = "swc_visit_macros" -version = "0.5.12" +version = "0.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ae9ef18ff8daffa999f729db056d2821cd2f790f3a11e46422d19f46bb193e7" +checksum = "92807d840959f39c60ce8a774a3f83e8193c658068e6d270dbe0a05e40e90b41" dependencies = [ "Inflector", "proc-macro2", @@ -11166,6 +11438,17 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.71", +] + [[package]] name = "syntect" version = "5.2.0" @@ -11296,7 +11579,7 @@ dependencies = [ "anyhow", "async-trait", "backoff", - "derive_builder", + "derive_builder 0.12.0", "derive_more", "futures", "futures-retry", @@ -11370,6 +11653,16 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "terminal_size" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" +dependencies = [ + "rustix", + "windows-sys 0.48.0", +] + [[package]] name = "termtree" version = "0.4.1" @@ -11515,6 +11808,15 @@ dependencies = [ "crunchy", ] +[[package]] +name = "tiny_pretty" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b3f46f0549180b9c6f7f76270903f1a06867c43a03998b99dce81aa1760c3b2" +dependencies = [ + "unicode-width", +] + [[package]] name = "tinyvec" version = "1.8.0" @@ -11532,9 +11834,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.38.1" +version = "1.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb2caba9f80616f438e09748d5acda951967e1ea58508ef53d9c6402485a46df" +checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" dependencies = [ "backtrace", "bytes", @@ -11561,9 +11863,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.3.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" +checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", @@ -11638,11 +11940,11 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" +checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ - "rustls 0.22.4", + "rustls 0.23.12", "rustls-pki-types", "tokio", ] @@ -11738,7 +12040,7 @@ version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.4.0", "toml_datetime", "winnow 0.5.40", ] @@ -11749,7 +12051,7 @@ version = "0.22.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "278f3d518e152219c994ce877758516bca5e118eaed6996192a774fb9fbf0788" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.4.0", "serde 1.0.204", "serde_spanned", "toml_datetime", @@ -11824,6 +12126,26 @@ dependencies = [ "tracing", ] +[[package]] +name = "tower-http" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" +dependencies = [ + "async-compression", + "bitflags 2.6.0", + "bytes", + "futures-core", + "http 1.1.0", + "http-body 1.0.1", + "http-body-util", + "pin-project-lite", + "tokio", + "tokio-util 0.7.11", + "tower-layer", + "tower-service", +] + [[package]] name = "tower-layer" version = "0.3.2" @@ -12115,9 +12437,9 @@ dependencies = [ [[package]] name = "typed-arena" -version = "2.0.1" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0685c84d5d54d1c26f7d3eb96cd41550adb97baed141a761cf335d3d33bcd0ae" +checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a" [[package]] name = "typed-builder" @@ -12132,7 +12454,7 @@ dependencies = [ [[package]] name = "typegate" -version = "0.4.8" +version = "0.4.9-rc1" dependencies = [ "colored", "env_logger 0.11.0", @@ -12145,7 +12467,7 @@ dependencies = [ [[package]] name = "typegate_engine" -version = "0.4.8" +version = "0.4.9-rc1" dependencies = [ "anyhow", "base64 0.22.1", @@ -12185,7 +12507,7 @@ dependencies = [ [[package]] name = "typegraph_core" -version = "0.4.8" +version = "0.4.9-rc1" dependencies = [ "anyhow", "color-eyre", @@ -12193,7 +12515,7 @@ dependencies = [ "enum_dispatch", "glob", "graphql-parser 0.4.0", - "indexmap 2.2.6", + "indexmap 2.4.0", "indoc", "insta", "metagen", @@ -12374,9 +12696,9 @@ checksum = "b1b6def86329695390197b82c1e244a54a131ceb66c996f2088a3876e2ae083f" [[package]] name = "unicode-id-start" -version = "1.0.4" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02aebfa694eccbbbffdd92922c7de136b9fe764396d2f10e21bce1681477cfc1" +checksum = "bc3882f69607a2ac8cc4de3ee7993d8f68bb06f2974271195065b3bd07f2edea" [[package]] name = "unicode-ident" @@ -12505,11 +12827,10 @@ checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" [[package]] name = "urlpattern" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9bd5ff03aea02fa45b13a7980151fe45009af1980ba69f651ec367121a31609" +checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d" dependencies = [ - "derive_more", "regex", "serde 1.0.204", "unic-ucd-ident", @@ -12572,9 +12893,9 @@ dependencies = [ [[package]] name = "v8" -version = "0.97.1" +version = "0.104.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb417c2cd20684f18b185085c876d379318893461c17d319948a0a5f221f0b50" +checksum = "834593934c4b3693706bcbd24d4e2accf02a318a62efd2a4e5e33b5452074882" dependencies = [ "bindgen 0.69.4", "bitflags 2.6.0", @@ -12595,7 +12916,7 @@ checksum = "97599c400fc79925922b58303e98fcb8fa88f573379a08ddb652e72cbd2e70f6" dependencies = [ "bitflags 2.6.0", "encoding_rs", - "indexmap 2.2.6", + "indexmap 2.4.0", "num-bigint", "serde 1.0.204", "thiserror", @@ -12682,11 +13003,12 @@ checksum = "317211a0dc0ceedd78fb2ca9a44aed3d7b9b26f81870d485c07122b4350673b7" [[package]] name = "walkdir" -version = "2.5.0" +version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" dependencies = [ "same-file", + "winapi", "winapi-util", ] @@ -12823,7 +13145,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d32029ce424f6d3c2b39b4419fb45a0e2d84fb0751e0c0a32b7ce8bd5d97f46" dependencies = [ "anyhow", - "indexmap 2.2.6", + "indexmap 2.4.0", "serde 1.0.204", "serde_derive", "serde_json", @@ -12832,19 +13154,6 @@ dependencies = [ "wasmparser 0.209.1", ] -[[package]] -name = "wasm-streams" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b65dc4c90b63b118468cf747d8bf3566c1913ef60be765b5730ead9e0a3ba129" -dependencies = [ - "futures-util", - "js-sys", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", -] - [[package]] name = "wasmparser" version = "0.207.0" @@ -12854,7 +13163,7 @@ dependencies = [ "ahash 0.8.11", "bitflags 2.6.0", "hashbrown 0.14.5", - "indexmap 2.2.6", + "indexmap 2.4.0", "semver 1.0.23", ] @@ -12867,7 +13176,7 @@ dependencies = [ "ahash 0.8.11", "bitflags 2.6.0", "hashbrown 0.14.5", - "indexmap 2.2.6", + "indexmap 2.4.0", "semver 1.0.23", ] @@ -12897,7 +13206,7 @@ dependencies = [ "fxprof-processed-profile", "gimli", "hashbrown 0.14.5", - "indexmap 2.2.6", + "indexmap 2.4.0", "ittapi", "libc", "libm", @@ -13021,7 +13330,7 @@ dependencies = [ "cpp_demangle", "cranelift-entity", "gimli", - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "object 0.33.0", "postcard", @@ -13161,7 +13470,7 @@ checksum = "c936a52ce69c28de2aa3b5fb4f2dbbb2966df304f04cccb7aca4ba56d915fda0" dependencies = [ "anyhow", "heck 0.4.1", - "indexmap 2.2.6", + "indexmap 2.4.0", "wit-parser 0.207.0", ] @@ -13243,11 +13552,11 @@ dependencies = [ "cfg_aliases 0.1.1", "codespan-reporting", "document-features", - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "naga", "once_cell", - "parking_lot 0.11.2", + "parking_lot 0.12.3", "profiling", "raw-window-handle", "ron", @@ -13289,7 +13598,7 @@ dependencies = [ "ndk-sys", "objc", "once_cell", - "parking_lot 0.11.2", + "parking_lot 0.12.3", "profiling", "range-alloc", "raw-window-handle", @@ -13770,7 +14079,7 @@ checksum = "514295193d1a2f42e6a948cd7d9fd81e2b8fadc319667dcf19fd7aceaf2113a2" dependencies = [ "anyhow", "heck 0.5.0", - "indexmap 2.2.6", + "indexmap 2.4.0", "wasm-metadata", "wit-bindgen-core", "wit-component", @@ -13798,7 +14107,7 @@ checksum = "25a2bb5b039f9cb03425e1d5a6e54b441ca4ca1b1d4fa6a0924db67a55168f99" dependencies = [ "anyhow", "bitflags 2.6.0", - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "serde 1.0.204", "serde_derive", @@ -13817,7 +14126,7 @@ checksum = "78c83dab33a9618d86cfe3563cc864deffd08c17efc5db31a3b7cd1edeffe6e1" dependencies = [ "anyhow", "id-arena", - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "semver 1.0.23", "serde 1.0.204", @@ -13835,7 +14144,7 @@ checksum = "3e79b9e3c0b6bb589dec46317e645851e0db2734c44e2be5e251b03ff4a51269" dependencies = [ "anyhow", "id-arena", - "indexmap 2.2.6", + "indexmap 2.4.0", "log", "semver 1.0.23", "serde 1.0.204", @@ -13920,7 +14229,7 @@ checksum = "791978798f0597cfc70478424c2b4fdc2b7a8024aaff78497ef00f24ef674193" [[package]] name = "xtask" -version = "0.4.8" +version = "0.4.9-rc1" dependencies = [ "anyhow", "clap", @@ -13939,18 +14248,53 @@ dependencies = [ "linked-hash-map", ] +[[package]] +name = "yaml_parser" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a6a39b6b5ba0d02c910d05d7fbc366a4befb8901ea107dcde9c1c97acb8a366" +dependencies = [ + "rowan", + "winnow 0.6.14", +] + [[package]] name = "yansi" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" +[[package]] +name = "yoke" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" +dependencies = [ + "serde 1.0.204", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.71", + "synstructure 0.13.1", +] + [[package]] name = "zerocopy" version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ + "byteorder", "zerocopy-derive", ] @@ -13965,6 +14309,27 @@ dependencies = [ "syn 2.0.71", ] +[[package]] +name = "zerofrom" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.71", + "synstructure 0.13.1", +] + [[package]] name = "zeroize" version = "1.8.1" @@ -13987,9 +14352,9 @@ dependencies = [ [[package]] name = "zeromq" -version = "0.3.4" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2db35fbc7d9082d39a85c9831ec5dc7b7b135038d2f00bb5ff2a4c0275893da1" +checksum = "fb0560d00172817b7f7c2265060783519c475702ae290b154115ca75e976d4d0" dependencies = [ "async-trait", "asynchronous-codec 0.7.0", @@ -14026,6 +14391,22 @@ dependencies = [ "time", ] +[[package]] +name = "zip" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc5e4288ea4057ae23afc69a4472434a87a2495cafce6632fd1c4ec9f5cf3494" +dependencies = [ + "arbitrary", + "crc32fast", + "crossbeam-utils", + "displaydoc", + "flate2", + "indexmap 2.4.0", + "memchr", + "thiserror", +] + [[package]] name = "zipsign-api" version = "0.1.2" diff --git a/Cargo.toml b/Cargo.toml index 7bf6e5b1ee..e60c9e9d69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,76 +1,135 @@ [workspace] resolver = "2" members = [ - "libs/*", - "libs/metagen/src/mdk_rust/static", - "libs/metagen/src/client_rs/static", - "typegate/engine", - "typegate/standalone", - "meta-cli", - "typegraph/core", + "src/common", + "src/meta-cli", + "src/metagen", + "src/metagen/src/mdk_rust/static", + "src/mt_deno", + "src/typegate/engine", + "src/typegate/standalone", + "src/typegraph/core", + "src/xtask", ] exclude = [ - "typegate/tests/runtimes/wasm_reflected/rust", - "typegate/tests/runtimes/wasm_wire/rust", - "typegate/tests/metagen/typegraphs/sample/rs", - "libs/pyrt_wit_wire", + "tests/runtimes/wasm_reflected/rust", + "tests/runtimes/wasm_wire/rust", + "tests/metagen/typegraphs/sample/rs", + "src/pyrt_wit_wire", ] + [workspace.package] -version = "0.4.8" +version = "0.4.9-rc1" edition = "2021" [workspace.dependencies] -# deno = { path = "../deno/cli"} -deno = { git = "https://github.com/metatypedev/deno", branch = "v1.45.2-embeddable" } -deno_core = { version = "=0.293.0" } # internal crates -mt_deno = { path = "libs/deno/" } -common = { path = "libs/common/" } -metagen = { path = "libs/metagen/" } -typegate_engine = { path = "typegate/engine" } +mt_deno = { path = "src/mt_deno/" } +common = { path = "src/common/" } +metagen = { path = "src/metagen/" } +typegate_engine = { path = "src/typegate/engine" } # cli -clap = "=4.4.17" -clap_complete = "=4.4.7" +clap = "=4.5.13" +clap_complete = "=4.5.12" +clap-verbosity-flag = "2.2.1" +colored = "2.0.4" +dialoguer = "0.11.0" +self_update = "0.39.0" +tabled = "0.15.0" +# FIXME: use main branch when deno move to 1.37 +lade-sdk = { git = "https://github.com/zifeo/lade", branch = "fix/loosen-deps" } +git2 = { version = "0.18.3", default-features = false } # http reqwest = "0.11" +url = "2.4" +# build shadow-rs = "0.28.0" # encoding serde = { version = "1.0.203", features = ["derive"] } serde_json = "1.0.117" +serde_yaml = "0.9.33" # FIXME: deprecated, be on the lookout for alternatives +serde_with = "3.8.1" flate2 = "1.0.30" tar = "0.4" base64 = "0.22.1" +zstd = "0.13" +convert_case = "0.6.0" +strip-ansi-escapes = "0.2.0" +heck = "0.5.0-rc.1" +sha2 = "0.10.8" +seahash = "4.1.0" # patterns -anyhow = "1.0.86" +anyhow = "1.0.86" # FIXME: replace anyhow with eyre color-eyre = "0.6.3" +eyre = "0.6.12" # NOTE: keep in sync with verison used by color-eyre thiserror = "1.0.61" indoc = "2.0.5" +unindent = "0.2.3" itertools = "0.13.0" +lazy_static = "1.4.0" # FIXME: replace with Lazy Cell +crossbeam-channel = "0.5.13" +enum_dispatch = "0.3.13" +tap = "1.0.1" +derive_more = "0.99.17" +cached = "0.51.3" # FIXME: replace usage with a Lazy Cell + dashmap +garde = "0.18" +paste = "1.0.15" # os +ctrlc = "3.4.4" +rand = "0.8.5" +# FIXME: go back to published crate when deno move to 1.37 +process-wrap = { git = "https://github.com/metatypedev/process-wrap", branch = "fix/decrement-tokio-version" } +nix = "0.29.0" + +# fs tempfile = "3.10.1" +num_cpus = "1.16.0" +normpath = "1.2.0" +directories = "5.0.1" +include_dir = "0.7.3" +grep = "0.3.1" +filetime = "0.2.23" +notify-debouncer-mini = { version = "0.4.1", default-features = false } +ignore = "0.4.20" +glob = "0.3.1" +globset = "0.4.14" +pathdiff = "0.2.1" +textwrap = "0.16.1" +project-root = "0.2.2" # data structures regex = "1.10.4" once_cell = "1.19.0" indexmap = { version = "2.2.6", features = ["serde"] } +semver = "1.0.23" +dashmap = "5.5.3" +connection-string = "0.2.0" +chrono = "0.4.38" +tera = { version = "1.20", default-features = false } +ordered-float = "4.2.0" +graphql-parser = "0.4.0" # wasm wasmtime = "21.0.0" wasmtime-wasi = "21.0.0" +wit-bindgen = "0.26.0" + +# deno +# deno = { path = "../deno/cli" } +deno = { git = "https://github.com/metatypedev/deno", branch = "v1.46.1-embeddable" } +deno_core = { version = "=0.306.0" } # logging -# pinned to match version brought in -# https://github.com/metatypedev/deno/blob/librarify-cli/cli/Cargo.toml#L51 env_logger = "=0.11.0" -log = "0.4.20" +log = "0.4.20" # FIXME: replace with tracing tracing = "0.1" # tracing core helper tracing-subscriber = { version = "0.3.18", features = ["env-filter", "parking_lot", "tracing-log"] } @@ -85,5 +144,28 @@ tracing-appender = "0.2.3" futures = "0.3.30" futures-concurrency = "7.6" futures-lite = "2.3" -tokio = { version = "1.38.0", features = ["parking_lot"] } +tokio = { version = "1.36.0", features = ["parking_lot"] } async-trait = "0.1.80" +actix = "0.13.3" + +# temporal +temporal-client = { git = "https://github.com/temporalio/sdk-core", rev = "7f9755b" } +temporal-sdk-core-protos = { git = "https://github.com/temporalio/sdk-core", rev = "7f9755b" } + +# prisma +query-core = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } +query-connector = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } +request-handlers = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } +prisma-models = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } +datamodel-renderer = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } +user-facing-errors = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } +query-engine-metrics = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } +schema-core = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } +psl = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } +schema-connector = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } + +# test +assert_cmd = "2.0.14" +pretty_assertions = "1.4.0" +insta = "1.39.0" +ptree = "0.4.0" diff --git a/README.md b/README.md index 7e79cdb1b9..ab8b30f1a6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

- Metatype + Metatype

@@ -45,12 +45,12 @@ Support us by starr

And castle building is hard. Even the best teams can struggle to build according to the plans, especially with the ever evolving needs and the tech landscape complexities.

- Castle building + Castle building - Stable castle + Stable castle

Build reliable castle with typegraphs

@@ -63,12 +63,12 @@ Support us by
starr

Typegate is a GraphQL/REST composition engine that compiles, optimizes, runs and caches queries over typegraphs. It enforces authentication, authorization and security for you.

- Modulable castle + Modulable castle - Reusable castle + Reusable castle

Build reusable castle with Metatype

diff --git a/deno.jsonc b/deno.jsonc new file mode 100644 index 0000000000..3913130b54 --- /dev/null +++ b/deno.jsonc @@ -0,0 +1,64 @@ +{ + "workspace": { + "members": [ + "./src/typegate/", + "./tests", + "./tools", + "./src/typegraph/deno", + "./examples/" + ] + }, + "compilerOptions": { + "allowJs": false, + "strict": true, + "experimentalDecorators": true, + "types": [ + "./src/typegate/engine/runtime.d.ts" + ], + "lib": [ + "deno.ns", + "deno.unstable", + "deno.worker" + ] + }, + "nodeModulesDir": false, + "lock": "deno.lock", + "lint": { + "rules": { + "include": [ + "no-sync-fn-in-async-fn", + "no-external-import", + "no-inferrable-types", + "no-self-compare", + "no-throw-literal" + // "verbatim-module-syntax" + // "no-await-in-loop" + // "ban-untagged-todo" + ], + "exclude": [] + } + }, + "imports": { + "@david/dax": "jsr:@david/dax@0.41.0", + "@std/archive": "jsr:@std/archive@^0.225.0", + "@std/assert": "jsr:@std/assert@^1.0.2", + "@std/cli": "jsr:@std/cli@^1.0.4", + "@std/collections": "jsr:@std/collections@^1.0.5", + "@std/encoding": "jsr:@std/encoding@^1.0.2", + "@std/fs": "jsr:@std/fs@^1.0.1", + "@std/http": "jsr:@std/http@^1.0.3", + "@std/io": "jsr:@std/io@^0.224.5", + "@std/path": "jsr:@std/path@^1.0.2", + "@std/streams": "jsr:@std/streams@^1.0.2", + "@std/uuid": "jsr:@std/uuid@^1.0.1", + "aws-sdk/client-s3": "https://esm.sh/@aws-sdk/client-s3@3.335.0?pin=v131", + "aws-sdk/s3-request-presigner": "https://esm.sh/@aws-sdk/s3-request-presigner@3.335.0?pin=v131", + "dispose": "https://deno.land/x/dispose@1.1.0/mod.ts", + "graphql": "npm:graphql@16.8.1", + "jwt": "https://deno.land/x/djwt@v3.0.1/mod.ts", + "monads": "https://deno.land/x/monads@v0.5.10/mod.ts", + "native": "./src/typegate/engine/bindings.ts", + "redis": "https://deno.land/x/redis@v0.32.1/mod.ts", + "zod": "https://deno.land/x/zod@v3.22.2/mod.ts" + } +} diff --git a/typegate/deno.lock b/deno.lock similarity index 76% rename from typegate/deno.lock rename to deno.lock index 40d42ce0bf..2ac8355191 100644 --- a/typegate/deno.lock +++ b/deno.lock @@ -4,15 +4,56 @@ "specifiers": { "jsr:@david/dax@0.41.0": "jsr:@david/dax@0.41.0", "jsr:@david/which@^0.4.1": "jsr:@david/which@0.4.1", + "jsr:@std/archive@^0.225.0": "jsr:@std/archive@0.225.1", "jsr:@std/assert@^0.221.0": "jsr:@std/assert@0.221.0", + "jsr:@std/assert@^1.0.2": "jsr:@std/assert@1.0.3", + "jsr:@std/assert@^1.0.3": "jsr:@std/assert@1.0.3", + "jsr:@std/async@^1.0.3": "jsr:@std/async@1.0.4", "jsr:@std/bytes@^0.221.0": "jsr:@std/bytes@0.221.0", + "jsr:@std/bytes@^1.0.2": "jsr:@std/bytes@1.0.2", + "jsr:@std/bytes@^1.0.2-rc.3": "jsr:@std/bytes@1.0.2", + "jsr:@std/cli@^1.0.3": "jsr:@std/cli@1.0.4", + "jsr:@std/cli@^1.0.4": "jsr:@std/cli@1.0.4", + "jsr:@std/collections@^1.0.5": "jsr:@std/collections@1.0.5", + "jsr:@std/crypto@^1.0.2": "jsr:@std/crypto@1.0.3", + "jsr:@std/crypto@^1.0.2-rc.1": "jsr:@std/crypto@1.0.2", + "jsr:@std/crypto@^1.0.3": "jsr:@std/crypto@1.0.3", + "jsr:@std/encoding@^1.0.2": "jsr:@std/encoding@1.0.3", + "jsr:@std/encoding@^1.0.3": "jsr:@std/encoding@1.0.3", "jsr:@std/fmt@^0.221.0": "jsr:@std/fmt@0.221.0", + "jsr:@std/fmt@^1.0.0": "jsr:@std/fmt@1.0.1", + "jsr:@std/fmt@^1.0.1": "jsr:@std/fmt@1.0.1", "jsr:@std/fs@0.221.0": "jsr:@std/fs@0.221.0", + "jsr:@std/fs@^1.0.0-rc.5": "jsr:@std/fs@1.0.1", + "jsr:@std/fs@^1.0.1": "jsr:@std/fs@1.0.2", + "jsr:@std/fs@^1.0.2": "jsr:@std/fs@1.0.2", + "jsr:@std/http@^1.0.3": "jsr:@std/http@1.0.4", + "jsr:@std/internal@^1.0.1": "jsr:@std/internal@1.0.1", + "jsr:@std/internal@^1.0.2": "jsr:@std/internal@1.0.2", "jsr:@std/io@0.221.0": "jsr:@std/io@0.221.0", "jsr:@std/io@^0.221.0": "jsr:@std/io@0.221.0", + "jsr:@std/io@^0.224.3": "jsr:@std/io@0.224.5", + "jsr:@std/io@^0.224.4": "jsr:@std/io@0.224.5", + "jsr:@std/io@^0.224.5": "jsr:@std/io@0.224.6", + "jsr:@std/io@^0.224.6": "jsr:@std/io@0.224.6", + "jsr:@std/log@^0.224.5": "jsr:@std/log@0.224.6", + "jsr:@std/media-types@^1.0.2": "jsr:@std/media-types@1.0.3", + "jsr:@std/media-types@^1.0.3": "jsr:@std/media-types@1.0.3", + "jsr:@std/net@^1.0.0": "jsr:@std/net@1.0.1", + "jsr:@std/net@^1.0.1": "jsr:@std/net@1.0.1", "jsr:@std/path@0.221.0": "jsr:@std/path@0.221.0", "jsr:@std/path@^0.221.0": "jsr:@std/path@0.221.0", + "jsr:@std/path@^1.0.2": "jsr:@std/path@1.0.3", + "jsr:@std/path@^1.0.3": "jsr:@std/path@1.0.3", + "jsr:@std/semver@^1.0.1": "jsr:@std/semver@1.0.2", "jsr:@std/streams@0.221.0": "jsr:@std/streams@0.221.0", + "jsr:@std/streams@1": "jsr:@std/streams@1.0.3", + "jsr:@std/streams@^1.0.2": "jsr:@std/streams@1.0.3", + "jsr:@std/streams@^1.0.3": "jsr:@std/streams@1.0.3", + "jsr:@std/testing@^1.0.1": "jsr:@std/testing@1.0.1", + "jsr:@std/url@^0.225.0": "jsr:@std/url@0.225.0", + "jsr:@std/uuid@^1.0.1": "jsr:@std/uuid@1.0.2", + "jsr:@std/yaml@^1.0.4": "jsr:@std/yaml@1.0.4", "npm:@noble/hashes@1.4.0": "npm:@noble/hashes@1.4.0", "npm:@sentry/node@7.70.0": "npm:@sentry/node@7.70.0", "npm:@types/node": "npm:@types/node@18.16.19", @@ -42,15 +83,75 @@ "@david/which@0.4.1": { "integrity": "896a682b111f92ab866cc70c5b4afab2f5899d2f9bde31ed00203b9c250f225e" }, + "@std/archive@0.225.0": { + "integrity": "cacdf278ee1c8cd89e67917bd0588c5eab16ef21b0e884c721bd0eef5179cf6f", + "dependencies": [ + "jsr:@std/io@^0.224.4" + ] + }, + "@std/archive@0.225.1": { + "integrity": "5316b97c0641e01b1e5cf3cce7e1c7056271f23ea81a519da862414c9659fe1d", + "dependencies": [ + "jsr:@std/io@^0.224.6" + ] + }, "@std/assert@0.221.0": { "integrity": "a5f1aa6e7909dbea271754fd4ab3f4e687aeff4873b4cef9a320af813adb489a" }, + "@std/assert@1.0.2": { + "integrity": "ccacec332958126deaceb5c63ff8b4eaf9f5ed0eac9feccf124110435e59e49c", + "dependencies": [ + "jsr:@std/internal@^1.0.1" + ] + }, + "@std/assert@1.0.3": { + "integrity": "b0d03ce1ced880df67132eea140623010d415848df66f6aa5df76507ca7c26d8", + "dependencies": [ + "jsr:@std/internal@^1.0.2" + ] + }, + "@std/async@1.0.3": { + "integrity": "6ed64678db43451683c6c176a21426a2ccd21ba0269ebb2c36133ede3f165792" + }, + "@std/async@1.0.4": { + "integrity": "373f5168a01b46ecaabc785d4e0f9ef18a010ab867af069fb905d93a9129ae5b" + }, "@std/bytes@0.221.0": { "integrity": "64a047011cf833890a4a2ab7293ac55a1b4f5a050624ebc6a0159c357de91966" }, + "@std/bytes@1.0.2": { + "integrity": "fbdee322bbd8c599a6af186a1603b3355e59a5fb1baa139f8f4c3c9a1b3e3d57" + }, + "@std/cli@1.0.3": { + "integrity": "9a0488b5d2e58d29dce106a941eecec7181fae996bf0d2225563f1ca7e4b100c" + }, + "@std/cli@1.0.4": { + "integrity": "79ca75add572a99a8ba93ae37ccbd8d43fb4e2b635a8a7ebebb4f2d092048764" + }, + "@std/collections@1.0.5": { + "integrity": "ab9eac23b57a0c0b89ba45134e61561f69f3d001f37235a248ed40be260c0c10" + }, + "@std/crypto@1.0.2": { + "integrity": "bb515dbcd4d67aacf0ffece643a434811ea06e5b544f03c33ba58552fbdb87c7" + }, + "@std/crypto@1.0.3": { + "integrity": "a2a32f51ddef632d299e3879cd027c630dcd4d1d9a5285d6e6788072f4e51e7f" + }, + "@std/encoding@1.0.2": { + "integrity": "7ed640c777e3275550e2cd937c440acdbebfdcd2d13ef67052f0536bf43e707f" + }, + "@std/encoding@1.0.3": { + "integrity": "5dbc2d7f5aa6062de7e19862ea856ac7a0dcce0b6fb46bb7b332d3bdcd4408b7" + }, "@std/fmt@0.221.0": { "integrity": "379fed69bdd9731110f26b9085aeb740606b20428ce6af31ef6bd45ef8efa62a" }, + "@std/fmt@1.0.0": { + "integrity": "8a95c9fdbb61559418ccbc0f536080cf43341655e1444f9d375a66886ceaaa3d" + }, + "@std/fmt@1.0.1": { + "integrity": "ef76c37faa7720faa8c20fd8cc74583f9b1e356dfd630c8714baa716a45856ab" + }, "@std/fs@0.221.0": { "integrity": "028044450299de8ed5a716ade4e6d524399f035513b85913794f4e81f07da286", "dependencies": [ @@ -58,6 +159,48 @@ "jsr:@std/path@^0.221.0" ] }, + "@std/fs@1.0.1": { + "integrity": "d6914ca2c21abe591f733b31dbe6331e446815e513e2451b3b9e472daddfefcb", + "dependencies": [ + "jsr:@std/path@^1.0.2" + ] + }, + "@std/fs@1.0.2": { + "integrity": "af57555c7a224a6f147d5cced5404692974f7a628ced8eda67e0d22d92d474ec", + "dependencies": [ + "jsr:@std/path@^1.0.3" + ] + }, + "@std/http@1.0.3": { + "integrity": "bff3770c4df4711567de1711fe988d28db9535be0c9b0f1d2de8d0fb97e8b44c", + "dependencies": [ + "jsr:@std/cli@^1.0.3", + "jsr:@std/encoding@^1.0.2", + "jsr:@std/fmt@^1.0.0", + "jsr:@std/media-types@^1.0.2", + "jsr:@std/net@^1.0.0", + "jsr:@std/path@^1.0.2", + "jsr:@std/streams@^1.0.2" + ] + }, + "@std/http@1.0.4": { + "integrity": "1a8142217907d49c4687f90ef3d257e7df2baf344c5122c322d7316df09df453", + "dependencies": [ + "jsr:@std/cli@^1.0.4", + "jsr:@std/encoding@^1.0.3", + "jsr:@std/fmt@^1.0.1", + "jsr:@std/media-types@^1.0.3", + "jsr:@std/net@^1.0.1", + "jsr:@std/path@^1.0.3", + "jsr:@std/streams@^1.0.3" + ] + }, + "@std/internal@1.0.1": { + "integrity": "6f8c7544d06a11dd256c8d6ba54b11ed870aac6c5aeafff499892662c57673e6" + }, + "@std/internal@1.0.2": { + "integrity": "f4cabe2021352e8bfc24e6569700df87bf070914fc38d4b23eddd20108ac4495" + }, "@std/io@0.221.0": { "integrity": "faf7f8700d46ab527fa05cc6167f4b97701a06c413024431c6b4d207caa010da", "dependencies": [ @@ -65,17 +208,102 @@ "jsr:@std/bytes@^0.221.0" ] }, + "@std/io@0.224.5": { + "integrity": "cb84fe655d1273fca94efcff411465027a8b0b4225203f19d6ee98d9c8920a2d", + "dependencies": [ + "jsr:@std/bytes@^1.0.2-rc.3" + ] + }, + "@std/io@0.224.6": { + "integrity": "eefe034a370be34daf066c8634dd645635d099bb21eccf110f0bdc28d9040891", + "dependencies": [ + "jsr:@std/bytes@^1.0.2" + ] + }, + "@std/log@0.224.5": { + "integrity": "4612a45189438441bbd923a4cad1cce5c44c6c4a039195a3e8d831ce38894eee" + }, + "@std/log@0.224.6": { + "integrity": "c34e7b69fe84b2152ce2b0a1b5e211b26e6a1ce6a6b68a217b9342fd13ed95a4", + "dependencies": [ + "jsr:@std/fmt@^1.0.1", + "jsr:@std/fs@^1.0.2", + "jsr:@std/io@^0.224.6" + ] + }, + "@std/media-types@1.0.3": { + "integrity": "b12d30a7852f7578f4d210622df713bbfd1cbdd9b4ec2eaf5c1845ab70bab159" + }, + "@std/net@1.0.1": { + "integrity": "27fe136ab7ae81f425df90aad190bae2c87d2aef3d1a49cbc0efc1daa287d794" + }, "@std/path@0.221.0": { "integrity": "0a36f6b17314ef653a3a1649740cc8db51b25a133ecfe838f20b79a56ebe0095", "dependencies": [ "jsr:@std/assert@^0.221.0" ] }, + "@std/path@1.0.2": { + "integrity": "a452174603f8c620bd278a380c596437a9eef50c891c64b85812f735245d9ec7" + }, + "@std/path@1.0.3": { + "integrity": "cd89d014ce7eb3742f2147b990f6753ee51d95276bfc211bc50c860c1bc7df6f" + }, + "@std/semver@1.0.1": { + "integrity": "f0c9b41b70e27e8cdfe9252b486c55a727d66ead72625e0fa1aae75f45ca15e1" + }, + "@std/semver@1.0.2": { + "integrity": "1e5fd337c687ca64c0809253eca4d4815874ced59b04f0882da5ff9a302f8129" + }, "@std/streams@0.221.0": { "integrity": "47f2f74634b47449277c0ee79fe878da4424b66bd8975c032e3afdca88986e61", "dependencies": [ "jsr:@std/io@^0.221.0" ] + }, + "@std/streams@1.0.2": { + "integrity": "187c3c875675221f5355807a735e51b0f8769caade2cbca6d7f4fa710ea4ace4", + "dependencies": [ + "jsr:@std/bytes@^1.0.2-rc.3" + ] + }, + "@std/streams@1.0.3": { + "integrity": "d62e645ab981cee2c3d03040eb03cf387fc6bceef6d4564f3ed485a43741a81f", + "dependencies": [ + "jsr:@std/bytes@^1.0.2" + ] + }, + "@std/testing@1.0.1": { + "integrity": "9c25841137ee818933e1722091bb9ed5fdc251c35e84c97979a52196bdb6c5c3", + "dependencies": [ + "jsr:@std/assert@^1.0.3", + "jsr:@std/fs@^1.0.2", + "jsr:@std/internal@^1.0.2", + "jsr:@std/path@^1.0.3" + ] + }, + "@std/url@0.225.0": { + "integrity": "fc854cc8a720e9c974904071140b462880d8347030006f43193935ae06c7a0f9", + "dependencies": [ + "jsr:@std/path@^1.0.2" + ] + }, + "@std/uuid@1.0.1": { + "integrity": "26f834b1e1f95b581f5f654f6b2c34c2031832fb4f598dbb1332520aa63a6740", + "dependencies": [ + "jsr:@std/bytes@^1.0.2-rc.3", + "jsr:@std/crypto@^1.0.2-rc.1" + ] + }, + "@std/uuid@1.0.2": { + "integrity": "2224284cdb031b54a9b2b1640254e2e78bd4541e956297d651cdd6f7a8157f4d", + "dependencies": [ + "jsr:@std/bytes@^1.0.2", + "jsr:@std/crypto@^1.0.3" + ] + }, + "@std/yaml@1.0.4": { + "integrity": "f1e38fa5e110ff8550e938715e52c33347676dd00a1db858e092dd21a9df9941" } }, "npm": { @@ -382,7 +610,8 @@ }, "redirects": { "https://cdn.pika.dev/big.js/^5.2.2": "https://cdn.skypack.dev/big.js@^5.2.2", - "https://github.com/levibostian/deno-udd/raw/ignore-prerelease/mod.ts": "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/mod.ts" + "https://github.com/levibostian/deno-udd/raw/ignore-prerelease/mod.ts": "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/mod.ts", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1//mod.ts": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/mod.ts" }, "remote": { "https://cdn.skypack.dev/-/big.js@v5.2.2-sUR8fKsGHRxsJyqyvOSP/dist=es2019,mode=imports/optimized/bigjs.js": "b6d8e6af0c1f7bdc7e8cd0890819ecee2dcbb0776ec4089eae281de8ebd7b2bd", @@ -1714,6 +1943,269 @@ "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/mod.ts": "25901b5a03625353cc0d9c024daca806eb2513b153faede5ecad73b428542721", "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/unarchive.ts": "f6d0e9e75f470eeef5aecd0089169f4350fc30ebfdc05466bb7b30042294d6d3", "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/url.ts": "e1ada6fd30fc796b8918c88456ea1b5bbd87a07d0a0538b092b91fd2bb9b7623", - "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/worker.ts": "ac4caf72a36d2e4af4f4e92f2e0a95f9fc2324b568640f24c7c2ff6dc0c11d62" + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/worker.ts": "ac4caf72a36d2e4af4f4e92f2e0a95f9fc2324b568640f24c7c2ff6dc0c11d62", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/engine/bindings.ts": "e9391491bf5c4f682267a5cb4ae384ef33ed7c15273fcada13bea7b064cf1270", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/engine/runtime.js": "1ae55e76d3de8e79c37054d9127c92af496ce10aa905ea64021893048bb33794", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/config.ts": "289820b743711beb9139bca83556f60774521f3c58addd5c441ae3205ef49e61", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/config/loader.ts": "f46ed5199db89c6e5ebe5accb1cd7561a22cb8a158dfc86b371956d3002662cb", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/config/shared.ts": "b2cc53588d6651b5261de312c4b92f517f0b764cd95eb1b8771e46c3f46376a0", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/config/types.ts": "77f7051cece41b67b47471511496e35b76bd7eda0ba10cdcd02fda261ca0ed13", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/crypto.ts": "00efcbf7906e66105a5b18f1654cd78bc05f8b2ed755cc4be9f5755f49a577c3", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/computation_engine.ts": "9fb3033c491a17aec92757a1b7c299fa5c5197dff666b86f074beebc643d239f", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/planner/args.ts": "2eecd557a4cde56ebdfbbdf998bff4386fcd0b79007a7ba5fc1d2c71f57f3a85", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/planner/dependency_resolver.ts": "98c9505a700ad0cd74fac327e7258aae6bbd60cd60587a4ec56bcfe57cf6fe79", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/planner/injection_utils.ts": "21a0b4117e00c48533a83bd2985046eb4510aba3c331c02bf64920d719d282bc", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/planner/mod.ts": "a90671e394e0ade1e47a1d1bf65560fc06d8d14531f062f902254e761d01bdb3", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/planner/parameter_transformer.ts": "953d7c970141e44e29be72d79cc253ab26ea5a366a2f4bcd43ec6c73203737ca", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/planner/policies.ts": "0ef1f49f06d17e1df8e8ec0108bdf1458fcf95b42be8fbdb0c1357b46a5020a2", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/query_engine.ts": "152e96d3c4f5e1161f974ca36c2034ea3d3ef56f548fa64bbb4563dd2ed7d6dc", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/stage_id.ts": "b3b3c62215ff421103788079b77943af8f0026a56eafaa929415cb39ccde3cca", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/code_generator.ts": "adb81b215a10bbf73f00b910d75e953dd8f630d3dd590e6c85323cae4da6b608", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/common.ts": "bf2174d58cc898f094c5e353e43988888922dfbf6878e75619594f5de5498843", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/inline_validators/common.ts": "112f56c8e590215b0af0c1b46dc84b85cb5b9b43621a52646876c35a43103499", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/inline_validators/constraints.ts": "f173ed12173c92b3eca2b306973dee34e18feeccd2c4c51f11fe98216e7d80e7", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/inline_validators/list.ts": "d6ea1984e6dd3e422173b5252fb5e10d27f216c7051aad1452250a0454c465d5", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/inline_validators/number.ts": "aebeb91359a8edcc444b1a229dbca67cefd910837e771f4f18eba0070bdd80bc", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/inline_validators/object.ts": "1c10be974a2ba3b2b60072c34af84497cd099f263fb8223ebe763bccb7ec451a", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/inline_validators/string.ts": "7ea1e1661e54d093a56df7be22ee8590940efd3a230317ebc80b0978a0de5ce4", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/input.ts": "f6f00f03d82288804a31852a65ec89f021134591a6888e9972ea7512bb41aecd", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/matching_variant.ts": "6a9c0232b61fd9a20bd35cc4caa2350901504655bacad839fa275b24f9292e45", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/engine/typecheck/result.ts": "494f6a0b58cf7ee9e27fbae65de71a33e1659efcff428be51dd158824096f247", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/errors.ts": "3314988ebc9d7a5e3033239a9cfba752020144b8bfd9cacd3d3fc46d0ea30644", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/libs/jsonpath.ts": "f6851288fb8600dec0e62d5f804f41332b6197b255b6497360ba7e4b7f375cba", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/log.ts": "a44dca4a37baef59ee50bd44b4ee12c77fd57bd57c0bc09aab8016c2550b1b32", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/main.ts": "af5c054d8188afa43b3f5cf3f779a3b0fe2c2bccf2cb7dbde942f469a0ebaad7", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/Runtime.ts": "6fba220b09e69aefca2e4e5a77eaf830906dece0fa4b500d878edb6c6463953c", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/deno.ts": "c893dcf170b38547239d550080a856aca46a788de9922f282bbacf9b5841b5fe", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/deno/deno.ts": "9f5c74dd2b70f0259e9891b62907720e0f77117a34e69f40efd3e080c39acc6c", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/deno/deno_messenger.ts": "18ee6e6797702955744bc2a11e37e4e3cdccdbf249cc4877cbacaeb3aa66775c", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/deno/shared_types.ts": "2ef1fa347c241162a8a32cebb1113b20f94326c4b20b0883e72b79bb879e5d07", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/deno/worker.ts": "fabc721575f048d8e4ca960e41dcda57b7103151b606a736ac0358dd7c418bc6", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/graphql.ts": "a03a5f3e1d538f736c9691074e67e6b4d8bfa880bd7e49918216d8dcd6226acb", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/http.ts": "580b43b0db099a0c5ac3aa971c74fe78bee8e95addc2369d1a827fcc6e15033e", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/kv.ts": "22fbb14530eee945ebc85bf157f1d03fef98ec96653c945815fd85c5888ac51e", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/mod.ts": "e01fe4ae085c2170ffacc659bab6d829bbf7a513c3574b15e964c32eddf2e8d1", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/patterns/messenger/async_messenger.ts": "5457677d4b44abc060cb7c625a66fd4db231206df656bfc41b5a2e017833eea2", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/patterns/messenger/lazy_async_messenger.ts": "744b0e499ef5a8cdb10f35c5c8570984cac7a00f64d85c1374dabf00624b0397", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/patterns/messenger/types.ts": "23ddb7d12e4d049158ffefdb0b8f00ff9c8b7c1c31637b101e391f89ae6e8a97", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/prisma.ts": "e4b679c3b5e28a323d72bde5ebbcc113abe0efc8da82d70b3b2e390149c57d84", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/prisma/hooks/generate_schema.ts": "70e8b612f4c771dd607233cede7036f7d343702086a8d9cd3904d8e947daac90", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/prisma/hooks/mod.ts": "3e33752e3676b538c7016f3ddd4f1f49d75e217c410bcaa6319d33ed987d3c60", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/prisma/hooks/run_migrations.ts": "456398f2300b8da1b870db6e84524c5920e57c7bcf15d8a5f3e1323199f26170", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/prisma/migration.ts": "3dae1ae03546123ffc2bee76a5d049ab76cf8724fdf353b0c610f6e86364ab2d", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/prisma/mod.ts": "a0e44e86a45aad8b2bb0357ddbe8ba02802e6979451553940ec3688be571127f", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/prisma/prisma.ts": "c36709efd13ea0553d552483d8a268c2432276a932144428bcaac869e2913ca4", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/prisma/types.ts": "44e221d8143e314e8db39b62e245518a290bf4248ace208a755d0aa1a5af99bb", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/python.ts": "32825eba0eb6680fa97933535a96ae80e09e7bd0d207b0385dd3da8cf843bbec", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/random.ts": "2f65216d0bd56953af78938151f697f11e7c22a1ac0c68d15f85940c5fd49a1d", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/s3.ts": "c9f027361982be38ce4b157d9779ff9a2cb6b6b686fb749eb600d0bb73447ae5", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/temporal.ts": "b31d30777e71ae4c8d2ac1cdf522b7b498d545d0c60c2fb4e76c685f3e2c49ee", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/typegate.ts": "ef7fc75335d947e9afce79418bb3802a4a174ad68b4b4b719232fe7df5d78040", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/typegraph.ts": "55b5d9b6a4a0d536a06d63b57e863f12f3dae38b2b421f205c50340424e43f7f", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/utils/graphql_forward_vars.ts": "5faf28e955a0e950a5c79bc3ceb68d9c4a14df3dd2e94dd867e063de6ae1da88", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/utils/graphql_inline_vars.ts": "f69ace5ac7509f3ce33c0b31b73597372efba42eac09948ab5e8e6d38b37e3a3", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/utils/http.ts": "842af99040fd0e3456690f7674311da3a0b9ea64c608d7bc588df1ab28f163a3", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/wasm_reflected.ts": "b3562d7cafc777625f9cc06d74fcac9634d64ab5d191f2e7742155e7426377e0", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/wasm_wire.ts": "d3e53d0eab0482bd9d222897a147d5afa4ea5e31b66b7b98d40b5f13f39e9f7b", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/runtimes/wit_wire/mod.ts": "229fe56d4ffa6aa7a2242b89712664701d6e0e75a9072d345372bc5b834645fe", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/artifact_service.ts": "b910693b1ed6b8ae4ed4036b0e4c423313870cce514cde7095c6dd8f03234bd9", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/cookies.ts": "ebe37f0ff356df71cb72911bb17c13744dba9ebcd5e0eb69abf41d73cf179ee8", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/mod.ts": "0fd5fa8dc8d2278df02a93b457fbb4042261871e57985719e70e39fe491b00f0", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/protocols/basic.ts": "a4361603e15ab387ec4db8664965ecae15457eeb6503f65bc8a11bf7f87a3a6a", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/protocols/internal.ts": "a93b3234a46f4de9e726582d024a3c73114a195560ac59a9e31ad0b3cf397f39", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/protocols/jwt.ts": "f779924412dc01fc557beb200b52198382dc01345e14deb4bf8af9324e1bdbb6", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/protocols/oauth2.ts": "3a6db9349f0e5c8210480eeea26f6c8e26bf2f5df3b5c2a509ac1f3428b214c7", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/protocols/protocol.ts": "158c55618be6165a9ee393ccd1a9da267b084ff04df7e627af1e4fc8fe636644", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/routes/mod.ts": "70ceac64f3e868d5b00b21bd5094b149374f0be487293ad4098415663999320d", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/routes/take.ts": "21304fcbfa9e9f92f240121ac2fad677b315ca1f7e55ec5e6f2905d1ccdeb1aa", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/auth/routes/validate.ts": "f8a2a7f4fa58dac1f10f89dd76d8ec5a4d7ce7e98ddd1d8e56a178c9f6158eaa", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/graphql_service.ts": "c84b8cda35ceb0991d232ff2cfe468f5a93fb19440b594b23eb79dfb3ce31ea7", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/info_service.ts": "a9a1f6ebdcbe64d55806597b879dd5714c32b8b861bed695a944f5e2f1213beb", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/middlewares.ts": "b870a0f9e70880f020510b64d19e0e23450656490ac117192398bafdb00c0ccd", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/playground_service.ts": "d293851d3a5f4d3b196115a38b87d9c4826355290e42c1c1a586604bbbaffd6e", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/responses.ts": "374620f4f7bd96bacb582247f75e279906bff7dee4a1ae107364ba2fbef0b192", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/services/rest_service.ts": "316c7ece7785dc6a39b38e780915057834f3466d5274d49c849d5833bb772dcf", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/sync/replicated_map.ts": "8f7a1686ebd4c195074549771f27ca039398c6976022da79d204548c9a8e1188", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/sync/typegraph.ts": "9166892f76ca69956dc1300822834a7545886370ef83bdb61a92597dae6b6256", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/system_typegraphs.ts": "ada9d4dc74174078eb502dc707e91b628eae97fb729b90cffd7d59715dcff52f", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/transports/graphql/gq.ts": "341e066e10eb424c17095fe8cc65bbddc9cdfcdd51ecd82dd4905a50c3db8e82", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/transports/graphql/graphql.ts": "fd36d55366b2d0736580a2d8a7c408b6070ad7291db3cfbba37a6ed06ad01733", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/transports/graphql/request_parser.ts": "afbc95debcb1bbfa6fc2b88937d7abedbed1f4335bb2d17bf98c7293761cfdb0", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/transports/graphql/typegraph.ts": "e79b5acd4993a902ca4104f30075931bda49c140a5297920b644d6d3f4712ef2", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/transports/graphql/utils.ts": "ab4ee0fe51e53b4b21f7f2cfc4c77513a47d641a0bfe6822ceb46a7d8128adb9", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/transports/rest/rest_schema_generator.ts": "80d22818682b9856368dd87bf3085d6d7f53b7facf3412956588666b518bb8e5", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegate/artifacts/local.ts": "9405ef3cb3775a25d80b12f49aace608ecce7e18c29ed59196709b1e6a408d9c", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegate/artifacts/mod.ts": "ddc5d09342d9fe74b513fc0db52f0c6900d091d5cb9871b8434af0dbec854ae9", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegate/artifacts/shared.ts": "56ab2fc8250ccb7fbfaad6d586f0ea3c6422f9d76104a20af0ad51c1743bba42", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegate/hooks.ts": "de5f9fb6b4d6c288af0309d08147657eadde71e413513fb4607f7ee24d09d7d5", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegate/mod.ts": "3794b2e9a5aaf873b7636c38270bd64af8bcccc0df3d47937f9b102fc8bc2b0c", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegate/rate_limiter.ts": "0b3126eb28284ed3ed7a9fe434a5a096745ebc03e4d8b1b354fc7b791ccccd93", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegate/register.ts": "3eabfb20967d926c5729ed9f29f454e341182def492ae13208b98d03303d9d20", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegraph/mod.ts": "b15034cbf2d23267199ed58ee61a20be21dd7293c9ee162577918e0845d7c60e", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegraph/type_node.ts": "76fcb35bfad244af1fcaa45798b29a7536f5a2a45e8c824ae36a0a8cb87aeab5", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegraph/types.ts": "a3c1daa8305c709641b7e9e32f78bae5097accac93562c9a9c34d8d9c5847617", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegraph/utils.ts": "4d751910f053f7c3f33ce0cdebdd9b19970bee04ef533f65f01788c727c371e7", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegraph/versions.ts": "29e4415454a5095847aa12bec06bcc2ac3cdb6f1b75606dedd8f5612ce64f9f1", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegraph/visitor.ts": "bbcd6204c65e841cf9facf6d7b59ce1456ca051b06935c739a9be9e57807331b", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegraphs/introspection.json": "76e8796d99a71f93c6fd57e6af9708ef2d8f587f9ceca2ae9aec3f49d242e43e", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegraphs/prisma_migration.json": "05bcf740259abcedb1bb2d8b34e6d62cf2ef124481e01379b93ddaf05e99b1c1", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/typegraphs/typegate.json": "99da5fb4052c82a35a65ac18f94cbce47d7e49afdf7678b8127e2f4677805cdb", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/types.ts": "305a38570368838fa2cc3382e7d4fbb8717976397fe8bd4aeda201f7a1cb4b73", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/utils.ts": "17f24991ba464352c3855cd8cda6b4d330f4283f33b167e745571a780e02c8fb", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/src/utils/hash.ts": "2f4ce3f1736df720def3b0fc89ac9e6e29afa0a33d7a988e15cb1d1bebcf026c", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/tests/utils/memory_register.ts": "de21f1494e4e378fc43280e04ea5b59aa791d417c655d47824769cde4fc63b19", + "https://raw.githubusercontent.com/metatypedev/metatype/54b487d5e3f83680c049a6a0d521dcff264e05c4/typegate/tests/utils/no_limiter.ts": "730246db1c73b5ca77e01e1838194f3870f4024cbf29a850674564b20425a7f0", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/engine/bindings.ts": "e9391491bf5c4f682267a5cb4ae384ef33ed7c15273fcada13bea7b064cf1270", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/engine/runtime.js": "1ae55e76d3de8e79c37054d9127c92af496ce10aa905ea64021893048bb33794", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/config.ts": "289820b743711beb9139bca83556f60774521f3c58addd5c441ae3205ef49e61", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/config/loader.ts": "f46ed5199db89c6e5ebe5accb1cd7561a22cb8a158dfc86b371956d3002662cb", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/config/shared.ts": "b2cc53588d6651b5261de312c4b92f517f0b764cd95eb1b8771e46c3f46376a0", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/config/types.ts": "77f7051cece41b67b47471511496e35b76bd7eda0ba10cdcd02fda261ca0ed13", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/crypto.ts": "00efcbf7906e66105a5b18f1654cd78bc05f8b2ed755cc4be9f5755f49a577c3", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/computation_engine.ts": "9fb3033c491a17aec92757a1b7c299fa5c5197dff666b86f074beebc643d239f", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/planner/args.ts": "2eecd557a4cde56ebdfbbdf998bff4386fcd0b79007a7ba5fc1d2c71f57f3a85", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/planner/dependency_resolver.ts": "98c9505a700ad0cd74fac327e7258aae6bbd60cd60587a4ec56bcfe57cf6fe79", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/planner/injection_utils.ts": "21a0b4117e00c48533a83bd2985046eb4510aba3c331c02bf64920d719d282bc", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/planner/mod.ts": "a90671e394e0ade1e47a1d1bf65560fc06d8d14531f062f902254e761d01bdb3", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/planner/parameter_transformer.ts": "953d7c970141e44e29be72d79cc253ab26ea5a366a2f4bcd43ec6c73203737ca", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/planner/policies.ts": "0ef1f49f06d17e1df8e8ec0108bdf1458fcf95b42be8fbdb0c1357b46a5020a2", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/query_engine.ts": "152e96d3c4f5e1161f974ca36c2034ea3d3ef56f548fa64bbb4563dd2ed7d6dc", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/stage_id.ts": "b3b3c62215ff421103788079b77943af8f0026a56eafaa929415cb39ccde3cca", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/code_generator.ts": "adb81b215a10bbf73f00b910d75e953dd8f630d3dd590e6c85323cae4da6b608", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/common.ts": "bf2174d58cc898f094c5e353e43988888922dfbf6878e75619594f5de5498843", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/inline_validators/common.ts": "112f56c8e590215b0af0c1b46dc84b85cb5b9b43621a52646876c35a43103499", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/inline_validators/constraints.ts": "f173ed12173c92b3eca2b306973dee34e18feeccd2c4c51f11fe98216e7d80e7", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/inline_validators/list.ts": "d6ea1984e6dd3e422173b5252fb5e10d27f216c7051aad1452250a0454c465d5", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/inline_validators/number.ts": "aebeb91359a8edcc444b1a229dbca67cefd910837e771f4f18eba0070bdd80bc", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/inline_validators/object.ts": "1c10be974a2ba3b2b60072c34af84497cd099f263fb8223ebe763bccb7ec451a", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/inline_validators/string.ts": "7ea1e1661e54d093a56df7be22ee8590940efd3a230317ebc80b0978a0de5ce4", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/input.ts": "f6f00f03d82288804a31852a65ec89f021134591a6888e9972ea7512bb41aecd", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/matching_variant.ts": "6a9c0232b61fd9a20bd35cc4caa2350901504655bacad839fa275b24f9292e45", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/engine/typecheck/result.ts": "494f6a0b58cf7ee9e27fbae65de71a33e1659efcff428be51dd158824096f247", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/errors.ts": "3314988ebc9d7a5e3033239a9cfba752020144b8bfd9cacd3d3fc46d0ea30644", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/libs/jsonpath.ts": "f6851288fb8600dec0e62d5f804f41332b6197b255b6497360ba7e4b7f375cba", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/log.ts": "a44dca4a37baef59ee50bd44b4ee12c77fd57bd57c0bc09aab8016c2550b1b32", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/main.ts": "af5c054d8188afa43b3f5cf3f779a3b0fe2c2bccf2cb7dbde942f469a0ebaad7", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/Runtime.ts": "6fba220b09e69aefca2e4e5a77eaf830906dece0fa4b500d878edb6c6463953c", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/deno.ts": "c893dcf170b38547239d550080a856aca46a788de9922f282bbacf9b5841b5fe", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/deno/deno.ts": "9f5c74dd2b70f0259e9891b62907720e0f77117a34e69f40efd3e080c39acc6c", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/deno/deno_messenger.ts": "18ee6e6797702955744bc2a11e37e4e3cdccdbf249cc4877cbacaeb3aa66775c", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/deno/shared_types.ts": "2ef1fa347c241162a8a32cebb1113b20f94326c4b20b0883e72b79bb879e5d07", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/deno/worker.ts": "fabc721575f048d8e4ca960e41dcda57b7103151b606a736ac0358dd7c418bc6", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/graphql.ts": "a03a5f3e1d538f736c9691074e67e6b4d8bfa880bd7e49918216d8dcd6226acb", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/http.ts": "580b43b0db099a0c5ac3aa971c74fe78bee8e95addc2369d1a827fcc6e15033e", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/mod.ts": "b1d8e5d42a6b382e83342e562397d8213490ce5af245e8b6b1751eeec61d79d2", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/patterns/messenger/async_messenger.ts": "5457677d4b44abc060cb7c625a66fd4db231206df656bfc41b5a2e017833eea2", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/patterns/messenger/lazy_async_messenger.ts": "744b0e499ef5a8cdb10f35c5c8570984cac7a00f64d85c1374dabf00624b0397", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/patterns/messenger/types.ts": "23ddb7d12e4d049158ffefdb0b8f00ff9c8b7c1c31637b101e391f89ae6e8a97", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/prisma.ts": "e4b679c3b5e28a323d72bde5ebbcc113abe0efc8da82d70b3b2e390149c57d84", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/prisma/hooks/generate_schema.ts": "70e8b612f4c771dd607233cede7036f7d343702086a8d9cd3904d8e947daac90", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/prisma/hooks/mod.ts": "3e33752e3676b538c7016f3ddd4f1f49d75e217c410bcaa6319d33ed987d3c60", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/prisma/hooks/run_migrations.ts": "456398f2300b8da1b870db6e84524c5920e57c7bcf15d8a5f3e1323199f26170", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/prisma/migration.ts": "3dae1ae03546123ffc2bee76a5d049ab76cf8724fdf353b0c610f6e86364ab2d", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/prisma/mod.ts": "a0e44e86a45aad8b2bb0357ddbe8ba02802e6979451553940ec3688be571127f", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/prisma/prisma.ts": "c36709efd13ea0553d552483d8a268c2432276a932144428bcaac869e2913ca4", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/prisma/types.ts": "44e221d8143e314e8db39b62e245518a290bf4248ace208a755d0aa1a5af99bb", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/python.ts": "32825eba0eb6680fa97933535a96ae80e09e7bd0d207b0385dd3da8cf843bbec", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/random.ts": "2f65216d0bd56953af78938151f697f11e7c22a1ac0c68d15f85940c5fd49a1d", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/s3.ts": "c9f027361982be38ce4b157d9779ff9a2cb6b6b686fb749eb600d0bb73447ae5", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/temporal.ts": "b31d30777e71ae4c8d2ac1cdf522b7b498d545d0c60c2fb4e76c685f3e2c49ee", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/typegate.ts": "ef7fc75335d947e9afce79418bb3802a4a174ad68b4b4b719232fe7df5d78040", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/typegraph.ts": "55b5d9b6a4a0d536a06d63b57e863f12f3dae38b2b421f205c50340424e43f7f", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/utils/graphql_forward_vars.ts": "5faf28e955a0e950a5c79bc3ceb68d9c4a14df3dd2e94dd867e063de6ae1da88", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/utils/graphql_inline_vars.ts": "f69ace5ac7509f3ce33c0b31b73597372efba42eac09948ab5e8e6d38b37e3a3", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/utils/http.ts": "842af99040fd0e3456690f7674311da3a0b9ea64c608d7bc588df1ab28f163a3", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/wasm_reflected.ts": "b3562d7cafc777625f9cc06d74fcac9634d64ab5d191f2e7742155e7426377e0", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/wasm_wire.ts": "d3e53d0eab0482bd9d222897a147d5afa4ea5e31b66b7b98d40b5f13f39e9f7b", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/runtimes/wit_wire/mod.ts": "30749d1b2cf9fc5da5464c30194aabfafd019ec5d171f519a37040893f7ee16c", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/artifact_service.ts": "b910693b1ed6b8ae4ed4036b0e4c423313870cce514cde7095c6dd8f03234bd9", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/cookies.ts": "ebe37f0ff356df71cb72911bb17c13744dba9ebcd5e0eb69abf41d73cf179ee8", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/mod.ts": "0fd5fa8dc8d2278df02a93b457fbb4042261871e57985719e70e39fe491b00f0", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/protocols/basic.ts": "a4361603e15ab387ec4db8664965ecae15457eeb6503f65bc8a11bf7f87a3a6a", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/protocols/internal.ts": "a93b3234a46f4de9e726582d024a3c73114a195560ac59a9e31ad0b3cf397f39", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/protocols/jwt.ts": "f779924412dc01fc557beb200b52198382dc01345e14deb4bf8af9324e1bdbb6", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/protocols/oauth2.ts": "3a6db9349f0e5c8210480eeea26f6c8e26bf2f5df3b5c2a509ac1f3428b214c7", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/protocols/protocol.ts": "158c55618be6165a9ee393ccd1a9da267b084ff04df7e627af1e4fc8fe636644", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/routes/mod.ts": "70ceac64f3e868d5b00b21bd5094b149374f0be487293ad4098415663999320d", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/routes/take.ts": "21304fcbfa9e9f92f240121ac2fad677b315ca1f7e55ec5e6f2905d1ccdeb1aa", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/auth/routes/validate.ts": "f8a2a7f4fa58dac1f10f89dd76d8ec5a4d7ce7e98ddd1d8e56a178c9f6158eaa", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/graphql_service.ts": "c84b8cda35ceb0991d232ff2cfe468f5a93fb19440b594b23eb79dfb3ce31ea7", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/info_service.ts": "a9a1f6ebdcbe64d55806597b879dd5714c32b8b861bed695a944f5e2f1213beb", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/middlewares.ts": "b870a0f9e70880f020510b64d19e0e23450656490ac117192398bafdb00c0ccd", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/playground_service.ts": "d293851d3a5f4d3b196115a38b87d9c4826355290e42c1c1a586604bbbaffd6e", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/responses.ts": "374620f4f7bd96bacb582247f75e279906bff7dee4a1ae107364ba2fbef0b192", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/services/rest_service.ts": "316c7ece7785dc6a39b38e780915057834f3466d5274d49c849d5833bb772dcf", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/sync/replicated_map.ts": "8f7a1686ebd4c195074549771f27ca039398c6976022da79d204548c9a8e1188", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/sync/typegraph.ts": "9166892f76ca69956dc1300822834a7545886370ef83bdb61a92597dae6b6256", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/system_typegraphs.ts": "ada9d4dc74174078eb502dc707e91b628eae97fb729b90cffd7d59715dcff52f", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/transports/graphql/gq.ts": "341e066e10eb424c17095fe8cc65bbddc9cdfcdd51ecd82dd4905a50c3db8e82", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/transports/graphql/graphql.ts": "fd36d55366b2d0736580a2d8a7c408b6070ad7291db3cfbba37a6ed06ad01733", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/transports/graphql/request_parser.ts": "afbc95debcb1bbfa6fc2b88937d7abedbed1f4335bb2d17bf98c7293761cfdb0", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/transports/graphql/typegraph.ts": "e79b5acd4993a902ca4104f30075931bda49c140a5297920b644d6d3f4712ef2", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/transports/graphql/utils.ts": "ab4ee0fe51e53b4b21f7f2cfc4c77513a47d641a0bfe6822ceb46a7d8128adb9", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/transports/rest/rest_schema_generator.ts": "80d22818682b9856368dd87bf3085d6d7f53b7facf3412956588666b518bb8e5", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegate/artifacts/local.ts": "9405ef3cb3775a25d80b12f49aace608ecce7e18c29ed59196709b1e6a408d9c", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegate/artifacts/mod.ts": "ddc5d09342d9fe74b513fc0db52f0c6900d091d5cb9871b8434af0dbec854ae9", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegate/artifacts/shared.ts": "56ab2fc8250ccb7fbfaad6d586f0ea3c6422f9d76104a20af0ad51c1743bba42", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegate/hooks.ts": "de5f9fb6b4d6c288af0309d08147657eadde71e413513fb4607f7ee24d09d7d5", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegate/mod.ts": "3794b2e9a5aaf873b7636c38270bd64af8bcccc0df3d47937f9b102fc8bc2b0c", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegate/rate_limiter.ts": "0b3126eb28284ed3ed7a9fe434a5a096745ebc03e4d8b1b354fc7b791ccccd93", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegate/register.ts": "3eabfb20967d926c5729ed9f29f454e341182def492ae13208b98d03303d9d20", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegraph/mod.ts": "b15034cbf2d23267199ed58ee61a20be21dd7293c9ee162577918e0845d7c60e", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegraph/type_node.ts": "76fcb35bfad244af1fcaa45798b29a7536f5a2a45e8c824ae36a0a8cb87aeab5", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegraph/types.ts": "bbfa88cac8049c02ad220656a554e0953a04cf56af2f166174bd23e7be9cb49c", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegraph/utils.ts": "4d751910f053f7c3f33ce0cdebdd9b19970bee04ef533f65f01788c727c371e7", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegraph/versions.ts": "29e4415454a5095847aa12bec06bcc2ac3cdb6f1b75606dedd8f5612ce64f9f1", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegraph/visitor.ts": "bbcd6204c65e841cf9facf6d7b59ce1456ca051b06935c739a9be9e57807331b", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegraphs/introspection.json": "76e8796d99a71f93c6fd57e6af9708ef2d8f587f9ceca2ae9aec3f49d242e43e", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegraphs/prisma_migration.json": "05bcf740259abcedb1bb2d8b34e6d62cf2ef124481e01379b93ddaf05e99b1c1", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/typegraphs/typegate.json": "99da5fb4052c82a35a65ac18f94cbce47d7e49afdf7678b8127e2f4677805cdb", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/types.ts": "305a38570368838fa2cc3382e7d4fbb8717976397fe8bd4aeda201f7a1cb4b73", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/utils.ts": "17f24991ba464352c3855cd8cda6b4d330f4283f33b167e745571a780e02c8fb", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/src/utils/hash.ts": "2f4ce3f1736df720def3b0fc89ac9e6e29afa0a33d7a988e15cb1d1bebcf026c", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/tests/utils/memory_register.ts": "de21f1494e4e378fc43280e04ea5b59aa791d417c655d47824769cde4fc63b19", + "https://raw.githubusercontent.com/metatypedev/metatype/db616a6ae26eb6fe04e356a777c11185613d97ad/typegate/tests/utils/no_limiter.ts": "730246db1c73b5ca77e01e1838194f3870f4024cbf29a850674564b20425a7f0" + }, + "workspace": { + "dependencies": [ + "jsr:@david/dax@0.41.0", + "jsr:@std/archive@^0.225.0", + "jsr:@std/assert@^1.0.2", + "jsr:@std/cli@^1.0.4", + "jsr:@std/collections@^1.0.5", + "jsr:@std/encoding@^1.0.2", + "jsr:@std/fs@^1.0.1", + "jsr:@std/http@^1.0.3", + "jsr:@std/io@^0.224.5", + "jsr:@std/path@^1.0.2", + "jsr:@std/streams@^1.0.2", + "jsr:@std/uuid@^1.0.1", + "npm:graphql@16.8.1" + ], + "members": { + "src/typegate": { + "dependencies": [ + "jsr:@std/crypto@^1.0.2", + "jsr:@std/log@^0.224.5", + "jsr:@std/semver@^1.0.1", + "jsr:@std/url@^0.225.0", + "npm:@sentry/node@7.70.0", + "npm:chance@1.1.11", + "npm:dataloader@2.2.2", + "npm:graphql@16.8.1", + "npm:lodash@4.17.21", + "npm:validator@13.12.0" + ] + }, + "tests": { + "dependencies": [ + "jsr:@std/async@^1.0.3", + "jsr:@std/testing@^1.0.1", + "jsr:@std/yaml@^1.0.4", + "npm:json-schema-faker@0.5.3", + "npm:pg@8.12.0" + ] + } + } } } diff --git a/dev/Dockerfile.dockerignore b/dev/Dockerfile.dockerignore deleted file mode 100644 index 2c457b6c27..0000000000 --- a/dev/Dockerfile.dockerignore +++ /dev/null @@ -1,18 +0,0 @@ -* -!dev/*.ts -!dev/LICENSE-Elastic-2.0.md -!libs/ -libs/metagen/tests/ -!wit/ -!meta-cli/Cargo.toml -!typegraph/core/ -!typegate/engine -!typegate/src -!typegate/standalone -!typegate/tests/utils -!typegate/deno.jsonc -!typegate/deno.lock -!typegate/import_map.json -!ghjk.ts -!Cargo.toml -!Cargo.lock diff --git a/dev/tasks-fetch.ts b/dev/tasks-fetch.ts deleted file mode 100644 index e73dee5fe2..0000000000 --- a/dev/tasks-fetch.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright Metatype OÜ, licensed under the Elastic License 2.0. -// SPDX-License-Identifier: Elastic-2.0 - -import { DenoTaskDefArgs } from "./deps.ts"; - -const tasks: Record = { - "fetch-deno": { - inherit: "_ecma", - desc: "Cache remote deno modules.", - fn: ($) => - $`bash -sx` - .stdinText( - "deno cache --import-map typegate/import_map.json " + - [ - "typegate/src/main.ts", - "typegate/tests/utils/mod.ts", - ...($.argv[0] == "full" - ? [ - "typegate/tests/utils/*.ts", - "typegate/tests/runtimes/wasm_wire/*.ts", - "typegate/tests/runtimes/wasm_reflected/*.ts", - "typegate/tests/runtimes/python/*.ts", - "dev/deps.ts", - "dev/utils.ts", - ] - : []), - ].join(" "), - ), - }, -}; -export default tasks; diff --git a/dev/tasks-lint.ts b/dev/tasks-lint.ts deleted file mode 100644 index 254581bbeb..0000000000 --- a/dev/tasks-lint.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright Metatype OÜ, licensed under the Elastic License 2.0. -// SPDX-License-Identifier: Elastic-2.0 - -import { DenoTaskDefArgs, ports } from "./deps.ts"; -import installs from "./installs.ts"; - -const tasks: Record = { - "lint-udeps": { - desc: "Check for unused cargo depenencies", - installs: [ - // udeps needs nightly support - installs.rust_nightly, - ports.cargobi({ - crateName: "cargo-udeps", - version: "0.1.47", - locked: true, - }), - ], - fn: ($) => $`cargo udeps --all-targets --all-features ${$.argv}`, - }, -}; -export default tasks; diff --git a/website/.eslintignore b/docs/metatype.dev/.eslintignore similarity index 100% rename from website/.eslintignore rename to docs/metatype.dev/.eslintignore diff --git a/website/.eslintrc.cjs b/docs/metatype.dev/.eslintrc.cjs similarity index 100% rename from website/.eslintrc.cjs rename to docs/metatype.dev/.eslintrc.cjs diff --git a/website/.prettierignore b/docs/metatype.dev/.prettierignore similarity index 100% rename from website/.prettierignore rename to docs/metatype.dev/.prettierignore diff --git a/website/.vale.ini b/docs/metatype.dev/.vale.ini similarity index 100% rename from website/.vale.ini rename to docs/metatype.dev/.vale.ini diff --git a/website/babel.config.js b/docs/metatype.dev/babel.config.js similarity index 100% rename from website/babel.config.js rename to docs/metatype.dev/babel.config.js diff --git a/website/blog/2023-03-15-emulating-servers/index.mdx b/docs/metatype.dev/blog/2023-03-15-emulating-servers/index.mdx similarity index 100% rename from website/blog/2023-03-15-emulating-servers/index.mdx rename to docs/metatype.dev/blog/2023-03-15-emulating-servers/index.mdx diff --git a/website/blog/2023-06-18-programmable-glue/index.mdx b/docs/metatype.dev/blog/2023-06-18-programmable-glue/index.mdx similarity index 92% rename from website/blog/2023-06-18-programmable-glue/index.mdx rename to docs/metatype.dev/blog/2023-06-18-programmable-glue/index.mdx index fe2b3c1c44..ddd4139fae 100644 --- a/website/blog/2023-06-18-programmable-glue/index.mdx +++ b/docs/metatype.dev/blog/2023-06-18-programmable-glue/index.mdx @@ -15,8 +15,8 @@ We are introducing Metatype, a new project that allows developers to build modul Typegraphs are a declarative way to expose all APIs, storage and business logic of your stack as a single graph. They take inspiration from domain-driven design principles and in the idea that the relation between of the data is as important as data itself, even though they might be in different locations or shapes. , ], @@ -310,8 +310,8 @@ We're taking any and all kinds of feature requests, suggestions and recommendati ], [ , ], @@ -363,8 +363,8 @@ Access a myriad of databases directly from your typegraph. Run queries, mange it rows={[ [ , ], @@ -453,8 +453,8 @@ Access a myriad of databases directly from your typegraph. Run queries, mange it ], [ , ], @@ -472,8 +472,8 @@ Access a myriad of databases directly from your typegraph. Run queries, mange it ), }, , ], @@ -491,8 +491,8 @@ Access a myriad of databases directly from your typegraph. Run queries, mange it ), }, , ], @@ -509,8 +509,8 @@ Access a myriad of databases directly from your typegraph. Run queries, mange it ), }, , ], diff --git a/website/docs/concepts/mental-model/index.mdx b/docs/metatype.dev/docs/concepts/mental-model/index.mdx similarity index 93% rename from website/docs/concepts/mental-model/index.mdx rename to docs/metatype.dev/docs/concepts/mental-model/index.mdx index f3aa4e99f2..dde6c7a6d0 100644 --- a/website/docs/concepts/mental-model/index.mdx +++ b/docs/metatype.dev/docs/concepts/mental-model/index.mdx @@ -54,7 +54,7 @@ This computing model brings numerous advantages: **Types** are the building block of typegraphs. They define a type system describing all data objects processed in Metatype. They can be easily extended to support new data types according to the needs of the application. - {require("!!code-loader!../../../../examples/typegraphs/types.py").content} + {require("!!code-loader!../../../../../examples/typegraphs/types.py").content} **Analogy in SQL**: types are similar to the Data Definition Language (DDL) with the extended capacity of describing any type of data. @@ -65,7 +65,7 @@ Types can also describe functions and **functions** define how the input type ge { - require("!!code-loader!../../../../examples/typegraphs/functions.py") + require("!!code-loader!../../../../../examples/typegraphs/functions.py") .content } @@ -77,7 +77,7 @@ Every type and function have a runtime associated to it. This runtime describes In practice, function types are often not explicitly used and the usage of runtime sugar syntax is preferred. - {require("!!code-loader!../../../../examples/typegraphs/runtimes.py").content} + {require("!!code-loader!../../../../../examples/typegraphs/runtimes.py").content} **Analogy in SQL**: a runtime is similar to a database instance running some requests. @@ -94,7 +94,7 @@ The policy decision can be: { - require("!!code-loader!../../../../examples/typegraphs/policies-example.py") + require("!!code-loader!../../../../../examples/typegraphs/policies-example.py") .content } @@ -106,7 +106,7 @@ The policy decision can be: Triggers are events launching the execution of one or multiple functions. They fire when a GraphQL request is received for the specific typegraph. - {require("!!code-loader!../../../../examples/typegraphs/triggers.py").content} + {require("!!code-loader!../../../../../examples/typegraphs/triggers.py").content} **Analogy in SQL**: a trigger is similar to receiving a new query. diff --git a/website/docs/guides/contributing.mdx b/docs/metatype.dev/docs/guides/contributing.mdx similarity index 72% rename from website/docs/guides/contributing.mdx rename to docs/metatype.dev/docs/guides/contributing.mdx index d075033737..ade86eee6e 100644 --- a/website/docs/guides/contributing.mdx +++ b/docs/metatype.dev/docs/guides/contributing.mdx @@ -3,7 +3,7 @@ title: Contribute to Metatype sidebar_position: 100 --- -import Contributing from "../../../CONTRIBUTING.md"; +import Contributing from "../../../../CONTRIBUTING.md"; # diff --git a/website/docs/guides/external-functions/ctx.graphql b/docs/metatype.dev/docs/guides/external-functions/ctx.graphql similarity index 100% rename from website/docs/guides/external-functions/ctx.graphql rename to docs/metatype.dev/docs/guides/external-functions/ctx.graphql diff --git a/website/docs/guides/external-functions/gql.graphql b/docs/metatype.dev/docs/guides/external-functions/gql.graphql similarity index 100% rename from website/docs/guides/external-functions/gql.graphql rename to docs/metatype.dev/docs/guides/external-functions/gql.graphql diff --git a/website/docs/guides/external-functions/index.mdx b/docs/metatype.dev/docs/guides/external-functions/index.mdx similarity index 84% rename from website/docs/guides/external-functions/index.mdx rename to docs/metatype.dev/docs/guides/external-functions/index.mdx index 39c6b79692..f994b8310d 100644 --- a/website/docs/guides/external-functions/index.mdx +++ b/docs/metatype.dev/docs/guides/external-functions/index.mdx @@ -17,15 +17,15 @@ The following example uses the `DenoRuntime` to respond to requests and define a Note that for the `fib` root function, we're using a typescript module in an external file. Here's what `scripts/fib.ts` looks like: @@ -48,8 +48,8 @@ On some runtimes, custom functions are passed to the context object along with t @@ -67,15 +67,15 @@ To do anything meaningful with custom functions, you'll want to access the rest And `scripts/createVote.ts` looks like: ## Generating types @@ -92,8 +92,8 @@ The metagen library is availaible within the [meta CLI](/docs/reference/meta-cli @@ -136,7 +136,7 @@ Within `mdk.ts` and the types and helpers, all the types from your typegraph sho Code generation sample. Collapsed for aesthetic reasons. @@ -147,7 +147,7 @@ Note, this also include typescript function types for specific typegraph functio We can then use these types in the following manner. Add the following snippet into `metagen/ts/remix.ts`. diff --git a/website/docs/guides/external-functions/math.graphql b/docs/metatype.dev/docs/guides/external-functions/math.graphql similarity index 100% rename from website/docs/guides/external-functions/math.graphql rename to docs/metatype.dev/docs/guides/external-functions/math.graphql diff --git a/website/docs/guides/external-functions/metagen.graphql b/docs/metatype.dev/docs/guides/external-functions/metagen.graphql similarity index 100% rename from website/docs/guides/external-functions/metagen.graphql rename to docs/metatype.dev/docs/guides/external-functions/metagen.graphql diff --git a/website/docs/guides/files-upload/index.mdx b/docs/metatype.dev/docs/guides/files-upload/index.mdx similarity index 100% rename from website/docs/guides/files-upload/index.mdx rename to docs/metatype.dev/docs/guides/files-upload/index.mdx diff --git a/website/docs/guides/import-external-modules/func.graphql b/docs/metatype.dev/docs/guides/import-external-modules/func.graphql similarity index 100% rename from website/docs/guides/import-external-modules/func.graphql rename to docs/metatype.dev/docs/guides/import-external-modules/func.graphql diff --git a/website/docs/guides/import-external-modules/index.mdx b/docs/metatype.dev/docs/guides/import-external-modules/index.mdx similarity index 92% rename from website/docs/guides/import-external-modules/index.mdx rename to docs/metatype.dev/docs/guides/import-external-modules/index.mdx index f724adb49c..ca5f567134 100644 --- a/website/docs/guides/import-external-modules/index.mdx +++ b/docs/metatype.dev/docs/guides/import-external-modules/index.mdx @@ -68,7 +68,7 @@ We can now access our func through the GraphQl api. diff --git a/website/docs/guides/programmatic-deployment/index.mdx b/docs/metatype.dev/docs/guides/programmatic-deployment/index.mdx similarity index 73% rename from website/docs/guides/programmatic-deployment/index.mdx rename to docs/metatype.dev/docs/guides/programmatic-deployment/index.mdx index 081d9f7361..c585419ebb 100644 --- a/website/docs/guides/programmatic-deployment/index.mdx +++ b/docs/metatype.dev/docs/guides/programmatic-deployment/index.mdx @@ -21,7 +21,7 @@ You are required to provide the configurations and also handle migrations by you -{require("!!code-loader!../../../../typegate/tests/docs/how-tos/prog_deploy/prog_deploy.py").content} +{require("!!code-loader!../../../../../tests/docs/how-tos/prog_deploy/prog_deploy.py").content} @@ -30,7 +30,7 @@ You are required to provide the configurations and also handle migrations by you -{require("!!code-loader!../../../../typegate/tests/docs/how-tos/prog_deploy/prog_deploy.ts").content} +{require("!!code-loader!../../../../../tests/docs/how-tos/prog_deploy/prog_deploy.ts").content} @@ -47,7 +47,7 @@ Similarly to the above, you can undeploy typegraphs using the `tgRemove`/`tg_rem -{require("!!code-loader!../../../../typegate/tests/docs/how-tos/prog_deploy/prog_remove.py").content} +{require("!!code-loader!../../../../../tests/docs/how-tos/prog_deploy/prog_remove.py").content} @@ -56,7 +56,7 @@ Similarly to the above, you can undeploy typegraphs using the `tgRemove`/`tg_rem -{require("!!code-loader!../../../../typegate/tests/docs/how-tos/prog_deploy/prog_remove.ts").content} +{require("!!code-loader!../../../../../tests/docs/how-tos/prog_deploy/prog_remove.ts").content} diff --git a/website/docs/guides/rest/index.mdx b/docs/metatype.dev/docs/guides/rest/index.mdx similarity index 84% rename from website/docs/guides/rest/index.mdx rename to docs/metatype.dev/docs/guides/rest/index.mdx index 1b0eed44f1..2c05ed8e43 100644 --- a/website/docs/guides/rest/index.mdx +++ b/docs/metatype.dev/docs/guides/rest/index.mdx @@ -12,8 +12,8 @@ In addition, we can also expose [REST](https://en.wikipedia.org/wiki/REST) APIs The method takes GraphQl queries and provides RESTly endpoints for them. diff --git a/website/docs/guides/securing-requests/authentication.graphql b/docs/metatype.dev/docs/guides/securing-requests/authentication.graphql similarity index 100% rename from website/docs/guides/securing-requests/authentication.graphql rename to docs/metatype.dev/docs/guides/securing-requests/authentication.graphql diff --git a/website/docs/guides/securing-requests/cors.graphql b/docs/metatype.dev/docs/guides/securing-requests/cors.graphql similarity index 100% rename from website/docs/guides/securing-requests/cors.graphql rename to docs/metatype.dev/docs/guides/securing-requests/cors.graphql diff --git a/website/docs/guides/securing-requests/cors.py b/docs/metatype.dev/docs/guides/securing-requests/cors.py similarity index 100% rename from website/docs/guides/securing-requests/cors.py rename to docs/metatype.dev/docs/guides/securing-requests/cors.py diff --git a/website/docs/guides/securing-requests/index.mdx b/docs/metatype.dev/docs/guides/securing-requests/index.mdx similarity index 92% rename from website/docs/guides/securing-requests/index.mdx rename to docs/metatype.dev/docs/guides/securing-requests/index.mdx index fd7d7cebeb..f0923600a5 100644 --- a/website/docs/guides/securing-requests/index.mdx +++ b/docs/metatype.dev/docs/guides/securing-requests/index.mdx @@ -22,8 +22,8 @@ The following example uses basic authentication in order to only allow access fo @@ -73,7 +73,7 @@ By default, the `mdk_rust` generator outputs all the necessary files required to { - require("!!code-loader!../../../../examples/typegraphs/metagen/rs/Cargo.toml") + require("!!code-loader!../../../../../examples/typegraphs/metagen/rs/Cargo.toml") .content } @@ -89,7 +89,7 @@ The `mdk.rs` file contains all the glue code including the typegraph types. { - require("!!code-loader!../../../../examples/typegraphs/metagen/rs/mdk.rs") + require("!!code-loader!../../../../../examples/typegraphs/metagen/rs/mdk.rs") .content } @@ -101,7 +101,7 @@ The generator also includes a sample `lib.rs` entrypoint file for our crate. We' { - require("!!code-loader!../../../../examples/typegraphs/metagen/rs/lib.rs") + require("!!code-loader!../../../../../examples/typegraphs/metagen/rs/lib.rs") .content } @@ -138,7 +138,7 @@ Put the shell script into a file like `build.sh` and execute it with a posix com diff --git a/website/docs/guides/wasm-functions/metagen.graphql b/docs/metatype.dev/docs/guides/wasm-functions/metagen.graphql similarity index 100% rename from website/docs/guides/wasm-functions/metagen.graphql rename to docs/metatype.dev/docs/guides/wasm-functions/metagen.graphql diff --git a/website/docs/index.mdx b/docs/metatype.dev/docs/index.mdx similarity index 100% rename from website/docs/index.mdx rename to docs/metatype.dev/docs/index.mdx diff --git a/website/docs/reference/changelog.mdx b/docs/metatype.dev/docs/reference/changelog.mdx similarity index 74% rename from website/docs/reference/changelog.mdx rename to docs/metatype.dev/docs/reference/changelog.mdx index 303a9409ed..d38ae92fca 100644 --- a/website/docs/reference/changelog.mdx +++ b/docs/metatype.dev/docs/reference/changelog.mdx @@ -4,7 +4,7 @@ comments: false sidebar_position: 1000 --- -import Changelog from "../../../CHANGELOG.md"; +import Changelog from "../../../../CHANGELOG.md"; # diff --git a/website/docs/reference/ecosystem/index.mdx b/docs/metatype.dev/docs/reference/ecosystem/index.mdx similarity index 100% rename from website/docs/reference/ecosystem/index.mdx rename to docs/metatype.dev/docs/reference/ecosystem/index.mdx diff --git a/website/docs/reference/meta-cli/available-commands.mdx b/docs/metatype.dev/docs/reference/meta-cli/available-commands.mdx similarity index 100% rename from website/docs/reference/meta-cli/available-commands.mdx rename to docs/metatype.dev/docs/reference/meta-cli/available-commands.mdx diff --git a/website/docs/reference/meta-cli/configuration-file.mdx b/docs/metatype.dev/docs/reference/meta-cli/configuration-file.mdx similarity index 100% rename from website/docs/reference/meta-cli/configuration-file.mdx rename to docs/metatype.dev/docs/reference/meta-cli/configuration-file.mdx diff --git a/website/docs/reference/meta-cli/embedded-typegate/index.mdx b/docs/metatype.dev/docs/reference/meta-cli/embedded-typegate/index.mdx similarity index 100% rename from website/docs/reference/meta-cli/embedded-typegate/index.mdx rename to docs/metatype.dev/docs/reference/meta-cli/embedded-typegate/index.mdx diff --git a/website/docs/reference/meta-cli/index.mdx b/docs/metatype.dev/docs/reference/meta-cli/index.mdx similarity index 100% rename from website/docs/reference/meta-cli/index.mdx rename to docs/metatype.dev/docs/reference/meta-cli/index.mdx diff --git a/website/docs/reference/metagen/index.mdx b/docs/metatype.dev/docs/reference/metagen/index.mdx similarity index 85% rename from website/docs/reference/metagen/index.mdx rename to docs/metatype.dev/docs/reference/metagen/index.mdx index 6c042ab334..69551b684c 100644 --- a/website/docs/reference/metagen/index.mdx +++ b/docs/metatype.dev/docs/reference/metagen/index.mdx @@ -62,8 +62,8 @@ This will resolve the requisite typegraphs, serialize as needed and put the resu Metagen is availaible through the SDK for programmatic access needs and can be helpful when writing tests or when relying on the CLI is not an option. @@ -92,15 +92,15 @@ The following example showcases the generator. Typegraph: Custom function: @@ -110,7 +110,7 @@ Custom function: @@ -138,14 +138,14 @@ The following example showcases the generator. Typegraph: Custom function: @@ -155,7 +155,7 @@ Custom function: @@ -182,8 +182,8 @@ The following example showcases the generator. Typegraph: @@ -191,7 +191,7 @@ Custom function: { - require("!!code-loader!../../../../examples/typegraphs/metagen/rs/lib.rs") + require("!!code-loader!../../../../../examples/typegraphs/metagen/rs/lib.rs") .content } @@ -200,7 +200,7 @@ Custom function: Code generation sample. { - require("!!code-loader!../../../../examples/typegraphs/metagen/rs/mdk.rs") + require("!!code-loader!../../../../../examples/typegraphs/metagen/rs/mdk.rs") .content } diff --git a/website/docs/reference/policies/index.mdx b/docs/metatype.dev/docs/reference/policies/index.mdx similarity index 89% rename from website/docs/reference/policies/index.mdx rename to docs/metatype.dev/docs/reference/policies/index.mdx index 2160f51fce..8bc5ace886 100644 --- a/website/docs/reference/policies/index.mdx +++ b/docs/metatype.dev/docs/reference/policies/index.mdx @@ -24,7 +24,7 @@ Policies are hierarchical in the sense that the request starts with a denial, an diff --git a/website/docs/reference/policies/policies.graphql b/docs/metatype.dev/docs/reference/policies/policies.graphql similarity index 100% rename from website/docs/reference/policies/policies.graphql rename to docs/metatype.dev/docs/reference/policies/policies.graphql diff --git a/website/docs/reference/rest/index.mdx b/docs/metatype.dev/docs/reference/rest/index.mdx similarity index 100% rename from website/docs/reference/rest/index.mdx rename to docs/metatype.dev/docs/reference/rest/index.mdx diff --git a/website/docs/reference/runtimes/deno/deno.graphql b/docs/metatype.dev/docs/reference/runtimes/deno/deno.graphql similarity index 100% rename from website/docs/reference/runtimes/deno/deno.graphql rename to docs/metatype.dev/docs/reference/runtimes/deno/deno.graphql diff --git a/website/docs/reference/runtimes/deno/index.mdx b/docs/metatype.dev/docs/reference/runtimes/deno/index.mdx similarity index 89% rename from website/docs/reference/runtimes/deno/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/deno/index.mdx index c3bf5178a1..fa81eb6ce0 100644 --- a/website/docs/reference/runtimes/deno/index.mdx +++ b/docs/metatype.dev/docs/reference/runtimes/deno/index.mdx @@ -9,8 +9,8 @@ The DenoRuntime allows you to run lightweight and short-lived typescript functio diff --git a/website/docs/reference/runtimes/graphql/graphql.graphql b/docs/metatype.dev/docs/reference/runtimes/graphql/graphql.graphql similarity index 100% rename from website/docs/reference/runtimes/graphql/graphql.graphql rename to docs/metatype.dev/docs/reference/runtimes/graphql/graphql.graphql diff --git a/website/docs/reference/runtimes/graphql/index.mdx b/docs/metatype.dev/docs/reference/runtimes/graphql/index.mdx similarity index 93% rename from website/docs/reference/runtimes/graphql/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/graphql/index.mdx index e68be1ad6b..6d39e2d009 100644 --- a/website/docs/reference/runtimes/graphql/index.mdx +++ b/docs/metatype.dev/docs/reference/runtimes/graphql/index.mdx @@ -12,8 +12,8 @@ Update `typegraph.py` with the highlighted lines below: diff --git a/website/docs/reference/runtimes/http/http.graphql b/docs/metatype.dev/docs/reference/runtimes/http/http.graphql similarity index 100% rename from website/docs/reference/runtimes/http/http.graphql rename to docs/metatype.dev/docs/reference/runtimes/http/http.graphql diff --git a/website/docs/reference/runtimes/http/index.mdx b/docs/metatype.dev/docs/reference/runtimes/http/index.mdx similarity index 94% rename from website/docs/reference/runtimes/http/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/http/index.mdx index 35e882b249..fb3ed67b91 100644 --- a/website/docs/reference/runtimes/http/index.mdx +++ b/docs/metatype.dev/docs/reference/runtimes/http/index.mdx @@ -17,8 +17,8 @@ Example: diff --git a/website/docs/reference/runtimes/index.mdx b/docs/metatype.dev/docs/reference/runtimes/index.mdx similarity index 100% rename from website/docs/reference/runtimes/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/index.mdx diff --git a/website/docs/reference/runtimes/kv/index.mdx b/docs/metatype.dev/docs/reference/runtimes/kv/index.mdx similarity index 84% rename from website/docs/reference/runtimes/kv/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/kv/index.mdx index 1ed4dc5f96..f631156ef8 100644 --- a/website/docs/reference/runtimes/kv/index.mdx +++ b/docs/metatype.dev/docs/reference/runtimes/kv/index.mdx @@ -8,8 +8,8 @@ The KvRuntime enables interaction with a Redis database by setting, retrieving, diff --git a/website/docs/reference/runtimes/prisma/database.graphql b/docs/metatype.dev/docs/reference/runtimes/prisma/database.graphql similarity index 100% rename from website/docs/reference/runtimes/prisma/database.graphql rename to docs/metatype.dev/docs/reference/runtimes/prisma/database.graphql diff --git a/website/docs/reference/runtimes/prisma/index.mdx b/docs/metatype.dev/docs/reference/runtimes/prisma/index.mdx similarity index 98% rename from website/docs/reference/runtimes/prisma/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/prisma/index.mdx index 98ae05d7ab..7ff58ba665 100644 --- a/website/docs/reference/runtimes/prisma/index.mdx +++ b/docs/metatype.dev/docs/reference/runtimes/prisma/index.mdx @@ -36,8 +36,8 @@ Go ahead and update `typegraph.py` with the highlighted lines below: diff --git a/website/docs/reference/runtimes/python/index.mdx b/docs/metatype.dev/docs/reference/runtimes/python/index.mdx similarity index 100% rename from website/docs/reference/runtimes/python/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/python/index.mdx diff --git a/website/docs/reference/runtimes/random/index.mdx b/docs/metatype.dev/docs/reference/runtimes/random/index.mdx similarity index 88% rename from website/docs/reference/runtimes/random/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/random/index.mdx index fa007bd4a5..f8d19e8714 100644 --- a/website/docs/reference/runtimes/random/index.mdx +++ b/docs/metatype.dev/docs/reference/runtimes/random/index.mdx @@ -13,8 +13,8 @@ One use case is to use this runtime as way of testing, for example you can rapid The `seed` parameter ensures repeatability if set. @@ -23,8 +23,8 @@ Another use case is to inject random values to a function input diff --git a/website/docs/reference/runtimes/random/random-field.graphql b/docs/metatype.dev/docs/reference/runtimes/random/random-field.graphql similarity index 100% rename from website/docs/reference/runtimes/random/random-field.graphql rename to docs/metatype.dev/docs/reference/runtimes/random/random-field.graphql diff --git a/website/docs/reference/runtimes/random/random.graphql b/docs/metatype.dev/docs/reference/runtimes/random/random.graphql similarity index 100% rename from website/docs/reference/runtimes/random/random.graphql rename to docs/metatype.dev/docs/reference/runtimes/random/random.graphql diff --git a/website/docs/reference/runtimes/s3/index.mdx b/docs/metatype.dev/docs/reference/runtimes/s3/index.mdx similarity index 100% rename from website/docs/reference/runtimes/s3/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/s3/index.mdx diff --git a/website/docs/reference/runtimes/temporal/index.mdx b/docs/metatype.dev/docs/reference/runtimes/temporal/index.mdx similarity index 86% rename from website/docs/reference/runtimes/temporal/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/temporal/index.mdx index 204ae1d541..37d9cf9080 100644 --- a/website/docs/reference/runtimes/temporal/index.mdx +++ b/docs/metatype.dev/docs/reference/runtimes/temporal/index.mdx @@ -18,8 +18,8 @@ Here is a simple example of a typegraph that takes some value from an environmen diff --git a/website/docs/reference/runtimes/wasm/index.mdx b/docs/metatype.dev/docs/reference/runtimes/wasm/index.mdx similarity index 100% rename from website/docs/reference/runtimes/wasm/index.mdx rename to docs/metatype.dev/docs/reference/runtimes/wasm/index.mdx diff --git a/website/docs/reference/typegate/authentication/basic.graphql b/docs/metatype.dev/docs/reference/typegate/authentication/basic.graphql similarity index 100% rename from website/docs/reference/typegate/authentication/basic.graphql rename to docs/metatype.dev/docs/reference/typegate/authentication/basic.graphql diff --git a/website/docs/reference/typegate/authentication/index.mdx b/docs/metatype.dev/docs/reference/typegate/authentication/index.mdx similarity index 92% rename from website/docs/reference/typegate/authentication/index.mdx rename to docs/metatype.dev/docs/reference/typegate/authentication/index.mdx index abbd2e74df..23806a1381 100644 --- a/website/docs/reference/typegate/authentication/index.mdx +++ b/docs/metatype.dev/docs/reference/typegate/authentication/index.mdx @@ -16,8 +16,8 @@ Basic authentication is the simplest way to authenticate requests. It is done by | Context | `{ username }` | diff --git a/website/docs/reference/typegate/rate-limiting/rate.graphql b/docs/metatype.dev/docs/reference/typegate/rate-limiting/rate.graphql similarity index 100% rename from website/docs/reference/typegate/rate-limiting/rate.graphql rename to docs/metatype.dev/docs/reference/typegate/rate-limiting/rate.graphql diff --git a/website/docs/reference/typegate/synchronization/index.mdx b/docs/metatype.dev/docs/reference/typegate/synchronization/index.mdx similarity index 100% rename from website/docs/reference/typegate/synchronization/index.mdx rename to docs/metatype.dev/docs/reference/typegate/synchronization/index.mdx diff --git a/website/docs/reference/typegraph/index.mdx b/docs/metatype.dev/docs/reference/typegraph/index.mdx similarity index 100% rename from website/docs/reference/typegraph/index.mdx rename to docs/metatype.dev/docs/reference/typegraph/index.mdx diff --git a/website/docs/reference/types/functions.mdx b/docs/metatype.dev/docs/reference/types/functions.mdx similarity index 100% rename from website/docs/reference/types/functions.mdx rename to docs/metatype.dev/docs/reference/types/functions.mdx diff --git a/website/docs/reference/types/importers/google.py_ b/docs/metatype.dev/docs/reference/types/importers/google.py_ similarity index 100% rename from website/docs/reference/types/importers/google.py_ rename to docs/metatype.dev/docs/reference/types/importers/google.py_ diff --git a/website/docs/reference/types/importers/google.pyi b/docs/metatype.dev/docs/reference/types/importers/google.pyi similarity index 100% rename from website/docs/reference/types/importers/google.pyi rename to docs/metatype.dev/docs/reference/types/importers/google.pyi diff --git a/website/docs/reference/types/importers/importer.py_ b/docs/metatype.dev/docs/reference/types/importers/importer.py_ similarity index 100% rename from website/docs/reference/types/importers/importer.py_ rename to docs/metatype.dev/docs/reference/types/importers/importer.py_ diff --git a/website/docs/reference/types/importers/index.mdx.disabled b/docs/metatype.dev/docs/reference/types/importers/index.mdx.disabled similarity index 100% rename from website/docs/reference/types/importers/index.mdx.disabled rename to docs/metatype.dev/docs/reference/types/importers/index.mdx.disabled diff --git a/website/docs/reference/types/importers/typegraph_std.py_ b/docs/metatype.dev/docs/reference/types/importers/typegraph_std.py_ similarity index 100% rename from website/docs/reference/types/importers/typegraph_std.py_ rename to docs/metatype.dev/docs/reference/types/importers/typegraph_std.py_ diff --git a/website/docs/reference/types/index.mdx b/docs/metatype.dev/docs/reference/types/index.mdx similarity index 100% rename from website/docs/reference/types/index.mdx rename to docs/metatype.dev/docs/reference/types/index.mdx diff --git a/website/docs/reference/types/injections.mdx b/docs/metatype.dev/docs/reference/types/injections.mdx similarity index 91% rename from website/docs/reference/types/injections.mdx rename to docs/metatype.dev/docs/reference/types/injections.mdx index 21a8ac0c16..cf212ac05d 100644 --- a/website/docs/reference/types/injections.mdx +++ b/docs/metatype.dev/docs/reference/types/injections.mdx @@ -52,8 +52,8 @@ Available generators: diff --git a/website/docs/reference/types/parameter-transformations.mdx b/docs/metatype.dev/docs/reference/types/parameter-transformations.mdx similarity index 100% rename from website/docs/reference/types/parameter-transformations.mdx rename to docs/metatype.dev/docs/reference/types/parameter-transformations.mdx diff --git a/website/docs/sidebars.js b/docs/metatype.dev/docs/sidebars.js similarity index 100% rename from website/docs/sidebars.js rename to docs/metatype.dev/docs/sidebars.js diff --git a/website/docs/tutorials/metatype-basics/execute.graphql b/docs/metatype.dev/docs/tutorials/metatype-basics/execute.graphql similarity index 100% rename from website/docs/tutorials/metatype-basics/execute.graphql rename to docs/metatype.dev/docs/tutorials/metatype-basics/execute.graphql diff --git a/website/docs/tutorials/metatype-basics/index.mdx b/docs/metatype.dev/docs/tutorials/metatype-basics/index.mdx similarity index 97% rename from website/docs/tutorials/metatype-basics/index.mdx rename to docs/metatype.dev/docs/tutorials/metatype-basics/index.mdx index 87c32c3f19..b4649e99f3 100644 --- a/website/docs/tutorials/metatype-basics/index.mdx +++ b/docs/metatype.dev/docs/tutorials/metatype-basics/index.mdx @@ -299,8 +299,8 @@ Or, you can mess around on the playground below. @@ -544,8 +544,8 @@ We should be able to add a few buckets and ideas now. @@ -653,8 +653,8 @@ When you save the files, meta-cli will reload the new additions to your typegrap @@ -797,8 +797,8 @@ mutation { diff --git a/website/docs/tutorials/metatype-basics/md2html.ts.src b/docs/metatype.dev/docs/tutorials/metatype-basics/md2html.ts.src similarity index 100% rename from website/docs/tutorials/metatype-basics/md2html.ts.src rename to docs/metatype.dev/docs/tutorials/metatype-basics/md2html.ts.src diff --git a/website/docs/tutorials/metatype-basics/policies.graphql b/docs/metatype.dev/docs/tutorials/metatype-basics/policies.graphql similarity index 100% rename from website/docs/tutorials/metatype-basics/policies.graphql rename to docs/metatype.dev/docs/tutorials/metatype-basics/policies.graphql diff --git a/website/docs/tutorials/metatype-basics/prisma.graphql b/docs/metatype.dev/docs/tutorials/metatype-basics/prisma.graphql similarity index 100% rename from website/docs/tutorials/metatype-basics/prisma.graphql rename to docs/metatype.dev/docs/tutorials/metatype-basics/prisma.graphql diff --git a/website/docs/tutorials/metatype-basics/query.graphql b/docs/metatype.dev/docs/tutorials/metatype-basics/query.graphql similarity index 100% rename from website/docs/tutorials/metatype-basics/query.graphql rename to docs/metatype.dev/docs/tutorials/metatype-basics/query.graphql diff --git a/website/docs/tutorials/metatype-basics/random.graphql b/docs/metatype.dev/docs/tutorials/metatype-basics/random.graphql similarity index 100% rename from website/docs/tutorials/metatype-basics/random.graphql rename to docs/metatype.dev/docs/tutorials/metatype-basics/random.graphql diff --git a/website/docs/tutorials/metatype-basics/reduce.graphql b/docs/metatype.dev/docs/tutorials/metatype-basics/reduce.graphql similarity index 100% rename from website/docs/tutorials/metatype-basics/reduce.graphql rename to docs/metatype.dev/docs/tutorials/metatype-basics/reduce.graphql diff --git a/website/docs/tutorials/quick-start/index.mdx b/docs/metatype.dev/docs/tutorials/quick-start/index.mdx similarity index 100% rename from website/docs/tutorials/quick-start/index.mdx rename to docs/metatype.dev/docs/tutorials/quick-start/index.mdx diff --git a/website/docusaurus.config.js b/docs/metatype.dev/docusaurus.config.js similarity index 93% rename from website/docusaurus.config.js rename to docs/metatype.dev/docusaurus.config.js index 083ae1d21e..ac57c6f5ab 100644 --- a/website/docusaurus.config.js +++ b/docs/metatype.dev/docusaurus.config.js @@ -25,7 +25,8 @@ const config = { }, stylesheets: [ { - href: "https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap", + href: + "https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap", type: "text/css", }, ], @@ -49,7 +50,8 @@ const config = { path: "use-cases", routeBasePath: "/use-cases", sidebarPath: require.resolve("./use-cases/sidebars.js"), - editUrl: "https://github.com/metatypedev/metatype/tree/main/website/", + editUrl: + "https://github.com/metatypedev/metatype/tree/main/docs/metatype.dev/", }, ], "docusaurus-lunr-search", @@ -68,14 +70,16 @@ const config = { path: "docs", routeBasePath: "/docs", sidebarPath: require.resolve("./docs/sidebars.js"), - editUrl: "https://github.com/metatypedev/metatype/tree/main/website/", + editUrl: + "https://github.com/metatypedev/metatype/tree/main/docs/metatype.dev/", }, blog: { id: "blog", path: "blog", routeBasePath: "/blog", showReadingTime: true, - editUrl: "https://github.com/metatypedev/metatype/tree/main/website/", + editUrl: + "https://github.com/metatypedev/metatype/tree/main/docs/metatype.dev/", }, theme: { customCss: require.resolve("./src/css/custom.scss"), diff --git a/website/globals.d.ts b/docs/metatype.dev/globals.d.ts similarity index 100% rename from website/globals.d.ts rename to docs/metatype.dev/globals.d.ts diff --git a/website/package.json b/docs/metatype.dev/package.json similarity index 100% rename from website/package.json rename to docs/metatype.dev/package.json diff --git a/website/packages/code-loader-transform.js b/docs/metatype.dev/packages/code-loader-transform.js similarity index 100% rename from website/packages/code-loader-transform.js rename to docs/metatype.dev/packages/code-loader-transform.js diff --git a/website/packages/code-loader.js b/docs/metatype.dev/packages/code-loader.js similarity index 100% rename from website/packages/code-loader.js rename to docs/metatype.dev/packages/code-loader.js diff --git a/website/packages/tailwindcss.js b/docs/metatype.dev/packages/tailwindcss.js similarity index 100% rename from website/packages/tailwindcss.js rename to docs/metatype.dev/packages/tailwindcss.js diff --git a/website/pnpm-lock.yaml b/docs/metatype.dev/pnpm-lock.yaml similarity index 100% rename from website/pnpm-lock.yaml rename to docs/metatype.dev/pnpm-lock.yaml diff --git a/website/shared/components.drawio.svg b/docs/metatype.dev/shared/components.drawio.svg similarity index 100% rename from website/shared/components.drawio.svg rename to docs/metatype.dev/shared/components.drawio.svg diff --git a/website/shared/cors/cors.graphql b/docs/metatype.dev/shared/cors/cors.graphql similarity index 100% rename from website/shared/cors/cors.graphql rename to docs/metatype.dev/shared/cors/cors.graphql diff --git a/website/shared/cors/index.mdx b/docs/metatype.dev/shared/cors/index.mdx similarity index 89% rename from website/shared/cors/index.mdx rename to docs/metatype.dev/shared/cors/index.mdx index 289d61e9b2..f9a15bb5e5 100644 --- a/website/shared/cors/index.mdx +++ b/docs/metatype.dev/shared/cors/index.mdx @@ -9,7 +9,7 @@ Cross-Origin Resource Sharing (CORS) is a mechanism that allows or denies cross- @@ -19,7 +19,7 @@ Cross-Origin Resource Sharing (CORS) is a mechanism that allows or denies cross- diff --git a/website/shared/evolution.drawio.svg b/docs/metatype.dev/shared/evolution.drawio.svg similarity index 100% rename from website/shared/evolution.drawio.svg rename to docs/metatype.dev/shared/evolution.drawio.svg diff --git a/website/shared/install/meta-cli.mdx b/docs/metatype.dev/shared/install/meta-cli.mdx similarity index 100% rename from website/shared/install/meta-cli.mdx rename to docs/metatype.dev/shared/install/meta-cli.mdx diff --git a/website/shared/install/typegate.mdx b/docs/metatype.dev/shared/install/typegate.mdx similarity index 100% rename from website/shared/install/typegate.mdx rename to docs/metatype.dev/shared/install/typegate.mdx diff --git a/website/shared/install/typegraph.mdx b/docs/metatype.dev/shared/install/typegraph.mdx similarity index 100% rename from website/shared/install/typegraph.mdx rename to docs/metatype.dev/shared/install/typegraph.mdx diff --git a/website/shared/meta-cli/embedded-typegate.mdx b/docs/metatype.dev/shared/meta-cli/embedded-typegate.mdx similarity index 100% rename from website/shared/meta-cli/embedded-typegate.mdx rename to docs/metatype.dev/shared/meta-cli/embedded-typegate.mdx diff --git a/website/shared/metatype-intro.mdx b/docs/metatype.dev/shared/metatype-intro.mdx similarity index 100% rename from website/shared/metatype-intro.mdx rename to docs/metatype.dev/shared/metatype-intro.mdx diff --git a/website/shared/projects/first-project.graphql b/docs/metatype.dev/shared/projects/first-project.graphql similarity index 100% rename from website/shared/projects/first-project.graphql rename to docs/metatype.dev/shared/projects/first-project.graphql diff --git a/website/shared/projects/first-project.mdx b/docs/metatype.dev/shared/projects/first-project.mdx similarity index 100% rename from website/shared/projects/first-project.mdx rename to docs/metatype.dev/shared/projects/first-project.mdx diff --git a/website/shared/projects/tab-first-project-python.mdx b/docs/metatype.dev/shared/projects/tab-first-project-python.mdx similarity index 96% rename from website/shared/projects/tab-first-project-python.mdx rename to docs/metatype.dev/shared/projects/tab-first-project-python.mdx index e126822c90..cf580e9e54 100644 --- a/website/shared/projects/tab-first-project-python.mdx +++ b/docs/metatype.dev/shared/projects/tab-first-project-python.mdx @@ -25,7 +25,7 @@ The command also creates a directory called `api` where you will be building muc { - require("!!code-loader!../../../examples/templates/python/api/example.py") + require("!!code-loader!../../../../examples/templates/python/api/example.py") .content } @@ -98,7 +98,7 @@ With these simple steps, you were able to build a basic backend with database ca { - require("!!code-loader!../../../examples/typegraphs/quick-start-project.py") + require("!!code-loader!../../../../examples/typegraphs/quick-start-project.py") .content } @@ -167,6 +167,6 @@ You can also try out what you have built so far here on this playground. diff --git a/website/shared/projects/tab-first-project-ts.mdx b/docs/metatype.dev/shared/projects/tab-first-project-ts.mdx similarity index 96% rename from website/shared/projects/tab-first-project-ts.mdx rename to docs/metatype.dev/shared/projects/tab-first-project-ts.mdx index 6c80c27e30..1b8c92fc09 100644 --- a/website/shared/projects/tab-first-project-ts.mdx +++ b/docs/metatype.dev/shared/projects/tab-first-project-ts.mdx @@ -22,7 +22,7 @@ The command also creates a directory called `api` where you will be building muc { - require("!!code-loader!../../../examples/templates/node/api/example.ts") + require("!!code-loader!../../../../examples/templates/node/api/example.ts") .content } @@ -100,7 +100,7 @@ With these three simple steps, you were able to build a basic backend with datab { - require("!!code-loader!../../../examples/typegraphs/quick-start-project.ts") + require("!!code-loader!../../../../examples/typegraphs/quick-start-project.ts") .content } @@ -169,6 +169,6 @@ You can also try out what you have built so far here on this playground. diff --git a/website/shared/s3/files.graphql b/docs/metatype.dev/shared/s3/files.graphql similarity index 100% rename from website/shared/s3/files.graphql rename to docs/metatype.dev/shared/s3/files.graphql diff --git a/website/shared/s3/index.mdx b/docs/metatype.dev/shared/s3/index.mdx similarity index 90% rename from website/shared/s3/index.mdx rename to docs/metatype.dev/shared/s3/index.mdx index 35fbcede5a..9b8244e43e 100644 --- a/website/shared/s3/index.mdx +++ b/docs/metatype.dev/shared/s3/index.mdx @@ -41,8 +41,8 @@ Our typegraph will then look something like: diff --git a/website/shared/upgrade/index.mdx b/docs/metatype.dev/shared/upgrade/index.mdx similarity index 100% rename from website/shared/upgrade/index.mdx rename to docs/metatype.dev/shared/upgrade/index.mdx diff --git a/website/shared/upgrade/meta-cli.mdx b/docs/metatype.dev/shared/upgrade/meta-cli.mdx similarity index 100% rename from website/shared/upgrade/meta-cli.mdx rename to docs/metatype.dev/shared/upgrade/meta-cli.mdx diff --git a/website/shared/upgrade/python-sdk.mdx b/docs/metatype.dev/shared/upgrade/python-sdk.mdx similarity index 100% rename from website/shared/upgrade/python-sdk.mdx rename to docs/metatype.dev/shared/upgrade/python-sdk.mdx diff --git a/website/shared/upgrade/typescript-sdk.mdx b/docs/metatype.dev/shared/upgrade/typescript-sdk.mdx similarity index 100% rename from website/shared/upgrade/typescript-sdk.mdx rename to docs/metatype.dev/shared/upgrade/typescript-sdk.mdx diff --git a/website/src/components/BlogIntro/index.tsx b/docs/metatype.dev/src/components/BlogIntro/index.tsx similarity index 100% rename from website/src/components/BlogIntro/index.tsx rename to docs/metatype.dev/src/components/BlogIntro/index.tsx diff --git a/website/src/components/ChoicePicker/index.tsx b/docs/metatype.dev/src/components/ChoicePicker/index.tsx similarity index 100% rename from website/src/components/ChoicePicker/index.tsx rename to docs/metatype.dev/src/components/ChoicePicker/index.tsx diff --git a/website/src/components/CompareLandscape.tsx b/docs/metatype.dev/src/components/CompareLandscape.tsx similarity index 100% rename from website/src/components/CompareLandscape.tsx rename to docs/metatype.dev/src/components/CompareLandscape.tsx diff --git a/website/src/components/DocButton/index.tsx b/docs/metatype.dev/src/components/DocButton/index.tsx similarity index 100% rename from website/src/components/DocButton/index.tsx rename to docs/metatype.dev/src/components/DocButton/index.tsx diff --git a/website/src/components/DocButton/styles.module.scss b/docs/metatype.dev/src/components/DocButton/styles.module.scss similarity index 100% rename from website/src/components/DocButton/styles.module.scss rename to docs/metatype.dev/src/components/DocButton/styles.module.scss diff --git a/website/src/components/Features/index.tsx b/docs/metatype.dev/src/components/Features/index.tsx similarity index 100% rename from website/src/components/Features/index.tsx rename to docs/metatype.dev/src/components/Features/index.tsx diff --git a/website/src/components/Giscus/index.tsx b/docs/metatype.dev/src/components/Giscus/index.tsx similarity index 100% rename from website/src/components/Giscus/index.tsx rename to docs/metatype.dev/src/components/Giscus/index.tsx diff --git a/website/src/components/MiniQL/graphiql.tsx b/docs/metatype.dev/src/components/MiniQL/graphiql.tsx similarity index 100% rename from website/src/components/MiniQL/graphiql.tsx rename to docs/metatype.dev/src/components/MiniQL/graphiql.tsx diff --git a/website/src/components/MiniQL/index.tsx b/docs/metatype.dev/src/components/MiniQL/index.tsx similarity index 100% rename from website/src/components/MiniQL/index.tsx rename to docs/metatype.dev/src/components/MiniQL/index.tsx diff --git a/website/src/components/MiniQL/memory_store.ts b/docs/metatype.dev/src/components/MiniQL/memory_store.ts similarity index 100% rename from website/src/components/MiniQL/memory_store.ts rename to docs/metatype.dev/src/components/MiniQL/memory_store.ts diff --git a/website/src/components/Newsletter/index.tsx b/docs/metatype.dev/src/components/Newsletter/index.tsx similarity index 100% rename from website/src/components/Newsletter/index.tsx rename to docs/metatype.dev/src/components/Newsletter/index.tsx diff --git a/website/src/components/PythonPackageManagerTabs/index.tsx b/docs/metatype.dev/src/components/PythonPackageManagerTabs/index.tsx similarity index 100% rename from website/src/components/PythonPackageManagerTabs/index.tsx rename to docs/metatype.dev/src/components/PythonPackageManagerTabs/index.tsx diff --git a/website/src/components/SDKTabs/index.tsx b/docs/metatype.dev/src/components/SDKTabs/index.tsx similarity index 100% rename from website/src/components/SDKTabs/index.tsx rename to docs/metatype.dev/src/components/SDKTabs/index.tsx diff --git a/website/src/components/TGExample/index.tsx b/docs/metatype.dev/src/components/TGExample/index.tsx similarity index 100% rename from website/src/components/TGExample/index.tsx rename to docs/metatype.dev/src/components/TGExample/index.tsx diff --git a/website/src/components/TsPackageManagerTabs/index.tsx b/docs/metatype.dev/src/components/TsPackageManagerTabs/index.tsx similarity index 100% rename from website/src/components/TsPackageManagerTabs/index.tsx rename to docs/metatype.dev/src/components/TsPackageManagerTabs/index.tsx diff --git a/website/src/components/animations/animated.tsx b/docs/metatype.dev/src/components/animations/animated.tsx similarity index 100% rename from website/src/components/animations/animated.tsx rename to docs/metatype.dev/src/components/animations/animated.tsx diff --git a/website/src/components/animations/animated_canvas.tsx b/docs/metatype.dev/src/components/animations/animated_canvas.tsx similarity index 100% rename from website/src/components/animations/animated_canvas.tsx rename to docs/metatype.dev/src/components/animations/animated_canvas.tsx diff --git a/website/src/components/animations/block.tsx b/docs/metatype.dev/src/components/animations/block.tsx similarity index 100% rename from website/src/components/animations/block.tsx rename to docs/metatype.dev/src/components/animations/block.tsx diff --git a/website/src/components/animations/doublearrow.tsx b/docs/metatype.dev/src/components/animations/doublearrow.tsx similarity index 100% rename from website/src/components/animations/doublearrow.tsx rename to docs/metatype.dev/src/components/animations/doublearrow.tsx diff --git a/website/src/components/animations/hooks.tsx b/docs/metatype.dev/src/components/animations/hooks.tsx similarity index 100% rename from website/src/components/animations/hooks.tsx rename to docs/metatype.dev/src/components/animations/hooks.tsx diff --git a/website/src/components/animations/textarrow.tsx b/docs/metatype.dev/src/components/animations/textarrow.tsx similarity index 100% rename from website/src/components/animations/textarrow.tsx rename to docs/metatype.dev/src/components/animations/textarrow.tsx diff --git a/website/src/components/castles.tsx b/docs/metatype.dev/src/components/castles.tsx similarity index 100% rename from website/src/components/castles.tsx rename to docs/metatype.dev/src/components/castles.tsx diff --git a/website/src/css/custom.scss b/docs/metatype.dev/src/css/custom.scss similarity index 100% rename from website/src/css/custom.scss rename to docs/metatype.dev/src/css/custom.scss diff --git a/website/src/pages/index.graphql b/docs/metatype.dev/src/pages/index.graphql similarity index 100% rename from website/src/pages/index.graphql rename to docs/metatype.dev/src/pages/index.graphql diff --git a/website/src/pages/index.tsx b/docs/metatype.dev/src/pages/index.tsx similarity index 98% rename from website/src/pages/index.tsx rename to docs/metatype.dev/src/pages/index.tsx index 81aa685ff9..273aaf3ac1 100644 --- a/website/src/pages/index.tsx +++ b/docs/metatype.dev/src/pages/index.tsx @@ -279,8 +279,8 @@ function TryIt(): JSX.Element {
diff --git a/website/use-cases/backend-for-frontend/image.drawio.svg b/docs/metatype.dev/use-cases/backend-for-frontend/image.drawio.svg similarity index 100% rename from website/use-cases/backend-for-frontend/image.drawio.svg rename to docs/metatype.dev/use-cases/backend-for-frontend/image.drawio.svg diff --git a/website/use-cases/backend-for-frontend/index.mdx b/docs/metatype.dev/use-cases/backend-for-frontend/index.mdx similarity index 90% rename from website/use-cases/backend-for-frontend/index.mdx rename to docs/metatype.dev/use-cases/backend-for-frontend/index.mdx index 8428a46040..6e03c8246b 100644 --- a/website/use-cases/backend-for-frontend/index.mdx +++ b/docs/metatype.dev/use-cases/backend-for-frontend/index.mdx @@ -24,7 +24,7 @@ Metatype can act as a generic BFF component, serving multiple dedicated APIs and diff --git a/website/use-cases/backend-for-frontend/query.graphql b/docs/metatype.dev/use-cases/backend-for-frontend/query.graphql similarity index 100% rename from website/use-cases/backend-for-frontend/query.graphql rename to docs/metatype.dev/use-cases/backend-for-frontend/query.graphql diff --git a/website/use-cases/faas-runner/image.drawio.svg b/docs/metatype.dev/use-cases/faas-runner/image.drawio.svg similarity index 100% rename from website/use-cases/faas-runner/image.drawio.svg rename to docs/metatype.dev/use-cases/faas-runner/image.drawio.svg diff --git a/website/use-cases/faas-runner/index.mdx b/docs/metatype.dev/use-cases/faas-runner/index.mdx similarity index 92% rename from website/use-cases/faas-runner/index.mdx rename to docs/metatype.dev/use-cases/faas-runner/index.mdx index 702f0292ee..625e30ad24 100644 --- a/website/use-cases/faas-runner/index.mdx +++ b/docs/metatype.dev/use-cases/faas-runner/index.mdx @@ -28,7 +28,7 @@ To solve the use case of executing multiple functions and collecting their resul diff --git a/website/use-cases/faas-runner/query.gql b/docs/metatype.dev/use-cases/faas-runner/query.gql similarity index 100% rename from website/use-cases/faas-runner/query.gql rename to docs/metatype.dev/use-cases/faas-runner/query.gql diff --git a/website/use-cases/graphql-server/image.drawio.svg b/docs/metatype.dev/use-cases/graphql-server/image.drawio.svg similarity index 100% rename from website/use-cases/graphql-server/image.drawio.svg rename to docs/metatype.dev/use-cases/graphql-server/image.drawio.svg diff --git a/website/use-cases/graphql-server/index.mdx b/docs/metatype.dev/use-cases/graphql-server/index.mdx similarity index 92% rename from website/use-cases/graphql-server/index.mdx rename to docs/metatype.dev/use-cases/graphql-server/index.mdx index 6076500c56..bfee8ae4ba 100644 --- a/website/use-cases/graphql-server/index.mdx +++ b/docs/metatype.dev/use-cases/graphql-server/index.mdx @@ -26,7 +26,7 @@ This can be seen as a declarative GraphQL servers, where the server is orchestra diff --git a/website/use-cases/graphql-server/query.gql b/docs/metatype.dev/use-cases/graphql-server/query.gql similarity index 100% rename from website/use-cases/graphql-server/query.gql rename to docs/metatype.dev/use-cases/graphql-server/query.gql diff --git a/website/use-cases/iam-provider/image.drawio.svg b/docs/metatype.dev/use-cases/iam-provider/image.drawio.svg similarity index 100% rename from website/use-cases/iam-provider/image.drawio.svg rename to docs/metatype.dev/use-cases/iam-provider/image.drawio.svg diff --git a/website/use-cases/iam-provider/index.mdx b/docs/metatype.dev/use-cases/iam-provider/index.mdx similarity index 92% rename from website/use-cases/iam-provider/index.mdx rename to docs/metatype.dev/use-cases/iam-provider/index.mdx index 9cea3c3a0b..8bd11ce0a3 100644 --- a/website/use-cases/iam-provider/index.mdx +++ b/docs/metatype.dev/use-cases/iam-provider/index.mdx @@ -26,7 +26,7 @@ Once the user is authenticated, you can use policy access based control (PBAC) t diff --git a/website/use-cases/iam-provider/query.gql b/docs/metatype.dev/use-cases/iam-provider/query.gql similarity index 100% rename from website/use-cases/iam-provider/query.gql rename to docs/metatype.dev/use-cases/iam-provider/query.gql diff --git a/website/use-cases/microservice-orchestration/image.drawio.svg b/docs/metatype.dev/use-cases/microservice-orchestration/image.drawio.svg similarity index 100% rename from website/use-cases/microservice-orchestration/image.drawio.svg rename to docs/metatype.dev/use-cases/microservice-orchestration/image.drawio.svg diff --git a/website/use-cases/microservice-orchestration/index.mdx b/docs/metatype.dev/use-cases/microservice-orchestration/index.mdx similarity index 90% rename from website/use-cases/microservice-orchestration/index.mdx rename to docs/metatype.dev/use-cases/microservice-orchestration/index.mdx index abf7ab6932..c4275af3a0 100644 --- a/website/use-cases/microservice-orchestration/index.mdx +++ b/docs/metatype.dev/use-cases/microservice-orchestration/index.mdx @@ -26,7 +26,7 @@ Additionally, Metatype gateway can provide other important features such as rate diff --git a/website/use-cases/microservice-orchestration/query.gql b/docs/metatype.dev/use-cases/microservice-orchestration/query.gql similarity index 100% rename from website/use-cases/microservice-orchestration/query.gql rename to docs/metatype.dev/use-cases/microservice-orchestration/query.gql diff --git a/website/use-cases/orm-for-the-edge/image.drawio.svg b/docs/metatype.dev/use-cases/orm-for-the-edge/image.drawio.svg similarity index 100% rename from website/use-cases/orm-for-the-edge/image.drawio.svg rename to docs/metatype.dev/use-cases/orm-for-the-edge/image.drawio.svg diff --git a/website/use-cases/orm-for-the-edge/index.mdx b/docs/metatype.dev/use-cases/orm-for-the-edge/index.mdx similarity index 91% rename from website/use-cases/orm-for-the-edge/index.mdx rename to docs/metatype.dev/use-cases/orm-for-the-edge/index.mdx index 850b81bffb..bed6d18643 100644 --- a/website/use-cases/orm-for-the-edge/index.mdx +++ b/docs/metatype.dev/use-cases/orm-for-the-edge/index.mdx @@ -24,7 +24,7 @@ Metatype can act out of the box as a lightweight relay API, simplifying database diff --git a/website/use-cases/prisma.graphql b/docs/metatype.dev/use-cases/prisma.graphql similarity index 100% rename from website/use-cases/prisma.graphql rename to docs/metatype.dev/use-cases/prisma.graphql diff --git a/website/use-cases/programmable-api-gateway/image.drawio.svg b/docs/metatype.dev/use-cases/programmable-api-gateway/image.drawio.svg similarity index 100% rename from website/use-cases/programmable-api-gateway/image.drawio.svg rename to docs/metatype.dev/use-cases/programmable-api-gateway/image.drawio.svg diff --git a/website/use-cases/programmable-api-gateway/index.mdx b/docs/metatype.dev/use-cases/programmable-api-gateway/index.mdx similarity index 90% rename from website/use-cases/programmable-api-gateway/index.mdx rename to docs/metatype.dev/use-cases/programmable-api-gateway/index.mdx index a6324a0eab..0e969e35ce 100644 --- a/website/use-cases/programmable-api-gateway/index.mdx +++ b/docs/metatype.dev/use-cases/programmable-api-gateway/index.mdx @@ -26,7 +26,7 @@ This enables developer to quickly build and deploy any update the API or the bus diff --git a/website/use-cases/programmable-api-gateway/query.gql b/docs/metatype.dev/use-cases/programmable-api-gateway/query.gql similarity index 100% rename from website/use-cases/programmable-api-gateway/query.gql rename to docs/metatype.dev/use-cases/programmable-api-gateway/query.gql diff --git a/website/use-cases/sidebars.js b/docs/metatype.dev/use-cases/sidebars.js similarity index 100% rename from website/use-cases/sidebars.js rename to docs/metatype.dev/use-cases/sidebars.js diff --git a/website/vale/Vocab/Metatype/accept.txt b/docs/metatype.dev/vale/Vocab/Metatype/accept.txt similarity index 100% rename from website/vale/Vocab/Metatype/accept.txt rename to docs/metatype.dev/vale/Vocab/Metatype/accept.txt diff --git a/website/vale/Vocab/Metatype/reject.txt b/docs/metatype.dev/vale/Vocab/Metatype/reject.txt similarity index 100% rename from website/vale/Vocab/Metatype/reject.txt rename to docs/metatype.dev/vale/Vocab/Metatype/reject.txt diff --git a/examples/deno.json b/examples/deno.json deleted file mode 100644 index 07af7d6878..0000000000 --- a/examples/deno.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "imports": { - "@typegraph/sdk/": "../typegraph/deno/sdk/src/" - } -} diff --git a/examples/deno.jsonc b/examples/deno.jsonc new file mode 100644 index 0000000000..1ce1410442 --- /dev/null +++ b/examples/deno.jsonc @@ -0,0 +1,5 @@ +{ + "imports": { + "@typegraph/sdk/": "../src/typegraph/deno/src/" + } +} diff --git a/examples/templates/deno/api/example.ts b/examples/templates/deno/api/example.ts index 33055282e3..7caf966630 100644 --- a/examples/templates/deno/api/example.ts +++ b/examples/templates/deno/api/example.ts @@ -1,6 +1,6 @@ -import { Policy, t, typegraph } from "npm:@typegraph/sdk@0.4.7/index"; -import { PythonRuntime } from "npm:@typegraph/sdk@0.4.7/runtimes/python"; -import { DenoRuntime } from "npm:@typegraph/sdk@0.4.7/runtimes/deno"; +import { Policy, t, typegraph } from "npm:@typegraph/sdk@0.4.8/index"; +import { PythonRuntime } from "npm:@typegraph/sdk@0.4.8/runtimes/python"; +import { DenoRuntime } from "npm:@typegraph/sdk@0.4.8/runtimes/deno"; await typegraph("example", (g) => { const pub = Policy.public(); diff --git a/examples/templates/deno/compose.yml b/examples/templates/deno/compose.yml index dc5fdac245..b4db28f4d4 100644 --- a/examples/templates/deno/compose.yml +++ b/examples/templates/deno/compose.yml @@ -1,6 +1,6 @@ services: typegate: - image: ghcr.io/metatypedev/typegate:v0.4.8 + image: ghcr.io/metatypedev/typegate:v0.4.9-rc1 restart: always ports: - "7890:7890" diff --git a/examples/templates/node/compose.yml b/examples/templates/node/compose.yml index dc5fdac245..b4db28f4d4 100644 --- a/examples/templates/node/compose.yml +++ b/examples/templates/node/compose.yml @@ -1,6 +1,6 @@ services: typegate: - image: ghcr.io/metatypedev/typegate:v0.4.8 + image: ghcr.io/metatypedev/typegate:v0.4.9-rc1 restart: always ports: - "7890:7890" diff --git a/examples/templates/node/package.json b/examples/templates/node/package.json index fe8d62305c..390bec807e 100644 --- a/examples/templates/node/package.json +++ b/examples/templates/node/package.json @@ -6,7 +6,7 @@ "dev": "MCLI_LOADER_CMD='npm x tsx' meta dev" }, "dependencies": { - "@typegraph/sdk": "^0.4.8" + "@typegraph/sdk": "^0.4.9-rc1" }, "devDependencies": { "tsx": "^3.13.0", diff --git a/examples/templates/python/compose.yml b/examples/templates/python/compose.yml index dc5fdac245..b4db28f4d4 100644 --- a/examples/templates/python/compose.yml +++ b/examples/templates/python/compose.yml @@ -1,6 +1,6 @@ services: typegate: - image: ghcr.io/metatypedev/typegate:v0.4.8 + image: ghcr.io/metatypedev/typegate:v0.4.9-rc1 restart: always ports: - "7890:7890" diff --git a/examples/templates/python/pyproject.toml b/examples/templates/python/pyproject.toml index 4e9f1f989a..b761d4df39 100644 --- a/examples/templates/python/pyproject.toml +++ b/examples/templates/python/pyproject.toml @@ -1,12 +1,12 @@ [tool.poetry] name = "example" -version = "0.4.8" +version = "0.4.9-rc1" description = "" authors = [] [tool.poetry.dependencies] python = ">=3.8,<4.0" -typegraph = "0.4.8" +typegraph = "0.4.9-rc1" [build-system] requires = ["poetry-core"] diff --git a/examples/typegraphs/metagen/rs/build.sh b/examples/typegraphs/metagen/rs/build.sh index 1fc26bc027..caad858886 100644 --- a/examples/typegraphs/metagen/rs/build.sh +++ b/examples/typegraphs/metagen/rs/build.sh @@ -1,10 +1,11 @@ set -eux cd ../../ -cargo run -p meta-cli -- -C metagen/ gen metagen_rs +META_CMD="cargo run -p meta-cli --" +$META_CMD -C metagen/ gen metagen_rs cd - -ADAPTOR="../../../../tmp/wasi_snapshot_preview1.reactor.wasm" +ADAPTOR="../../../../.metatype/wasi_snapshot_preview1.reactor.wasm" [ -f "$ADAPTOR" ] || ghjk x install-wasi-adapter TARGET=wasm32-wasi diff --git a/examples/typegraphs/metagen/rs/mdk.rs b/examples/typegraphs/metagen/rs/mdk.rs index 22d735e57d..516b5e141e 100644 --- a/examples/typegraphs/metagen/rs/mdk.rs +++ b/examples/typegraphs/metagen/rs/mdk.rs @@ -109,7 +109,7 @@ impl Router { } pub fn init(&self, args: InitArgs) -> Result { - static MT_VERSION: &str = "0.4.8"; + static MT_VERSION: &str = "0.4.9-rc1"; if args.metatype_version != MT_VERSION { return Err(InitError::VersionMismatch(MT_VERSION.into())); } diff --git a/ghjk.ts b/ghjk.ts index 52b61884ec..838f2e38f6 100644 --- a/ghjk.ts +++ b/ghjk.ts @@ -1,27 +1,13 @@ // @ts-nocheck: Deno file -import { METATYPE_VERSION, PUBLISHED_VERSION } from "./dev/consts.ts"; -import { file, ports, sedLock, semver, stdDeps } from "./dev/deps.ts"; -import installs from "./dev/installs.ts"; -import tasksBuild from "./dev/tasks-build.ts"; -import tasksDev from "./dev/tasks-dev.ts"; -import tasksFetch from "./dev/tasks-fetch.ts"; -import tasksInstall from "./dev/tasks-install.ts"; -import tasksLint from "./dev/tasks-lint.ts"; -import tasksLock from "./dev/tasks-lock.ts"; -import tasksTest from "./dev/tasks-test.ts"; +import { METATYPE_VERSION, PUBLISHED_VERSION } from "./tools/consts.ts"; +import { file, ports, sedLock, semver, stdDeps } from "./tools/deps.ts"; +import installs from "./tools/installs.ts"; +import tasks from "./tools/tasks/mod.ts"; const ghjk = file({ defaultEnv: Deno.env.get("CI") ? "ci" : Deno.env.get("OCI") ? "oci" : "dev", - tasks: { - ...tasksBuild, - ...tasksDev, - ...tasksFetch, - ...tasksInstall, - ...tasksLint, - ...tasksLock, - ...tasksTest, - }, + tasks, }); export const sophon = ghjk.sophon; const { env, task } = ghjk; @@ -29,9 +15,11 @@ const { env, task } = ghjk; env("main") .install(installs.deno) .vars({ - RUST_LOG: "info,swc_ecma_codegen=off,tracing::span=off", + RUST_LOG: "info,deno=warn,swc_ecma_codegen=off,tracing::span=off", TYPEGRAPH_VERSION: "0.0.3", CLICOLOR_FORCE: "1", + CROSS_CONFIG: "tools/Cross.toml", + GIT_CLIFF_CONFIG: "tools/cliff.toml", }) .allowedBuildDeps( ...stdDeps(), @@ -43,17 +31,16 @@ env("main") env("_rust").install( // use rustup for the actual toolchain ports.protoc({ version: "v24.1" }), - // TODO: add default param for cmake port - ports.cmake({})[0], + ports.cmake()[0], ); if (Deno.build.os == "linux" && !Deno.env.has("NO_MOLD")) { - env("dev").install( - ports.mold({ - version: "v2.4.0", - replaceLd: true, - }), - ); + const mold = ports.mold({ + version: "v2.4.0", + replaceLd: true, + }); + env("dev").install(mold); + env("oci").install(mold); } env("_ecma").install( @@ -70,7 +57,7 @@ env("_python").install( })[0], ports.pipi({ packageName: "poetry", - version: "1.7.0", + version: "1.8.3", })[0], ); diff --git a/libs/metagen/metatype.yaml b/libs/metagen/metatype.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/poetry.lock b/poetry.lock index 00c4c86c64..1c2fe11d49 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.7.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "anyio" @@ -50,13 +50,13 @@ files = [ [[package]] name = "exceptiongroup" -version = "1.2.1" +version = "1.2.2" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" files = [ - {file = "exceptiongroup-1.2.1-py3-none-any.whl", hash = "sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad"}, - {file = "exceptiongroup-1.2.1.tar.gz", hash = "sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16"}, + {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, + {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, ] [package.extras] @@ -120,32 +120,36 @@ socks = ["socksio (==1.*)"] [[package]] name = "idna" -version = "3.7" +version = "3.8" description = "Internationalized Domain Names in Applications (IDNA)" optional = false -python-versions = ">=3.5" +python-versions = ">=3.6" files = [ - {file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"}, - {file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"}, + {file = "idna-3.8-py3-none-any.whl", hash = "sha256:050b4e5baadcd44d760cedbd2b8e639f2ff89bbc7a5730fcc662954303377aac"}, + {file = "idna-3.8.tar.gz", hash = "sha256:d838c2c0ed6fced7693d5e8ab8e734d5f8fda53a039c0164afb0b82e771e3603"}, ] [[package]] name = "importlib-resources" -version = "6.4.0" +version = "6.4.4" description = "Read resources from Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "importlib_resources-6.4.0-py3-none-any.whl", hash = "sha256:50d10f043df931902d4194ea07ec57960f66a80449ff867bfe782b4c486ba78c"}, - {file = "importlib_resources-6.4.0.tar.gz", hash = "sha256:cdb2b453b8046ca4e3798eb1d84f3cce1446a0e8e7b5ef4efb600f19fc398145"}, + {file = "importlib_resources-6.4.4-py3-none-any.whl", hash = "sha256:dda242603d1c9cd836c3368b1174ed74cb4049ecd209e7a1a0104620c18c5c11"}, + {file = "importlib_resources-6.4.4.tar.gz", hash = "sha256:20600c8b7361938dc0bb2d5ec0297802e575df486f5a544fa414da65e13721f7"}, ] [package.dependencies] zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} [package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["jaraco.test (>=5.4)", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-ruff (>=0.2.1)", "zipp (>=3.17)"] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] +cover = ["pytest-cov"] +doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] +enabler = ["pytest-enabler (>=2.2)"] +test = ["jaraco.test (>=5.4)", "pytest (>=6,!=8.1.*)", "zipp (>=3.17)"] +type = ["pytest-mypy"] [[package]] name = "python-box" @@ -184,62 +188,64 @@ yaml = ["ruamel.yaml (>=0.17)"] [[package]] name = "pyyaml" -version = "6.0.1" +version = "6.0.2" description = "YAML parser and emitter for Python" optional = false -python-versions = ">=3.6" +python-versions = ">=3.8" files = [ - {file = "PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a"}, - {file = "PyYAML-6.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f"}, - {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"}, - {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"}, - {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"}, - {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"}, - {file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"}, - {file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"}, - {file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"}, - {file = "PyYAML-6.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f003ed9ad21d6a4713f0a9b5a7a0a79e08dd0f221aff4525a2be4c346ee60aab"}, - {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"}, - {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"}, - {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"}, - {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"}, - {file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"}, - {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, - {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, - {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, - {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, - {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, - {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, - {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, - {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"}, - {file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"}, - {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"}, - {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"}, - {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd"}, - {file = "PyYAML-6.0.1-cp36-cp36m-win32.whl", hash = "sha256:fca0e3a251908a499833aa292323f32437106001d436eca0e6e7833256674585"}, - {file = "PyYAML-6.0.1-cp36-cp36m-win_amd64.whl", hash = "sha256:f22ac1c3cac4dbc50079e965eba2c1058622631e526bd9afd45fedd49ba781fa"}, - {file = "PyYAML-6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3"}, - {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:18aeb1bf9a78867dc38b259769503436b7c72f7a1f1f4c93ff9a17de54319b27"}, - {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:596106435fa6ad000c2991a98fa58eeb8656ef2325d7e158344fb33864ed87e3"}, - {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:baa90d3f661d43131ca170712d903e6295d1f7a0f595074f151c0aed377c9b9c"}, - {file = "PyYAML-6.0.1-cp37-cp37m-win32.whl", hash = "sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba"}, - {file = "PyYAML-6.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:4fb147e7a67ef577a588a0e2c17b6db51dda102c71de36f8549b6816a96e1867"}, - {file = "PyYAML-6.0.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1d4c7e777c441b20e32f52bd377e0c409713e8bb1386e1099c2415f26e479595"}, - {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"}, - {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"}, - {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"}, - {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"}, - {file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"}, - {file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"}, - {file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"}, - {file = "PyYAML-6.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c8098ddcc2a85b61647b2590f825f3db38891662cfc2fc776415143f599bb859"}, - {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"}, - {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"}, - {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"}, - {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"}, - {file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"}, - {file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"}, - {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, + {file = "PyYAML-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0a9a2848a5b7feac301353437eb7d5957887edbf81d56e903999a75a3d743086"}, + {file = "PyYAML-6.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:29717114e51c84ddfba879543fb232a6ed60086602313ca38cce623c1d62cfbf"}, + {file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8824b5a04a04a047e72eea5cec3bc266db09e35de6bdfe34c9436ac5ee27d237"}, + {file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7c36280e6fb8385e520936c3cb3b8042851904eba0e58d277dca80a5cfed590b"}, + {file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec031d5d2feb36d1d1a24380e4db6d43695f3748343d99434e6f5f9156aaa2ed"}, + {file = "PyYAML-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:936d68689298c36b53b29f23c6dbb74de12b4ac12ca6cfe0e047bedceea56180"}, + {file = "PyYAML-6.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:23502f431948090f597378482b4812b0caae32c22213aecf3b55325e049a6c68"}, + {file = "PyYAML-6.0.2-cp310-cp310-win32.whl", hash = "sha256:2e99c6826ffa974fe6e27cdb5ed0021786b03fc98e5ee3c5bfe1fd5015f42b99"}, + {file = "PyYAML-6.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:a4d3091415f010369ae4ed1fc6b79def9416358877534caf6a0fdd2146c87a3e"}, + {file = "PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774"}, + {file = "PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee"}, + {file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c"}, + {file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317"}, + {file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85"}, + {file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4"}, + {file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e"}, + {file = "PyYAML-6.0.2-cp311-cp311-win32.whl", hash = "sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5"}, + {file = "PyYAML-6.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44"}, + {file = "PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab"}, + {file = "PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725"}, + {file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5"}, + {file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425"}, + {file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476"}, + {file = "PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48"}, + {file = "PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b"}, + {file = "PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4"}, + {file = "PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8"}, + {file = "PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba"}, + {file = "PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1"}, + {file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133"}, + {file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484"}, + {file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5"}, + {file = "PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc"}, + {file = "PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652"}, + {file = "PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183"}, + {file = "PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563"}, + {file = "PyYAML-6.0.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:24471b829b3bf607e04e88d79542a9d48bb037c2267d7927a874e6c205ca7e9a"}, + {file = "PyYAML-6.0.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7fded462629cfa4b685c5416b949ebad6cec74af5e2d42905d41e257e0869f5"}, + {file = "PyYAML-6.0.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d84a1718ee396f54f3a086ea0a66d8e552b2ab2017ef8b420e92edbc841c352d"}, + {file = "PyYAML-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9056c1ecd25795207ad294bcf39f2db3d845767be0ea6e6a34d856f006006083"}, + {file = "PyYAML-6.0.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:82d09873e40955485746739bcb8b4586983670466c23382c19cffecbf1fd8706"}, + {file = "PyYAML-6.0.2-cp38-cp38-win32.whl", hash = "sha256:43fa96a3ca0d6b1812e01ced1044a003533c47f6ee8aca31724f78e93ccc089a"}, + {file = "PyYAML-6.0.2-cp38-cp38-win_amd64.whl", hash = "sha256:01179a4a8559ab5de078078f37e5c1a30d76bb88519906844fd7bdea1b7729ff"}, + {file = "PyYAML-6.0.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:688ba32a1cffef67fd2e9398a2efebaea461578b0923624778664cc1c914db5d"}, + {file = "PyYAML-6.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a8786accb172bd8afb8be14490a16625cbc387036876ab6ba70912730faf8e1f"}, + {file = "PyYAML-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8e03406cac8513435335dbab54c0d385e4a49e4945d2909a581c83647ca0290"}, + {file = "PyYAML-6.0.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f753120cb8181e736c57ef7636e83f31b9c0d1722c516f7e86cf15b7aa57ff12"}, + {file = "PyYAML-6.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b1fdb9dc17f5a7677423d508ab4f243a726dea51fa5e70992e59a7411c89d19"}, + {file = "PyYAML-6.0.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0b69e4ce7a131fe56b7e4d770c67429700908fc0752af059838b1cfb41960e4e"}, + {file = "PyYAML-6.0.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a9f8c2e67970f13b16084e04f134610fd1d374bf477b17ec1599185cf611d725"}, + {file = "PyYAML-6.0.2-cp39-cp39-win32.whl", hash = "sha256:6395c297d42274772abc367baaa79683958044e5d3835486c16da75d2a694631"}, + {file = "PyYAML-6.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:39693e1f8320ae4f43943590b49779ffb98acb81f788220ea932a6b6c51004d8"}, + {file = "pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e"}, ] [[package]] @@ -280,7 +286,7 @@ files = [ [[package]] name = "typegraph" -version = "0.4.3-0" +version = "0.4.8" description = "Declarative API development platform. Build backend components with WASM, Typescript and Python, no matter where and how your (legacy) systems are." optional = false python-versions = ">=3.8,<4.0" @@ -295,7 +301,7 @@ wasmtime = "^21.0.0" [package.source] type = "directory" -url = "typegraph/python" +url = "src/typegraph/python" [[package]] name = "typing-extensions" @@ -331,13 +337,13 @@ testing = ["componentize-py", "coverage", "pycparser", "pytest", "pytest-mypy"] [[package]] name = "wheel" -version = "0.43.0" +version = "0.44.0" description = "A built-package format for Python" optional = false python-versions = ">=3.8" files = [ - {file = "wheel-0.43.0-py3-none-any.whl", hash = "sha256:55c570405f142630c6b9f72fe09d9b67cf1477fcf543ae5b8dcb1f5b7377da81"}, - {file = "wheel-0.43.0.tar.gz", hash = "sha256:465ef92c69fa5c5da2d1cf8ac40559a8c940886afcef87dcf14b9470862f1d85"}, + {file = "wheel-0.44.0-py3-none-any.whl", hash = "sha256:2376a90c98cc337d18623527a97c31797bd02bad0033d41547043a1cbfbe448f"}, + {file = "wheel-0.44.0.tar.gz", hash = "sha256:a29c3f2817e95ab89aa4660681ad547c0e9547f20e75b0562fe7723c9a2a9d49"}, ] [package.extras] @@ -345,20 +351,24 @@ test = ["pytest (>=6.0.0)", "setuptools (>=65)"] [[package]] name = "zipp" -version = "3.19.2" +version = "3.20.1" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.8" files = [ - {file = "zipp-3.19.2-py3-none-any.whl", hash = "sha256:f091755f667055f2d02b32c53771a7a6c8b47e1fdbc4b72a8b9072b3eef8015c"}, - {file = "zipp-3.19.2.tar.gz", hash = "sha256:bf1dcf6450f873a13e952a29504887c89e6de7506209e5b1bcc3460135d4de19"}, + {file = "zipp-3.20.1-py3-none-any.whl", hash = "sha256:9960cd8967c8f85a56f920d5d507274e74f9ff813a0ab8889a5b5be2daf44064"}, + {file = "zipp-3.20.1.tar.gz", hash = "sha256:c22b14cc4763c5a5b04134207736c107db42e9d3ef2d9779d465f5f1bcba572b"}, ] [package.extras] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] +cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"] +enabler = ["pytest-enabler (>=2.2)"] +test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] +type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = ">=3.8,<4.0" -content-hash = "8a1efa68f6768d9c8669d2164ed76e7a06c6906e4b7f460f67e825e97890e2e5" +content-hash = "5df27402168ab3a8784fc07a0ea21bcd5bb8fac573a1573274c9c22a7dbc149e" diff --git a/pyproject.toml b/pyproject.toml index 6f3d6bac4f..dd8caf00b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,23 @@ +# The main thing we need to install into the local +# venv is the typegraph itself. +# The tests for the typegraph import the typegraph from +# venv and not directly from the python source. +# Use `build-tgraph-py` task to build and install the typegraph. + [tool.poetry] name = "metatype" -version = "0.4.8" +version = "0.4.9-rc1" description = "" authors = [] [tool.poetry.dependencies] python = ">=3.8,<4.0" -typegraph = { path = "typegraph/python", develop = true } +typegraph = { path = "src/typegraph/python", develop = true } [tool.poetry.group.dev.dependencies] +# used in ./tests/importers/*.py respx = "^0.21.1" +# used in examples/programmable-api-gateway pyyaml = "^6.0.1" [build-system] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 21bafc2c23..6ace897024 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,5 @@ [toolchain] -channel = "1.79.0" +# this is currently tracking the version used by denoland/deno +channel = "1.80.1" components = ["rustfmt", "clippy"] targets = ["wasm32-unknown-unknown", "wasm32-wasi"] diff --git a/libs/common/Cargo.toml b/src/common/Cargo.toml similarity index 55% rename from libs/common/Cargo.toml rename to src/common/Cargo.toml index d783ebfe91..793cca0f25 100644 --- a/libs/common/Cargo.toml +++ b/src/common/Cargo.toml @@ -1,22 +1,35 @@ [package] name = "common" -version = "0.4.8" -edition = "2021" +version.workspace = true +edition.workspace = true [dependencies] +# patterns anyhow.workspace = true +itertools.workspace = true +indoc.workspace = true +thiserror.workspace = true + +# encoding base64.workspace = true flate2.workspace = true -indexmap.workspace = true +tar.workspace = true + serde.workspace = true serde_json = { workspace = true, features = ["preserve_order"] } -serde_with = "3.8.1" -tar.workspace = true -ignore = "0.4.20" +serde_with.workspace = true + +# ds +indexmap.workspace = true + +# fs +ignore.workspace = true + +# http reqwest = { workspace = true, features = ["json"] } -url = { version = "2.4", features = ["serde"] } -async-trait = "0.1.74" -itertools = "0.11.0" -colored = "2.0.4" -indoc.workspace = true -thiserror.workspace = true +url = { workspace = true, features = ["serde"] } + +# cli +colored.workspace = true + +async-trait.workspace = true diff --git a/libs/common/src/archive.rs b/src/common/src/archive.rs similarity index 100% rename from libs/common/src/archive.rs rename to src/common/src/archive.rs diff --git a/libs/common/src/graphql.rs b/src/common/src/graphql.rs similarity index 100% rename from libs/common/src/graphql.rs rename to src/common/src/graphql.rs diff --git a/libs/common/src/lib.rs b/src/common/src/lib.rs similarity index 100% rename from libs/common/src/lib.rs rename to src/common/src/lib.rs diff --git a/libs/common/src/node.rs b/src/common/src/node.rs similarity index 100% rename from libs/common/src/node.rs rename to src/common/src/node.rs diff --git a/libs/common/src/typegraph/mod.rs b/src/common/src/typegraph/mod.rs similarity index 100% rename from libs/common/src/typegraph/mod.rs rename to src/common/src/typegraph/mod.rs diff --git a/libs/common/src/typegraph/parameter_transform.rs b/src/common/src/typegraph/parameter_transform.rs similarity index 100% rename from libs/common/src/typegraph/parameter_transform.rs rename to src/common/src/typegraph/parameter_transform.rs diff --git a/libs/common/src/typegraph/runtimes/deno.rs b/src/common/src/typegraph/runtimes/deno.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/deno.rs rename to src/common/src/typegraph/runtimes/deno.rs diff --git a/libs/common/src/typegraph/runtimes/graphql.rs b/src/common/src/typegraph/runtimes/graphql.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/graphql.rs rename to src/common/src/typegraph/runtimes/graphql.rs diff --git a/libs/common/src/typegraph/runtimes/http.rs b/src/common/src/typegraph/runtimes/http.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/http.rs rename to src/common/src/typegraph/runtimes/http.rs diff --git a/libs/common/src/typegraph/runtimes/kv.rs b/src/common/src/typegraph/runtimes/kv.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/kv.rs rename to src/common/src/typegraph/runtimes/kv.rs diff --git a/libs/common/src/typegraph/runtimes/mod.rs b/src/common/src/typegraph/runtimes/mod.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/mod.rs rename to src/common/src/typegraph/runtimes/mod.rs diff --git a/libs/common/src/typegraph/runtimes/prisma.rs b/src/common/src/typegraph/runtimes/prisma.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/prisma.rs rename to src/common/src/typegraph/runtimes/prisma.rs diff --git a/libs/common/src/typegraph/runtimes/python.rs b/src/common/src/typegraph/runtimes/python.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/python.rs rename to src/common/src/typegraph/runtimes/python.rs diff --git a/libs/common/src/typegraph/runtimes/random.rs b/src/common/src/typegraph/runtimes/random.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/random.rs rename to src/common/src/typegraph/runtimes/random.rs diff --git a/libs/common/src/typegraph/runtimes/s3.rs b/src/common/src/typegraph/runtimes/s3.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/s3.rs rename to src/common/src/typegraph/runtimes/s3.rs diff --git a/libs/common/src/typegraph/runtimes/substantial.rs b/src/common/src/typegraph/runtimes/substantial.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/substantial.rs rename to src/common/src/typegraph/runtimes/substantial.rs diff --git a/libs/common/src/typegraph/runtimes/temporal.rs b/src/common/src/typegraph/runtimes/temporal.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/temporal.rs rename to src/common/src/typegraph/runtimes/temporal.rs diff --git a/libs/common/src/typegraph/runtimes/wasm.rs b/src/common/src/typegraph/runtimes/wasm.rs similarity index 100% rename from libs/common/src/typegraph/runtimes/wasm.rs rename to src/common/src/typegraph/runtimes/wasm.rs diff --git a/libs/common/src/typegraph/types.rs b/src/common/src/typegraph/types.rs similarity index 100% rename from libs/common/src/typegraph/types.rs rename to src/common/src/typegraph/types.rs diff --git a/libs/common/src/typegraph/utils.rs b/src/common/src/typegraph/utils.rs similarity index 100% rename from libs/common/src/typegraph/utils.rs rename to src/common/src/typegraph/utils.rs diff --git a/libs/common/src/typegraph/validator/common.rs b/src/common/src/typegraph/validator/common.rs similarity index 100% rename from libs/common/src/typegraph/validator/common.rs rename to src/common/src/typegraph/validator/common.rs diff --git a/libs/common/src/typegraph/validator/input.rs b/src/common/src/typegraph/validator/input.rs similarity index 100% rename from libs/common/src/typegraph/validator/input.rs rename to src/common/src/typegraph/validator/input.rs diff --git a/libs/common/src/typegraph/validator/mod.rs b/src/common/src/typegraph/validator/mod.rs similarity index 100% rename from libs/common/src/typegraph/validator/mod.rs rename to src/common/src/typegraph/validator/mod.rs diff --git a/libs/common/src/typegraph/validator/types.rs b/src/common/src/typegraph/validator/types.rs similarity index 100% rename from libs/common/src/typegraph/validator/types.rs rename to src/common/src/typegraph/validator/types.rs diff --git a/libs/common/src/typegraph/validator/value.rs b/src/common/src/typegraph/validator/value.rs similarity index 100% rename from libs/common/src/typegraph/validator/value.rs rename to src/common/src/typegraph/validator/value.rs diff --git a/libs/common/src/typegraph/visitor.rs b/src/common/src/typegraph/visitor.rs similarity index 100% rename from libs/common/src/typegraph/visitor.rs rename to src/common/src/typegraph/visitor.rs diff --git a/meta-cli/Cargo.toml b/src/meta-cli/Cargo.toml similarity index 62% rename from meta-cli/Cargo.toml rename to src/meta-cli/Cargo.toml index 97277e8d68..2abe79f591 100644 --- a/meta-cli/Cargo.toml +++ b/src/meta-cli/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "meta-cli" -version = "0.4.8" -edition = "2021" +version.workspace = true +edition.workspace = true description = "Declarative API development platform. Build backend components with WASM, Typescript and Python, no matter where and how your (legacy) systems are." authors = ["Metatype Contributors "] @@ -29,7 +29,6 @@ default = [] typegate = ["dep:typegate_engine"] [dependencies] -tabled = "0.15.0" # internal typegate_engine = { workspace = true, optional = true } @@ -37,68 +36,71 @@ common.workspace = true metagen.workspace = true # data structures -chrono = { version = "0.4.38", features = ["serde"] } -semver = "1.0.23" +chrono = { workspace = true, features = ["serde"] } +semver.workspace = true indexmap.workspace = true +dashmap.workspace = true # patterns once_cell.workspace = true -lazy_static = "1.4.0" -crossbeam-channel = "0.5.13" +lazy_static.workspace = true +crossbeam-channel.workspace = true itertools.workspace = true -enum_dispatch = "0.3.13" -derive_more = "0.99.17" +enum_dispatch.workspace = true +derive_more.workspace = true indoc.workspace = true -cached = { version = "0.51.3", features = ["proc_macro", "async"] } +cached = { workspace = true, features = ["proc_macro", "async"] } -# concurrency +# async tokio = { workspace = true, features = ["full"] } futures.workspace = true futures-concurrency.workspace = true async-trait.workspace = true -num_cpus = "1.16.0" +actix.workspace = true # cli shadow-rs.workspace = true clap = { workspace = true, features = ["derive", "env"] } clap_complete.workspace = true -clap-verbosity-flag = "2.2.0" -ctrlc = "3.4.4" -dialoguer = "0.11.0" -self_update = { version = "0.39.0", features = [ +clap-verbosity-flag.workspace = true +dialoguer.workspace = true +self_update = { workspace = true, features = [ "archive-tar", "archive-zip", "compression-flate2", "compression-zip-deflate", "compression-zip-bzip2", ] } +tabled.workspace = true +lade-sdk.workspace = true +git2 = { workspace = true, features = [ + "vendored-libgit2", +], default-features = false } # codecs serde.workspace = true serde_json = { workspace = true, features = ["preserve_order"] } flate2.workspace = true tar.workspace = true -# FIXME: deprecated, be on the lookout for alternatives -serde_yaml = "0.9.33" +serde_yaml.workspace = true base64.workspace = true -strip-ansi-escapes = "0.2.0" +strip-ansi-escapes.workspace = true # fs -normpath = "1.2.0" -directories = "5.0.1" -include_dir = "0.7.3" -grep = "0.3.1" -filetime = "0.2.23" -notify-debouncer-mini = { version = "0.4.1", default-features = false } -ignore = "0.4.20" -globset = "0.4.14" -pathdiff = "0.2.1" -textwrap = "0.16.1" +normpath.workspace = true +directories.workspace = true +include_dir.workspace = true +grep.workspace = true +filetime.workspace = true +notify-debouncer-mini = { workspace = true, default-features = false } +ignore.workspace = true +globset.workspace = true +pathdiff.workspace = true +textwrap.workspace = true tempfile.workspace = true # http reqwest = { workspace = true, features = ["json"] } -actix = "0.13.3" # logging tracing.workspace = true @@ -108,22 +110,22 @@ tracing-unwrap.workspace = true # tracing-appender.workspace = true color-eyre.workspace = true -# misc -prisma-models = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -nix = { version = "0.29.0", features = ["signal"] } -lade-sdk = { git = "https://github.com/zifeo/lade", branch = "main" } -git2 = { version = "0.18.3", features = [ - "vendored-libgit2", -], default-features = false } -process-wrap = { version = "8.0.2", features = ["tokio1"] } -rand = "0.8.5" +# prisma +prisma-models.workspace = true + +# os +num_cpus.workspace = true +ctrlc.workspace = true +rand.workspace = true +process-wrap = { workspace = true, features = ["tokio1"] } +nix = { workspace = true, features = ["signal"] } [dev-dependencies] # testing -assert_cmd = "2.0.14" +assert_cmd.workspace = true # fs -project-root = "0.2.2" +project-root.workspace = true [build-dependencies] shadow-rs.workspace = true diff --git a/meta-cli/build.rs b/src/meta-cli/build.rs similarity index 100% rename from meta-cli/build.rs rename to src/meta-cli/build.rs diff --git a/meta-cli/src/cli/completion.rs b/src/meta-cli/src/cli/completion.rs similarity index 100% rename from meta-cli/src/cli/completion.rs rename to src/meta-cli/src/cli/completion.rs diff --git a/meta-cli/src/cli/deploy.rs b/src/meta-cli/src/cli/deploy.rs similarity index 99% rename from meta-cli/src/cli/deploy.rs rename to src/meta-cli/src/cli/deploy.rs index df57de5105..2c73562864 100644 --- a/meta-cli/src/cli/deploy.rs +++ b/src/meta-cli/src/cli/deploy.rs @@ -312,7 +312,7 @@ mod watch_mode { &deploy.node_config, &deploy.base_dir, tg_opts.main_url, - tg_opts.import_map_url, + tg_opts.deno_config_url, ) .await? .start(console.clone()) diff --git a/meta-cli/src/cli/dev.rs b/src/meta-cli/src/cli/dev.rs similarity index 100% rename from meta-cli/src/cli/dev.rs rename to src/meta-cli/src/cli/dev.rs diff --git a/meta-cli/src/cli/doctor.rs b/src/meta-cli/src/cli/doctor.rs similarity index 100% rename from meta-cli/src/cli/doctor.rs rename to src/meta-cli/src/cli/doctor.rs diff --git a/meta-cli/src/cli/gen.rs b/src/meta-cli/src/cli/gen.rs similarity index 100% rename from meta-cli/src/cli/gen.rs rename to src/meta-cli/src/cli/gen.rs diff --git a/meta-cli/src/cli/list.rs b/src/meta-cli/src/cli/list.rs similarity index 100% rename from meta-cli/src/cli/list.rs rename to src/meta-cli/src/cli/list.rs diff --git a/meta-cli/src/cli/mod.rs b/src/meta-cli/src/cli/mod.rs similarity index 100% rename from meta-cli/src/cli/mod.rs rename to src/meta-cli/src/cli/mod.rs diff --git a/meta-cli/src/cli/new.rs b/src/meta-cli/src/cli/new.rs similarity index 100% rename from meta-cli/src/cli/new.rs rename to src/meta-cli/src/cli/new.rs diff --git a/meta-cli/src/cli/serialize.rs b/src/meta-cli/src/cli/serialize.rs similarity index 100% rename from meta-cli/src/cli/serialize.rs rename to src/meta-cli/src/cli/serialize.rs diff --git a/meta-cli/src/cli/typegate.rs b/src/meta-cli/src/cli/typegate.rs similarity index 82% rename from meta-cli/src/cli/typegate.rs rename to src/meta-cli/src/cli/typegate.rs index 9f07a3fc37..44e0f1b58f 100644 --- a/meta-cli/src/cli/typegate.rs +++ b/src/meta-cli/src/cli/typegate.rs @@ -11,9 +11,9 @@ pub struct Typegate { /// The url to the `main.ts` module of typegate deno #[clap(long)] pub main_url: Option, - /// The url to the `import_map.json` manifest for typegate + /// The url to the `deno.jsonc` manifest for typegate #[clap(long)] - pub import_map_url: Option, + pub deno_config_url: Option, } #[async_trait] @@ -47,10 +47,10 @@ fn run_typegate(cmd: Typegate) -> Result<()> { let runtime = typegate_engine::runtime(); const BASE_URL: &str = "https://raw.githubusercontent.com/metatypedev/metatype/"; let main_url = cmd.main_url.unwrap_or_else(|| { - BASE_URL.to_owned() + crate::build::COMMIT_HASH + "/typegate/src/main.ts" + BASE_URL.to_owned() + crate::build::COMMIT_HASH + "/src/typegate/src/main.ts" }); - let import_map_url = cmd.import_map_url.unwrap_or_else(|| { - BASE_URL.to_owned() + crate::build::COMMIT_HASH + "/typegate/import_map.json" + let deno_config_url = cmd.deno_config_url.unwrap_or_else(|| { + BASE_URL.to_owned() + crate::build::COMMIT_HASH + "/src//typegate/deno.jsonc" }); runtime @@ -60,7 +60,7 @@ fn run_typegate(cmd: Typegate) -> Result<()> { // &std::env::current_dir()?.join("./typegate/src/main.ts"), // )?, typegate_engine::resolve_url(&main_url)?, - Some(import_map_url), + Some(deno_config_url), )) .map_err(anyhow_to_eyre!())?; Ok(()) diff --git a/meta-cli/src/cli/ui/mod.rs b/src/meta-cli/src/cli/ui/mod.rs similarity index 100% rename from meta-cli/src/cli/ui/mod.rs rename to src/meta-cli/src/cli/ui/mod.rs diff --git a/meta-cli/src/cli/undeploy.rs b/src/meta-cli/src/cli/undeploy.rs similarity index 100% rename from meta-cli/src/cli/undeploy.rs rename to src/meta-cli/src/cli/undeploy.rs diff --git a/meta-cli/src/cli/upgrade.rs b/src/meta-cli/src/cli/upgrade.rs similarity index 100% rename from meta-cli/src/cli/upgrade.rs rename to src/meta-cli/src/cli/upgrade.rs diff --git a/meta-cli/src/config.rs b/src/meta-cli/src/config.rs similarity index 96% rename from meta-cli/src/config.rs rename to src/meta-cli/src/config.rs index 6d499ae69d..88f7ddd5b0 100644 --- a/meta-cli/src/config.rs +++ b/src/meta-cli/src/config.rs @@ -8,7 +8,6 @@ use crate::fs::find_in_parents; use crate::utils::BasicAuth; use common::node::Node; use globset::{Glob, GlobSet, GlobSetBuilder}; -use lazy_static::lazy_static; use reqwest::Url; use std::fs::{self, File}; use std::io; @@ -21,10 +20,10 @@ pub const PYPROJECT_FILES: &[&str] = &["pyproject.toml"]; pub const PIPFILE_FILES: &[&str] = &["Pipfile"]; pub const REQUIREMENTS_FILES: &[&str] = &["requirements.txt"]; -lazy_static! { - static ref DEFAULT_NODE_CONFIG: NodeConfig = Default::default(); - static ref DEFAULT_LOADER_CONFIG: TypegraphLoaderConfig = Default::default(); -} +static DEFAULT_NODE_CONFIG: once_cell::sync::Lazy = + once_cell::sync::Lazy::new(Default::default); +static DEFAULT_LOADER_CONFIG: once_cell::sync::Lazy = + once_cell::sync::Lazy::new(Default::default); const DEFAULT_PRISMA_MIGRATIONS_PATH: &str = "prisma-migrations"; @@ -360,10 +359,11 @@ mod tests { #[test] fn find_config_file() -> Result<()> { let project_root = get_project_root()?; - let config = Config::load_or_find(None, project_root.join("meta-cli/tests/graphs/nested")); + let config = + Config::load_or_find(None, project_root.join("src/meta-cli/tests/graphs/nested")); assert!(config.is_ok(), "{:?}", config); let config = config.unwrap(); - assert_eq!(config.base_dir, project_root.join("meta-cli/tests")); + assert_eq!(config.base_dir, project_root.join("src/meta-cli/tests")); Ok(()) } } diff --git a/meta-cli/src/deploy/actor-model.drawio.svg b/src/meta-cli/src/deploy/actor-model.drawio.svg similarity index 100% rename from meta-cli/src/deploy/actor-model.drawio.svg rename to src/meta-cli/src/deploy/actor-model.drawio.svg diff --git a/meta-cli/src/deploy/actors/console.rs b/src/meta-cli/src/deploy/actors/console.rs similarity index 100% rename from meta-cli/src/deploy/actors/console.rs rename to src/meta-cli/src/deploy/actors/console.rs diff --git a/meta-cli/src/deploy/actors/console/input.rs b/src/meta-cli/src/deploy/actors/console/input.rs similarity index 100% rename from meta-cli/src/deploy/actors/console/input.rs rename to src/meta-cli/src/deploy/actors/console/input.rs diff --git a/meta-cli/src/deploy/actors/discovery.rs b/src/meta-cli/src/deploy/actors/discovery.rs similarity index 100% rename from meta-cli/src/deploy/actors/discovery.rs rename to src/meta-cli/src/deploy/actors/discovery.rs diff --git a/meta-cli/src/deploy/actors/mod.rs b/src/meta-cli/src/deploy/actors/mod.rs similarity index 100% rename from meta-cli/src/deploy/actors/mod.rs rename to src/meta-cli/src/deploy/actors/mod.rs diff --git a/meta-cli/src/deploy/actors/push_manager/state.rs b/src/meta-cli/src/deploy/actors/push_manager/state.rs similarity index 100% rename from meta-cli/src/deploy/actors/push_manager/state.rs rename to src/meta-cli/src/deploy/actors/push_manager/state.rs diff --git a/meta-cli/src/deploy/actors/task.rs b/src/meta-cli/src/deploy/actors/task.rs similarity index 97% rename from meta-cli/src/deploy/actors/task.rs rename to src/meta-cli/src/deploy/actors/task.rs index bfc6ac114f..31c041abac 100644 --- a/meta-cli/src/deploy/actors/task.rs +++ b/src/meta-cli/src/deploy/actors/task.rs @@ -7,11 +7,11 @@ //! //! Note: On the task process //! - stdout is used for logging and task output; each line is prefix by -//! either one of "debug: ", "info: ", "warn: ", "error: " for logging, -//! or "success: "/"failure: " for reporting operation result (serialization, or -//! deployment) for each typegraph with for JSON-serialized data. +//! either one of "debug: ", "info: ", "warn: ", "error: " for logging, +//! or "success: "/"failure: " for reporting operation result (serialization, or +//! deployment) for each typegraph with for JSON-serialized data. //! - stderr is used for fatal errors that causes the program to exit; mainly -//! unhandled exception in JavaScript or Python +//! unhandled exception in JavaScript or Python pub mod action; mod command; diff --git a/meta-cli/src/deploy/actors/task/action.rs b/src/meta-cli/src/deploy/actors/task/action.rs similarity index 100% rename from meta-cli/src/deploy/actors/task/action.rs rename to src/meta-cli/src/deploy/actors/task/action.rs diff --git a/meta-cli/src/deploy/actors/task/command.rs b/src/meta-cli/src/deploy/actors/task/command.rs similarity index 100% rename from meta-cli/src/deploy/actors/task/command.rs rename to src/meta-cli/src/deploy/actors/task/command.rs diff --git a/meta-cli/src/deploy/actors/task/command/python.rs b/src/meta-cli/src/deploy/actors/task/command/python.rs similarity index 100% rename from meta-cli/src/deploy/actors/task/command/python.rs rename to src/meta-cli/src/deploy/actors/task/command/python.rs diff --git a/meta-cli/src/deploy/actors/task/command/typescript.rs b/src/meta-cli/src/deploy/actors/task/command/typescript.rs similarity index 100% rename from meta-cli/src/deploy/actors/task/command/typescript.rs rename to src/meta-cli/src/deploy/actors/task/command/typescript.rs diff --git a/meta-cli/src/deploy/actors/task/deploy.rs b/src/meta-cli/src/deploy/actors/task/deploy.rs similarity index 100% rename from meta-cli/src/deploy/actors/task/deploy.rs rename to src/meta-cli/src/deploy/actors/task/deploy.rs diff --git a/meta-cli/src/deploy/actors/task/deploy/migrations.rs b/src/meta-cli/src/deploy/actors/task/deploy/migrations.rs similarity index 100% rename from meta-cli/src/deploy/actors/task/deploy/migrations.rs rename to src/meta-cli/src/deploy/actors/task/deploy/migrations.rs diff --git a/meta-cli/src/deploy/actors/task/list.rs b/src/meta-cli/src/deploy/actors/task/list.rs similarity index 100% rename from meta-cli/src/deploy/actors/task/list.rs rename to src/meta-cli/src/deploy/actors/task/list.rs diff --git a/meta-cli/src/deploy/actors/task/serialize.rs b/src/meta-cli/src/deploy/actors/task/serialize.rs similarity index 100% rename from meta-cli/src/deploy/actors/task/serialize.rs rename to src/meta-cli/src/deploy/actors/task/serialize.rs diff --git a/meta-cli/src/deploy/actors/task_io.rs b/src/meta-cli/src/deploy/actors/task_io.rs similarity index 100% rename from meta-cli/src/deploy/actors/task_io.rs rename to src/meta-cli/src/deploy/actors/task_io.rs diff --git a/meta-cli/src/deploy/actors/task_manager.rs b/src/meta-cli/src/deploy/actors/task_manager.rs similarity index 100% rename from meta-cli/src/deploy/actors/task_manager.rs rename to src/meta-cli/src/deploy/actors/task_manager.rs diff --git a/meta-cli/src/deploy/actors/task_manager/report.rs b/src/meta-cli/src/deploy/actors/task_manager/report.rs similarity index 100% rename from meta-cli/src/deploy/actors/task_manager/report.rs rename to src/meta-cli/src/deploy/actors/task_manager/report.rs diff --git a/meta-cli/src/deploy/actors/task_manager/signal_handler.rs b/src/meta-cli/src/deploy/actors/task_manager/signal_handler.rs similarity index 100% rename from meta-cli/src/deploy/actors/task_manager/signal_handler.rs rename to src/meta-cli/src/deploy/actors/task_manager/signal_handler.rs diff --git a/meta-cli/src/deploy/actors/typegate.rs b/src/meta-cli/src/deploy/actors/typegate.rs similarity index 97% rename from meta-cli/src/deploy/actors/typegate.rs rename to src/meta-cli/src/deploy/actors/typegate.rs index 8032d236f9..b3e8805604 100644 --- a/meta-cli/src/deploy/actors/typegate.rs +++ b/src/meta-cli/src/deploy/actors/typegate.rs @@ -36,7 +36,7 @@ pub struct TypegateInit { port: u16, admin_password: String, main_url: Option, - import_map_url: Option, + deno_config_url: Option, } impl TypegateInit { @@ -44,7 +44,7 @@ impl TypegateInit { node_config: &NodeConfig, working_dir: impl AsRef + std::fmt::Debug, main_url: Option, - import_map_url: Option, + deno_config_url: Option, ) -> Result { let host = node_config .url @@ -67,7 +67,7 @@ impl TypegateInit { port, admin_password, main_url, - import_map_url, + deno_config_url, }) } @@ -112,14 +112,15 @@ impl TypegateInit { .env("TG_SECRET", tg_secret) .env("TG_ADMIN_PASSWORD", &self.admin_password) .env("TMP_DIR", temp_dir.to_str().unwrap()) + .env("DEBUG", "true") .stdin(Stdio::piped()) .stdout(Stdio::piped()) .stderr(Stdio::piped()); if let Some(url) = &self.main_url { command.arg(format!("--main-url={url}")); } - if let Some(url) = &self.import_map_url { - command.arg(format!("--import-map-url={url}")); + if let Some(url) = &self.deno_config_url { + command.arg(format!("--deno-config-url={url}")); } Ok(command) diff --git a/meta-cli/src/deploy/actors/watcher.rs b/src/meta-cli/src/deploy/actors/watcher.rs similarity index 100% rename from meta-cli/src/deploy/actors/watcher.rs rename to src/meta-cli/src/deploy/actors/watcher.rs diff --git a/meta-cli/src/deploy/mod.rs b/src/meta-cli/src/deploy/mod.rs similarity index 100% rename from meta-cli/src/deploy/mod.rs rename to src/meta-cli/src/deploy/mod.rs diff --git a/meta-cli/src/deploy/push/mod.rs b/src/meta-cli/src/deploy/push/mod.rs similarity index 100% rename from meta-cli/src/deploy/push/mod.rs rename to src/meta-cli/src/deploy/push/mod.rs diff --git a/meta-cli/src/deploy/push/pusher.rs b/src/meta-cli/src/deploy/push/pusher.rs similarity index 80% rename from meta-cli/src/deploy/push/pusher.rs rename to src/meta-cli/src/deploy/push/pusher.rs index 844f453ec8..e1264a8a16 100644 --- a/meta-cli/src/deploy/push/pusher.rs +++ b/src/meta-cli/src/deploy/push/pusher.rs @@ -2,13 +2,10 @@ // SPDX-License-Identifier: MPL-2.0 use crate::interlude::*; -use std::sync::Mutex; use std::time::Duration; use serde::Deserialize; -use lazy_static::lazy_static; - #[derive(Deserialize, Debug)] #[serde(rename_all = "snake_case")] pub enum MessageType { @@ -65,9 +62,8 @@ struct ResolveNullConstraintViolation { failure: NullConstraintViolation, } -lazy_static! { - static ref RETRY_COUNTERS: Mutex>> = Mutex::new(HashMap::new()); -} +static RETRY_COUNTERS: once_cell::sync::Lazy>> = + once_cell::sync::Lazy::new(Default::default); pub struct RetryManager; @@ -79,25 +75,22 @@ pub struct DelayOutput { impl RetryManager { pub fn reset() { - let mut counters = RETRY_COUNTERS.lock().unwrap(); - counters.clear(); + RETRY_COUNTERS.clear(); } - pub fn clear_counter(key: &PathBuf) { - let mut counters = RETRY_COUNTERS.lock().unwrap(); - counters.remove_entry(key); + pub fn clear_counter(key: &Path) { + RETRY_COUNTERS.remove(key); } pub fn next_delay(key: &PathBuf) -> Option { - let mut counters = RETRY_COUNTERS.lock().unwrap(); let max_retries = 3; let delay = 3000; let compute_delay = |retry: u8| (retry as u64) * delay; - match counters.get(key) { + match RETRY_COUNTERS.get(key) { Some(counter) => { let inc = *counter.as_ref() + 1; if inc <= max_retries { - counters.insert(key.clone(), inc.into()); + RETRY_COUNTERS.insert(key.clone(), inc.into()); let ms = compute_delay(inc); Some(DelayOutput { retry: inc, @@ -110,7 +103,7 @@ impl RetryManager { } None => { let inc_init = 1; - counters.insert(key.clone(), inc_init.into()); + RETRY_COUNTERS.insert(key.clone(), inc_init.into()); let ms = compute_delay(inc_init); Some(DelayOutput { retry: inc_init, diff --git a/meta-cli/src/fs.rs b/src/meta-cli/src/fs.rs similarity index 100% rename from meta-cli/src/fs.rs rename to src/meta-cli/src/fs.rs diff --git a/meta-cli/src/global_config.rs b/src/meta-cli/src/global_config.rs similarity index 100% rename from meta-cli/src/global_config.rs rename to src/meta-cli/src/global_config.rs diff --git a/meta-cli/src/logger.rs b/src/meta-cli/src/logger.rs similarity index 100% rename from meta-cli/src/logger.rs rename to src/meta-cli/src/logger.rs diff --git a/libs/metagen/src/macros.rs b/src/meta-cli/src/macros.rs similarity index 100% rename from libs/metagen/src/macros.rs rename to src/meta-cli/src/macros.rs diff --git a/meta-cli/src/main.rs b/src/meta-cli/src/main.rs similarity index 100% rename from meta-cli/src/main.rs rename to src/meta-cli/src/main.rs diff --git a/meta-cli/src/secrets.rs b/src/meta-cli/src/secrets.rs similarity index 100% rename from meta-cli/src/secrets.rs rename to src/meta-cli/src/secrets.rs diff --git a/meta-cli/src/tests/mod.rs b/src/meta-cli/src/tests/mod.rs similarity index 100% rename from meta-cli/src/tests/mod.rs rename to src/meta-cli/src/tests/mod.rs diff --git a/meta-cli/src/tests/utils.rs b/src/meta-cli/src/tests/utils.rs similarity index 100% rename from meta-cli/src/tests/utils.rs rename to src/meta-cli/src/tests/utils.rs diff --git a/meta-cli/src/typegraph/dependency_graph.rs b/src/meta-cli/src/typegraph/dependency_graph.rs similarity index 100% rename from meta-cli/src/typegraph/dependency_graph.rs rename to src/meta-cli/src/typegraph/dependency_graph.rs diff --git a/meta-cli/src/typegraph/loader/discovery.rs b/src/meta-cli/src/typegraph/loader/discovery.rs similarity index 100% rename from meta-cli/src/typegraph/loader/discovery.rs rename to src/meta-cli/src/typegraph/loader/discovery.rs diff --git a/meta-cli/src/typegraph/loader/mod.rs b/src/meta-cli/src/typegraph/loader/mod.rs similarity index 100% rename from meta-cli/src/typegraph/loader/mod.rs rename to src/meta-cli/src/typegraph/loader/mod.rs diff --git a/meta-cli/src/typegraph/mod.rs b/src/meta-cli/src/typegraph/mod.rs similarity index 100% rename from meta-cli/src/typegraph/mod.rs rename to src/meta-cli/src/typegraph/mod.rs diff --git a/meta-cli/src/utils/clap.rs b/src/meta-cli/src/utils/clap.rs similarity index 100% rename from meta-cli/src/utils/clap.rs rename to src/meta-cli/src/utils/clap.rs diff --git a/meta-cli/src/utils/mod.rs b/src/meta-cli/src/utils/mod.rs similarity index 100% rename from meta-cli/src/utils/mod.rs rename to src/meta-cli/src/utils/mod.rs diff --git a/meta-cli/src/utils/shell_words.rs b/src/meta-cli/src/utils/shell_words.rs similarity index 100% rename from meta-cli/src/utils/shell_words.rs rename to src/meta-cli/src/utils/shell_words.rs diff --git a/meta-cli/tests/graphs/nested/graph0.py b/src/meta-cli/tests/graphs/nested/graph0.py similarity index 100% rename from meta-cli/tests/graphs/nested/graph0.py rename to src/meta-cli/tests/graphs/nested/graph0.py diff --git a/meta-cli/tests/metatype.yml b/src/meta-cli/tests/metatype.yml similarity index 100% rename from meta-cli/tests/metatype.yml rename to src/meta-cli/tests/metatype.yml diff --git a/meta-lsp/.eslintrc.yml b/src/meta-lsp/.eslintrc.yml similarity index 100% rename from meta-lsp/.eslintrc.yml rename to src/meta-lsp/.eslintrc.yml diff --git a/meta-lsp/.vscodeignore b/src/meta-lsp/.vscodeignore similarity index 100% rename from meta-lsp/.vscodeignore rename to src/meta-lsp/.vscodeignore diff --git a/meta-lsp/LICENSE.md b/src/meta-lsp/LICENSE.md similarity index 100% rename from meta-lsp/LICENSE.md rename to src/meta-lsp/LICENSE.md diff --git a/meta-lsp/README.md b/src/meta-lsp/README.md similarity index 100% rename from meta-lsp/README.md rename to src/meta-lsp/README.md diff --git a/meta-lsp/logo.png b/src/meta-lsp/logo.png similarity index 100% rename from meta-lsp/logo.png rename to src/meta-lsp/logo.png diff --git a/meta-lsp/package.json b/src/meta-lsp/package.json similarity index 98% rename from meta-lsp/package.json rename to src/meta-lsp/package.json index b63bb83bb1..22567e47fa 100644 --- a/meta-lsp/package.json +++ b/src/meta-lsp/package.json @@ -4,7 +4,7 @@ "description": "VSCode extension for Metatype support", "icon": "logo.png", "author": "Metatype Team", - "version": "0.4.8", + "version": "0.4.9-rc1", "repository": { "type": "git", "url": "https://github.com/metatypedev/metatype" diff --git a/meta-lsp/pnpm-lock.yaml b/src/meta-lsp/pnpm-lock.yaml similarity index 100% rename from meta-lsp/pnpm-lock.yaml rename to src/meta-lsp/pnpm-lock.yaml diff --git a/meta-lsp/pnpm-workspace.yaml b/src/meta-lsp/pnpm-workspace.yaml similarity index 100% rename from meta-lsp/pnpm-workspace.yaml rename to src/meta-lsp/pnpm-workspace.yaml diff --git a/meta-lsp/ts-language-server/package.json b/src/meta-lsp/ts-language-server/package.json similarity index 96% rename from meta-lsp/ts-language-server/package.json rename to src/meta-lsp/ts-language-server/package.json index f11b1f3220..b7d9dfeef7 100644 --- a/meta-lsp/ts-language-server/package.json +++ b/src/meta-lsp/ts-language-server/package.json @@ -2,7 +2,7 @@ "name": "typegraph-ts-server", "description": "TypeScript language server for TypeGraph", "author": "Metatype Team", - "version": "0.4.8", + "version": "0.4.9-rc1", "repository": { "type": "git", "url": "https://github.com/metatypedev/metatype" diff --git a/meta-lsp/ts-language-server/src/analysis/diagnostics/context.ts b/src/meta-lsp/ts-language-server/src/analysis/diagnostics/context.ts similarity index 100% rename from meta-lsp/ts-language-server/src/analysis/diagnostics/context.ts rename to src/meta-lsp/ts-language-server/src/analysis/diagnostics/context.ts diff --git a/meta-lsp/ts-language-server/src/analysis/exposed_function.ts b/src/meta-lsp/ts-language-server/src/analysis/exposed_function.ts similarity index 100% rename from meta-lsp/ts-language-server/src/analysis/exposed_function.ts rename to src/meta-lsp/ts-language-server/src/analysis/exposed_function.ts diff --git a/meta-lsp/ts-language-server/src/analysis/runtimes/mod.ts b/src/meta-lsp/ts-language-server/src/analysis/runtimes/mod.ts similarity index 100% rename from meta-lsp/ts-language-server/src/analysis/runtimes/mod.ts rename to src/meta-lsp/ts-language-server/src/analysis/runtimes/mod.ts diff --git a/meta-lsp/ts-language-server/src/analysis/typescript-semantic/scope.ts b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/scope.ts similarity index 100% rename from meta-lsp/ts-language-server/src/analysis/typescript-semantic/scope.ts rename to src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/scope.ts diff --git a/meta-lsp/ts-language-server/src/analysis/typescript-semantic/semantic-node.ts b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/semantic-node.ts similarity index 100% rename from meta-lsp/ts-language-server/src/analysis/typescript-semantic/semantic-node.ts rename to src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/semantic-node.ts diff --git a/meta-lsp/ts-language-server/src/analysis/typescript-semantic/symbols.ts b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/symbols.ts similarity index 100% rename from meta-lsp/ts-language-server/src/analysis/typescript-semantic/symbols.ts rename to src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/symbols.ts diff --git a/meta-lsp/ts-language-server/src/analysis/typescript-semantic/utils/mod.ts b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/utils/mod.ts similarity index 100% rename from meta-lsp/ts-language-server/src/analysis/typescript-semantic/utils/mod.ts rename to src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/utils/mod.ts diff --git a/meta-lsp/ts-language-server/src/lsp_client.ts b/src/meta-lsp/ts-language-server/src/lsp_client.ts similarity index 100% rename from meta-lsp/ts-language-server/src/lsp_client.ts rename to src/meta-lsp/ts-language-server/src/lsp_client.ts diff --git a/meta-lsp/ts-language-server/src/parser.ts b/src/meta-lsp/ts-language-server/src/parser.ts similarity index 100% rename from meta-lsp/ts-language-server/src/parser.ts rename to src/meta-lsp/ts-language-server/src/parser.ts diff --git a/meta-lsp/ts-language-server/src/server.ts b/src/meta-lsp/ts-language-server/src/server.ts similarity index 100% rename from meta-lsp/ts-language-server/src/server.ts rename to src/meta-lsp/ts-language-server/src/server.ts diff --git a/meta-lsp/ts-language-server/src/server/documents.ts b/src/meta-lsp/ts-language-server/src/server/documents.ts similarity index 100% rename from meta-lsp/ts-language-server/src/server/documents.ts rename to src/meta-lsp/ts-language-server/src/server/documents.ts diff --git a/meta-lsp/ts-language-server/src/server/index.ts b/src/meta-lsp/ts-language-server/src/server/index.ts similarity index 100% rename from meta-lsp/ts-language-server/src/server/index.ts rename to src/meta-lsp/ts-language-server/src/server/index.ts diff --git a/meta-lsp/ts-language-server/src/types.ts b/src/meta-lsp/ts-language-server/src/types.ts similarity index 100% rename from meta-lsp/ts-language-server/src/types.ts rename to src/meta-lsp/ts-language-server/src/types.ts diff --git a/meta-lsp/ts-language-server/tests/__snapshots__/expose_analysis_test.ts.snap b/src/meta-lsp/ts-language-server/tests/__snapshots__/expose_analysis_test.ts.snap similarity index 100% rename from meta-lsp/ts-language-server/tests/__snapshots__/expose_analysis_test.ts.snap rename to src/meta-lsp/ts-language-server/tests/__snapshots__/expose_analysis_test.ts.snap diff --git a/meta-lsp/ts-language-server/tests/expose_analysis.test.ts b/src/meta-lsp/ts-language-server/tests/expose_analysis.test.ts similarity index 100% rename from meta-lsp/ts-language-server/tests/expose_analysis.test.ts rename to src/meta-lsp/ts-language-server/tests/expose_analysis.test.ts diff --git a/meta-lsp/ts-language-server/tests/typegraphs/deno_types.ts b/src/meta-lsp/ts-language-server/tests/typegraphs/deno_types.ts similarity index 100% rename from meta-lsp/ts-language-server/tests/typegraphs/deno_types.ts rename to src/meta-lsp/ts-language-server/tests/typegraphs/deno_types.ts diff --git a/meta-lsp/ts-language-server/tests/utils.ts b/src/meta-lsp/ts-language-server/tests/utils.ts similarity index 100% rename from meta-lsp/ts-language-server/tests/utils.ts rename to src/meta-lsp/ts-language-server/tests/utils.ts diff --git a/meta-lsp/tsconfig.json b/src/meta-lsp/tsconfig.json similarity index 100% rename from meta-lsp/tsconfig.json rename to src/meta-lsp/tsconfig.json diff --git a/meta-lsp/vscode-metatype-support/package.json b/src/meta-lsp/vscode-metatype-support/package.json similarity index 96% rename from meta-lsp/vscode-metatype-support/package.json rename to src/meta-lsp/vscode-metatype-support/package.json index 981e59b488..89488f5a81 100644 --- a/meta-lsp/vscode-metatype-support/package.json +++ b/src/meta-lsp/vscode-metatype-support/package.json @@ -2,7 +2,7 @@ "name": "vscode-metatype-support", "description": "VSCode extension for Metatype support", "author": "Metatype Team", - "version": "0.4.8", + "version": "0.4.9-rc1", "repository": { "type": "git", "url": "https://github.com/metatypedev/metatype" diff --git a/meta-lsp/vscode-metatype-support/pnpm-lock.yaml b/src/meta-lsp/vscode-metatype-support/pnpm-lock.yaml similarity index 100% rename from meta-lsp/vscode-metatype-support/pnpm-lock.yaml rename to src/meta-lsp/vscode-metatype-support/pnpm-lock.yaml diff --git a/meta-lsp/vscode-metatype-support/src/extension.ts b/src/meta-lsp/vscode-metatype-support/src/extension.ts similarity index 100% rename from meta-lsp/vscode-metatype-support/src/extension.ts rename to src/meta-lsp/vscode-metatype-support/src/extension.ts diff --git a/meta-lsp/vscode-metatype-support/tsconfig.json b/src/meta-lsp/vscode-metatype-support/tsconfig.json similarity index 100% rename from meta-lsp/vscode-metatype-support/tsconfig.json rename to src/meta-lsp/vscode-metatype-support/tsconfig.json diff --git a/libs/metagen/Cargo.toml b/src/metagen/Cargo.toml similarity index 51% rename from libs/metagen/Cargo.toml rename to src/metagen/Cargo.toml index 113921d639..5b25861df1 100644 --- a/libs/metagen/Cargo.toml +++ b/src/metagen/Cargo.toml @@ -3,24 +3,42 @@ name = "metagen" edition.workspace = true version.workspace = true +# this allows us to exclude the rust files +# from the dockerfile while keeping the Cargo.toml +# for cargo chef. Useful to improve cache hit in docker +[lib] +path = "src/lib.rs" + [dependencies] # this library is used by typegraph_core # so keep the codesize lite common.workspace = true + +# logging log.workspace = true + +# encodding serde.workspace = true serde_json.workspace = true +heck.workspace = true + +# ds indexmap.workspace = true -garde = { version = "0.18", features = ["derive"] } -heck = "0.5.0-rc.1" regex.workspace = true +tera = { workspace = true, default-features = false } + +# pattern +garde = { workspace = true, features = ["derive"] } once_cell.workspace = true -pretty_assertions = "1.4.0" color-eyre.workspace = true -tera = { version = "1.20", default-features = false } + +# test +pretty_assertions.workspace = true + +# async futures-concurrency.workspace = true futures-lite.workspace = true [dev-dependencies] -tokio = { workspace = true, features =["full"] } +tokio = { workspace = true, features = ["full"] } tempfile.workspace = true diff --git a/libs/metagen/fixtures/client_rs/Cargo.toml b/src/metagen/fixtures/client_rs/Cargo.toml similarity index 100% rename from libs/metagen/fixtures/client_rs/Cargo.toml rename to src/metagen/fixtures/client_rs/Cargo.toml diff --git a/libs/metagen/fixtures/client_rs/main.rs b/src/metagen/fixtures/client_rs/main.rs similarity index 100% rename from libs/metagen/fixtures/client_rs/main.rs rename to src/metagen/fixtures/client_rs/main.rs diff --git a/libs/metagen/fixtures/client_ts/deno.json b/src/metagen/fixtures/client_ts/deno.json similarity index 100% rename from libs/metagen/fixtures/client_ts/deno.json rename to src/metagen/fixtures/client_ts/deno.json diff --git a/libs/metagen/fixtures/client_ts/main.ts b/src/metagen/fixtures/client_ts/main.ts similarity index 100% rename from libs/metagen/fixtures/client_ts/main.ts rename to src/metagen/fixtures/client_ts/main.ts diff --git a/libs/metagen/fixtures/mat_rust/lib.rs b/src/metagen/fixtures/mat_rust/lib.rs similarity index 100% rename from libs/metagen/fixtures/mat_rust/lib.rs rename to src/metagen/fixtures/mat_rust/lib.rs diff --git a/libs/metagen/fixtures/placeholder b/src/metagen/fixtures/placeholder similarity index 100% rename from libs/metagen/fixtures/placeholder rename to src/metagen/fixtures/placeholder diff --git a/libs/metagen/fixtures/tg.ts b/src/metagen/fixtures/tg.ts similarity index 100% rename from libs/metagen/fixtures/tg.ts rename to src/metagen/fixtures/tg.ts diff --git a/libs/metagen/fixtures/tg2.ts b/src/metagen/fixtures/tg2.ts similarity index 100% rename from libs/metagen/fixtures/tg2.ts rename to src/metagen/fixtures/tg2.ts diff --git a/src/metagen/metatype.yaml b/src/metagen/metatype.yaml new file mode 100644 index 0000000000..bb6e6456ee --- /dev/null +++ b/src/metagen/metatype.yaml @@ -0,0 +1,3 @@ +# used by the fixture typegraphs +# we don't actually need to fill this in since +# we only ever serialize them diff --git a/libs/metagen/src/client_py/mod.rs b/src/metagen/src/client_py/mod.rs similarity index 100% rename from libs/metagen/src/client_py/mod.rs rename to src/metagen/src/client_py/mod.rs diff --git a/libs/metagen/src/client_py/node_metas.rs b/src/metagen/src/client_py/node_metas.rs similarity index 100% rename from libs/metagen/src/client_py/node_metas.rs rename to src/metagen/src/client_py/node_metas.rs diff --git a/libs/metagen/src/client_py/selections.rs b/src/metagen/src/client_py/selections.rs similarity index 100% rename from libs/metagen/src/client_py/selections.rs rename to src/metagen/src/client_py/selections.rs diff --git a/libs/metagen/src/client_py/static/client.py b/src/metagen/src/client_py/static/client.py similarity index 100% rename from libs/metagen/src/client_py/static/client.py rename to src/metagen/src/client_py/static/client.py diff --git a/libs/metagen/src/client_py/types.rs b/src/metagen/src/client_py/types.rs similarity index 100% rename from libs/metagen/src/client_py/types.rs rename to src/metagen/src/client_py/types.rs diff --git a/libs/metagen/src/client_py/utils.rs b/src/metagen/src/client_py/utils.rs similarity index 100% rename from libs/metagen/src/client_py/utils.rs rename to src/metagen/src/client_py/utils.rs diff --git a/libs/metagen/src/client_rs/mod.rs b/src/metagen/src/client_rs/mod.rs similarity index 100% rename from libs/metagen/src/client_rs/mod.rs rename to src/metagen/src/client_rs/mod.rs diff --git a/libs/metagen/src/client_rs/node_metas.rs b/src/metagen/src/client_rs/node_metas.rs similarity index 100% rename from libs/metagen/src/client_rs/node_metas.rs rename to src/metagen/src/client_rs/node_metas.rs diff --git a/libs/metagen/src/client_rs/selections.rs b/src/metagen/src/client_rs/selections.rs similarity index 100% rename from libs/metagen/src/client_rs/selections.rs rename to src/metagen/src/client_rs/selections.rs diff --git a/libs/metagen/src/client_rs/static/Cargo.toml b/src/metagen/src/client_rs/static/Cargo.toml similarity index 100% rename from libs/metagen/src/client_rs/static/Cargo.toml rename to src/metagen/src/client_rs/static/Cargo.toml diff --git a/libs/metagen/src/client_rs/static/client.rs b/src/metagen/src/client_rs/static/client.rs similarity index 100% rename from libs/metagen/src/client_rs/static/client.rs rename to src/metagen/src/client_rs/static/client.rs diff --git a/libs/metagen/src/client_rs/static/lib.rs b/src/metagen/src/client_rs/static/lib.rs similarity index 100% rename from libs/metagen/src/client_rs/static/lib.rs rename to src/metagen/src/client_rs/static/lib.rs diff --git a/libs/metagen/src/client_ts/mod.rs b/src/metagen/src/client_ts/mod.rs similarity index 100% rename from libs/metagen/src/client_ts/mod.rs rename to src/metagen/src/client_ts/mod.rs diff --git a/libs/metagen/src/client_ts/node_metas.rs b/src/metagen/src/client_ts/node_metas.rs similarity index 100% rename from libs/metagen/src/client_ts/node_metas.rs rename to src/metagen/src/client_ts/node_metas.rs diff --git a/libs/metagen/src/client_ts/selections.rs b/src/metagen/src/client_ts/selections.rs similarity index 100% rename from libs/metagen/src/client_ts/selections.rs rename to src/metagen/src/client_ts/selections.rs diff --git a/libs/metagen/src/client_ts/static/mod.ts b/src/metagen/src/client_ts/static/mod.ts similarity index 100% rename from libs/metagen/src/client_ts/static/mod.ts rename to src/metagen/src/client_ts/static/mod.ts diff --git a/libs/metagen/src/config.rs b/src/metagen/src/config.rs similarity index 100% rename from libs/metagen/src/config.rs rename to src/metagen/src/config.rs diff --git a/libs/metagen/src/lib.rs b/src/metagen/src/lib.rs similarity index 100% rename from libs/metagen/src/lib.rs rename to src/metagen/src/lib.rs diff --git a/meta-cli/src/macros.rs b/src/metagen/src/macros.rs similarity index 100% rename from meta-cli/src/macros.rs rename to src/metagen/src/macros.rs diff --git a/libs/metagen/src/mdk_python/mod.rs b/src/metagen/src/mdk_python/mod.rs similarity index 100% rename from libs/metagen/src/mdk_python/mod.rs rename to src/metagen/src/mdk_python/mod.rs diff --git a/libs/metagen/src/mdk_python/static/main.py.jinja b/src/metagen/src/mdk_python/static/main.py.jinja similarity index 100% rename from libs/metagen/src/mdk_python/static/main.py.jinja rename to src/metagen/src/mdk_python/static/main.py.jinja diff --git a/libs/metagen/src/mdk_python/static/struct.py.jinja b/src/metagen/src/mdk_python/static/struct.py.jinja similarity index 100% rename from libs/metagen/src/mdk_python/static/struct.py.jinja rename to src/metagen/src/mdk_python/static/struct.py.jinja diff --git a/libs/metagen/src/mdk_python/static/types.py.jinja b/src/metagen/src/mdk_python/static/types.py.jinja similarity index 100% rename from libs/metagen/src/mdk_python/static/types.py.jinja rename to src/metagen/src/mdk_python/static/types.py.jinja diff --git a/libs/metagen/src/mdk_python/types.rs b/src/metagen/src/mdk_python/types.rs similarity index 100% rename from libs/metagen/src/mdk_python/types.rs rename to src/metagen/src/mdk_python/types.rs diff --git a/libs/metagen/src/mdk_python/utils.rs b/src/metagen/src/mdk_python/utils.rs similarity index 100% rename from libs/metagen/src/mdk_python/utils.rs rename to src/metagen/src/mdk_python/utils.rs diff --git a/libs/metagen/src/mdk_rust/mod.rs b/src/metagen/src/mdk_rust/mod.rs similarity index 99% rename from libs/metagen/src/mdk_rust/mod.rs rename to src/metagen/src/mdk_rust/mod.rs index 6d8e992c35..7b73f37016 100644 --- a/libs/metagen/src/mdk_rust/mod.rs +++ b/src/metagen/src/mdk_rust/mod.rs @@ -214,7 +214,7 @@ pub fn gen_static(dest: &mut GenDestBuf) -> core::fmt::Result { let mod_rs = include_str!("static/mdk.rs").to_string(); let mod_rs = mod_rs.replace("__METATYPE_VERSION__", std::env!("CARGO_PKG_VERSION")); - let mdk_wit = include_str!("../../../../wit/wit-wire.wit"); + let mdk_wit = include_str!("../../../wit/wit-wire.wit"); writeln!(dest, "// gen-static-start")?; let gen_start = "// gen-start\n"; diff --git a/libs/metagen/src/mdk_rust/static/Cargo.toml b/src/metagen/src/mdk_rust/static/Cargo.toml similarity index 100% rename from libs/metagen/src/mdk_rust/static/Cargo.toml rename to src/metagen/src/mdk_rust/static/Cargo.toml diff --git a/libs/metagen/src/mdk_rust/static/lib.rs b/src/metagen/src/mdk_rust/static/lib.rs similarity index 100% rename from libs/metagen/src/mdk_rust/static/lib.rs rename to src/metagen/src/mdk_rust/static/lib.rs diff --git a/libs/metagen/src/mdk_rust/static/mdk.rs b/src/metagen/src/mdk_rust/static/mdk.rs similarity index 99% rename from libs/metagen/src/mdk_rust/static/mdk.rs rename to src/metagen/src/mdk_rust/static/mdk.rs index 8a22d7ea99..6ad4ec62bf 100644 --- a/libs/metagen/src/mdk_rust/static/mdk.rs +++ b/src/metagen/src/mdk_rust/static/mdk.rs @@ -8,7 +8,7 @@ pub mod wit { // wit-start // this bit gets replaced by the inline wit string world: "wit-wire", - path: "../../../../../wit", + path: "../../../../wit", // wit-end }); } diff --git a/libs/metagen/src/mdk_rust/stubs.rs b/src/metagen/src/mdk_rust/stubs.rs similarity index 100% rename from libs/metagen/src/mdk_rust/stubs.rs rename to src/metagen/src/mdk_rust/stubs.rs diff --git a/libs/metagen/src/mdk_rust/types.rs b/src/metagen/src/mdk_rust/types.rs similarity index 100% rename from libs/metagen/src/mdk_rust/types.rs rename to src/metagen/src/mdk_rust/types.rs diff --git a/libs/metagen/src/mdk_rust/utils.rs b/src/metagen/src/mdk_rust/utils.rs similarity index 100% rename from libs/metagen/src/mdk_rust/utils.rs rename to src/metagen/src/mdk_rust/utils.rs diff --git a/libs/metagen/src/mdk_substantial/mod.rs b/src/metagen/src/mdk_substantial/mod.rs similarity index 100% rename from libs/metagen/src/mdk_substantial/mod.rs rename to src/metagen/src/mdk_substantial/mod.rs diff --git a/libs/metagen/src/mdk_substantial/static/substantial.py b/src/metagen/src/mdk_substantial/static/substantial.py similarity index 100% rename from libs/metagen/src/mdk_substantial/static/substantial.py rename to src/metagen/src/mdk_substantial/static/substantial.py diff --git a/libs/metagen/src/mdk_substantial/static/types.py b/src/metagen/src/mdk_substantial/static/types.py similarity index 100% rename from libs/metagen/src/mdk_substantial/static/types.py rename to src/metagen/src/mdk_substantial/static/types.py diff --git a/libs/metagen/src/mdk_substantial/static/workflow.py b/src/metagen/src/mdk_substantial/static/workflow.py similarity index 100% rename from libs/metagen/src/mdk_substantial/static/workflow.py rename to src/metagen/src/mdk_substantial/static/workflow.py diff --git a/libs/metagen/src/mdk_typescript/mod.rs b/src/metagen/src/mdk_typescript/mod.rs similarity index 100% rename from libs/metagen/src/mdk_typescript/mod.rs rename to src/metagen/src/mdk_typescript/mod.rs diff --git a/libs/metagen/src/mdk_typescript/static/mdk.ts b/src/metagen/src/mdk_typescript/static/mdk.ts similarity index 100% rename from libs/metagen/src/mdk_typescript/static/mdk.ts rename to src/metagen/src/mdk_typescript/static/mdk.ts diff --git a/libs/metagen/src/mdk_typescript/types.rs b/src/metagen/src/mdk_typescript/types.rs similarity index 100% rename from libs/metagen/src/mdk_typescript/types.rs rename to src/metagen/src/mdk_typescript/types.rs diff --git a/libs/metagen/src/mdk_typescript/utils.rs b/src/metagen/src/mdk_typescript/utils.rs similarity index 100% rename from libs/metagen/src/mdk_typescript/utils.rs rename to src/metagen/src/mdk_typescript/utils.rs diff --git a/libs/metagen/src/shared/client.rs b/src/metagen/src/shared/client.rs similarity index 100% rename from libs/metagen/src/shared/client.rs rename to src/metagen/src/shared/client.rs diff --git a/libs/metagen/src/shared/mod.rs b/src/metagen/src/shared/mod.rs similarity index 100% rename from libs/metagen/src/shared/mod.rs rename to src/metagen/src/shared/mod.rs diff --git a/libs/metagen/src/shared/types.rs b/src/metagen/src/shared/types.rs similarity index 100% rename from libs/metagen/src/shared/types.rs rename to src/metagen/src/shared/types.rs diff --git a/libs/metagen/src/tests/fixtures.rs b/src/metagen/src/tests/fixtures.rs similarity index 96% rename from libs/metagen/src/tests/fixtures.rs rename to src/metagen/src/tests/fixtures.rs index 76ab8019b6..54962ebc8a 100644 --- a/libs/metagen/src/tests/fixtures.rs +++ b/src/metagen/src/tests/fixtures.rs @@ -14,7 +14,7 @@ pub async fn test_typegraph_1() -> anyhow::Result> { ) .env( "MCLI_LOADER_CMD", - "deno run -A --import-map=../../typegate/import_map.json {filepath}", + "deno run -A --config=../../examples/deno.jsonc {filepath}", ) .kill_on_drop(true) .output() @@ -116,7 +116,7 @@ pub async fn test_typegraph_3() -> anyhow::Result> { ) .env( "MCLI_LOADER_CMD", - "deno run -A --import-map=../../typegate/import_map.json {filepath}", + "deno run -A --config=../../examples/deno.jsonc {filepath}", ) .kill_on_drop(true) .output() diff --git a/libs/metagen/src/tests/mod.rs b/src/metagen/src/tests/mod.rs similarity index 100% rename from libs/metagen/src/tests/mod.rs rename to src/metagen/src/tests/mod.rs diff --git a/libs/metagen/src/utils.rs b/src/metagen/src/utils.rs similarity index 100% rename from libs/metagen/src/utils.rs rename to src/metagen/src/utils.rs diff --git a/libs/deno/Cargo.toml b/src/mt_deno/Cargo.toml similarity index 84% rename from libs/deno/Cargo.toml rename to src/mt_deno/Cargo.toml index f60bc68154..57dd2f67f1 100644 --- a/libs/deno/Cargo.toml +++ b/src/mt_deno/Cargo.toml @@ -5,5 +5,5 @@ version.workspace = true [dependencies] deno.workspace = true -log.workspace = true +tracing.workspace = true anyhow.workspace = true diff --git a/libs/deno/src/lib.rs b/src/mt_deno/src/lib.rs similarity index 91% rename from libs/deno/src/lib.rs rename to src/mt_deno/src/lib.rs index 87cb4e3456..f9f6485d22 100644 --- a/libs/deno/src/lib.rs +++ b/src/mt_deno/src/lib.rs @@ -16,9 +16,6 @@ use deno::{ use std::{future::Future, sync::Arc}; -#[allow(unused_imports)] -pub(crate) use log::{debug, error, info, trace, warn}; - #[rustfmt::skip] use deno_runtime::deno_core as deno_core; // necessary for re-exported macros to work @@ -66,7 +63,7 @@ pub fn run_sync( pub async fn run( main_module: ModuleSpecifier, - import_map_url: Option, + deno_config_url: Option, permissions: PermissionsOptions, custom_extensions: Arc, ) -> anyhow::Result<()> { @@ -77,10 +74,16 @@ pub async fn run( Box::new(util::draw_thread::DrawThread::show), ); + // NOTE: avoid using the Run subcommand + // as it breaks our custom_extensions patch for some reason let flags = args::Flags { - // NOTE: avoid using the Run subcommand - // as it breaks our custom_extensions patch for some reason - import_map_path: import_map_url, + config_flag: deno_config_url + .map(|str| match str.strip_prefix("file://") { + Some(clean) => clean.into(), + None => str, + }) + .map(args::ConfigFlag::Path) + .unwrap_or(args::ConfigFlag::Discover), unstable_config: args::UnstableConfig { features: DEFAULT_UNSTABLE_FLAGS .iter() @@ -98,7 +101,9 @@ pub async fn run( ..Default::default() }; - let cli_factory = factory::CliFactory::from_flags(flags)?.with_custom_ext_cb(custom_extensions); + let flags = Arc::new(flags); + + let cli_factory = factory::CliFactory::from_flags(flags).with_custom_ext_cb(custom_extensions); let worker_factory = cli_factory.create_cli_main_worker_factory().await?; let permissions = deno_permissions::PermissionsContainer::new( @@ -111,7 +116,7 @@ pub async fn run( permissions, ) .await?; - info!("running worker"); + tracing::info!("running worker"); let exit_code = worker.run().await?; println!("exit_code: {exit_code}"); Ok(()) @@ -204,7 +209,7 @@ pub async fn test( ..Default::default() }, type_check_mode: args::TypeCheckMode::Local, - config_flag: deno_config::ConfigFlag::Path(config_file.to_string_lossy().into()), + config_flag: args::ConfigFlag::Path(config_file.to_string_lossy().into()), argv, subcommand: args::DenoSubcommand::Test(test_flags.clone()), cache_blocklist: CACHE_BLOCKLIST @@ -215,9 +220,11 @@ pub async fn test( ..Default::default() }; - let cli_factory = factory::CliFactory::from_flags(flags)?.with_custom_ext_cb(custom_extensions); + let flags = Arc::new(flags); + + let cli_factory = factory::CliFactory::from_flags(flags).with_custom_ext_cb(custom_extensions); - let options = cli_factory.cli_options().clone(); + let options = cli_factory.cli_options()?.clone(); let test_options = args::WorkspaceTestOptions { // files, @@ -289,6 +296,7 @@ pub async fn test( shuffle: test_options.shuffle, trace_leaks: test_options.trace_leaks, }, + hide_stacktraces: true, }, ) .await?; diff --git a/libs/pyrt_wit_wire/main.py b/src/pyrt_wit_wire/main.py similarity index 100% rename from libs/pyrt_wit_wire/main.py rename to src/pyrt_wit_wire/main.py diff --git a/libs/pyrt_wit_wire/pyproject.toml b/src/pyrt_wit_wire/pyproject.toml similarity index 93% rename from libs/pyrt_wit_wire/pyproject.toml rename to src/pyrt_wit_wire/pyproject.toml index ef3858d90b..3b8d4438dc 100644 --- a/libs/pyrt_wit_wire/pyproject.toml +++ b/src/pyrt_wit_wire/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pyrt_wit_wire" -version = "0.4.8" +version = "0.4.9-rc1" description = "Wasm component implementing the PythonRuntime host using wit_wire protocol." license = "Elastic-2.0" readme = "README.md" diff --git a/src/typegate/deno.jsonc b/src/typegate/deno.jsonc new file mode 100644 index 0000000000..0e7abb7fc3 --- /dev/null +++ b/src/typegate/deno.jsonc @@ -0,0 +1,34 @@ +{ + "lint": { + "exclude": [], + "rules": { + "include": [ + // FIXME: replace console.log usage with logger + // "no-console" + ], + "exclude": [ + "no-explicit-any" + ] + } + }, + "imports": { + "@std/crypto": "jsr:@std/crypto@^1.0.2", + "@std/log": "jsr:@std/log@^0.224.5", + "@std/semver": "jsr:@std/semver@^1.0.1", + "@std/url": "jsr:@std/url@^0.225.0", + // FIXME: repalec with Promise.withDeferred + "@std/async_old/": "https://deno.land/std@0.208.0/async/", + "chance": "npm:chance@1.1.11", + "compress/": "https://deno.land/x/compress@v0.4.5/", + "dataloader": "npm:dataloader@2.2.2", + "graphql/ast": "npm:graphql@16.8.1/language/ast.js", + "graphql/characters": "npm:graphql@16.8.1/language/characterClasses.js", + "levenshtein": "https://deno.land/x/levenshtein@v1.0.1/mod.ts", + "lodash": "npm:lodash@4.17.21", + "oauth2_client": "https://deno.land/x/oauth2_client@v1.0.2/mod.ts", + "sentry": "npm:@sentry/node@7.70.0", + "swc": "https://deno.land/x/swc@0.2.1/mod.ts", + "swc/types": "https://esm.sh/@swc/core@1.3.87/types.d.ts?pin=v131", + "validator": "npm:validator@13.12.0" + } +} diff --git a/typegate/engine/00_runtime.js b/src/typegate/engine/00_runtime.js similarity index 100% rename from typegate/engine/00_runtime.js rename to src/typegate/engine/00_runtime.js diff --git a/src/typegate/engine/Cargo.toml b/src/typegate/engine/Cargo.toml new file mode 100644 index 0000000000..078629498d --- /dev/null +++ b/src/typegate/engine/Cargo.toml @@ -0,0 +1,68 @@ +[package] +name = "typegate_engine" +edition.workspace = true +version.workspace = true + +[dependencies] +# patterns +anyhow.workspace = true +thiserror.workspace = true +tap.workspace = true + +# async +futures.workspace = true +tokio = { workspace = true, features = ["full"] } + +# logging +log.workspace = true + +# encoding +serde.workspace = true +regex.workspace = true +zstd.workspace = true +base64.workspace = true +convert_case.workspace = true + +# data structures +once_cell.workspace = true +dashmap.workspace = true +connection-string.workspace = true + +# temporal +temporal-client.workspace = true +temporal-sdk-core-protos.workspace = true + +# prisma +query-core.workspace = true +query-connector.workspace = true +request-handlers.workspace = true +prisma-models.workspace = true +datamodel-renderer.workspace = true +user-facing-errors.workspace = true +query-engine-metrics.workspace = true +schema-core.workspace = true +psl.workspace = true +schema-connector.workspace = true + +# os +tempfile.workspace = true + +# internal +mt_deno.workspace = true +common.workspace = true + +# runtimes +deno_core.workspace = true +wasmtime = { workspace = true, features = ["component-model"] } +wasmtime-wasi.workspace = true + +# build +shadow-rs.workspace = true + +[dev-dependencies] +env_logger.workspace = true + +[build-dependencies] +shadow-rs.workspace = true +wasmtime = { workspace = true, features = ["component-model"] } +zstd.workspace = true diff --git a/typegate/engine/bindings.ts b/src/typegate/engine/bindings.ts similarity index 100% rename from typegate/engine/bindings.ts rename to src/typegate/engine/bindings.ts diff --git a/typegate/engine/build.rs b/src/typegate/engine/build.rs similarity index 97% rename from typegate/engine/build.rs rename to src/typegate/engine/build.rs index af7ed59def..be0b024fec 100644 --- a/typegate/engine/build.rs +++ b/src/typegate/engine/build.rs @@ -14,7 +14,7 @@ fn main() -> Result<(), Box> { let target = std::env::var("TARGET")?; println!( "cargo:rerun-if-changed={}/main.py", - cwd.join("../../libs/pyrt_wit_wire") + cwd.join("../../pyrt_wit_wire") .canonicalize() .unwrap() .to_string_lossy() @@ -38,7 +38,7 @@ fn main() -> Result<(), Box> { .args(["x", "build-pyrt"]) .env("PYRT_WASM_OUT", &wasm_path) .env("PYRT_TARGET", &wasm_path) - .current_dir(cwd.join("../../")) + .current_dir(cwd.join("../../../")) .spawn() .expect("error spawning ghjk") .wait() diff --git a/typegate/engine/runtime.d.ts b/src/typegate/engine/runtime.d.ts similarity index 100% rename from typegate/engine/runtime.d.ts rename to src/typegate/engine/runtime.d.ts diff --git a/typegate/engine/runtime.js b/src/typegate/engine/runtime.js similarity index 100% rename from typegate/engine/runtime.js rename to src/typegate/engine/runtime.js diff --git a/typegate/engine/src/ext.rs b/src/typegate/engine/src/ext.rs similarity index 99% rename from typegate/engine/src/ext.rs rename to src/typegate/engine/src/ext.rs index 21d9bc80a9..cfe87b90b1 100644 --- a/typegate/engine/src/ext.rs +++ b/src/typegate/engine/src/ext.rs @@ -105,13 +105,13 @@ pub mod tests { #[tokio::test(flavor = "current_thread")] #[ignore] async fn test_obj_go_round() -> Result<()> { - let deno_factory = deno::factory::CliFactory::from_flags(deno::args::Flags { + let deno_factory = deno::factory::CliFactory::from_flags(Arc::new(deno::args::Flags { unstable_config: deno::args::UnstableConfig { legacy_flag_enabled: true, ..Default::default() }, ..Default::default() - })? + })) .with_custom_ext_cb(Arc::new(|| extensions(OpDepInjector::from_env()))); let worker_factory = deno_factory.create_cli_main_worker_factory().await?; let main_module = "data:application/javascript;Meta.get_version()".parse()?; diff --git a/typegate/engine/src/lib.rs b/src/typegate/engine/src/lib.rs similarity index 98% rename from typegate/engine/src/lib.rs rename to src/typegate/engine/src/lib.rs index d4615f2556..efb31f0c05 100644 --- a/typegate/engine/src/lib.rs +++ b/src/typegate/engine/src/lib.rs @@ -133,7 +133,7 @@ pub fn runtime() -> tokio::runtime::Runtime { /// it on a [`LocalSet`](tokio::task::LocalSet) pub async fn launch_typegate_deno( main_mod: deno_core::ModuleSpecifier, - import_map_url: Option, + deno_config_url: Option, ) -> Result<()> { std::env::var("REDIS_URL") .ok() @@ -183,7 +183,7 @@ pub async fn launch_typegate_deno( mt_deno::run( main_mod, - import_map_url, + deno_config_url, permissions, Arc::new(|| ext::extensions(OpDepInjector::from_env())), ) @@ -231,7 +231,7 @@ mod tests { super::resolve_url_or_path("", &std::env::current_dir()?.join("../src/main.ts"))?, Some( std::env::current_dir()? - .join("../import_map.json") + .join("../deno.jsonc") .to_string_lossy() .into(), ), diff --git a/typegate/engine/src/runtimes.rs b/src/typegate/engine/src/runtimes.rs similarity index 100% rename from typegate/engine/src/runtimes.rs rename to src/typegate/engine/src/runtimes.rs diff --git a/typegate/engine/src/runtimes/prisma.rs b/src/typegate/engine/src/runtimes/prisma.rs similarity index 100% rename from typegate/engine/src/runtimes/prisma.rs rename to src/typegate/engine/src/runtimes/prisma.rs diff --git a/typegate/engine/src/runtimes/prisma/engine.rs b/src/typegate/engine/src/runtimes/prisma/engine.rs similarity index 100% rename from typegate/engine/src/runtimes/prisma/engine.rs rename to src/typegate/engine/src/runtimes/prisma/engine.rs diff --git a/typegate/engine/src/runtimes/prisma/engine_import.rs b/src/typegate/engine/src/runtimes/prisma/engine_import.rs similarity index 100% rename from typegate/engine/src/runtimes/prisma/engine_import.rs rename to src/typegate/engine/src/runtimes/prisma/engine_import.rs diff --git a/typegate/engine/src/runtimes/prisma/migration.rs b/src/typegate/engine/src/runtimes/prisma/migration.rs similarity index 100% rename from typegate/engine/src/runtimes/prisma/migration.rs rename to src/typegate/engine/src/runtimes/prisma/migration.rs diff --git a/typegate/engine/src/runtimes/prisma/utils.rs b/src/typegate/engine/src/runtimes/prisma/utils.rs similarity index 100% rename from typegate/engine/src/runtimes/prisma/utils.rs rename to src/typegate/engine/src/runtimes/prisma/utils.rs diff --git a/typegate/engine/src/runtimes/temporal.rs b/src/typegate/engine/src/runtimes/temporal.rs similarity index 100% rename from typegate/engine/src/runtimes/temporal.rs rename to src/typegate/engine/src/runtimes/temporal.rs diff --git a/typegate/engine/src/runtimes/wasm.rs b/src/typegate/engine/src/runtimes/wasm.rs similarity index 100% rename from typegate/engine/src/runtimes/wasm.rs rename to src/typegate/engine/src/runtimes/wasm.rs diff --git a/typegate/engine/src/runtimes/wasm/conversion.rs b/src/typegate/engine/src/runtimes/wasm/conversion.rs similarity index 100% rename from typegate/engine/src/runtimes/wasm/conversion.rs rename to src/typegate/engine/src/runtimes/wasm/conversion.rs diff --git a/typegate/engine/src/runtimes/wit_wire.rs b/src/typegate/engine/src/runtimes/wit_wire.rs similarity index 99% rename from typegate/engine/src/runtimes/wit_wire.rs rename to src/typegate/engine/src/runtimes/wit_wire.rs index 965a8e4207..369d744fa4 100644 --- a/typegate/engine/src/runtimes/wit_wire.rs +++ b/src/typegate/engine/src/runtimes/wit_wire.rs @@ -173,10 +173,10 @@ impl Host for TypegateHost { op_name: String, json: String, ) -> wasmtime::Result> { - if op_name.len() > v8::String::max_length() { + if op_name.len() > v8::String::MAX_LENGTH { return Ok(Err("invalid op_name: too long".to_string())); } - if json.len() > v8::String::max_length() { + if json.len() > v8::String::MAX_LENGTH { return Ok(Err("invalid json: too long".to_string())); } let js_fn = SendPtr(self.js_fn.0); @@ -401,7 +401,7 @@ pub async fn op_wit_wire_init<'scope>( Ok(WitWireInitResponse {}) } -#[deno_core::op2] +#[deno_core::op2(fast)] pub fn op_wit_wire_destroy( state: Rc>, scope: &mut v8::HandleScope<'_>, diff --git a/typegate/engine/src/typegraph.rs b/src/typegate/engine/src/typegraph.rs similarity index 96% rename from typegate/engine/src/typegraph.rs rename to src/typegate/engine/src/typegraph.rs index 71d48fe6b6..fe21d67fe2 100644 --- a/typegate/engine/src/typegraph.rs +++ b/src/typegate/engine/src/typegraph.rs @@ -13,7 +13,7 @@ pub fn op_typegraph_validate(#[string] input: &str) -> Result { Ok(serde_json::to_string(&tg)?) } -#[deno_core::op2] +#[deno_core::op2(fast)] pub fn op_validate_prisma_runtime_data( scope: &mut v8::HandleScope, inp: v8::Local, diff --git a/typegate/src/config.ts b/src/typegate/src/config.ts similarity index 90% rename from typegate/src/config.ts rename to src/typegate/src/config.ts index 0dd7173c02..78bf1e80b4 100644 --- a/typegate/src/config.ts +++ b/src/typegate/src/config.ts @@ -1,18 +1,18 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { z } from "zod"; +import type { z } from "zod"; -import { parse } from "std/flags/mod.ts"; -import { mapKeys } from "std/collections/map_keys.ts"; -import { filterKeys } from "std/collections/filter_keys.ts"; +import { parseArgs } from "@std/cli/parse-args"; +import { mapKeys } from "@std/collections/map-keys"; +import { filterKeys } from "@std/collections/filter-keys"; import { configOrExit, configOrThrow } from "./config/loader.ts"; import { globalConfigSchema, - SyncConfig, + type SyncConfig, syncConfigSchema, - SyncConfigX, - TypegateConfigBase, + type SyncConfigX, + type TypegateConfigBase, typegateConfigBaseSchema, } from "./config/types.ts"; import type { TypegateConfig } from "./config/types.ts"; @@ -50,7 +50,7 @@ export const globalConfig = configOrExit( }, [ mapKeys(Deno.env.toObject(), (k: string) => k.toLowerCase()), - parse(Deno.args) as Record, + parseArgs(Deno.args) as Record, ], ); @@ -77,7 +77,7 @@ function envsAsConfig() { function argsAsConfig() { return mapKeys( - parse(Deno.args) as Record, + parseArgs(Deno.args) as Record, (k) => k.toLocaleLowerCase().replace("-", "_"), ); } diff --git a/typegate/src/config/loader.ts b/src/typegate/src/config/loader.ts similarity index 94% rename from typegate/src/config/loader.ts rename to src/typegate/src/config/loader.ts index 1bd01a63c0..68b39dc43a 100644 --- a/typegate/src/config/loader.ts +++ b/src/typegate/src/config/loader.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { z } from "zod"; -import { deepMerge } from "std/collections/deep_merge.ts"; +import type { z } from "zod"; +import { deepMerge } from "@std/collections/deep-merge"; export class ConfigError extends Error { constructor(public issues: any) { diff --git a/typegate/src/config/shared.ts b/src/typegate/src/config/shared.ts similarity index 100% rename from typegate/src/config/shared.ts rename to src/typegate/src/config/shared.ts diff --git a/typegate/src/config/types.ts b/src/typegate/src/config/types.ts similarity index 95% rename from typegate/src/config/types.ts rename to src/typegate/src/config/types.ts index d796c54ead..5584bb6e7f 100644 --- a/typegate/src/config/types.ts +++ b/src/typegate/src/config/types.ts @@ -2,9 +2,9 @@ // SPDX-License-Identifier: Elastic-2.0 import { z } from "zod"; -import { decodeBase64 } from "std/encoding/base64.ts"; -import { RedisConnectOptions } from "redis"; -import { S3ClientConfig } from "aws-sdk/client-s3"; +import { decodeBase64 } from "@std/encoding/base64"; +import type { RedisConnectOptions } from "redis"; +import type { S3ClientConfig } from "aws-sdk/client-s3"; const zBooleanString = z.preprocess( (a: unknown) => z.coerce.string().parse(a) === "true", diff --git a/typegate/src/crypto.ts b/src/typegate/src/crypto.ts similarity index 96% rename from typegate/src/crypto.ts rename to src/typegate/src/crypto.ts index f127811c67..e34ddd0320 100644 --- a/typegate/src/crypto.ts +++ b/src/typegate/src/crypto.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { crypto } from "std/crypto/mod.ts"; -import { decodeBase64Url, encodeBase64Url } from "std/encoding/base64url.ts"; +import { crypto } from "@std/crypto"; +import { decodeBase64Url, encodeBase64Url } from "@std/encoding/base64url"; import * as jwt from "jwt"; export const sha1 = (text: string | Uint8Array): Promise => { diff --git a/typegate/src/engine/computation_engine.ts b/src/typegate/src/engine/computation_engine.ts similarity index 96% rename from typegate/src/engine/computation_engine.ts rename to src/typegate/src/engine/computation_engine.ts index 83160ccff7..46177cbb4b 100644 --- a/typegate/src/engine/computation_engine.ts +++ b/src/typegate/src/engine/computation_engine.ts @@ -1,12 +1,12 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { distinct } from "std/collections/distinct.ts"; -import { ComputeStage } from "./query_engine.ts"; -import { OperationPolicies } from "./planner/policies.ts"; -import { RateLimit } from "../typegate/rate_limiter.ts"; -import { Context, Info, Parents } from "../types.ts"; -import { JSONValue } from "../utils.ts"; +import { distinct } from "@std/collections/distinct"; +import type { ComputeStage } from "./query_engine.ts"; +import type { OperationPolicies } from "./planner/policies.ts"; +import type { RateLimit } from "../typegate/rate_limiter.ts"; +import type { Context, Info, Parents } from "../types.ts"; +import type { JSONValue } from "../utils.ts"; import { BaseError, ErrorKind } from "../errors.ts"; class InvalidPlan extends BaseError { diff --git a/typegate/src/engine/planner/args.ts b/src/typegate/src/engine/planner/args.ts similarity index 98% rename from typegate/src/engine/planner/args.ts rename to src/typegate/src/engine/planner/args.ts index 96771dc2e2..41acc6bb8e 100644 --- a/typegate/src/engine/planner/args.ts +++ b/src/typegate/src/engine/planner/args.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import * as ast from "graphql/ast"; +import type * as ast from "graphql/ast"; import { Kind } from "graphql"; -import { TypeGraph } from "../../typegraph/mod.ts"; -import { +import type { TypeGraph } from "../../typegraph/mod.ts"; +import type { Context, Parents, PolicyIdx, @@ -12,19 +12,19 @@ import { TypeIdx, Variables, } from "../../types.ts"; -import { JSONValue } from "../../utils.ts"; +import type { JSONValue } from "../../utils.ts"; import { getVariantTypesIndexes, - ListNode, - ObjectNode, + type ListNode, + type ObjectNode, Type, - TypeNode, - UnionNode, + type TypeNode, + type UnionNode, } from "../../typegraph/type_node.ts"; -import { mapValues } from "std/collections/map_values.ts"; -import { filterValues } from "std/collections/filter_values.ts"; +import { mapValues } from "@std/collections/map-values"; +import { filterValues } from "@std/collections/filter-values"; -import { +import type { EffectType, EitherNode, FunctionParameterTransform, diff --git a/typegate/src/engine/planner/dependency_resolver.ts b/src/typegate/src/engine/planner/dependency_resolver.ts similarity index 92% rename from typegate/src/engine/planner/dependency_resolver.ts rename to src/typegate/src/engine/planner/dependency_resolver.ts index fdb56166c8..fc3442ce8e 100644 --- a/typegate/src/engine/planner/dependency_resolver.ts +++ b/src/typegate/src/engine/planner/dependency_resolver.ts @@ -1,12 +1,15 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { ComputeStage } from "../query_engine.ts"; -import { FieldNode, Kind, SelectionSetNode } from "graphql"; -import * as ast from "graphql/ast"; -import { distinct } from "std/collections/distinct.ts"; -import { PossibleSelectionFields, TypeGraph } from "../../typegraph/mod.ts"; -import { ObjectNode } from "../../typegraph/type_node.ts"; +import type { ComputeStage } from "../query_engine.ts"; +import { type FieldNode, Kind, type SelectionSetNode } from "graphql"; +import type * as ast from "graphql/ast"; +import { distinct } from "@std/collections/distinct"; +import type { + PossibleSelectionFields, + TypeGraph, +} from "../../typegraph/mod.ts"; +import type { ObjectNode } from "../../typegraph/type_node.ts"; import { ensure } from "../../utils.ts"; import { getChildId, getChildNode, startsWith } from "../stage_id.ts"; diff --git a/typegate/src/engine/planner/injection_utils.ts b/src/typegate/src/engine/planner/injection_utils.ts similarity index 98% rename from typegate/src/engine/planner/injection_utils.ts rename to src/typegate/src/engine/planner/injection_utils.ts index ec0c5888e5..80aefafbb2 100644 --- a/typegate/src/engine/planner/injection_utils.ts +++ b/src/typegate/src/engine/planner/injection_utils.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { +import type { EffectType, InjectionDataFor_String, InjectionDataForUint32, diff --git a/typegate/src/engine/planner/mod.ts b/src/typegate/src/engine/planner/mod.ts similarity index 97% rename from typegate/src/engine/planner/mod.ts rename to src/typegate/src/engine/planner/mod.ts index ee15e946eb..952215f9be 100644 --- a/typegate/src/engine/planner/mod.ts +++ b/src/typegate/src/engine/planner/mod.ts @@ -1,15 +1,15 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import * as ast from "graphql/ast"; -import { FieldNode, Kind } from "graphql"; +import type * as ast from "graphql/ast"; +import { type FieldNode, Kind } from "graphql"; import { ComputeStage } from "../query_engine.ts"; import { - FragmentDefs, + type FragmentDefs, resolveSelection, } from "../../transports/graphql/graphql.ts"; import { TypeGraph } from "../../typegraph/mod.ts"; -import { ComputeStageProps } from "../../types.ts"; +import type { ComputeStageProps } from "../../types.ts"; import { ensureNonNullable, getReverseMapNameToQuery } from "../../utils.ts"; import { getWrappedType, @@ -17,11 +17,14 @@ import { Type, } from "../../typegraph/type_node.ts"; import { closestWord, unparse } from "../../utils.ts"; -import { collectArgs, ComputeArg } from "./args.ts"; -import { OperationPolicies, OperationPoliciesBuilder } from "./policies.ts"; +import { collectArgs, type ComputeArg } from "./args.ts"; +import { + type OperationPolicies, + OperationPoliciesBuilder, +} from "./policies.ts"; import { getLogger } from "../../log.ts"; import { generateVariantMatcher } from "../typecheck/matching_variant.ts"; -import { mapValues } from "std/collections/map_values.ts"; +import { mapValues } from "@std/collections/map-values"; import { DependencyResolver } from "./dependency_resolver.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/engine/planner/parameter_transformer.ts b/src/typegate/src/engine/planner/parameter_transformer.ts similarity index 97% rename from typegate/src/engine/planner/parameter_transformer.ts rename to src/typegate/src/engine/planner/parameter_transformer.ts index 6f2b658137..bd80c8ebfe 100644 --- a/typegate/src/engine/planner/parameter_transformer.ts +++ b/src/typegate/src/engine/planner/parameter_transformer.ts @@ -1,11 +1,11 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryFn, QueryFunction } from "../../libs/jsonpath.ts"; -import { TypeGraph } from "../../typegraph/mod.ts"; +import { type QueryFn, QueryFunction } from "../../libs/jsonpath.ts"; +import type { TypeGraph } from "../../typegraph/mod.ts"; import { Type } from "../../typegraph/type_node.ts"; -import { ParameterTransformNode } from "../../typegraph/types.ts"; -import { ValidationContext, validationContext } from "../typecheck/common.ts"; +import type { ParameterTransformNode } from "../../typegraph/types.ts"; +import { type ValidationContext, validationContext } from "../typecheck/common.ts"; import { generateListValidator } from "../typecheck/inline_validators/list.ts"; import { generateNumberValidator } from "../typecheck/inline_validators/number.ts"; import { diff --git a/typegate/src/engine/planner/policies.ts b/src/typegate/src/engine/planner/policies.ts similarity index 97% rename from typegate/src/engine/planner/policies.ts rename to src/typegate/src/engine/planner/policies.ts index fd2d8ed876..707d811bee 100644 --- a/typegate/src/engine/planner/policies.ts +++ b/src/typegate/src/engine/planner/policies.ts @@ -2,8 +2,8 @@ // SPDX-License-Identifier: Elastic-2.0 import { DenoRuntime } from "../../runtimes/deno/deno.ts"; -import { TypeGraph } from "../../typegraph/mod.ts"; -import { +import type { TypeGraph } from "../../typegraph/mod.ts"; +import type { Context, Info, PolicyIdx, @@ -12,11 +12,11 @@ import { StageId, TypeIdx, } from "../../types.ts"; -import { EffectType, PolicyIndices } from "../../typegraph/types.ts"; +import type { EffectType, PolicyIndices } from "../../typegraph/types.ts"; import { ensure } from "../../utils.ts"; import { getLogger } from "../../log.ts"; import { Type } from "../../typegraph/type_node.ts"; -import { ArgPolicies } from "./args.ts"; +import type { ArgPolicies } from "./args.ts"; import { BadContext } from "../../errors.ts"; export interface FunctionSubtreeData { diff --git a/typegate/src/engine/query_engine.ts b/src/typegate/src/engine/query_engine.ts similarity index 95% rename from typegate/src/engine/query_engine.ts rename to src/typegate/src/engine/query_engine.ts index 3545a6e1ae..f6383cb63d 100644 --- a/typegate/src/engine/query_engine.ts +++ b/src/typegate/src/engine/query_engine.ts @@ -2,13 +2,16 @@ // SPDX-License-Identifier: Elastic-2.0 import { parse } from "graphql"; -import * as ast from "graphql/ast"; +import type * as ast from "graphql/ast"; import type { TypeGraph } from "../typegraph/mod.ts"; -import { JSONValue } from "../utils.ts"; -import { findOperation, FragmentDefs } from "../transports/graphql/graphql.ts"; -import * as log from "std/log/mod.ts"; +import type { JSONValue } from "../utils.ts"; +import { + findOperation, + type FragmentDefs, +} from "../transports/graphql/graphql.ts"; +import * as log from "@std/log"; import { sha1 } from "../crypto.ts"; -import { RateLimit } from "../typegate/rate_limiter.ts"; +import type { RateLimit } from "../typegate/rate_limiter.ts"; import type { ComputeStageProps, Context, @@ -17,15 +20,15 @@ import type { Variables, } from "../types.ts"; import { Planner } from "./planner/mod.ts"; -import { OperationPolicies } from "./planner/policies.ts"; +import type { OperationPolicies } from "./planner/policies.ts"; import { None } from "monads"; -import { Validator } from "./typecheck/common.ts"; +import type { Validator } from "./typecheck/common.ts"; import { generateValidator } from "./typecheck/result.ts"; import { ComputationEngine } from "./computation_engine.ts"; import { isIntrospectionQuery } from "../services/graphql_service.ts"; -import { ObjectNode } from "../typegraph/type_node.ts"; +import type { ObjectNode } from "../typegraph/type_node.ts"; import { RestSchemaGenerator } from "../transports/rest/rest_schema_generator.ts"; -import { BaseError, ErrorConstructor, ErrorKind } from "../errors.ts"; +import { BaseError, type ErrorConstructor, ErrorKind } from "../errors.ts"; class GraphQLVariableNotFound extends BaseError { constructor(variable: string) { diff --git a/typegate/src/engine/stage_id.ts b/src/typegate/src/engine/stage_id.ts similarity index 100% rename from typegate/src/engine/stage_id.ts rename to src/typegate/src/engine/stage_id.ts diff --git a/typegate/src/engine/typecheck/code_generator.ts b/src/typegate/src/engine/typecheck/code_generator.ts similarity index 97% rename from typegate/src/engine/typecheck/code_generator.ts rename to src/typegate/src/engine/typecheck/code_generator.ts index ef26ba598b..66990d62ba 100644 --- a/typegate/src/engine/typecheck/code_generator.ts +++ b/src/typegate/src/engine/typecheck/code_generator.ts @@ -2,19 +2,19 @@ // SPDX-License-Identifier: Elastic-2.0 import { - BooleanNode, - FileNode, - FloatNode, - IntegerNode, - ListNode, - ObjectNode, - OptionalNode, - StringNode, + type BooleanNode, + type FileNode, + type FloatNode, + type IntegerNode, + type ListNode, + type ObjectNode, + type OptionalNode, + type StringNode, Type, - TypeNode, - UnionNode, + type TypeNode, + type UnionNode, } from "../../typegraph/type_node.ts"; -import { EitherNode } from "../../typegraph/types.ts"; +import type { EitherNode } from "../../typegraph/types.ts"; export class CodeGenerator { lines: string[] = []; diff --git a/typegate/src/engine/typecheck/common.ts b/src/typegate/src/engine/typecheck/common.ts similarity index 93% rename from typegate/src/engine/typecheck/common.ts rename to src/typegate/src/engine/typecheck/common.ts index c259898ec1..5c2d6f4607 100644 --- a/typegate/src/engine/typecheck/common.ts +++ b/src/typegate/src/engine/typecheck/common.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { StringFormat } from "../../typegraph/types.ts"; -import * as uuid from "std/uuid/mod.ts"; +import type { StringFormat } from "../../typegraph/types.ts"; +import * as uuid from "@std/uuid"; import validator from "validator"; import lodash from "lodash"; diff --git a/typegate/src/engine/typecheck/inline_validators/boolean.ts b/src/typegate/src/engine/typecheck/inline_validators/boolean.ts similarity index 84% rename from typegate/src/engine/typecheck/inline_validators/boolean.ts rename to src/typegate/src/engine/typecheck/inline_validators/boolean.ts index ef50c71155..9085514b55 100644 --- a/typegate/src/engine/typecheck/inline_validators/boolean.ts +++ b/src/typegate/src/engine/typecheck/inline_validators/boolean.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { BooleanNode } from "../../../typegraph/types.ts"; +import type { BooleanNode } from "../../../typegraph/types.ts"; import { check } from "./common.ts"; export function generateBooleanValidator( diff --git a/typegate/src/engine/typecheck/inline_validators/common.ts b/src/typegate/src/engine/typecheck/inline_validators/common.ts similarity index 100% rename from typegate/src/engine/typecheck/inline_validators/common.ts rename to src/typegate/src/engine/typecheck/inline_validators/common.ts diff --git a/typegate/src/engine/typecheck/inline_validators/constraints.ts b/src/typegate/src/engine/typecheck/inline_validators/constraints.ts similarity index 96% rename from typegate/src/engine/typecheck/inline_validators/constraints.ts rename to src/typegate/src/engine/typecheck/inline_validators/constraints.ts index f02d8e0f9c..1fd6296062 100644 --- a/typegate/src/engine/typecheck/inline_validators/constraints.ts +++ b/src/typegate/src/engine/typecheck/inline_validators/constraints.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypeNode } from "../../../typegraph/type_node.ts"; +import type { TypeNode } from "../../../typegraph/type_node.ts"; import { check } from "./common.ts"; // binary operator or function diff --git a/typegate/src/engine/typecheck/inline_validators/file.ts b/src/typegate/src/engine/typecheck/inline_validators/file.ts similarity index 91% rename from typegate/src/engine/typecheck/inline_validators/file.ts rename to src/typegate/src/engine/typecheck/inline_validators/file.ts index 89f4608096..70bd38da3f 100644 --- a/typegate/src/engine/typecheck/inline_validators/file.ts +++ b/src/typegate/src/engine/typecheck/inline_validators/file.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { FileNode } from "../../../typegraph/types.ts"; +import type { FileNode } from "../../../typegraph/types.ts"; import { check } from "./common.ts"; import { - ConstraintSpec, + type ConstraintSpec, generateConstraintValidatorsFor, } from "./constraints.ts"; diff --git a/typegate/src/engine/typecheck/inline_validators/list.ts b/src/typegate/src/engine/typecheck/inline_validators/list.ts similarity index 89% rename from typegate/src/engine/typecheck/inline_validators/list.ts rename to src/typegate/src/engine/typecheck/inline_validators/list.ts index fbeb8d971a..2bea54163c 100644 --- a/typegate/src/engine/typecheck/inline_validators/list.ts +++ b/src/typegate/src/engine/typecheck/inline_validators/list.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { ListNode } from "../../../typegraph/type_node.ts"; +import type { ListNode } from "../../../typegraph/type_node.ts"; import { check } from "./common.ts"; import { - ConstraintSpec, + type ConstraintSpec, generateConstraintValidatorsFor, } from "./constraints.ts"; diff --git a/typegate/src/engine/typecheck/inline_validators/mod.ts b/src/typegate/src/engine/typecheck/inline_validators/mod.ts similarity index 100% rename from typegate/src/engine/typecheck/inline_validators/mod.ts rename to src/typegate/src/engine/typecheck/inline_validators/mod.ts diff --git a/typegate/src/engine/typecheck/inline_validators/number.ts b/src/typegate/src/engine/typecheck/inline_validators/number.ts similarity index 89% rename from typegate/src/engine/typecheck/inline_validators/number.ts rename to src/typegate/src/engine/typecheck/inline_validators/number.ts index 9d14dbcd76..f7168c43ee 100644 --- a/typegate/src/engine/typecheck/inline_validators/number.ts +++ b/src/typegate/src/engine/typecheck/inline_validators/number.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { FloatNode, IntegerNode } from "../../../typegraph/types.ts"; +import type { FloatNode, IntegerNode } from "../../../typegraph/types.ts"; import { check } from "./common.ts"; import { - ConstraintSpec, + type ConstraintSpec, generateConstraintValidatorsFor, } from "./constraints.ts"; diff --git a/typegate/src/engine/typecheck/inline_validators/object.ts b/src/typegate/src/engine/typecheck/inline_validators/object.ts similarity index 94% rename from typegate/src/engine/typecheck/inline_validators/object.ts rename to src/typegate/src/engine/typecheck/inline_validators/object.ts index a236b5ebbe..ca51927a6a 100644 --- a/typegate/src/engine/typecheck/inline_validators/object.ts +++ b/src/typegate/src/engine/typecheck/inline_validators/object.ts @@ -1,7 +1,11 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { ObjectNode, Type, TypeNode } from "../../../typegraph/type_node.ts"; +import { + type ObjectNode, + Type, + type TypeNode, +} from "../../../typegraph/type_node.ts"; import { check } from "./common.ts"; export function generateObjectValidator( diff --git a/typegate/src/engine/typecheck/inline_validators/string.ts b/src/typegate/src/engine/typecheck/inline_validators/string.ts similarity index 93% rename from typegate/src/engine/typecheck/inline_validators/string.ts rename to src/typegate/src/engine/typecheck/inline_validators/string.ts index 42d1f79be9..c3edc88d92 100644 --- a/typegate/src/engine/typecheck/inline_validators/string.ts +++ b/src/typegate/src/engine/typecheck/inline_validators/string.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { StringNode } from "../../../typegraph/type_node.ts"; +import type { StringNode } from "../../../typegraph/type_node.ts"; import { check } from "./common.ts"; import { - ConstraintSpec, + type ConstraintSpec, generateConstraintValidatorsFor, } from "./constraints.ts"; diff --git a/typegate/src/engine/typecheck/input.ts b/src/typegate/src/engine/typecheck/input.ts similarity index 96% rename from typegate/src/engine/typecheck/input.ts rename to src/typegate/src/engine/typecheck/input.ts index d95c7da213..00d71f90fa 100644 --- a/typegate/src/engine/typecheck/input.ts +++ b/src/typegate/src/engine/typecheck/input.ts @@ -1,15 +1,15 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypeGraph } from "../../typegraph/mod.ts"; -import { TypeNode } from "../../typegraph/types.ts"; +import type { TypeGraph } from "../../typegraph/mod.ts"; +import type { TypeNode } from "../../typegraph/types.ts"; import { CodeGenerator } from "./code_generator.ts"; -import { mapValues } from "std/collections/map_values.ts"; +import { mapValues } from "@std/collections/map-values"; import { - ErrorEntry, + type ErrorEntry, validationContext, - Validator, - ValidatorFn, + type Validator, + type ValidatorFn, } from "./common.ts"; export function generateValidator(tg: TypeGraph, typeIdx: number): Validator { diff --git a/typegate/src/engine/typecheck/matching_variant.ts b/src/typegate/src/engine/typecheck/matching_variant.ts similarity index 92% rename from typegate/src/engine/typecheck/matching_variant.ts rename to src/typegate/src/engine/typecheck/matching_variant.ts index 9e74f26ce3..e1b4191fa3 100644 --- a/typegate/src/engine/typecheck/matching_variant.ts +++ b/src/typegate/src/engine/typecheck/matching_variant.ts @@ -1,11 +1,19 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { EitherNode, Type, UnionNode } from "../../typegraph/type_node.ts"; -import { TypeGraph } from "../../typegraph/mod.ts"; +import { + type EitherNode, + Type, + type UnionNode, +} from "../../typegraph/type_node.ts"; +import type { TypeGraph } from "../../typegraph/mod.ts"; import { CodeGenerator } from "./code_generator.ts"; -import { mapValues } from "std/collections/map_values.ts"; -import { ErrorEntry, validationContext, ValidatorFn } from "./common.ts"; +import { mapValues } from "@std/collections/map-values"; +import { + type ErrorEntry, + validationContext, + type ValidatorFn, +} from "./common.ts"; export type VariantMatcher = (value: unknown) => string | null; diff --git a/typegate/src/engine/typecheck/result.ts b/src/typegate/src/engine/typecheck/result.ts similarity index 97% rename from typegate/src/engine/typecheck/result.ts rename to src/typegate/src/engine/typecheck/result.ts index 6f2744776a..49d80c7c91 100644 --- a/typegate/src/engine/typecheck/result.ts +++ b/src/typegate/src/engine/typecheck/result.ts @@ -1,30 +1,30 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { FragmentDefs } from "../../transports/graphql/graphql.ts"; -import { +import type { FragmentDefs } from "../../transports/graphql/graphql.ts"; +import type { InlineFragmentNode, OperationDefinitionNode, SelectionNode, SelectionSetNode, } from "graphql/ast"; -import { FieldNode, Kind } from "graphql"; +import { type FieldNode, Kind } from "graphql"; import { - EitherNode, + type EitherNode, isScalar, - ObjectNode, + type ObjectNode, Type, - UnionNode, + type UnionNode, } from "../../typegraph/type_node.ts"; -import { TypeGraph } from "../../typegraph/mod.ts"; +import type { TypeGraph } from "../../typegraph/mod.ts"; import { CodeGenerator } from "./code_generator.ts"; import { getChildTypes } from "../../typegraph/visitor.ts"; -import { mapValues } from "std/collections/map_values.ts"; +import { mapValues } from "@std/collections/map-values"; import { - ErrorEntry, + type ErrorEntry, validationContext, - Validator, - ValidatorFn, + type Validator, + type ValidatorFn, } from "./common.ts"; export function generateValidator( diff --git a/typegate/src/errors.ts b/src/typegate/src/errors.ts similarity index 97% rename from typegate/src/errors.ts rename to src/typegate/src/errors.ts index a123bdde49..f34992294e 100644 --- a/typegate/src/errors.ts +++ b/src/typegate/src/errors.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { basename, dirname } from "std/url/mod.ts"; -import { extname } from "std/path/mod.ts"; +import { basename, dirname } from "@std/url"; +import { extname } from "@std/path"; import { getLogger } from "./log.ts"; import { globalConfig } from "./config.ts"; diff --git a/typegate/src/libs/jsonpath.ts b/src/typegate/src/libs/jsonpath.ts similarity index 100% rename from typegate/src/libs/jsonpath.ts rename to src/typegate/src/libs/jsonpath.ts diff --git a/typegate/src/log.ts b/src/typegate/src/log.ts similarity index 91% rename from typegate/src/log.ts rename to src/typegate/src/log.ts index 97f8905733..5d4351cebe 100644 --- a/typegate/src/log.ts +++ b/src/typegate/src/log.ts @@ -1,9 +1,9 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { ConsoleHandler, LevelName, Logger } from "std/log/mod.ts"; -import { basename, dirname } from "std/url/mod.ts"; -import { extname } from "std/path/mod.ts"; +import { ConsoleHandler, type LevelName, Logger } from "@std/log"; +import { basename, dirname } from "@std/url"; +import { extname } from "@std/path"; import { sharedConfig } from "./config/shared.ts"; // set rust log level is not explicit set diff --git a/typegate/src/main.ts b/src/typegate/src/main.ts similarity index 100% rename from typegate/src/main.ts rename to src/typegate/src/main.ts diff --git a/typegate/src/runtimes/Runtime.ts b/src/typegate/src/runtimes/Runtime.ts similarity index 91% rename from typegate/src/runtimes/Runtime.ts rename to src/typegate/src/runtimes/Runtime.ts index 895181c59f..ce307e8138 100644 --- a/typegate/src/runtimes/Runtime.ts +++ b/src/typegate/src/runtimes/Runtime.ts @@ -1,9 +1,9 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { ComputeStage } from "../engine/query_engine.ts"; -import { equal } from "std/assert/equal.ts"; -import { Resolver } from "../types.ts"; +import type { ComputeStage } from "../engine/query_engine.ts"; +import { equal } from "@std/assert/equal"; +import type { Resolver } from "../types.ts"; export abstract class Runtime { readonly id: string; diff --git a/typegate/src/runtimes/deno.ts b/src/typegate/src/runtimes/deno.ts similarity index 100% rename from typegate/src/runtimes/deno.ts rename to src/typegate/src/runtimes/deno.ts diff --git a/typegate/src/runtimes/deno/deno.ts b/src/typegate/src/runtimes/deno/deno.ts similarity index 95% rename from typegate/src/runtimes/deno/deno.ts rename to src/typegate/src/runtimes/deno/deno.ts index 18f066fd66..05b0f6e97f 100644 --- a/typegate/src/runtimes/deno/deno.ts +++ b/src/typegate/src/runtimes/deno/deno.ts @@ -1,16 +1,16 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { ComputeStage } from "../../engine/query_engine.ts"; -import { TypeGraphDS, TypeMaterializer } from "../../typegraph/mod.ts"; -import { Typegate } from "../../typegate/mod.ts"; +import type { ComputeStage } from "../../engine/query_engine.ts"; +import type { TypeGraphDS, TypeMaterializer } from "../../typegraph/mod.ts"; +import type { Typegate } from "../../typegate/mod.ts"; import { Runtime } from "../Runtime.ts"; -import { Resolver, RuntimeInitParams } from "../../types.ts"; -import { DenoRuntimeData } from "../../typegraph/types.ts"; +import type { Resolver, RuntimeInitParams } from "../../types.ts"; +import type { DenoRuntimeData } from "../../typegraph/types.ts"; import * as ast from "graphql/ast"; import { InternalAuth } from "../../services/auth/protocols/internal.ts"; import { DenoMessenger } from "./deno_messenger.ts"; -import { Task } from "./shared_types.ts"; +import type { Task } from "./shared_types.ts"; import { path } from "compress/deps.ts"; import { globalConfig as config } from "../../config.ts"; import { getLogger } from "../../log.ts"; diff --git a/typegate/src/runtimes/deno/deno_messenger.ts b/src/typegate/src/runtimes/deno/deno_messenger.ts similarity index 96% rename from typegate/src/runtimes/deno/deno_messenger.ts rename to src/typegate/src/runtimes/deno/deno_messenger.ts index 2473f069b2..306ccd54e9 100644 --- a/typegate/src/runtimes/deno/deno_messenger.ts +++ b/src/typegate/src/runtimes/deno/deno_messenger.ts @@ -3,9 +3,9 @@ import * as Sentry from "sentry"; import { envSharedWithWorkers } from "../../config/shared.ts"; -import { Task } from "./shared_types.ts"; +import type { Task } from "./shared_types.ts"; import { - AsyncMessengerConfig, + type AsyncMessengerConfig, LazyAsyncMessenger, } from "../patterns/messenger/lazy_async_messenger.ts"; diff --git a/typegate/src/runtimes/deno/shared_types.ts b/src/typegate/src/runtimes/deno/shared_types.ts similarity index 92% rename from typegate/src/runtimes/deno/shared_types.ts rename to src/typegate/src/runtimes/deno/shared_types.ts index 330e239a06..d8e9b924b0 100644 --- a/typegate/src/runtimes/deno/shared_types.ts +++ b/src/typegate/src/runtimes/deno/shared_types.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { Context } from "../../types.ts"; -import { EffectType } from "../../typegraph/types.ts"; +import type { Context } from "../../types.ts"; +import type { EffectType } from "../../typegraph/types.ts"; export interface Code { name: string; diff --git a/typegate/src/runtimes/deno/worker.ts b/src/typegate/src/runtimes/deno/worker.ts similarity index 97% rename from typegate/src/runtimes/deno/worker.ts rename to src/typegate/src/runtimes/deno/worker.ts index 5499ebb519..8c31768e93 100644 --- a/typegate/src/runtimes/deno/worker.ts +++ b/src/typegate/src/runtimes/deno/worker.ts @@ -5,9 +5,9 @@ /// import { getLogger } from "../../log.ts"; -import { Answer, Message } from "../patterns/messenger/types.ts"; +import type { Answer, Message } from "../patterns/messenger/types.ts"; -import { +import type { FuncTask, ImportFuncTask, RegisterFuncTask, diff --git a/typegate/src/runtimes/graphql.ts b/src/typegate/src/runtimes/graphql.ts similarity index 98% rename from typegate/src/runtimes/graphql.ts rename to src/typegate/src/runtimes/graphql.ts index 2291aac888..c131d09b2e 100644 --- a/typegate/src/runtimes/graphql.ts +++ b/src/typegate/src/runtimes/graphql.ts @@ -8,7 +8,7 @@ import type { GraphQLRuntimeData } from "../typegraph/types.ts"; import { Runtime } from "./Runtime.ts"; import * as GraphQL from "graphql"; import { Kind } from "graphql"; -import { OperationDefinitionNode, OperationTypeNode } from "graphql/ast"; +import { type OperationDefinitionNode, OperationTypeNode } from "graphql/ast"; import { QueryRebuilder } from "./utils/graphql_forward_vars.ts"; import { withInlinedVars } from "./utils/graphql_inline_vars.ts"; import { getLogger } from "../log.ts"; diff --git a/typegate/src/runtimes/http.ts b/src/typegate/src/runtimes/http.ts similarity index 95% rename from typegate/src/runtimes/http.ts rename to src/typegate/src/runtimes/http.ts index a93ae31028..e8db167641 100644 --- a/typegate/src/runtimes/http.ts +++ b/src/typegate/src/runtimes/http.ts @@ -4,12 +4,12 @@ import { ComputeStage } from "../engine/query_engine.ts"; import { Runtime } from "./Runtime.ts"; import { createUrl } from "../utils.ts"; -import { MatOptions, replaceDynamicPathParams } from "./utils/http.ts"; -import { Resolver, RuntimeInitParams } from "../types.ts"; -import { encodeBase64 } from "std/encoding/base64.ts"; +import { type MatOptions, replaceDynamicPathParams } from "./utils/http.ts"; +import type { Resolver, RuntimeInitParams } from "../types.ts"; +import { encodeBase64 } from "@std/encoding/base64"; import { getLogger } from "../log.ts"; -import { Logger } from "std/log/logger.ts"; -import { HTTPRuntimeData } from "../typegraph/types.ts"; +import type { Logger } from "@std/log/logger"; +import type { HTTPRuntimeData } from "../typegraph/types.ts"; import { registerRuntime } from "./mod.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/runtimes/kv.ts b/src/typegate/src/runtimes/kv.ts similarity index 91% rename from typegate/src/runtimes/kv.ts rename to src/typegate/src/runtimes/kv.ts index d171f983d5..ca5175b6ab 100644 --- a/typegate/src/runtimes/kv.ts +++ b/src/typegate/src/runtimes/kv.ts @@ -1,12 +1,12 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { connect, parseURL, Redis } from "redis"; +import { connect, parseURL, type Redis } from "redis"; import { ComputeStage } from "../engine/query_engine.ts"; -import { getLogger, Logger } from "../log.ts"; +import { getLogger, type Logger } from "../log.ts"; import { TypeGraph } from "../typegraph/mod.ts"; -import { KvRuntimeData } from "../typegraph/types.ts"; -import { Resolver, RuntimeInitParams } from "../types.ts"; +import type { KvRuntimeData } from "../typegraph/types.ts"; +import type { Resolver, RuntimeInitParams } from "../types.ts"; import { registerRuntime } from "./mod.ts"; import { Runtime } from "./Runtime.ts"; diff --git a/typegate/src/runtimes/mod.ts b/src/typegate/src/runtimes/mod.ts similarity index 91% rename from typegate/src/runtimes/mod.ts rename to src/typegate/src/runtimes/mod.ts index 1c59cf149e..64ad53b5da 100644 --- a/typegate/src/runtimes/mod.ts +++ b/src/typegate/src/runtimes/mod.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { Runtime } from "./Runtime.ts"; -import { RuntimeInit, RuntimeInitParams } from "../types.ts"; +import type { Runtime } from "./Runtime.ts"; +import type { RuntimeInit, RuntimeInitParams } from "../types.ts"; const registeredRuntimes: Map = new Map(); diff --git a/typegate/src/runtimes/patterns/messenger/async_messenger.ts b/src/typegate/src/runtimes/patterns/messenger/async_messenger.ts similarity index 96% rename from typegate/src/runtimes/patterns/messenger/async_messenger.ts rename to src/typegate/src/runtimes/patterns/messenger/async_messenger.ts index 4b5e8291da..12d15287cc 100644 --- a/typegate/src/runtimes/patterns/messenger/async_messenger.ts +++ b/src/typegate/src/runtimes/patterns/messenger/async_messenger.ts @@ -2,9 +2,9 @@ // SPDX-License-Identifier: Elastic-2.0 import { getLogger } from "../../../log.ts"; -import { Answer, Message, TaskData } from "./types.ts"; +import type { Answer, Message, TaskData } from "./types.ts"; import { maxi32 } from "../../../utils.ts"; -import { TypegateConfigBase } from "../../../config/types.ts"; +import type { TypegateConfigBase } from "../../../config/types.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/runtimes/patterns/messenger/lazy_async_messenger.ts b/src/typegate/src/runtimes/patterns/messenger/lazy_async_messenger.ts similarity index 96% rename from typegate/src/runtimes/patterns/messenger/lazy_async_messenger.ts rename to src/typegate/src/runtimes/patterns/messenger/lazy_async_messenger.ts index 59badba5fd..5b7f37df30 100644 --- a/typegate/src/runtimes/patterns/messenger/lazy_async_messenger.ts +++ b/src/typegate/src/runtimes/patterns/messenger/lazy_async_messenger.ts @@ -5,10 +5,10 @@ import { getLogger } from "../../../log.ts"; import { maxi32 } from "../../../utils.ts"; import { AsyncMessenger, - AsyncMessengerConfig, - MessengerSend, - MessengerStart, - MessengerStop, + type AsyncMessengerConfig, + type MessengerSend, + type MessengerStart, + type MessengerStop, } from "./async_messenger.ts"; export type { AsyncMessengerConfig }; diff --git a/typegate/src/runtimes/patterns/messenger/types.ts b/src/typegate/src/runtimes/patterns/messenger/types.ts similarity index 100% rename from typegate/src/runtimes/patterns/messenger/types.ts rename to src/typegate/src/runtimes/patterns/messenger/types.ts diff --git a/typegate/src/runtimes/prisma.ts b/src/typegate/src/runtimes/prisma.ts similarity index 100% rename from typegate/src/runtimes/prisma.ts rename to src/typegate/src/runtimes/prisma.ts diff --git a/typegate/src/runtimes/prisma/hooks/generate_schema.ts b/src/typegate/src/runtimes/prisma/hooks/generate_schema.ts similarity index 97% rename from typegate/src/runtimes/prisma/hooks/generate_schema.ts rename to src/typegate/src/runtimes/prisma/hooks/generate_schema.ts index fdb5909444..f162f793ac 100644 --- a/typegate/src/runtimes/prisma/hooks/generate_schema.ts +++ b/src/typegate/src/runtimes/prisma/hooks/generate_schema.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { Type, TypeNode } from "../../../typegraph/type_node.ts"; -import { PushHandler } from "../../../typegate/hooks.ts"; -import { SecretManager, TypeGraphDS } from "../../../typegraph/mod.ts"; -import { +import { Type, type TypeNode } from "../../../typegraph/type_node.ts"; +import type { PushHandler } from "../../../typegate/hooks.ts"; +import type { SecretManager, TypeGraphDS } from "../../../typegraph/mod.ts"; +import type { Cardinality, Model, Property, @@ -12,7 +12,7 @@ import { StringNode, } from "../../../typegraph/types.ts"; import { ensureNonNullable } from "../../../utils.ts"; -import { PrismaRT } from "../mod.ts"; +import type { PrismaRT } from "../mod.ts"; import { validate_prisma_runtime_data } from "native"; type QuantifierSuffix = "" | "?" | "[]"; diff --git a/typegate/src/runtimes/prisma/hooks/mod.ts b/src/typegate/src/runtimes/prisma/hooks/mod.ts similarity index 100% rename from typegate/src/runtimes/prisma/hooks/mod.ts rename to src/typegate/src/runtimes/prisma/hooks/mod.ts diff --git a/typegate/src/runtimes/prisma/hooks/run_migrations.ts b/src/typegate/src/runtimes/prisma/hooks/run_migrations.ts similarity index 97% rename from typegate/src/runtimes/prisma/hooks/run_migrations.ts rename to src/typegate/src/runtimes/prisma/hooks/run_migrations.ts index 9c2d9ab6cb..35a647bcf1 100644 --- a/typegate/src/runtimes/prisma/hooks/run_migrations.ts +++ b/src/typegate/src/runtimes/prisma/hooks/run_migrations.ts @@ -1,17 +1,17 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { +import type { PushFailure, PushHandler, PushResponse, } from "../../../typegate/hooks.ts"; import { makeDatasource } from "../prisma.ts"; -import { PrismaRT } from "../mod.ts"; +import type { PrismaRT } from "../mod.ts"; import * as native from "native"; import { nativeResult, pluralSuffix } from "../../../utils.ts"; -import { MigrationOptions } from "../../../typegraph/types.ts"; -import { SecretManager } from "../../../typegraph/mod.ts"; +import type { MigrationOptions } from "../../../typegraph/types.ts"; +import type { SecretManager } from "../../../typegraph/mod.ts"; import type { ParsedDiff } from "../../../../engine/runtime.js"; export class MigrationFailure extends Error { diff --git a/typegate/src/runtimes/prisma/migration.ts b/src/typegate/src/runtimes/prisma/migration.ts similarity index 96% rename from typegate/src/runtimes/prisma/migration.ts rename to src/typegate/src/runtimes/prisma/migration.ts index dac6040317..3470edf927 100644 --- a/typegate/src/runtimes/prisma/migration.ts +++ b/src/typegate/src/runtimes/prisma/migration.ts @@ -2,14 +2,14 @@ // SPDX-License-Identifier: Elastic-2.0 import { Runtime } from "../Runtime.ts"; -import { Resolver, ResolverArgs } from "../../types.ts"; -import { ComputeStage, QueryEngine } from "../../engine/query_engine.ts"; -import { Register } from "../../typegate/register.ts"; +import type { Resolver, ResolverArgs } from "../../types.ts"; +import { ComputeStage, type QueryEngine } from "../../engine/query_engine.ts"; +import type { Register } from "../../typegate/register.ts"; import * as native from "native"; import { nativeResult } from "../../utils.ts"; import { makeDatasource } from "./prisma.ts"; import type { PrismaRT } from "./mod.ts"; -import { getLogger } from "@typegate/log.ts"; +import { getLogger } from "../../log.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/runtimes/prisma/mod.ts b/src/typegate/src/runtimes/prisma/mod.ts similarity index 100% rename from typegate/src/runtimes/prisma/mod.ts rename to src/typegate/src/runtimes/prisma/mod.ts diff --git a/typegate/src/runtimes/prisma/prisma.ts b/src/typegate/src/runtimes/prisma/prisma.ts similarity index 96% rename from typegate/src/runtimes/prisma/prisma.ts rename to src/typegate/src/runtimes/prisma/prisma.ts index 243fe95e18..570f53ddcc 100644 --- a/typegate/src/runtimes/prisma/prisma.ts +++ b/src/typegate/src/runtimes/prisma/prisma.ts @@ -4,14 +4,14 @@ import { Runtime } from "../Runtime.ts"; import * as native from "native"; import { ResolverError } from "../../errors.ts"; -import { Resolver, RuntimeInitParams } from "../../types.ts"; +import type { Resolver, RuntimeInitParams } from "../../types.ts"; import { iterParentStages, nativeResult, nativeVoid } from "../../utils.ts"; import { ComputeStage } from "../../engine/query_engine.ts"; -import { ComputeArgParams } from "../../engine/planner/args.ts"; -import { PrismaOperationMatData } from "../../typegraph/types.ts"; -import { getLogger, Logger } from "../../log.ts"; -import * as PrismaRT from "./types.ts"; -import { filterValues } from "std/collections/filter_values.ts"; +import type { ComputeArgParams } from "../../engine/planner/args.ts"; +import type { PrismaOperationMatData } from "../../typegraph/types.ts"; +import { getLogger, type Logger } from "../../log.ts"; +import type * as PrismaRT from "./types.ts"; +import { filterValues } from "@std/collections/filter-values"; const logger = getLogger(import.meta); diff --git a/typegate/src/runtimes/prisma/types.ts b/src/typegate/src/runtimes/prisma/types.ts similarity index 80% rename from typegate/src/runtimes/prisma/types.ts rename to src/typegate/src/runtimes/prisma/types.ts index b90c2ab371..d84833b9cf 100644 --- a/typegate/src/runtimes/prisma/types.ts +++ b/src/typegate/src/runtimes/prisma/types.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { RuntimeDataBase } from "../../types.ts"; -import { PrismaRuntimeData, TGRuntime } from "../../typegraph/types.ts"; +import type { RuntimeDataBase } from "../../types.ts"; +import type { PrismaRuntimeData, TGRuntime } from "../../typegraph/types.ts"; // from the CLI // export type DataRaw = Omit; diff --git a/typegate/src/runtimes/python.ts b/src/typegate/src/runtimes/python.ts similarity index 96% rename from typegate/src/runtimes/python.ts rename to src/typegate/src/runtimes/python.ts index 65c8983fb1..10e96d88a1 100644 --- a/typegate/src/runtimes/python.ts +++ b/src/typegate/src/runtimes/python.ts @@ -2,14 +2,14 @@ // SPDX-License-Identifier: Elastic-2.0 import { registerRuntime } from "./mod.ts"; -import { getLogger, Logger } from "../log.ts"; +import { getLogger, type Logger } from "../log.ts"; import { Runtime } from "./Runtime.ts"; import type { Resolver, RuntimeInitParams } from "../types.ts"; -import { ComputeStage } from "../engine/query_engine.ts"; -import { Materializer } from "../typegraph/types.ts"; +import type { ComputeStage } from "../engine/query_engine.ts"; +import type { Materializer } from "../typegraph/types.ts"; import * as ast from "graphql/ast"; import { WitWireMessenger } from "./wit_wire/mod.ts"; -import { WitWireMatInfo } from "../../engine/runtime.js"; +import type { WitWireMatInfo } from "../../engine/runtime.js"; import { sha256 } from "../crypto.ts"; import { InternalAuth } from "../services/auth/protocols/internal.ts"; diff --git a/typegate/src/runtimes/random.ts b/src/typegate/src/runtimes/random.ts similarity index 96% rename from typegate/src/runtimes/random.ts rename to src/typegate/src/runtimes/random.ts index ba7fde02e2..96ba3175ec 100644 --- a/typegate/src/runtimes/random.ts +++ b/src/typegate/src/runtimes/random.ts @@ -3,10 +3,10 @@ import { Runtime } from "./Runtime.ts"; import { ComputeStage } from "../engine/query_engine.ts"; -import { TypeNode } from "../typegraph/type_node.ts"; +import type { TypeNode } from "../typegraph/type_node.ts"; import Chance from "chance"; -import { Resolver, RuntimeInitParams } from "../types.ts"; -import { RandomRuntimeData } from "../typegraph/types.ts"; +import type { Resolver, RuntimeInitParams } from "../types.ts"; +import type { RandomRuntimeData } from "../typegraph/types.ts"; import { registerRuntime } from "./mod.ts"; @registerRuntime("random") diff --git a/typegate/src/runtimes/s3.ts b/src/typegate/src/runtimes/s3.ts similarity index 96% rename from typegate/src/runtimes/s3.ts rename to src/typegate/src/runtimes/s3.ts index 34f66c82b8..b6cb9ef763 100644 --- a/typegate/src/runtimes/s3.ts +++ b/src/typegate/src/runtimes/s3.ts @@ -2,25 +2,25 @@ // SPDX-License-Identifier: Elastic-2.0 import { Runtime } from "./Runtime.ts"; -import { ComputeStage } from "../engine/query_engine.ts"; -import { RuntimeInitParams } from "../types.ts"; +import type { ComputeStage } from "../engine/query_engine.ts"; +import type { RuntimeInitParams } from "../types.ts"; // import { iterParentStages, JSONValue } from "../utils.ts"; import { GetObjectCommand, - GetObjectCommandInput, + type GetObjectCommandInput, ListObjectsCommand, PutObjectCommand, - PutObjectCommandInput, + type PutObjectCommandInput, S3Client, } from "aws-sdk/client-s3"; import { getSignedUrl } from "aws-sdk/s3-request-presigner"; -import { +import type { Materializer, S3Materializer, S3RuntimeData, } from "../typegraph/types.ts"; import { registerRuntime } from "./mod.ts"; -import { getLogger, Logger } from "../log.ts"; +import { getLogger, type Logger } from "../log.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/runtimes/temporal.ts b/src/typegate/src/runtimes/temporal.ts similarity index 96% rename from typegate/src/runtimes/temporal.ts rename to src/typegate/src/runtimes/temporal.ts index df2e9cf411..33d2db0390 100644 --- a/typegate/src/runtimes/temporal.ts +++ b/src/typegate/src/runtimes/temporal.ts @@ -3,13 +3,13 @@ import { Runtime } from "./Runtime.ts"; import * as native from "native"; -import { Resolver, RuntimeInitParams } from "../types.ts"; +import type { Resolver, RuntimeInitParams } from "../types.ts"; import { nativeResult, nativeVoid } from "../utils.ts"; import { ComputeStage } from "../engine/query_engine.ts"; import { TypeGraph } from "../typegraph/mod.ts"; -import { TemporalRuntimeData } from "../typegraph/types.ts"; +import type { TemporalRuntimeData } from "../typegraph/types.ts"; import { registerRuntime } from "./mod.ts"; -import { getLogger, Logger } from "../log.ts"; +import { getLogger, type Logger } from "../log.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/runtimes/typegate.ts b/src/typegate/src/runtimes/typegate.ts similarity index 97% rename from typegate/src/runtimes/typegate.ts rename to src/typegate/src/runtimes/typegate.ts index d6e97eb403..fd2ebe3da5 100644 --- a/typegate/src/runtimes/typegate.ts +++ b/src/typegate/src/runtimes/typegate.ts @@ -3,19 +3,19 @@ import { Runtime } from "./Runtime.ts"; import { ComputeStage } from "../engine/query_engine.ts"; -import { Resolver, ResolverArgs } from "../types.ts"; +import type { Resolver, ResolverArgs } from "../types.ts"; import { SystemTypegraph } from "../system_typegraphs.ts"; import { getLogger } from "../log.ts"; import { globalConfig } from "../config.ts"; -import * as semver from "std/semver/mod.ts"; -import { Typegate } from "../typegate/mod.ts"; +import * as semver from "@std/semver"; +import type { Typegate } from "../typegate/mod.ts"; import { TypeGraph } from "../typegraph/mod.ts"; import { closestWord } from "../utils.ts"; -import { Type, TypeNode } from "../typegraph/type_node.ts"; -import { StringFormat } from "../typegraph/types.ts"; -import { mapValues } from "std/collections/map_values.ts"; -import { PrismaRT, PrismaRuntime } from "./prisma/mod.ts"; -import { SingleQuery } from "./prisma/prisma.ts"; +import { Type, type TypeNode } from "../typegraph/type_node.ts"; +import type { StringFormat } from "../typegraph/types.ts"; +import { mapValues } from "@std/collections/map-values"; +import type { PrismaRT, PrismaRuntime } from "./prisma/mod.ts"; +import type { SingleQuery } from "./prisma/prisma.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/runtimes/typegraph.ts b/src/typegate/src/runtimes/typegraph.ts similarity index 97% rename from typegate/src/runtimes/typegraph.ts rename to src/typegate/src/runtimes/typegraph.ts index 6180fb1a78..e51d77ef29 100644 --- a/typegate/src/runtimes/typegraph.ts +++ b/src/typegate/src/runtimes/typegraph.ts @@ -1,7 +1,11 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypeGraph, TypeGraphDS, TypeMaterializer } from "../typegraph/mod.ts"; +import { + TypeGraph, + type TypeGraphDS, + type TypeMaterializer, +} from "../typegraph/mod.ts"; import { TypeKind } from "graphql"; import { ensure } from "../utils.ts"; import { Runtime } from "./Runtime.ts"; @@ -15,19 +19,19 @@ import { isQuantifier, isScalar, isUnion, - ObjectNode, + type ObjectNode, Type, - TypeNode, + type TypeNode, } from "../typegraph/type_node.ts"; -import { Resolver } from "../types.ts"; +import type { Resolver } from "../types.ts"; import { getChildTypes, - TypeVisitorMap, + type TypeVisitorMap, visitTypes, } from "../typegraph/visitor.ts"; -import { distinctBy } from "std/collections/distinct_by.ts"; +import { distinctBy } from "@std/collections/distinct-by"; import { isInjected } from "../typegraph/utils.ts"; -import { PolicyIndices } from "../typegraph/types.ts"; +import type { PolicyIndices } from "../typegraph/types.ts"; type DeprecatedArg = { includeDeprecated?: boolean }; diff --git a/typegate/src/runtimes/utils/graphql_forward_vars.ts b/src/typegate/src/runtimes/utils/graphql_forward_vars.ts similarity index 98% rename from typegate/src/runtimes/utils/graphql_forward_vars.ts rename to src/typegate/src/runtimes/utils/graphql_forward_vars.ts index 7d6a664a93..e16c113e3e 100644 --- a/typegate/src/runtimes/utils/graphql_forward_vars.ts +++ b/src/typegate/src/runtimes/utils/graphql_forward_vars.ts @@ -2,9 +2,9 @@ // SPDX-License-Identifier: Elastic-2.0 import { ensure } from "../../utils.ts"; -import { ComputeStage } from "../../engine/query_engine.ts"; +import type { ComputeStage } from "../../engine/query_engine.ts"; import { iterParentStages } from "../../utils.ts"; -import { +import type { ArgumentNode, FieldNode, SelectionNode, diff --git a/typegate/src/runtimes/utils/graphql_inline_vars.ts b/src/typegate/src/runtimes/utils/graphql_inline_vars.ts similarity index 96% rename from typegate/src/runtimes/utils/graphql_inline_vars.ts rename to src/typegate/src/runtimes/utils/graphql_inline_vars.ts index 94fbacb81e..194a5a699e 100644 --- a/typegate/src/runtimes/utils/graphql_inline_vars.ts +++ b/src/typegate/src/runtimes/utils/graphql_inline_vars.ts @@ -1,14 +1,14 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { JSONValue } from "../../utils.ts"; +import type { JSONValue } from "../../utils.ts"; import type { FromVars } from "../graphql.ts"; -import { filterValues } from "std/collections/filter_values.ts"; +import { filterValues } from "@std/collections/filter-values"; import { - ComputeArg, + type ComputeArg, DEFAULT_COMPUTE_PARAMS, } from "../../engine/planner/args.ts"; -import { mapValues } from "std/collections/map_values.ts"; +import { mapValues } from "@std/collections/map-values"; import { isNameContinue, isNameStart } from "graphql/characters"; export function stringifyQL( diff --git a/typegate/src/runtimes/utils/http.ts b/src/typegate/src/runtimes/utils/http.ts similarity index 100% rename from typegate/src/runtimes/utils/http.ts rename to src/typegate/src/runtimes/utils/http.ts diff --git a/typegate/src/runtimes/wasm_reflected.ts b/src/typegate/src/runtimes/wasm_reflected.ts similarity index 92% rename from typegate/src/runtimes/wasm_reflected.ts rename to src/typegate/src/runtimes/wasm_reflected.ts index 0c9f973ccb..d8332bf1f8 100644 --- a/typegate/src/runtimes/wasm_reflected.ts +++ b/src/typegate/src/runtimes/wasm_reflected.ts @@ -4,13 +4,13 @@ import { registerRuntime } from "./mod.ts"; import { Runtime } from "./Runtime.ts"; import * as native from "native"; -import { Resolver, RuntimeInitParams } from "../types.ts"; +import type { Resolver, RuntimeInitParams } from "../types.ts"; import { nativeResult } from "../utils.ts"; -import { ComputeStage } from "../engine/query_engine.ts"; +import type { ComputeStage } from "../engine/query_engine.ts"; import * as ast from "graphql/ast"; -import { Materializer, WasmRuntimeData } from "../typegraph/types.ts"; -import { Typegate } from "../typegate/mod.ts"; -import { getLogger, Logger } from "../log.ts"; +import type { Materializer, WasmRuntimeData } from "../typegraph/types.ts"; +import type { Typegate } from "../typegate/mod.ts"; +import { getLogger, type Logger } from "../log.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/runtimes/wasm_wire.ts b/src/typegate/src/runtimes/wasm_wire.ts similarity index 94% rename from typegate/src/runtimes/wasm_wire.ts rename to src/typegate/src/runtimes/wasm_wire.ts index 959c66b91c..e403864225 100644 --- a/typegate/src/runtimes/wasm_wire.ts +++ b/src/typegate/src/runtimes/wasm_wire.ts @@ -3,11 +3,11 @@ import { registerRuntime } from "./mod.ts"; import { Runtime } from "./Runtime.ts"; -import { Resolver, RuntimeInitParams } from "../types.ts"; -import { ComputeStage } from "../engine/query_engine.ts"; +import type { Resolver, RuntimeInitParams } from "../types.ts"; +import type { ComputeStage } from "../engine/query_engine.ts"; import * as ast from "graphql/ast"; -import { Materializer, WasmRuntimeData } from "../typegraph/types.ts"; -import { getLogger, Logger } from "../log.ts"; +import type { Materializer, WasmRuntimeData } from "../typegraph/types.ts"; +import { getLogger, type Logger } from "../log.ts"; import { WitWireMessenger } from "./wit_wire/mod.ts"; import { InternalAuth } from "../services/auth/protocols/internal.ts"; diff --git a/typegate/src/runtimes/wit_wire/mod.ts b/src/typegate/src/runtimes/wit_wire/mod.ts similarity index 97% rename from typegate/src/runtimes/wit_wire/mod.ts rename to src/typegate/src/runtimes/wit_wire/mod.ts index 1ac7933dfd..7b9c65fb6e 100644 --- a/typegate/src/runtimes/wit_wire/mod.ts +++ b/src/typegate/src/runtimes/wit_wire/mod.ts @@ -3,13 +3,13 @@ import * as zod from "zod"; import type { WitWireMatInfo } from "../../../engine/runtime.js"; -import { ResolverArgs } from "../../types.ts"; -import { Typegate } from "../../typegate/mod.ts"; +import type { ResolverArgs } from "../../types.ts"; +import type { Typegate } from "../../typegate/mod.ts"; import { getLogger } from "../../log.ts"; const logger = getLogger(import.meta); -const METATYPE_VERSION = "0.4.8"; +const METATYPE_VERSION = "0.4.9-rc1"; export class WitWireMessenger { static async init( diff --git a/typegate/src/services/artifact_service.ts b/src/typegate/src/services/artifact_service.ts similarity index 98% rename from typegate/src/services/artifact_service.ts rename to src/typegate/src/services/artifact_service.ts index 916d93afe7..abb4704a8c 100644 --- a/typegate/src/services/artifact_service.ts +++ b/src/typegate/src/services/artifact_service.ts @@ -2,9 +2,9 @@ // SPDX-License-Identifier: Elastic-2.0 import { - ArtifactMeta, + type ArtifactMeta, artifactMetaSchema, - ArtifactStore, + type ArtifactStore, } from "../typegate/artifacts/mod.ts"; import { z } from "zod"; import { getLogger } from "../log.ts"; diff --git a/typegate/src/services/auth/cookies.ts b/src/typegate/src/services/auth/cookies.ts similarity index 90% rename from typegate/src/services/auth/cookies.ts rename to src/typegate/src/services/auth/cookies.ts index 4968579ad5..aaf7b2c478 100644 --- a/typegate/src/services/auth/cookies.ts +++ b/src/typegate/src/services/auth/cookies.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { deleteCookie, getCookies, setCookie } from "std/http/cookie.ts"; -import { TypegateCryptoKeys } from "../../crypto.ts"; +import { deleteCookie, getCookies, setCookie } from "@std/http/cookie"; +import type { TypegateCryptoKeys } from "../../crypto.ts"; import { globalConfig } from "../../config.ts"; export async function getEncryptedCookie( diff --git a/typegate/src/services/auth/mod.ts b/src/typegate/src/services/auth/mod.ts similarity index 92% rename from typegate/src/services/auth/mod.ts rename to src/typegate/src/services/auth/mod.ts index 40bdcc5039..0cd23a06a3 100644 --- a/typegate/src/services/auth/mod.ts +++ b/src/typegate/src/services/auth/mod.ts @@ -6,16 +6,16 @@ import { BasicAuth } from "./protocols/basic.ts"; import { OAuth2Auth } from "./protocols/oauth2.ts"; import type { Auth } from "../../typegraph/types.ts"; -import { SecretManager, TypeGraph } from "../../typegraph/mod.ts"; +import type { SecretManager, TypeGraph } from "../../typegraph/mod.ts"; -import { Protocol } from "./protocols/protocol.ts"; -import { DenoRuntime } from "../../runtimes/deno/deno.ts"; +import type { Protocol } from "./protocols/protocol.ts"; +import type { DenoRuntime } from "../../runtimes/deno/deno.ts"; import { unsafeExtractJWT } from "../../crypto.ts"; -import { QueryEngine } from "../../engine/query_engine.ts"; +import type { QueryEngine } from "../../engine/query_engine.ts"; import * as routes from "./routes/mod.ts"; import { getLogger } from "../../log.ts"; import { methodNotAllowed } from "../../services/responses.ts"; -import { Runtime } from "../../runtimes/Runtime.ts"; +import type { Runtime } from "../../runtimes/Runtime.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/services/auth/protocols/basic.ts b/src/typegate/src/services/auth/protocols/basic.ts similarity index 83% rename from typegate/src/services/auth/protocols/basic.ts rename to src/typegate/src/services/auth/protocols/basic.ts index 75e277ff63..f72f344e64 100644 --- a/typegate/src/services/auth/protocols/basic.ts +++ b/src/typegate/src/services/auth/protocols/basic.ts @@ -3,11 +3,11 @@ import { SystemTypegraph } from "../../../system_typegraphs.ts"; import { b64decode } from "../../../utils.ts"; -import { SecretManager } from "../../../typegraph/mod.ts"; -import { TypegateConfigBase } from "../../../config.ts"; -import { Protocol, TokenMiddlewareOutput } from "./protocol.ts"; -import { DenoRuntime } from "../../../runtimes/deno/deno.ts"; -import { Auth } from "../../../typegraph/types.ts"; +import type { SecretManager } from "../../../typegraph/mod.ts"; +import type { TypegateConfigBase } from "../../../config.ts"; +import { Protocol, type TokenMiddlewareOutput } from "./protocol.ts"; +import type { DenoRuntime } from "../../../runtimes/deno/deno.ts"; +import type { Auth } from "../../../typegraph/types.ts"; type BasicAuthConfig = Pick; diff --git a/typegate/src/services/auth/protocols/internal.ts b/src/typegate/src/services/auth/protocols/internal.ts similarity index 88% rename from typegate/src/services/auth/protocols/internal.ts rename to src/typegate/src/services/auth/protocols/internal.ts index 2e78914deb..b92959225b 100644 --- a/typegate/src/services/auth/protocols/internal.ts +++ b/src/typegate/src/services/auth/protocols/internal.ts @@ -1,9 +1,9 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypegateCryptoKeys } from "../../../crypto.ts"; -import { getLogger } from "@typegate/log.ts"; -import { Protocol, TokenMiddlewareOutput } from "./protocol.ts"; +import type { TypegateCryptoKeys } from "../../../crypto.ts"; +import { getLogger } from "../../../log.ts"; +import { Protocol, type TokenMiddlewareOutput } from "./protocol.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/services/auth/protocols/jwt.ts b/src/typegate/src/services/auth/protocols/jwt.ts similarity index 87% rename from typegate/src/services/auth/protocols/jwt.ts rename to src/typegate/src/services/auth/protocols/jwt.ts index 2f4b0525d5..7d93e32a97 100644 --- a/typegate/src/services/auth/protocols/jwt.ts +++ b/src/typegate/src/services/auth/protocols/jwt.ts @@ -3,10 +3,10 @@ import * as jwt from "jwt"; import { getLogger } from "../../../log.ts"; -import { SecretManager } from "../../../typegraph/mod.ts"; -import { Protocol, TokenMiddlewareOutput } from "./protocol.ts"; -import { DenoRuntime } from "../../../runtimes/deno/deno.ts"; -import { Auth } from "../../../typegraph/types.ts"; +import type { SecretManager } from "../../../typegraph/mod.ts"; +import { Protocol, type TokenMiddlewareOutput } from "./protocol.ts"; +import type { DenoRuntime } from "../../../runtimes/deno/deno.ts"; +import type { Auth } from "../../../typegraph/types.ts"; const logger = getLogger(import.meta); const encoder = new TextEncoder(); diff --git a/typegate/src/services/auth/protocols/oauth2.ts b/src/typegate/src/services/auth/protocols/oauth2.ts similarity index 95% rename from typegate/src/services/auth/protocols/oauth2.ts rename to src/typegate/src/services/auth/protocols/oauth2.ts index 0725c8f6f4..0615565604 100644 --- a/typegate/src/services/auth/protocols/oauth2.ts +++ b/src/typegate/src/services/auth/protocols/oauth2.ts @@ -1,19 +1,19 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypegateConfigBase } from "../../../config.ts"; -import { OAuth2Client, OAuth2ClientConfig, Tokens } from "oauth2_client"; -import { randomUUID, TypegateCryptoKeys } from "../../../crypto.ts"; -import { AdditionalAuthParams, JWTClaims } from "../mod.ts"; +import type { TypegateConfigBase } from "../../../config.ts"; +import { OAuth2Client, type OAuth2ClientConfig, type Tokens } from "oauth2_client"; +import { randomUUID, type TypegateCryptoKeys } from "../../../crypto.ts"; +import type { AdditionalAuthParams, JWTClaims } from "../mod.ts"; import { getLogger } from "../../../log.ts"; -import { SecretManager } from "../../../typegraph/mod.ts"; +import type { SecretManager } from "../../../typegraph/mod.ts"; import { clearCookie, getEncryptedCookie, setEncryptedSessionCookie, } from "../cookies.ts"; import { Protocol } from "./protocol.ts"; -import { Auth } from "../../../typegraph/types.ts"; +import type { Auth } from "../../../typegraph/types.ts"; import { Type } from "../../../typegraph/type_node.ts"; import { ComputeStage } from "../../../engine/query_engine.ts"; import * as ast from "graphql/ast"; @@ -21,7 +21,7 @@ import { generateValidator, generateWeakValidator, } from "../../../engine/typecheck/input.ts"; -import { TokenMiddlewareOutput } from "./protocol.ts"; +import type { TokenMiddlewareOutput } from "./protocol.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/services/auth/protocols/protocol.ts b/src/typegate/src/services/auth/protocols/protocol.ts similarity index 100% rename from typegate/src/services/auth/protocols/protocol.ts rename to src/typegate/src/services/auth/protocols/protocol.ts diff --git a/typegate/src/services/auth/routes/mod.ts b/src/typegate/src/services/auth/routes/mod.ts similarity index 80% rename from typegate/src/services/auth/routes/mod.ts rename to src/typegate/src/services/auth/routes/mod.ts index e4c0dc8d2b..4fe31f2a22 100644 --- a/typegate/src/services/auth/routes/mod.ts +++ b/src/typegate/src/services/auth/routes/mod.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryEngine } from "../../../engine/query_engine.ts"; +import type { QueryEngine } from "../../../engine/query_engine.ts"; export { validate } from "./validate.ts"; export { take } from "./take.ts"; diff --git a/typegate/src/services/auth/routes/take.ts b/src/typegate/src/services/auth/routes/take.ts similarity index 96% rename from typegate/src/services/auth/routes/take.ts rename to src/typegate/src/services/auth/routes/take.ts index fa910a924f..bd29792060 100644 --- a/typegate/src/services/auth/routes/take.ts +++ b/src/typegate/src/services/auth/routes/take.ts @@ -3,7 +3,7 @@ import { getLogger } from "../../../log.ts"; import { clearCookie, getEncryptedCookie } from "../cookies.ts"; -import { RouteParams } from "./mod.ts"; +import type { RouteParams } from "./mod.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/services/auth/routes/validate.ts b/src/typegate/src/services/auth/routes/validate.ts similarity index 97% rename from typegate/src/services/auth/routes/validate.ts rename to src/typegate/src/services/auth/routes/validate.ts index 9f270b2b84..9ed4a8c6ca 100644 --- a/typegate/src/services/auth/routes/validate.ts +++ b/src/typegate/src/services/auth/routes/validate.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { RouteParams } from "./mod.ts"; +import type { RouteParams } from "./mod.ts"; export function badRequest(message: string): Response { return new Response(message, { diff --git a/typegate/src/services/graphql_service.ts b/src/typegate/src/services/graphql_service.ts similarity index 91% rename from typegate/src/services/graphql_service.ts rename to src/typegate/src/services/graphql_service.ts index 6ccecefd44..7e0ce139e4 100644 --- a/typegate/src/services/graphql_service.ts +++ b/src/typegate/src/services/graphql_service.ts @@ -3,16 +3,16 @@ import { getLogger } from "../log.ts"; import { parse } from "graphql"; -import { Context, Info } from "../types.ts"; -import { RateLimit } from "../typegate/rate_limiter.ts"; +import type { Context, Info } from "../types.ts"; +import type { RateLimit } from "../typegate/rate_limiter.ts"; import { - Operations, + type Operations, parseRequest, } from "../transports/graphql/request_parser.ts"; -import { findOperation, FragmentDefs } from "../transports/graphql/graphql.ts"; +import { findOperation, type FragmentDefs } from "../transports/graphql/graphql.ts"; import { forceAnyToOption } from "../utils.ts"; -import { QueryEngine } from "../engine/query_engine.ts"; -import * as ast from "graphql/ast"; +import type { QueryEngine } from "../engine/query_engine.ts"; +import type * as ast from "graphql/ast"; import { BadContext, ResolverError } from "../errors.ts"; import { badRequest, jsonError, jsonOk } from "./responses.ts"; import { BaseError, ErrorKind } from "../errors.ts"; diff --git a/typegate/src/services/info_service.ts b/src/typegate/src/services/info_service.ts similarity index 100% rename from typegate/src/services/info_service.ts rename to src/typegate/src/services/info_service.ts diff --git a/typegate/src/services/middlewares.ts b/src/typegate/src/services/middlewares.ts similarity index 96% rename from typegate/src/services/middlewares.ts rename to src/typegate/src/services/middlewares.ts index d38784185c..04cb7eccfb 100644 --- a/typegate/src/services/middlewares.ts +++ b/src/typegate/src/services/middlewares.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Elastic-2.0 import { globalConfig } from "../config.ts"; -import { QueryEngine } from "../engine/query_engine.ts"; +import type { QueryEngine } from "../engine/query_engine.ts"; import { getLogger } from "../log.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/services/playground_service.ts b/src/typegate/src/services/playground_service.ts similarity index 98% rename from typegate/src/services/playground_service.ts rename to src/typegate/src/services/playground_service.ts index ef0484ceee..b713f583c1 100644 --- a/typegate/src/services/playground_service.ts +++ b/src/typegate/src/services/playground_service.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Elastic-2.0 import { globalConfig } from "../config.ts"; -import { QueryEngine } from "../engine/query_engine.ts"; +import type { QueryEngine } from "../engine/query_engine.ts"; import { baseUrl } from "./middlewares.ts"; export const handlePlaygroundGraphQL = ( diff --git a/typegate/src/services/responses.ts b/src/typegate/src/services/responses.ts similarity index 96% rename from typegate/src/services/responses.ts rename to src/typegate/src/services/responses.ts index c8756cc84d..98744c61d2 100644 --- a/typegate/src/services/responses.ts +++ b/src/typegate/src/services/responses.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { JSONValue } from "../utils.ts"; +import type { JSONValue } from "../utils.ts"; import { BaseError, ErrorKind } from "../errors.ts"; export const jsonOk = (data: JSONValue, headers: Headers) => { diff --git a/typegate/src/services/rest_service.ts b/src/typegate/src/services/rest_service.ts similarity index 97% rename from typegate/src/services/rest_service.ts rename to src/typegate/src/services/rest_service.ts index 5af00a217b..15af7dab66 100644 --- a/typegate/src/services/rest_service.ts +++ b/src/typegate/src/services/rest_service.ts @@ -1,11 +1,11 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryEngine } from "../engine/query_engine.ts"; +import type { QueryEngine } from "../engine/query_engine.ts"; import { BadContext, ResolverError } from "../errors.ts"; import { getLogger } from "../log.ts"; -import { RateLimit } from "../typegate/rate_limiter.ts"; -import { Context, Info } from "../types.ts"; +import type { RateLimit } from "../typegate/rate_limiter.ts"; +import type { Context, Info } from "../types.ts"; import { handlePlaygroundRestAPI } from "./playground_service.ts"; import { globalConfig } from "../config.ts"; import { BaseError, ErrorKind } from "../errors.ts"; diff --git a/typegate/src/sync/mod.ts b/src/typegate/src/sync/mod.ts similarity index 100% rename from typegate/src/sync/mod.ts rename to src/typegate/src/sync/mod.ts diff --git a/typegate/src/sync/replicated_map.ts b/src/typegate/src/sync/replicated_map.ts similarity index 98% rename from typegate/src/sync/replicated_map.ts rename to src/typegate/src/sync/replicated_map.ts index a1f4303ac8..373b1923f0 100644 --- a/typegate/src/sync/replicated_map.ts +++ b/src/typegate/src/sync/replicated_map.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { connect, Redis, RedisConnectOptions, XIdInput } from "redis"; +import { connect, type Redis, type RedisConnectOptions, type XIdInput } from "redis"; import * as Sentry from "sentry"; import { getLogger } from "../log.ts"; import { ensure } from "../utils.ts"; diff --git a/typegate/src/sync/typegraph.ts b/src/typegate/src/sync/typegraph.ts similarity index 91% rename from typegate/src/sync/typegraph.ts rename to src/typegate/src/sync/typegraph.ts index 0b2c326d7c..08a390558b 100644 --- a/typegate/src/sync/typegraph.ts +++ b/src/typegate/src/sync/typegraph.ts @@ -1,17 +1,17 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { SecretManager, TypeGraph, TypeGraphDS } from "../typegraph/mod.ts"; +import { SecretManager, TypeGraph, type TypeGraphDS } from "../typegraph/mod.ts"; import { GetObjectCommand, PutObjectCommand, - PutObjectCommandInput, + type PutObjectCommandInput, S3Client, } from "aws-sdk/client-s3"; -import { SyncConfig } from "../config.ts"; -import { TypegateCryptoKeys } from "../crypto.ts"; +import type { SyncConfig } from "../config.ts"; +import type { TypegateCryptoKeys } from "../crypto.ts"; -import { encodeHex } from "std/encoding/hex.ts"; +import { encodeHex } from "@std/encoding/hex"; import { z } from "zod"; export const typegraphIdSchema = z.object({ diff --git a/typegate/src/system_typegraphs.ts b/src/typegate/src/system_typegraphs.ts similarity index 90% rename from typegate/src/system_typegraphs.ts rename to src/typegate/src/system_typegraphs.ts index 81f3ea3536..86c37772bc 100644 --- a/typegate/src/system_typegraphs.ts +++ b/src/typegate/src/system_typegraphs.ts @@ -1,15 +1,15 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { basename } from "std/url/mod.ts"; -import { fromFileUrl, toFileUrl } from "std/path/mod.ts"; +import { basename } from "@std/url"; +import { fromFileUrl, toFileUrl } from "@std/path"; -import { Register } from "./typegate/register.ts"; +import type { Register } from "./typegate/register.ts"; import { PrismaMigrationRuntime } from "./runtimes/prisma/mod.ts"; -import { RuntimeResolver, TypeGraph } from "./typegraph/mod.ts"; +import { type RuntimeResolver, TypeGraph } from "./typegraph/mod.ts"; import { getLogger } from "./log.ts"; import { TypeGateRuntime } from "./runtimes/typegate.ts"; -import { Typegate } from "./typegate/mod.ts"; +import type { Typegate } from "./typegate/mod.ts"; const logger = getLogger(); diff --git a/typegate/src/transports/graphql/gq.ts b/src/typegate/src/transports/graphql/gq.ts similarity index 93% rename from typegate/src/transports/graphql/gq.ts rename to src/typegate/src/transports/graphql/gq.ts index 911ebee41b..23e6e312ff 100644 --- a/typegate/src/transports/graphql/gq.ts +++ b/src/typegate/src/transports/graphql/gq.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import * as ast from "graphql/ast"; +import type * as ast from "graphql/ast"; export const gq = async ( url: string, diff --git a/typegate/src/transports/graphql/graphql.ts b/src/typegate/src/transports/graphql/graphql.ts similarity index 95% rename from typegate/src/transports/graphql/graphql.ts rename to src/typegate/src/transports/graphql/graphql.ts index 6c078750bb..dc76f94d6a 100644 --- a/typegate/src/transports/graphql/graphql.ts +++ b/src/typegate/src/transports/graphql/graphql.ts @@ -1,9 +1,9 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import * as ast from "graphql/ast"; +import type * as ast from "graphql/ast"; import { Kind } from "graphql"; -import { None, Option, Some } from "monads"; +import { None, type Option, Some } from "monads"; import { forceOptionToValue } from "../../utils.ts"; export type FragmentDefs = Record; diff --git a/typegate/src/transports/graphql/request_parser.ts b/src/typegate/src/transports/graphql/request_parser.ts similarity index 100% rename from typegate/src/transports/graphql/request_parser.ts rename to src/typegate/src/transports/graphql/request_parser.ts diff --git a/typegate/src/transports/graphql/typegraph.ts b/src/typegate/src/transports/graphql/typegraph.ts similarity index 96% rename from typegate/src/transports/graphql/typegraph.ts rename to src/typegate/src/transports/graphql/typegraph.ts index 5af82cd647..c9fd1effdf 100644 --- a/typegate/src/transports/graphql/typegraph.ts +++ b/src/typegate/src/transports/graphql/typegraph.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypeGraphDS } from "../../typegraph/mod.ts"; -import { ObjectNode } from "../../typegraph/type_node.ts"; +import type { TypeGraphDS } from "../../typegraph/mod.ts"; +import type { ObjectNode } from "../../typegraph/type_node.ts"; import { addNode } from "./utils.ts"; type PropertiesTable = Record; diff --git a/typegate/src/transports/graphql/utils.ts b/src/typegate/src/transports/graphql/utils.ts similarity index 93% rename from typegate/src/transports/graphql/utils.ts rename to src/typegate/src/transports/graphql/utils.ts index 5c8acf9726..5de5b550c4 100644 --- a/typegate/src/transports/graphql/utils.ts +++ b/src/typegate/src/transports/graphql/utils.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypeGraphDS } from "../../typegraph/mod.ts"; -import { TypeNode } from "../../typegraph/type_node.ts"; +import type { TypeGraphDS } from "../../typegraph/mod.ts"; +import type { TypeNode } from "../../typegraph/type_node.ts"; /** * Returns true if the given `type` already exists in the `TypeGraph`. diff --git a/typegate/src/transports/rest/rest_schema_generator.ts b/src/typegate/src/transports/rest/rest_schema_generator.ts similarity index 98% rename from typegate/src/transports/rest/rest_schema_generator.ts rename to src/typegate/src/transports/rest/rest_schema_generator.ts index f348508f47..e209d4e9f3 100644 --- a/typegate/src/transports/rest/rest_schema_generator.ts +++ b/src/typegate/src/transports/rest/rest_schema_generator.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypeGraph } from "../../typegraph/mod.ts"; +import type { TypeGraph } from "../../typegraph/mod.ts"; export class RestSchemaGenerator { schema: Map = new Map(); diff --git a/typegate/src/typegate/artifacts/local.ts b/src/typegate/src/typegate/artifacts/local.ts similarity index 94% rename from typegate/src/typegate/artifacts/local.ts rename to src/typegate/src/typegate/artifacts/local.ts index ac71985a85..a3c753a0ee 100644 --- a/typegate/src/typegate/artifacts/local.ts +++ b/src/typegate/src/typegate/artifacts/local.ts @@ -1,24 +1,25 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { resolve } from "std/path/resolve.ts"; +import { resolve } from "@std/path/resolve"; import { HashTransformStream } from "../../utils/hash.ts"; import { ArtifactError, - ArtifactMeta, - ArtifactPersistence, + type ArtifactMeta, + type ArtifactPersistence, ArtifactStore, - Dirs, - RefCounter, - UploadEndpointManager, + type Dirs, + type RefCounter, + type UploadEndpointManager, } from "./mod.ts"; import { getLogger } from "../../log.ts"; +// deno-lint-ignore no-external-import import { createHash } from "node:crypto"; import * as jwt from "jwt"; -import { join } from "std/path/join.ts"; -import { exists } from "std/fs/exists.ts"; -import { BaseError, ErrorKind } from "@typegate/errors.ts"; -import { TypegateCryptoKeys } from "../../crypto.ts"; +import { join } from "@std/path/join"; +import { exists } from "@std/fs/exists"; +import { BaseError, ErrorKind } from "../../errors.ts"; +import type { TypegateCryptoKeys } from "../../crypto.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/typegate/artifacts/mod.ts b/src/typegate/src/typegate/artifacts/mod.ts similarity index 95% rename from typegate/src/typegate/artifacts/mod.ts rename to src/typegate/src/typegate/artifacts/mod.ts index e4bbc9f873..ae2f50758a 100644 --- a/typegate/src/typegate/artifacts/mod.ts +++ b/src/typegate/src/typegate/artifacts/mod.ts @@ -1,16 +1,16 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { sha256, TypegateCryptoKeys } from "@typegate/crypto.ts"; -import { getLogger } from "@typegate/log.ts"; +import { sha256, type TypegateCryptoKeys } from "../../crypto.ts"; +import { getLogger } from "../../log.ts"; import * as jwt from "jwt"; import { z } from "zod"; -import { dirname } from "std/path/dirname.ts"; -import { resolve } from "std/path/resolve.ts"; -import { exists } from "std/fs/exists.ts"; +import { dirname } from "@std/path/dirname"; +import { resolve } from "@std/path/resolve"; +import { exists } from "@std/fs/exists"; // until deno supports it... import { AsyncDisposableStack } from "dispose"; -import { BaseError, ErrorKind, NotImplemented } from "@typegate/errors.ts"; +import { BaseError, ErrorKind, NotImplemented } from "../../errors.ts"; class InvalidUploadToken extends BaseError { constructor(token: string, kind: "unknown" | "expired" = "unknown") { diff --git a/typegate/src/typegate/artifacts/shared.ts b/src/typegate/src/typegate/artifacts/shared.ts similarity index 94% rename from typegate/src/typegate/artifacts/shared.ts rename to src/typegate/src/typegate/artifacts/shared.ts index 8ed47138ae..f4a4514d06 100644 --- a/typegate/src/typegate/artifacts/shared.ts +++ b/src/typegate/src/typegate/artifacts/shared.ts @@ -1,23 +1,24 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { connect, Redis, RedisConnectOptions } from "redis"; -import { getLogger } from "@typegate/log.ts"; +import { connect, type Redis, type RedisConnectOptions } from "redis"; +import { getLogger } from "../../log.ts"; +// deno-lint-ignore no-external-import import { createHash } from "node:crypto"; -import { TypegateCryptoKeys } from "../../crypto.ts"; +import type { TypegateCryptoKeys } from "../../crypto.ts"; import { S3 } from "aws-sdk/client-s3"; -import { +import type { ArtifactPersistence, RefCounter, UploadEndpointManager, } from "./mod.ts"; -import { ArtifactMeta, ArtifactStore } from "./mod.ts"; +import { type ArtifactMeta, ArtifactStore } from "./mod.ts"; import { HashTransformStream } from "../../utils/hash.ts"; -import { SyncConfig } from "../../config.ts"; +import type { SyncConfig } from "../../config.ts"; import { LocalArtifactPersistence } from "./local.ts"; -import { exists } from "std/fs/exists.ts"; -import { dirname } from "std/path/mod.ts"; -import { chunk } from "std/collections/chunk.ts"; +import { exists } from "@std/fs/exists"; +import { dirname } from "@std/path"; +import { chunk } from "@std/collections/chunk"; import { ArtifactError } from "./mod.ts"; const logger = getLogger(import.meta); diff --git a/typegate/src/typegate/hooks.ts b/src/typegate/src/typegate/hooks.ts similarity index 90% rename from typegate/src/typegate/hooks.ts rename to src/typegate/src/typegate/hooks.ts index 92381a6dc6..ca58c38858 100644 --- a/typegate/src/typegate/hooks.ts +++ b/src/typegate/src/typegate/hooks.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { MessageEntry, Migrations } from "../typegate/register.ts"; -import { SecretManager, TypeGraphDS } from "../typegraph/mod.ts"; +import type { MessageEntry, Migrations } from "../typegate/register.ts"; +import type { SecretManager, TypeGraphDS } from "../typegraph/mod.ts"; const Message = { INFO: "info", diff --git a/typegate/tests/utils/memory_register.ts b/src/typegate/src/typegate/memory_register.ts similarity index 79% rename from typegate/tests/utils/memory_register.ts rename to src/typegate/src/typegate/memory_register.ts index c52546892a..a4fea212ad 100644 --- a/typegate/tests/utils/memory_register.ts +++ b/src/typegate/src/typegate/memory_register.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryEngine } from "../../src/engine/query_engine.ts"; -import { Register } from "../../src/typegate/register.ts"; +import type { QueryEngine } from "../engine/query_engine.ts"; +import { Register } from "../typegate/register.ts"; export class MemoryRegister extends Register { private map = new Map(); @@ -11,14 +11,13 @@ export class MemoryRegister extends Register { super(); } - [Symbol.asyncDispose](): Promise { - return Promise.all( + async [Symbol.asyncDispose](): Promise { + await Promise.all( Array.from(this.map.values()).map((engine) => engine[Symbol.asyncDispose]() ), - ).then(() => { - this.map.clear(); - }); + ); + this.map.clear(); } async add(engine: QueryEngine): Promise { diff --git a/typegate/src/typegate/mod.ts b/src/typegate/src/typegate/mod.ts similarity index 96% rename from typegate/src/typegate/mod.ts rename to src/typegate/src/typegate/mod.ts index c48488089b..24dd65b8a6 100644 --- a/typegate/src/typegate/mod.ts +++ b/src/typegate/src/typegate/mod.ts @@ -1,9 +1,9 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { Register, ReplicatedRegister } from "./register.ts"; +import { type Register, ReplicatedRegister } from "./register.ts"; import * as Sentry from "sentry"; -import { RateLimiter, RedisRateLimiter } from "./rate_limiter.ts"; +import { type RateLimiter, RedisRateLimiter } from "./rate_limiter.ts"; import { handlePlaygroundGraphQL } from "../services/playground_service.ts"; import { ensureJWT, handleAuth } from "../services/auth/mod.ts"; import { handleInfo } from "../services/info_service.ts"; @@ -15,15 +15,15 @@ import { } from "../services/responses.ts"; import { handleRest } from "../services/rest_service.ts"; import { QueryEngine } from "../engine/query_engine.ts"; -import { PushHandler, PushResponse } from "../typegate/hooks.ts"; +import { type PushHandler, PushResponse } from "../typegate/hooks.ts"; import { upgradeTypegraph } from "../typegraph/versions.ts"; import { parseGraphQLTypeGraph } from "../transports/graphql/typegraph.ts"; import * as PrismaHooks from "../runtimes/prisma/hooks/mod.ts"; import { - RuntimeResolver, + type RuntimeResolver, SecretManager, TypeGraph, - TypeGraphDS, + type TypeGraphDS, } from "../typegraph/mod.ts"; import { SystemTypegraph } from "../system_typegraphs.ts"; import { TypeGraphRuntime } from "../runtimes/typegraph.ts"; @@ -35,15 +35,15 @@ import introspectionJson from "../typegraphs/introspection.json" with { type: "json", }; import { ArtifactService } from "../services/artifact_service.ts"; -import { ArtifactStore } from "./artifacts/mod.ts"; +import type { ArtifactStore } from "./artifacts/mod.ts"; // TODO move from tests (MET-497) -import { MemoryRegister } from "test-utils/memory_register.ts"; -import { NoLimiter } from "test-utils/no_limiter.ts"; +import { MemoryRegister } from "./memory_register.ts"; +import { NoLimiter } from "./no_limiter.ts"; import { TypegraphStore } from "../sync/typegraph.ts"; import { createLocalArtifactStore } from "./artifacts/local.ts"; import { createSharedArtifactStore } from "./artifacts/shared.ts"; import { AsyncDisposableStack } from "dispose"; -import { globalConfig, TypegateConfig } from "../config.ts"; +import { globalConfig, type TypegateConfig } from "../config.ts"; import { TypegateCryptoKeys } from "../crypto.ts"; const INTROSPECTION_JSON_STR = JSON.stringify(introspectionJson); diff --git a/typegate/tests/utils/no_limiter.ts b/src/typegate/src/typegate/no_limiter.ts similarity index 86% rename from typegate/tests/utils/no_limiter.ts rename to src/typegate/src/typegate/no_limiter.ts index 67d8d73218..ef18dac12b 100644 --- a/typegate/tests/utils/no_limiter.ts +++ b/src/typegate/src/typegate/no_limiter.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { RateLimiter } from "../../src/typegate/rate_limiter.ts"; +import { RateLimiter } from "../typegate/rate_limiter.ts"; export class NoLimiter extends RateLimiter { constructor() { diff --git a/typegate/src/typegate/rate_limiter.ts b/src/typegate/src/typegate/rate_limiter.ts similarity index 95% rename from typegate/src/typegate/rate_limiter.ts rename to src/typegate/src/typegate/rate_limiter.ts index 71b3d0e5f8..1c2629ad3c 100644 --- a/typegate/src/typegate/rate_limiter.ts +++ b/src/typegate/src/typegate/rate_limiter.ts @@ -1,12 +1,11 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { connect, Redis, RedisConnectOptions } from "redis"; -import { - Deferred, - deferred, -} from "https://deno.land/std@0.208.0/async/deferred.ts"; -import { QueryEngine } from "../engine/query_engine.ts"; +import { connect, type Redis, type RedisConnectOptions } from "redis"; +import type { QueryEngine } from "../engine/query_engine.ts"; +// FIXME: replace with Promise.withDeferred +// (yohe): tried to repalce this but it broke in an inscrutable way +import { Deferred, deferred } from "@std/async_old/deferred.ts"; // keys: tokens, latest // args: n diff --git a/typegate/src/typegate/register.ts b/src/typegate/src/typegate/register.ts similarity index 93% rename from typegate/src/typegate/register.ts rename to src/typegate/src/typegate/register.ts index c7528a6314..917d41f7bd 100644 --- a/typegate/src/typegate/register.ts +++ b/src/typegate/src/typegate/register.ts @@ -1,15 +1,15 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryEngine } from "../engine/query_engine.ts"; -import { RedisConnectOptions, XIdInput } from "redis"; +import type { QueryEngine } from "../engine/query_engine.ts"; +import type { RedisConnectOptions, XIdInput } from "redis"; import { SystemTypegraph } from "../system_typegraphs.ts"; -import { Typegate } from "./mod.ts"; +import type { Typegate } from "./mod.ts"; import { isTypegraphUpToDate, upgradeTypegraph, } from "../typegraph/versions.ts"; -import { typegraphIdSchema, TypegraphStore } from "../sync/typegraph.ts"; +import { typegraphIdSchema, type TypegraphStore } from "../sync/typegraph.ts"; import { RedisReplicatedMap } from "../sync/replicated_map.ts"; export interface MessageEntry { diff --git a/typegate/src/typegraph/mod.ts b/src/typegate/src/typegraph/mod.ts similarity index 97% rename from typegate/src/typegraph/mod.ts rename to src/typegate/src/typegraph/mod.ts index b25b6b4dfd..e51af27f9f 100644 --- a/typegate/src/typegraph/mod.ts +++ b/src/typegate/src/typegraph/mod.ts @@ -4,7 +4,7 @@ import type * as ast from "graphql/ast"; import { Kind } from "graphql"; import type { DenoRuntime } from "../runtimes/deno/deno.ts"; -import { Runtime } from "../runtimes/Runtime.ts"; +import type { Runtime } from "../runtimes/Runtime.ts"; import { ensure, ensureNonNullable } from "../utils.ts"; import { typegraph_validate } from "native"; import Chance from "chance"; @@ -25,9 +25,9 @@ import { isString, isUnion, Type, - TypeNode, + type TypeNode, } from "./type_node.ts"; -import { Batcher } from "../types.ts"; +import type { Batcher } from "../types.ts"; import type { Cors, Materializer as TypeMaterializer, @@ -37,13 +37,13 @@ import type { Typegraph as TypeGraphDS, } from "./types.ts"; import { InternalAuth } from "../services/auth/protocols/internal.ts"; -import { Protocol } from "../services/auth/protocols/protocol.ts"; +import type { Protocol } from "../services/auth/protocols/protocol.ts"; import { initRuntime } from "../runtimes/mod.ts"; import randomizeRecursively from "../runtimes/random.ts"; -import { Typegate } from "../typegate/mod.ts"; +import type { Typegate } from "../typegate/mod.ts"; import { TypeUtils } from "./utils.ts"; -export { Cors, Rate, TypeGraphDS, TypeMaterializer, TypePolicy, TypeRuntime }; +export type { Cors, Rate, TypeGraphDS, TypeMaterializer, TypePolicy, TypeRuntime }; export type RuntimeResolver = Record; diff --git a/typegate/src/typegraph/type_node.ts b/src/typegate/src/typegraph/type_node.ts similarity index 100% rename from typegate/src/typegraph/type_node.ts rename to src/typegate/src/typegraph/type_node.ts diff --git a/typegate/src/typegraph/types.ts b/src/typegate/src/typegraph/types.ts similarity index 100% rename from typegate/src/typegraph/types.ts rename to src/typegate/src/typegraph/types.ts diff --git a/typegate/src/typegraph/utils.ts b/src/typegate/src/typegraph/utils.ts similarity index 94% rename from typegate/src/typegraph/utils.ts rename to src/typegate/src/typegraph/utils.ts index de8e5022fa..ecdef079a8 100644 --- a/typegate/src/typegraph/utils.ts +++ b/src/typegate/src/typegraph/utils.ts @@ -1,15 +1,15 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypeGraph, TypeGraphDS } from "../typegraph/mod.ts"; +import type { TypeGraph, TypeGraphDS } from "../typegraph/mod.ts"; import { - EitherNode, + type EitherNode, isObject, Type, - TypeNode, - UnionNode, + type TypeNode, + type UnionNode, } from "./type_node.ts"; -import { TypeIdx } from "../types.ts"; +import type { TypeIdx } from "../types.ts"; export function isInjected(tg: TypeGraphDS, t: TypeNode): boolean { return ( diff --git a/typegate/src/typegraph/versions.ts b/src/typegate/src/typegraph/versions.ts similarity index 94% rename from typegate/src/typegraph/versions.ts rename to src/typegate/src/typegraph/versions.ts index 07a1f3400b..26a2f0389e 100644 --- a/typegate/src/typegraph/versions.ts +++ b/src/typegate/src/typegraph/versions.ts @@ -1,9 +1,9 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypeGraph, TypeGraphDS } from "../typegraph/mod.ts"; +import { TypeGraph, type TypeGraphDS } from "../typegraph/mod.ts"; import { globalConfig } from "../config.ts"; -import * as semver from "std/semver/mod.ts"; +import * as semver from "@std/semver"; const typegraphVersion = "0.0.3"; diff --git a/typegate/src/typegraph/visitor.ts b/src/typegate/src/typegraph/visitor.ts similarity index 97% rename from typegate/src/typegraph/visitor.ts rename to src/typegate/src/typegraph/visitor.ts index 75a82b12cb..bfa44d7174 100644 --- a/typegate/src/typegraph/visitor.ts +++ b/src/typegate/src/typegraph/visitor.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypeGraphDS } from "../typegraph/mod.ts"; -import { Type, TypeNode } from "./type_node.ts"; +import type { TypeGraphDS } from "../typegraph/mod.ts"; +import { Type, type TypeNode } from "./type_node.ts"; interface Path { indices: number[]; diff --git a/typegate/src/typegraphs/introspection.json b/src/typegate/src/typegraphs/introspection.json similarity index 100% rename from typegate/src/typegraphs/introspection.json rename to src/typegate/src/typegraphs/introspection.json diff --git a/typegate/src/typegraphs/introspection.py b/src/typegate/src/typegraphs/introspection.py similarity index 100% rename from typegate/src/typegraphs/introspection.py rename to src/typegate/src/typegraphs/introspection.py diff --git a/typegate/src/typegraphs/prisma_migration.json b/src/typegate/src/typegraphs/prisma_migration.json similarity index 100% rename from typegate/src/typegraphs/prisma_migration.json rename to src/typegate/src/typegraphs/prisma_migration.json diff --git a/typegate/src/typegraphs/prisma_migration.py b/src/typegate/src/typegraphs/prisma_migration.py similarity index 100% rename from typegate/src/typegraphs/prisma_migration.py rename to src/typegate/src/typegraphs/prisma_migration.py diff --git a/typegate/src/typegraphs/typegate.json b/src/typegate/src/typegraphs/typegate.json similarity index 100% rename from typegate/src/typegraphs/typegate.json rename to src/typegate/src/typegraphs/typegate.json diff --git a/typegate/src/typegraphs/typegate.py b/src/typegate/src/typegraphs/typegate.py similarity index 100% rename from typegate/src/typegraphs/typegate.py rename to src/typegate/src/typegraphs/typegate.py diff --git a/typegate/src/types.ts b/src/typegate/src/types.ts similarity index 82% rename from typegate/src/types.ts rename to src/typegate/src/types.ts index 05fed8e706..a0d9600351 100644 --- a/typegate/src/types.ts +++ b/src/typegate/src/types.ts @@ -1,19 +1,19 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { ComputeStage } from "./engine/query_engine.ts"; -import { Runtime } from "./runtimes/Runtime.ts"; +import type { ComputeStage } from "./engine/query_engine.ts"; +import type { Runtime } from "./runtimes/Runtime.ts"; import type { SecretManager, TypeGraphDS, TypeMaterializer, } from "./typegraph/mod.ts"; -import { TypeNode } from "./typegraph/type_node.ts"; -import * as ast from "graphql/ast"; -import { ComputeArg } from "./engine/planner/args.ts"; -import { EffectType, PolicyIndices } from "./typegraph/types.ts"; -import { VariantMatcher } from "./engine/typecheck/matching_variant.ts"; -import { Typegate } from "./typegate/mod.ts"; +import type { TypeNode } from "./typegraph/type_node.ts"; +import type * as ast from "graphql/ast"; +import type { ComputeArg } from "./engine/planner/args.ts"; +import type { EffectType, PolicyIndices } from "./typegraph/types.ts"; +import type { VariantMatcher } from "./engine/typecheck/matching_variant.ts"; +import type { Typegate } from "./typegate/mod.ts"; export interface Parents { [key: string]: (() => Promise | unknown) | unknown; diff --git a/typegate/src/utils.ts b/src/typegate/src/utils.ts similarity index 95% rename from typegate/src/utils.ts rename to src/typegate/src/utils.ts index c7732a146e..7db4764457 100644 --- a/typegate/src/utils.ts +++ b/src/typegate/src/utils.ts @@ -2,18 +2,18 @@ // SPDX-License-Identifier: Elastic-2.0 import type { ComputeStage } from "./engine/query_engine.ts"; -import * as ast from "graphql/ast"; -import { decodeBase64, encodeBase64 } from "std/encoding/base64.ts"; +import type * as ast from "graphql/ast"; +import { decodeBase64, encodeBase64 } from "@std/encoding/base64"; import levenshtein from "levenshtein"; -import { None, Option, Some } from "monads"; +import { None, type Option, Some } from "monads"; import { Type } from "./typegraph/type_node.ts"; import type { TypeGraph } from "./typegraph/mod.ts"; -import { ensureDir, ensureFile } from "std/fs/mod.ts"; -import { Untar } from "std/archive/untar.ts"; -import { readerFromStreamReader } from "std/io/reader_from_stream_reader.ts"; -import { toReadableStream } from "std/io/to_readable_stream.ts"; +import { ensureDir, ensureFile } from "@std/fs"; +import { Untar } from "@std/archive/untar"; +import { readerFromStreamReader } from "@std/io/reader-from-stream-reader"; +import { toReadableStream } from "@std/io/to-readable-stream"; import { path } from "compress/deps.ts"; import { sha1 } from "./crypto.ts"; import { BRANCH_NAME_SEPARATOR } from "./engine/computation_engine.ts"; diff --git a/typegate/src/utils/hash.ts b/src/typegate/src/utils/hash.ts similarity index 80% rename from typegate/src/utils/hash.ts rename to src/typegate/src/utils/hash.ts index abfe20d53d..0cccff3499 100644 --- a/typegate/src/utils/hash.ts +++ b/src/typegate/src/utils/hash.ts @@ -1,7 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { Hash } from "node:crypto"; +// deno-lint-ignore no-external-import +import type { Hash } from "node:crypto"; export class HashTransformStream extends TransformStream { constructor(hash: Hash) { diff --git a/typegate/standalone/Cargo.toml b/src/typegate/standalone/Cargo.toml similarity index 100% rename from typegate/standalone/Cargo.toml rename to src/typegate/standalone/Cargo.toml diff --git a/typegate/standalone/src/config.rs b/src/typegate/standalone/src/config.rs similarity index 87% rename from typegate/standalone/src/config.rs rename to src/typegate/standalone/src/config.rs index 305679d4ec..62035ae688 100644 --- a/typegate/standalone/src/config.rs +++ b/src/typegate/standalone/src/config.rs @@ -15,6 +15,6 @@ pub struct Config { pub sentry_traces_sample_rate: f32, #[envconfig(from = "TG_MAIN_URL")] pub main_url: Option, - #[envconfig(from = "TG_IMPORT_MAP_URL")] - pub import_map_url: Option, + #[envconfig(from = "TG_DENO_CONFIG_URL")] + pub deno_config_url: Option, } diff --git a/typegate/standalone/src/logger.rs b/src/typegate/standalone/src/logger.rs similarity index 100% rename from typegate/standalone/src/logger.rs rename to src/typegate/standalone/src/logger.rs diff --git a/typegate/standalone/src/main.rs b/src/typegate/standalone/src/main.rs similarity index 90% rename from typegate/standalone/src/main.rs rename to src/typegate/standalone/src/main.rs index 3663a51c76..368934181d 100644 --- a/typegate/standalone/src/main.rs +++ b/src/typegate/standalone/src/main.rs @@ -48,19 +48,19 @@ fn main_main() -> Result<(), Box> let workspace_dir = Path::new(location_macros::workspace_dir!()); let main_url = config.main_url.unwrap_or_else(|| { workspace_dir - .join("typegate/src/main.ts") + .join("src/typegate/src/main.ts") .to_string_lossy() .into() }); - let import_map_url = config.import_map_url.unwrap_or_else(|| { + let config_url = config.deno_config_url.unwrap_or_else(|| { workspace_dir - .join("typegate/import_map.json") + .join("src/typegate/deno.jsonc") .to_string_lossy() .into() }); runtime.block_on(typegate_engine::launch_typegate_deno( typegate_engine::resolve_url_or_path(&main_url, workspace_dir)?, - Some(import_map_url), + Some(config_url), ))?; Ok(()) diff --git a/typegraph/core/Cargo.toml b/src/typegraph/core/Cargo.toml similarity index 53% rename from typegraph/core/Cargo.toml rename to src/typegraph/core/Cargo.toml index b5bd7efb37..c5fbb0b703 100644 --- a/typegraph/core/Cargo.toml +++ b/src/typegraph/core/Cargo.toml @@ -1,33 +1,39 @@ [package] name = "typegraph_core" -version = "0.4.8" +version = "0.4.9-rc1" edition = "2021" [lib] crate-type = ["cdylib", "rlib"] [dependencies] -enum_dispatch = "0.3.13" -once_cell.workspace = true -serde.workspace = true -serde_json.workspace = true -wit-bindgen = "0.26.0" -regex.workspace = true -indexmap.workspace = true common.workspace = true metagen.workspace = true -indoc.workspace = true + +enum_dispatch.workspace = true color-eyre.workspace = true anyhow.workspace = true -graphql-parser = "0.4.0" -sha2 = "0.10.8" -paste = "1.0.15" -seahash = "4.1.0" -ordered-float = "4.2.0" -glob = "0.3.1" -unindent = "0.2.3" +paste.workspace = true + +serde.workspace = true +serde_json.workspace = true +indoc.workspace = true +unindent.workspace = true + +wit-bindgen.workspace = true + +once_cell.workspace = true +regex.workspace = true +indexmap.workspace = true +ordered-float.workspace = true +graphql-parser.workspace = true + +sha2.workspace = true +seahash.workspace = true + +glob.workspace = true [dev-dependencies] -insta = { version = "1.39.0", features = ["glob"] } -ptree = "0.4.0" +insta = { workspace = true, features = ["glob"] } +ptree.workspace = true indoc.workspace = true diff --git a/typegraph/core/src/conversion/hash.rs b/src/typegraph/core/src/conversion/hash.rs similarity index 100% rename from typegraph/core/src/conversion/hash.rs rename to src/typegraph/core/src/conversion/hash.rs diff --git a/typegraph/core/src/conversion/mod.rs b/src/typegraph/core/src/conversion/mod.rs similarity index 100% rename from typegraph/core/src/conversion/mod.rs rename to src/typegraph/core/src/conversion/mod.rs diff --git a/typegraph/core/src/conversion/parameter_transform.rs b/src/typegraph/core/src/conversion/parameter_transform.rs similarity index 100% rename from typegraph/core/src/conversion/parameter_transform.rs rename to src/typegraph/core/src/conversion/parameter_transform.rs diff --git a/typegraph/core/src/conversion/params.rs b/src/typegraph/core/src/conversion/params.rs similarity index 100% rename from typegraph/core/src/conversion/params.rs rename to src/typegraph/core/src/conversion/params.rs diff --git a/typegraph/core/src/conversion/policies.rs b/src/typegraph/core/src/conversion/policies.rs similarity index 100% rename from typegraph/core/src/conversion/policies.rs rename to src/typegraph/core/src/conversion/policies.rs diff --git a/typegraph/core/src/conversion/runtimes.rs b/src/typegraph/core/src/conversion/runtimes.rs similarity index 100% rename from typegraph/core/src/conversion/runtimes.rs rename to src/typegraph/core/src/conversion/runtimes.rs diff --git a/typegraph/core/src/conversion/types.rs b/src/typegraph/core/src/conversion/types.rs similarity index 100% rename from typegraph/core/src/conversion/types.rs rename to src/typegraph/core/src/conversion/types.rs diff --git a/typegraph/core/src/errors.rs b/src/typegraph/core/src/errors.rs similarity index 100% rename from typegraph/core/src/errors.rs rename to src/typegraph/core/src/errors.rs diff --git a/typegraph/core/src/global_store.rs b/src/typegraph/core/src/global_store.rs similarity index 99% rename from typegraph/core/src/global_store.rs rename to src/typegraph/core/src/global_store.rs index 97a4234e1e..46afe457e2 100644 --- a/typegraph/core/src/global_store.rs +++ b/src/typegraph/core/src/global_store.rs @@ -102,7 +102,7 @@ const PREDEFINED_DENO_FUNCTIONS: &[&str] = &["identity", "true"]; thread_local! { pub static STORE: RefCell = RefCell::new(Store::new()); - pub static SDK_VERSION: String = "0.4.8".to_owned(); + pub static SDK_VERSION: String = "0.4.9-rc1".to_owned(); } fn with_store T>(f: F) -> T { diff --git a/typegraph/core/src/lib.rs b/src/typegraph/core/src/lib.rs similarity index 100% rename from typegraph/core/src/lib.rs rename to src/typegraph/core/src/lib.rs diff --git a/typegraph/core/src/logger.rs b/src/typegraph/core/src/logger.rs similarity index 100% rename from typegraph/core/src/logger.rs rename to src/typegraph/core/src/logger.rs diff --git a/typegraph/core/src/params/apply.rs b/src/typegraph/core/src/params/apply.rs similarity index 100% rename from typegraph/core/src/params/apply.rs rename to src/typegraph/core/src/params/apply.rs diff --git a/typegraph/core/src/params/mod.rs b/src/typegraph/core/src/params/mod.rs similarity index 100% rename from typegraph/core/src/params/mod.rs rename to src/typegraph/core/src/params/mod.rs diff --git a/typegraph/core/src/runtimes/aws/mod.rs b/src/typegraph/core/src/runtimes/aws/mod.rs similarity index 100% rename from typegraph/core/src/runtimes/aws/mod.rs rename to src/typegraph/core/src/runtimes/aws/mod.rs diff --git a/typegraph/core/src/runtimes/deno.rs b/src/typegraph/core/src/runtimes/deno.rs similarity index 100% rename from typegraph/core/src/runtimes/deno.rs rename to src/typegraph/core/src/runtimes/deno.rs diff --git a/typegraph/core/src/runtimes/graphql.rs b/src/typegraph/core/src/runtimes/graphql.rs similarity index 100% rename from typegraph/core/src/runtimes/graphql.rs rename to src/typegraph/core/src/runtimes/graphql.rs diff --git a/typegraph/core/src/runtimes/mod.rs b/src/typegraph/core/src/runtimes/mod.rs similarity index 100% rename from typegraph/core/src/runtimes/mod.rs rename to src/typegraph/core/src/runtimes/mod.rs diff --git a/typegraph/core/src/runtimes/prisma/constraints.rs b/src/typegraph/core/src/runtimes/prisma/constraints.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/constraints.rs rename to src/typegraph/core/src/runtimes/prisma/constraints.rs diff --git a/typegraph/core/src/runtimes/prisma/context.rs b/src/typegraph/core/src/runtimes/prisma/context.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/context.rs rename to src/typegraph/core/src/runtimes/prisma/context.rs diff --git a/typegraph/core/src/runtimes/prisma/errors.rs b/src/typegraph/core/src/runtimes/prisma/errors.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/errors.rs rename to src/typegraph/core/src/runtimes/prisma/errors.rs diff --git a/typegraph/core/src/runtimes/prisma/migration.rs b/src/typegraph/core/src/runtimes/prisma/migration.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/migration.rs rename to src/typegraph/core/src/runtimes/prisma/migration.rs diff --git a/typegraph/core/src/runtimes/prisma/mod.rs b/src/typegraph/core/src/runtimes/prisma/mod.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/mod.rs rename to src/typegraph/core/src/runtimes/prisma/mod.rs diff --git a/typegraph/core/src/runtimes/prisma/model.rs b/src/typegraph/core/src/runtimes/prisma/model.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/model.rs rename to src/typegraph/core/src/runtimes/prisma/model.rs diff --git a/typegraph/core/src/runtimes/prisma/relationship/discovery.rs b/src/typegraph/core/src/runtimes/prisma/relationship/discovery.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/relationship/discovery.rs rename to src/typegraph/core/src/runtimes/prisma/relationship/discovery.rs diff --git a/typegraph/core/src/runtimes/prisma/relationship/mod.rs b/src/typegraph/core/src/runtimes/prisma/relationship/mod.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/relationship/mod.rs rename to src/typegraph/core/src/runtimes/prisma/relationship/mod.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/additional_filters.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/additional_filters.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/additional_filters.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/additional_filters.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/aggregate.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/aggregate.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/aggregate.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/aggregate.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/count.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/count.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/count.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/count.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/filters.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/filters.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/filters.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/filters.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/group_by.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/group_by.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/group_by.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/group_by.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/input_type.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/input_type.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/input_type.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/input_type.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/mod.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/mod.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/mod.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/mod.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/order_by.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/order_by.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/order_by.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/order_by.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/out_type.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/query_input_type.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/query_input_type.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/query_input_type.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/query_input_type.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/query_where_expr.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/query_where_expr.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/query_where_expr.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/query_where_expr.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_unique_where_expr__test__query_unique_where_expr user.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_unique_where_expr__test__query_unique_where_expr user.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_unique_where_expr__test__query_unique_where_expr user.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_unique_where_expr__test__query_unique_where_expr user.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__Post__QueryWhereExpr.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__Post__QueryWhereExpr.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__Post__QueryWhereExpr.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__Post__QueryWhereExpr.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__User__QueryWhereExpr.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__User__QueryWhereExpr.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__User__QueryWhereExpr.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__query_where_expr__tests__User__QueryWhereExpr.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Post out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Post out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Post out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Post out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Record out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Record out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Record out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Record out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate User out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate User out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate User out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate User out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Post out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many Record out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_many User out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Post inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Post inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Post inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Post inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Record inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Record inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Record inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one Record inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one User inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one User inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one User inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__create_one User inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Post out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Post out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Post out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Post out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Record out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Record out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Record out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first Record out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first User out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first User out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first User out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_first User out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Post out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many Record out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_many User out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Post out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique Record out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__find_unique User out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Post out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by Record out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User out.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User out.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User out.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__group_by User out.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Post inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Post inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Post inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Post inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Record inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Record inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Record inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many Record inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many User inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many User inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many User inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_many User inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Post inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Post inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Post inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Post inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Record inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Record inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Record inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one Record inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one User inp.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one User inp.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one User inp.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__test__update_one User inp.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Post.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Post.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Post.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Post.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Record.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Record.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Record.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where Record.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where User.snap b/src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where User.snap similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where User.snap rename to src/typegraph/core/src/runtimes/prisma/type_generation/snapshots/typegraph_core__runtimes__prisma__type_generation__where___test__where User.snap diff --git a/typegraph/core/src/runtimes/prisma/type_generation/where_.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/where_.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/where_.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/where_.rs diff --git a/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs rename to src/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs diff --git a/typegraph/core/src/runtimes/prisma/type_utils.rs b/src/typegraph/core/src/runtimes/prisma/type_utils.rs similarity index 100% rename from typegraph/core/src/runtimes/prisma/type_utils.rs rename to src/typegraph/core/src/runtimes/prisma/type_utils.rs diff --git a/typegraph/core/src/runtimes/python.rs b/src/typegraph/core/src/runtimes/python.rs similarity index 100% rename from typegraph/core/src/runtimes/python.rs rename to src/typegraph/core/src/runtimes/python.rs diff --git a/typegraph/core/src/runtimes/random.rs b/src/typegraph/core/src/runtimes/random.rs similarity index 100% rename from typegraph/core/src/runtimes/random.rs rename to src/typegraph/core/src/runtimes/random.rs diff --git a/typegraph/core/src/runtimes/substantial.rs b/src/typegraph/core/src/runtimes/substantial.rs similarity index 100% rename from typegraph/core/src/runtimes/substantial.rs rename to src/typegraph/core/src/runtimes/substantial.rs diff --git a/typegraph/core/src/runtimes/temporal.rs b/src/typegraph/core/src/runtimes/temporal.rs similarity index 100% rename from typegraph/core/src/runtimes/temporal.rs rename to src/typegraph/core/src/runtimes/temporal.rs diff --git a/typegraph/core/src/runtimes/typegate.rs b/src/typegraph/core/src/runtimes/typegate.rs similarity index 100% rename from typegraph/core/src/runtimes/typegate.rs rename to src/typegraph/core/src/runtimes/typegate.rs diff --git a/typegraph/core/src/runtimes/typegraph.rs b/src/typegraph/core/src/runtimes/typegraph.rs similarity index 100% rename from typegraph/core/src/runtimes/typegraph.rs rename to src/typegraph/core/src/runtimes/typegraph.rs diff --git a/typegraph/core/src/runtimes/wasm.rs b/src/typegraph/core/src/runtimes/wasm.rs similarity index 100% rename from typegraph/core/src/runtimes/wasm.rs rename to src/typegraph/core/src/runtimes/wasm.rs diff --git a/typegraph/core/src/snapshots/typegraph_core__tests__successful_serialization.snap b/src/typegraph/core/src/snapshots/typegraph_core__tests__successful_serialization.snap similarity index 100% rename from typegraph/core/src/snapshots/typegraph_core__tests__successful_serialization.snap rename to src/typegraph/core/src/snapshots/typegraph_core__tests__successful_serialization.snap diff --git a/typegraph/core/src/t.rs b/src/typegraph/core/src/t.rs similarity index 100% rename from typegraph/core/src/t.rs rename to src/typegraph/core/src/t.rs diff --git a/typegraph/core/src/test_utils.rs b/src/typegraph/core/src/test_utils.rs similarity index 100% rename from typegraph/core/src/test_utils.rs rename to src/typegraph/core/src/test_utils.rs diff --git a/typegraph/core/src/typedef/boolean.rs b/src/typegraph/core/src/typedef/boolean.rs similarity index 100% rename from typegraph/core/src/typedef/boolean.rs rename to src/typegraph/core/src/typedef/boolean.rs diff --git a/typegraph/core/src/typedef/either.rs b/src/typegraph/core/src/typedef/either.rs similarity index 100% rename from typegraph/core/src/typedef/either.rs rename to src/typegraph/core/src/typedef/either.rs diff --git a/typegraph/core/src/typedef/file.rs b/src/typegraph/core/src/typedef/file.rs similarity index 100% rename from typegraph/core/src/typedef/file.rs rename to src/typegraph/core/src/typedef/file.rs diff --git a/typegraph/core/src/typedef/float.rs b/src/typegraph/core/src/typedef/float.rs similarity index 100% rename from typegraph/core/src/typedef/float.rs rename to src/typegraph/core/src/typedef/float.rs diff --git a/typegraph/core/src/typedef/func.rs b/src/typegraph/core/src/typedef/func.rs similarity index 100% rename from typegraph/core/src/typedef/func.rs rename to src/typegraph/core/src/typedef/func.rs diff --git a/typegraph/core/src/typedef/integer.rs b/src/typegraph/core/src/typedef/integer.rs similarity index 100% rename from typegraph/core/src/typedef/integer.rs rename to src/typegraph/core/src/typedef/integer.rs diff --git a/typegraph/core/src/typedef/list.rs b/src/typegraph/core/src/typedef/list.rs similarity index 100% rename from typegraph/core/src/typedef/list.rs rename to src/typegraph/core/src/typedef/list.rs diff --git a/typegraph/core/src/typedef/mod.rs b/src/typegraph/core/src/typedef/mod.rs similarity index 100% rename from typegraph/core/src/typedef/mod.rs rename to src/typegraph/core/src/typedef/mod.rs diff --git a/typegraph/core/src/typedef/optional.rs b/src/typegraph/core/src/typedef/optional.rs similarity index 100% rename from typegraph/core/src/typedef/optional.rs rename to src/typegraph/core/src/typedef/optional.rs diff --git a/typegraph/core/src/typedef/string.rs b/src/typegraph/core/src/typedef/string.rs similarity index 100% rename from typegraph/core/src/typedef/string.rs rename to src/typegraph/core/src/typedef/string.rs diff --git a/typegraph/core/src/typedef/struct_.rs b/src/typegraph/core/src/typedef/struct_.rs similarity index 100% rename from typegraph/core/src/typedef/struct_.rs rename to src/typegraph/core/src/typedef/struct_.rs diff --git a/typegraph/core/src/typedef/union.rs b/src/typegraph/core/src/typedef/union.rs similarity index 100% rename from typegraph/core/src/typedef/union.rs rename to src/typegraph/core/src/typedef/union.rs diff --git a/typegraph/core/src/typegraph.rs b/src/typegraph/core/src/typegraph.rs similarity index 100% rename from typegraph/core/src/typegraph.rs rename to src/typegraph/core/src/typegraph.rs diff --git a/typegraph/core/src/types/mod.rs b/src/typegraph/core/src/types/mod.rs similarity index 100% rename from typegraph/core/src/types/mod.rs rename to src/typegraph/core/src/types/mod.rs diff --git a/typegraph/core/src/types/subgraph/map.rs b/src/typegraph/core/src/types/subgraph/map.rs similarity index 100% rename from typegraph/core/src/types/subgraph/map.rs rename to src/typegraph/core/src/types/subgraph/map.rs diff --git a/typegraph/core/src/types/subgraph/mod.rs b/src/typegraph/core/src/types/subgraph/mod.rs similarity index 100% rename from typegraph/core/src/types/subgraph/mod.rs rename to src/typegraph/core/src/types/subgraph/mod.rs diff --git a/typegraph/core/src/types/type_def.rs b/src/typegraph/core/src/types/type_def.rs similarity index 100% rename from typegraph/core/src/types/type_def.rs rename to src/typegraph/core/src/types/type_def.rs diff --git a/typegraph/core/src/types/type_id.rs b/src/typegraph/core/src/types/type_id.rs similarity index 100% rename from typegraph/core/src/types/type_id.rs rename to src/typegraph/core/src/types/type_id.rs diff --git a/typegraph/core/src/types/type_ref.rs b/src/typegraph/core/src/types/type_ref.rs similarity index 100% rename from typegraph/core/src/types/type_ref.rs rename to src/typegraph/core/src/types/type_ref.rs diff --git a/typegraph/core/src/utils/archive.rs b/src/typegraph/core/src/utils/archive.rs similarity index 100% rename from typegraph/core/src/utils/archive.rs rename to src/typegraph/core/src/utils/archive.rs diff --git a/typegraph/core/src/utils/artifacts.rs b/src/typegraph/core/src/utils/artifacts.rs similarity index 100% rename from typegraph/core/src/utils/artifacts.rs rename to src/typegraph/core/src/utils/artifacts.rs diff --git a/typegraph/core/src/utils/fs.rs b/src/typegraph/core/src/utils/fs.rs similarity index 100% rename from typegraph/core/src/utils/fs.rs rename to src/typegraph/core/src/utils/fs.rs diff --git a/typegraph/core/src/utils/metagen_utils.rs b/src/typegraph/core/src/utils/metagen_utils.rs similarity index 100% rename from typegraph/core/src/utils/metagen_utils.rs rename to src/typegraph/core/src/utils/metagen_utils.rs diff --git a/typegraph/core/src/utils/mod.rs b/src/typegraph/core/src/utils/mod.rs similarity index 100% rename from typegraph/core/src/utils/mod.rs rename to src/typegraph/core/src/utils/mod.rs diff --git a/typegraph/core/src/utils/oauth2/mod.rs b/src/typegraph/core/src/utils/oauth2/mod.rs similarity index 100% rename from typegraph/core/src/utils/oauth2/mod.rs rename to src/typegraph/core/src/utils/oauth2/mod.rs diff --git a/typegraph/core/src/utils/oauth2/std.rs b/src/typegraph/core/src/utils/oauth2/std.rs similarity index 100% rename from typegraph/core/src/utils/oauth2/std.rs rename to src/typegraph/core/src/utils/oauth2/std.rs diff --git a/typegraph/core/src/utils/pathlib.rs b/src/typegraph/core/src/utils/pathlib.rs similarity index 100% rename from typegraph/core/src/utils/pathlib.rs rename to src/typegraph/core/src/utils/pathlib.rs diff --git a/typegraph/core/src/utils/postprocess/deno_rt.rs b/src/typegraph/core/src/utils/postprocess/deno_rt.rs similarity index 100% rename from typegraph/core/src/utils/postprocess/deno_rt.rs rename to src/typegraph/core/src/utils/postprocess/deno_rt.rs diff --git a/typegraph/core/src/utils/postprocess/mod.rs b/src/typegraph/core/src/utils/postprocess/mod.rs similarity index 100% rename from typegraph/core/src/utils/postprocess/mod.rs rename to src/typegraph/core/src/utils/postprocess/mod.rs diff --git a/typegraph/core/src/utils/postprocess/prisma_rt.rs b/src/typegraph/core/src/utils/postprocess/prisma_rt.rs similarity index 100% rename from typegraph/core/src/utils/postprocess/prisma_rt.rs rename to src/typegraph/core/src/utils/postprocess/prisma_rt.rs diff --git a/typegraph/core/src/utils/postprocess/python_rt.rs b/src/typegraph/core/src/utils/postprocess/python_rt.rs similarity index 100% rename from typegraph/core/src/utils/postprocess/python_rt.rs rename to src/typegraph/core/src/utils/postprocess/python_rt.rs diff --git a/typegraph/core/src/utils/postprocess/substantial_rt.rs b/src/typegraph/core/src/utils/postprocess/substantial_rt.rs similarity index 100% rename from typegraph/core/src/utils/postprocess/substantial_rt.rs rename to src/typegraph/core/src/utils/postprocess/substantial_rt.rs diff --git a/typegraph/core/src/utils/postprocess/validation.rs b/src/typegraph/core/src/utils/postprocess/validation.rs similarity index 100% rename from typegraph/core/src/utils/postprocess/validation.rs rename to src/typegraph/core/src/utils/postprocess/validation.rs diff --git a/typegraph/core/src/utils/postprocess/wasm_rt.rs b/src/typegraph/core/src/utils/postprocess/wasm_rt.rs similarity index 100% rename from typegraph/core/src/utils/postprocess/wasm_rt.rs rename to src/typegraph/core/src/utils/postprocess/wasm_rt.rs diff --git a/typegraph/core/src/utils/reduce.rs b/src/typegraph/core/src/utils/reduce.rs similarity index 100% rename from typegraph/core/src/utils/reduce.rs rename to src/typegraph/core/src/utils/reduce.rs diff --git a/typegraph/core/src/validation/errors.rs b/src/typegraph/core/src/validation/errors.rs similarity index 100% rename from typegraph/core/src/validation/errors.rs rename to src/typegraph/core/src/validation/errors.rs diff --git a/typegraph/core/src/validation/materializers.rs b/src/typegraph/core/src/validation/materializers.rs similarity index 100% rename from typegraph/core/src/validation/materializers.rs rename to src/typegraph/core/src/validation/materializers.rs diff --git a/typegraph/core/src/validation/mod.rs b/src/typegraph/core/src/validation/mod.rs similarity index 100% rename from typegraph/core/src/validation/mod.rs rename to src/typegraph/core/src/validation/mod.rs diff --git a/typegraph/core/src/validation/types.rs b/src/typegraph/core/src/validation/types.rs similarity index 100% rename from typegraph/core/src/validation/types.rs rename to src/typegraph/core/src/validation/types.rs diff --git a/typegraph/core/wit/typegraph.wit b/src/typegraph/core/wit/typegraph.wit similarity index 100% rename from typegraph/core/wit/typegraph.wit rename to src/typegraph/core/wit/typegraph.wit diff --git a/typegraph/deno/sdk/LICENSE.md b/src/typegraph/deno/LICENSE.md similarity index 100% rename from typegraph/deno/sdk/LICENSE.md rename to src/typegraph/deno/LICENSE.md diff --git a/typegraph/deno/sdk/jsr.json b/src/typegraph/deno/deno.json similarity index 98% rename from typegraph/deno/sdk/jsr.json rename to src/typegraph/deno/deno.json index 9ab8d1f28c..d8836a0ba7 100644 --- a/typegraph/deno/sdk/jsr.json +++ b/src/typegraph/deno/deno.json @@ -1,6 +1,6 @@ { "name": "@typegraph/sdk", - "version": "0.4.8", + "version": "0.4.9-rc1", "publish": { "exclude": [ "!src/gen", diff --git a/typegraph/deno/sdk/src/deps/_import.ts b/src/typegraph/deno/src/deps/_import.ts similarity index 100% rename from typegraph/deno/sdk/src/deps/_import.ts rename to src/typegraph/deno/src/deps/_import.ts diff --git a/typegraph/deno/sdk/src/deps/mod.ts b/src/typegraph/deno/src/deps/mod.ts similarity index 100% rename from typegraph/deno/sdk/src/deps/mod.ts rename to src/typegraph/deno/src/deps/mod.ts diff --git a/typegraph/deno/sdk/src/effects.ts b/src/typegraph/deno/src/effects.ts similarity index 100% rename from typegraph/deno/sdk/src/effects.ts rename to src/typegraph/deno/src/effects.ts diff --git a/typegraph/deno/sdk/src/envs/cli.ts b/src/typegraph/deno/src/envs/cli.ts similarity index 100% rename from typegraph/deno/sdk/src/envs/cli.ts rename to src/typegraph/deno/src/envs/cli.ts diff --git a/typegraph/deno/sdk/src/host/host.d.ts b/src/typegraph/deno/src/host/host.d.ts similarity index 100% rename from typegraph/deno/sdk/src/host/host.d.ts rename to src/typegraph/deno/src/host/host.d.ts diff --git a/typegraph/deno/sdk/src/host/host.js b/src/typegraph/deno/src/host/host.js similarity index 100% rename from typegraph/deno/sdk/src/host/host.js rename to src/typegraph/deno/src/host/host.js diff --git a/typegraph/deno/sdk/src/index.ts b/src/typegraph/deno/src/index.ts similarity index 100% rename from typegraph/deno/sdk/src/index.ts rename to src/typegraph/deno/src/index.ts diff --git a/typegraph/deno/sdk/src/io.ts b/src/typegraph/deno/src/io.ts similarity index 100% rename from typegraph/deno/sdk/src/io.ts rename to src/typegraph/deno/src/io.ts diff --git a/typegraph/deno/sdk/src/metagen.ts b/src/typegraph/deno/src/metagen.ts similarity index 100% rename from typegraph/deno/sdk/src/metagen.ts rename to src/typegraph/deno/src/metagen.ts diff --git a/typegraph/deno/sdk/src/params.ts b/src/typegraph/deno/src/params.ts similarity index 100% rename from typegraph/deno/sdk/src/params.ts rename to src/typegraph/deno/src/params.ts diff --git a/typegraph/deno/sdk/src/policy.ts b/src/typegraph/deno/src/policy.ts similarity index 100% rename from typegraph/deno/sdk/src/policy.ts rename to src/typegraph/deno/src/policy.ts diff --git a/typegraph/deno/sdk/src/providers/aws.ts b/src/typegraph/deno/src/providers/aws.ts similarity index 100% rename from typegraph/deno/sdk/src/providers/aws.ts rename to src/typegraph/deno/src/providers/aws.ts diff --git a/typegraph/deno/sdk/src/providers/prisma.ts b/src/typegraph/deno/src/providers/prisma.ts similarity index 100% rename from typegraph/deno/sdk/src/providers/prisma.ts rename to src/typegraph/deno/src/providers/prisma.ts diff --git a/typegraph/deno/sdk/src/providers/temporal.ts b/src/typegraph/deno/src/providers/temporal.ts similarity index 100% rename from typegraph/deno/sdk/src/providers/temporal.ts rename to src/typegraph/deno/src/providers/temporal.ts diff --git a/typegraph/deno/sdk/src/runtimes/deno.ts b/src/typegraph/deno/src/runtimes/deno.ts similarity index 100% rename from typegraph/deno/sdk/src/runtimes/deno.ts rename to src/typegraph/deno/src/runtimes/deno.ts diff --git a/typegraph/deno/sdk/src/runtimes/graphql.ts b/src/typegraph/deno/src/runtimes/graphql.ts similarity index 100% rename from typegraph/deno/sdk/src/runtimes/graphql.ts rename to src/typegraph/deno/src/runtimes/graphql.ts diff --git a/typegraph/deno/sdk/src/runtimes/http.ts b/src/typegraph/deno/src/runtimes/http.ts similarity index 100% rename from typegraph/deno/sdk/src/runtimes/http.ts rename to src/typegraph/deno/src/runtimes/http.ts diff --git a/typegraph/deno/sdk/src/runtimes/kv.ts b/src/typegraph/deno/src/runtimes/kv.ts similarity index 100% rename from typegraph/deno/sdk/src/runtimes/kv.ts rename to src/typegraph/deno/src/runtimes/kv.ts diff --git a/typegraph/deno/sdk/src/runtimes/mod.ts b/src/typegraph/deno/src/runtimes/mod.ts similarity index 100% rename from typegraph/deno/sdk/src/runtimes/mod.ts rename to src/typegraph/deno/src/runtimes/mod.ts diff --git a/typegraph/deno/sdk/src/runtimes/python.ts b/src/typegraph/deno/src/runtimes/python.ts similarity index 100% rename from typegraph/deno/sdk/src/runtimes/python.ts rename to src/typegraph/deno/src/runtimes/python.ts diff --git a/typegraph/deno/sdk/src/runtimes/random.ts b/src/typegraph/deno/src/runtimes/random.ts similarity index 100% rename from typegraph/deno/sdk/src/runtimes/random.ts rename to src/typegraph/deno/src/runtimes/random.ts diff --git a/typegraph/deno/sdk/src/runtimes/substantial.ts b/src/typegraph/deno/src/runtimes/substantial.ts similarity index 100% rename from typegraph/deno/sdk/src/runtimes/substantial.ts rename to src/typegraph/deno/src/runtimes/substantial.ts diff --git a/typegraph/deno/sdk/src/runtimes/wasm.ts b/src/typegraph/deno/src/runtimes/wasm.ts similarity index 100% rename from typegraph/deno/sdk/src/runtimes/wasm.ts rename to src/typegraph/deno/src/runtimes/wasm.ts diff --git a/typegraph/deno/sdk/src/tg_artifact_upload.ts b/src/typegraph/deno/src/tg_artifact_upload.ts similarity index 100% rename from typegraph/deno/sdk/src/tg_artifact_upload.ts rename to src/typegraph/deno/src/tg_artifact_upload.ts diff --git a/typegraph/deno/sdk/src/tg_deploy.ts b/src/typegraph/deno/src/tg_deploy.ts similarity index 100% rename from typegraph/deno/sdk/src/tg_deploy.ts rename to src/typegraph/deno/src/tg_deploy.ts diff --git a/typegraph/deno/sdk/src/tg_manage.ts b/src/typegraph/deno/src/tg_manage.ts similarity index 100% rename from typegraph/deno/sdk/src/tg_manage.ts rename to src/typegraph/deno/src/tg_manage.ts diff --git a/typegraph/deno/sdk/src/typegraph.ts b/src/typegraph/deno/src/typegraph.ts similarity index 100% rename from typegraph/deno/sdk/src/typegraph.ts rename to src/typegraph/deno/src/typegraph.ts diff --git a/typegraph/deno/sdk/src/types.ts b/src/typegraph/deno/src/types.ts similarity index 100% rename from typegraph/deno/sdk/src/types.ts rename to src/typegraph/deno/src/types.ts diff --git a/typegraph/deno/sdk/src/utils/func_utils.ts b/src/typegraph/deno/src/utils/func_utils.ts similarity index 100% rename from typegraph/deno/sdk/src/utils/func_utils.ts rename to src/typegraph/deno/src/utils/func_utils.ts diff --git a/typegraph/deno/sdk/src/utils/injection_utils.ts b/src/typegraph/deno/src/utils/injection_utils.ts similarity index 100% rename from typegraph/deno/sdk/src/utils/injection_utils.ts rename to src/typegraph/deno/src/utils/injection_utils.ts diff --git a/typegraph/deno/sdk/src/utils/type_utils.ts b/src/typegraph/deno/src/utils/type_utils.ts similarity index 100% rename from typegraph/deno/sdk/src/utils/type_utils.ts rename to src/typegraph/deno/src/utils/type_utils.ts diff --git a/typegraph/deno/sdk/src/wit.ts b/src/typegraph/deno/src/wit.ts similarity index 100% rename from typegraph/deno/sdk/src/wit.ts rename to src/typegraph/deno/src/wit.ts diff --git a/typegraph/python/LICENSE.md b/src/typegraph/python/LICENSE.md similarity index 100% rename from typegraph/python/LICENSE.md rename to src/typegraph/python/LICENSE.md diff --git a/src/typegraph/python/poetry.lock b/src/typegraph/python/poetry.lock new file mode 100644 index 0000000000..da5e5d4f9c --- /dev/null +++ b/src/typegraph/python/poetry.lock @@ -0,0 +1,154 @@ +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. + +[[package]] +name = "astunparse" +version = "1.6.3" +description = "An AST unparser for Python" +optional = false +python-versions = "*" +files = [ + {file = "astunparse-1.6.3-py2.py3-none-any.whl", hash = "sha256:c2652417f2c8b5bb325c885ae329bdf3f86424075c4fd1a128674bc6fba4b8e8"}, + {file = "astunparse-1.6.3.tar.gz", hash = "sha256:5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872"}, +] + +[package.dependencies] +six = ">=1.6.1,<2.0" +wheel = ">=0.23.0,<1.0" + +[[package]] +name = "importlib-resources" +version = "6.4.4" +description = "Read resources from Python packages" +optional = false +python-versions = ">=3.8" +files = [ + {file = "importlib_resources-6.4.4-py3-none-any.whl", hash = "sha256:dda242603d1c9cd836c3368b1174ed74cb4049ecd209e7a1a0104620c18c5c11"}, + {file = "importlib_resources-6.4.4.tar.gz", hash = "sha256:20600c8b7361938dc0bb2d5ec0297802e575df486f5a544fa414da65e13721f7"}, +] + +[package.dependencies] +zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} + +[package.extras] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] +cover = ["pytest-cov"] +doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] +enabler = ["pytest-enabler (>=2.2)"] +test = ["jaraco.test (>=5.4)", "pytest (>=6,!=8.1.*)", "zipp (>=3.17)"] +type = ["pytest-mypy"] + +[[package]] +name = "python-box" +version = "7.2.0" +description = "Advanced Python dictionaries with dot notation access" +optional = false +python-versions = ">=3.8" +files = [ + {file = "python_box-7.2.0-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:6bdeec791e25258351388b3029a3ec5da302bb9ed3be175493c43cdc6c47f5e3"}, + {file = "python_box-7.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c449f7b3756a71479fa9c61a86e344ac00ed782a66d7662590f0afa294249d18"}, + {file = "python_box-7.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:6b0d61f182d394106d963232854e495b51edc178faa5316a797be1178212d7e0"}, + {file = "python_box-7.2.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e2d752de8c1204255bf7b0c814c59ef48293c187a7e9fdcd2fefa28024b72032"}, + {file = "python_box-7.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e8a6c35ea356a386077935958a5debcd5b229b9a1b3b26287a52dfe1a7e65d99"}, + {file = "python_box-7.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:32ed58ec4d9e5475efe69f9c7d773dfea90a6a01979e776da93fd2b0a5d04429"}, + {file = "python_box-7.2.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:2a2d664c6a27f7515469b6f1e461935a2038ee130b7d194b4b4db4e85d363618"}, + {file = "python_box-7.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e8a5a7365db1aaf600d3e8a2747fcf6833beb5d45439a54318548f02e302e3ec"}, + {file = "python_box-7.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:739f827056ea148cbea3122d4617c994e829b420b1331183d968b175304e3a4f"}, + {file = "python_box-7.2.0-cp38-cp38-macosx_11_0_x86_64.whl", hash = "sha256:2617ef3c3d199f55f63c908f540a4dc14ced9b18533a879e6171c94a6a436f23"}, + {file = "python_box-7.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ffd866bed03087b1d8340014da8c3aaae19135767580641df1b4ae6fff6ac0aa"}, + {file = "python_box-7.2.0-cp38-cp38-win_amd64.whl", hash = "sha256:9681f059e7e92bdf20782cd9ea6e533d4711fc7b8c57a462922a025d46add4d0"}, + {file = "python_box-7.2.0-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:6b59b1e2741c9ceecdf5a5bd9b90502c24650e609cd824d434fed3b6f302b7bb"}, + {file = "python_box-7.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e23fae825d809ae7520fdeac88bb52be55a3b63992120a00e381783669edf589"}, + {file = "python_box-7.2.0-cp39-cp39-win_amd64.whl", hash = "sha256:573b1abdcb7bd745fa404444f060ee62fc35a74f067181e55dcb43cfe92f2827"}, + {file = "python_box-7.2.0-py3-none-any.whl", hash = "sha256:a3c90832dd772cb0197fdb5bc06123b6e1b846899a1b53d9c39450d27a584829"}, + {file = "python_box-7.2.0.tar.gz", hash = "sha256:551af20bdab3a60a2a21e3435120453c4ca32f7393787c3a5036e1d9fc6a0ede"}, +] + +[package.extras] +all = ["msgpack", "ruamel.yaml (>=0.17)", "toml"] +msgpack = ["msgpack"] +pyyaml = ["PyYAML"] +ruamel-yaml = ["ruamel.yaml (>=0.17)"] +toml = ["toml"] +tomli = ["tomli", "tomli-w"] +yaml = ["ruamel.yaml (>=0.17)"] + +[[package]] +name = "six" +version = "1.16.0" +description = "Python 2 and 3 compatibility utilities" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +files = [ + {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, + {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, +] + +[[package]] +name = "typing-extensions" +version = "4.12.2" +description = "Backported and Experimental Type Hints for Python 3.8+" +optional = false +python-versions = ">=3.8" +files = [ + {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, + {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, +] + +[[package]] +name = "wasmtime" +version = "21.0.0" +description = "A WebAssembly runtime powered by Wasmtime" +optional = false +python-versions = ">=3.8" +files = [ + {file = "wasmtime-21.0.0-py3-none-any.whl", hash = "sha256:9b7ee9bb6c14586974d34c92bb7f0723161067769233c5dd8ea99c233759b48d"}, + {file = "wasmtime-21.0.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:b10b6ec13fa04fc1d81a4f9b2d244938c67710e9279011e53397bfa071b85b3f"}, + {file = "wasmtime-21.0.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3e245a5c03c1de46cdafcd98da6daa381cadd7bd41aae70d8bef4c8c0ea51798"}, + {file = "wasmtime-21.0.0-py3-none-manylinux1_x86_64.whl", hash = "sha256:6587515be9603f8bb0732f3b508d2034f21d407fd55879c4402032e40e1ddae6"}, + {file = "wasmtime-21.0.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:4b242b065922f65cd40d8cedb3f19269423f28d7955567fe2daca03a44c03446"}, + {file = "wasmtime-21.0.0-py3-none-win_amd64.whl", hash = "sha256:00f929d0caf58a69890df00888f9da12c2aa3ed5af4c8b7b2dca96a4996da731"}, +] + +[package.dependencies] +importlib-resources = ">=5.10" + +[package.extras] +testing = ["componentize-py", "coverage", "pycparser", "pytest", "pytest-mypy"] + +[[package]] +name = "wheel" +version = "0.44.0" +description = "A built-package format for Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "wheel-0.44.0-py3-none-any.whl", hash = "sha256:2376a90c98cc337d18623527a97c31797bd02bad0033d41547043a1cbfbe448f"}, + {file = "wheel-0.44.0.tar.gz", hash = "sha256:a29c3f2817e95ab89aa4660681ad547c0e9547f20e75b0562fe7723c9a2a9d49"}, +] + +[package.extras] +test = ["pytest (>=6.0.0)", "setuptools (>=65)"] + +[[package]] +name = "zipp" +version = "3.20.1" +description = "Backport of pathlib-compatible object wrapper for zip files" +optional = false +python-versions = ">=3.8" +files = [ + {file = "zipp-3.20.1-py3-none-any.whl", hash = "sha256:9960cd8967c8f85a56f920d5d507274e74f9ff813a0ab8889a5b5be2daf44064"}, + {file = "zipp-3.20.1.tar.gz", hash = "sha256:c22b14cc4763c5a5b04134207736c107db42e9d3ef2d9779d465f5f1bcba572b"}, +] + +[package.extras] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] +cover = ["pytest-cov"] +doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] +enabler = ["pytest-enabler (>=2.2)"] +test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] +type = ["pytest-mypy"] + +[metadata] +lock-version = "2.0" +python-versions = ">=3.8,<4.0" +content-hash = "1a8b08df1555b98d2c92c186d3b26d648451538f89f14f8174bf857ea4de8445" diff --git a/typegraph/python/pyproject.toml b/src/typegraph/python/pyproject.toml similarity index 97% rename from typegraph/python/pyproject.toml rename to src/typegraph/python/pyproject.toml index 8c57317346..c1c827138c 100644 --- a/typegraph/python/pyproject.toml +++ b/src/typegraph/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "typegraph" -version = "0.4.8" +version = "0.4.9-rc1" description = "Declarative API development platform. Build backend components with WASM, Typescript and Python, no matter where and how your (legacy) systems are." authors = ["Metatype Contributors "] license = "MPL-2.0" diff --git a/typegraph/python/typegraph/__init__.py b/src/typegraph/python/typegraph/__init__.py similarity index 92% rename from typegraph/python/typegraph/__init__.py rename to src/typegraph/python/typegraph/__init__.py index d64705f1cb..5de5616489 100644 --- a/typegraph/python/typegraph/__init__.py +++ b/src/typegraph/python/typegraph/__init__.py @@ -5,4 +5,4 @@ from typegraph.policy import Policy # noqa from typegraph import effects as fx # noqa -version = "0.4.8" +version = "0.4.9-rc1" diff --git a/typegraph/python/typegraph/deploy/request.py b/src/typegraph/python/typegraph/deploy/request.py similarity index 100% rename from typegraph/python/typegraph/deploy/request.py rename to src/typegraph/python/typegraph/deploy/request.py diff --git a/typegraph/python/typegraph/effects.py b/src/typegraph/python/typegraph/effects.py similarity index 100% rename from typegraph/python/typegraph/effects.py rename to src/typegraph/python/typegraph/effects.py diff --git a/typegraph/python/typegraph/envs/cli.py b/src/typegraph/python/typegraph/envs/cli.py similarity index 100% rename from typegraph/python/typegraph/envs/cli.py rename to src/typegraph/python/typegraph/envs/cli.py diff --git a/typegraph/python/typegraph/g.py b/src/typegraph/python/typegraph/g.py similarity index 100% rename from typegraph/python/typegraph/g.py rename to src/typegraph/python/typegraph/g.py diff --git a/typegraph/python/typegraph/graph/metagen.py b/src/typegraph/python/typegraph/graph/metagen.py similarity index 100% rename from typegraph/python/typegraph/graph/metagen.py rename to src/typegraph/python/typegraph/graph/metagen.py diff --git a/typegraph/python/typegraph/graph/params.py b/src/typegraph/python/typegraph/graph/params.py similarity index 100% rename from typegraph/python/typegraph/graph/params.py rename to src/typegraph/python/typegraph/graph/params.py diff --git a/typegraph/python/typegraph/graph/shared_types.py b/src/typegraph/python/typegraph/graph/shared_types.py similarity index 100% rename from typegraph/python/typegraph/graph/shared_types.py rename to src/typegraph/python/typegraph/graph/shared_types.py diff --git a/typegraph/python/typegraph/graph/tg_artifact_upload.py b/src/typegraph/python/typegraph/graph/tg_artifact_upload.py similarity index 100% rename from typegraph/python/typegraph/graph/tg_artifact_upload.py rename to src/typegraph/python/typegraph/graph/tg_artifact_upload.py diff --git a/typegraph/python/typegraph/graph/tg_deploy.py b/src/typegraph/python/typegraph/graph/tg_deploy.py similarity index 100% rename from typegraph/python/typegraph/graph/tg_deploy.py rename to src/typegraph/python/typegraph/graph/tg_deploy.py diff --git a/typegraph/python/typegraph/graph/tg_manage.py b/src/typegraph/python/typegraph/graph/tg_manage.py similarity index 100% rename from typegraph/python/typegraph/graph/tg_manage.py rename to src/typegraph/python/typegraph/graph/tg_manage.py diff --git a/typegraph/python/typegraph/graph/typegraph.py b/src/typegraph/python/typegraph/graph/typegraph.py similarity index 100% rename from typegraph/python/typegraph/graph/typegraph.py rename to src/typegraph/python/typegraph/graph/typegraph.py diff --git a/typegraph/python/typegraph/host/host.py b/src/typegraph/python/typegraph/host/host.py similarity index 100% rename from typegraph/python/typegraph/host/host.py rename to src/typegraph/python/typegraph/host/host.py diff --git a/typegraph/python/typegraph/injection.py b/src/typegraph/python/typegraph/injection.py similarity index 100% rename from typegraph/python/typegraph/injection.py rename to src/typegraph/python/typegraph/injection.py diff --git a/typegraph/python/typegraph/io.py b/src/typegraph/python/typegraph/io.py similarity index 100% rename from typegraph/python/typegraph/io.py rename to src/typegraph/python/typegraph/io.py diff --git a/typegraph/python/typegraph/policy.py b/src/typegraph/python/typegraph/policy.py similarity index 100% rename from typegraph/python/typegraph/policy.py rename to src/typegraph/python/typegraph/policy.py diff --git a/typegraph/python/typegraph/providers/__init__.py b/src/typegraph/python/typegraph/providers/__init__.py similarity index 100% rename from typegraph/python/typegraph/providers/__init__.py rename to src/typegraph/python/typegraph/providers/__init__.py diff --git a/typegraph/python/typegraph/providers/aws.py b/src/typegraph/python/typegraph/providers/aws.py similarity index 100% rename from typegraph/python/typegraph/providers/aws.py rename to src/typegraph/python/typegraph/providers/aws.py diff --git a/typegraph/python/typegraph/providers/prisma.py b/src/typegraph/python/typegraph/providers/prisma.py similarity index 100% rename from typegraph/python/typegraph/providers/prisma.py rename to src/typegraph/python/typegraph/providers/prisma.py diff --git a/typegraph/python/typegraph/providers/temporal.py b/src/typegraph/python/typegraph/providers/temporal.py similarity index 100% rename from typegraph/python/typegraph/providers/temporal.py rename to src/typegraph/python/typegraph/providers/temporal.py diff --git a/typegraph/python/typegraph/runtimes/__init__.py b/src/typegraph/python/typegraph/runtimes/__init__.py similarity index 100% rename from typegraph/python/typegraph/runtimes/__init__.py rename to src/typegraph/python/typegraph/runtimes/__init__.py diff --git a/typegraph/python/typegraph/runtimes/base.py b/src/typegraph/python/typegraph/runtimes/base.py similarity index 100% rename from typegraph/python/typegraph/runtimes/base.py rename to src/typegraph/python/typegraph/runtimes/base.py diff --git a/typegraph/python/typegraph/runtimes/deno.py b/src/typegraph/python/typegraph/runtimes/deno.py similarity index 100% rename from typegraph/python/typegraph/runtimes/deno.py rename to src/typegraph/python/typegraph/runtimes/deno.py diff --git a/typegraph/python/typegraph/runtimes/graphql.py b/src/typegraph/python/typegraph/runtimes/graphql.py similarity index 100% rename from typegraph/python/typegraph/runtimes/graphql.py rename to src/typegraph/python/typegraph/runtimes/graphql.py diff --git a/typegraph/python/typegraph/runtimes/http.py b/src/typegraph/python/typegraph/runtimes/http.py similarity index 100% rename from typegraph/python/typegraph/runtimes/http.py rename to src/typegraph/python/typegraph/runtimes/http.py diff --git a/typegraph/python/typegraph/runtimes/kv.py b/src/typegraph/python/typegraph/runtimes/kv.py similarity index 100% rename from typegraph/python/typegraph/runtimes/kv.py rename to src/typegraph/python/typegraph/runtimes/kv.py diff --git a/typegraph/python/typegraph/runtimes/python.py b/src/typegraph/python/typegraph/runtimes/python.py similarity index 100% rename from typegraph/python/typegraph/runtimes/python.py rename to src/typegraph/python/typegraph/runtimes/python.py diff --git a/typegraph/python/typegraph/runtimes/random.py b/src/typegraph/python/typegraph/runtimes/random.py similarity index 100% rename from typegraph/python/typegraph/runtimes/random.py rename to src/typegraph/python/typegraph/runtimes/random.py diff --git a/typegraph/python/typegraph/runtimes/substantial.py b/src/typegraph/python/typegraph/runtimes/substantial.py similarity index 100% rename from typegraph/python/typegraph/runtimes/substantial.py rename to src/typegraph/python/typegraph/runtimes/substantial.py diff --git a/typegraph/python/typegraph/runtimes/wasm.py b/src/typegraph/python/typegraph/runtimes/wasm.py similarity index 100% rename from typegraph/python/typegraph/runtimes/wasm.py rename to src/typegraph/python/typegraph/runtimes/wasm.py diff --git a/typegraph/python/typegraph/t.py b/src/typegraph/python/typegraph/t.py similarity index 100% rename from typegraph/python/typegraph/t.py rename to src/typegraph/python/typegraph/t.py diff --git a/typegraph/python/typegraph/utils.py b/src/typegraph/python/typegraph/utils.py similarity index 100% rename from typegraph/python/typegraph/utils.py rename to src/typegraph/python/typegraph/utils.py diff --git a/typegraph/python/typegraph/wit.py b/src/typegraph/python/typegraph/wit.py similarity index 100% rename from typegraph/python/typegraph/wit.py rename to src/typegraph/python/typegraph/wit.py diff --git a/wit/deps.lock b/src/wit/deps.lock similarity index 100% rename from wit/deps.lock rename to src/wit/deps.lock diff --git a/wit/deps.toml b/src/wit/deps.toml similarity index 100% rename from wit/deps.toml rename to src/wit/deps.toml diff --git a/wit/deps/cli/command.wit b/src/wit/deps/cli/command.wit similarity index 100% rename from wit/deps/cli/command.wit rename to src/wit/deps/cli/command.wit diff --git a/wit/deps/cli/environment.wit b/src/wit/deps/cli/environment.wit similarity index 100% rename from wit/deps/cli/environment.wit rename to src/wit/deps/cli/environment.wit diff --git a/wit/deps/cli/exit.wit b/src/wit/deps/cli/exit.wit similarity index 100% rename from wit/deps/cli/exit.wit rename to src/wit/deps/cli/exit.wit diff --git a/wit/deps/cli/imports.wit b/src/wit/deps/cli/imports.wit similarity index 100% rename from wit/deps/cli/imports.wit rename to src/wit/deps/cli/imports.wit diff --git a/wit/deps/cli/run.wit b/src/wit/deps/cli/run.wit similarity index 100% rename from wit/deps/cli/run.wit rename to src/wit/deps/cli/run.wit diff --git a/wit/deps/cli/stdio.wit b/src/wit/deps/cli/stdio.wit similarity index 100% rename from wit/deps/cli/stdio.wit rename to src/wit/deps/cli/stdio.wit diff --git a/wit/deps/cli/terminal.wit b/src/wit/deps/cli/terminal.wit similarity index 100% rename from wit/deps/cli/terminal.wit rename to src/wit/deps/cli/terminal.wit diff --git a/wit/deps/clocks/monotonic-clock.wit b/src/wit/deps/clocks/monotonic-clock.wit similarity index 100% rename from wit/deps/clocks/monotonic-clock.wit rename to src/wit/deps/clocks/monotonic-clock.wit diff --git a/wit/deps/clocks/wall-clock.wit b/src/wit/deps/clocks/wall-clock.wit similarity index 100% rename from wit/deps/clocks/wall-clock.wit rename to src/wit/deps/clocks/wall-clock.wit diff --git a/wit/deps/clocks/world.wit b/src/wit/deps/clocks/world.wit similarity index 100% rename from wit/deps/clocks/world.wit rename to src/wit/deps/clocks/world.wit diff --git a/wit/deps/filesystem/preopens.wit b/src/wit/deps/filesystem/preopens.wit similarity index 100% rename from wit/deps/filesystem/preopens.wit rename to src/wit/deps/filesystem/preopens.wit diff --git a/wit/deps/filesystem/types.wit b/src/wit/deps/filesystem/types.wit similarity index 100% rename from wit/deps/filesystem/types.wit rename to src/wit/deps/filesystem/types.wit diff --git a/wit/deps/filesystem/world.wit b/src/wit/deps/filesystem/world.wit similarity index 100% rename from wit/deps/filesystem/world.wit rename to src/wit/deps/filesystem/world.wit diff --git a/wit/deps/io/error.wit b/src/wit/deps/io/error.wit similarity index 100% rename from wit/deps/io/error.wit rename to src/wit/deps/io/error.wit diff --git a/wit/deps/io/poll.wit b/src/wit/deps/io/poll.wit similarity index 100% rename from wit/deps/io/poll.wit rename to src/wit/deps/io/poll.wit diff --git a/wit/deps/io/streams.wit b/src/wit/deps/io/streams.wit similarity index 100% rename from wit/deps/io/streams.wit rename to src/wit/deps/io/streams.wit diff --git a/wit/deps/io/world.wit b/src/wit/deps/io/world.wit similarity index 100% rename from wit/deps/io/world.wit rename to src/wit/deps/io/world.wit diff --git a/wit/deps/random/insecure-seed.wit b/src/wit/deps/random/insecure-seed.wit similarity index 100% rename from wit/deps/random/insecure-seed.wit rename to src/wit/deps/random/insecure-seed.wit diff --git a/wit/deps/random/insecure.wit b/src/wit/deps/random/insecure.wit similarity index 100% rename from wit/deps/random/insecure.wit rename to src/wit/deps/random/insecure.wit diff --git a/wit/deps/random/random.wit b/src/wit/deps/random/random.wit similarity index 100% rename from wit/deps/random/random.wit rename to src/wit/deps/random/random.wit diff --git a/wit/deps/random/world.wit b/src/wit/deps/random/world.wit similarity index 100% rename from wit/deps/random/world.wit rename to src/wit/deps/random/world.wit diff --git a/wit/deps/sockets/instance-network.wit b/src/wit/deps/sockets/instance-network.wit similarity index 100% rename from wit/deps/sockets/instance-network.wit rename to src/wit/deps/sockets/instance-network.wit diff --git a/wit/deps/sockets/ip-name-lookup.wit b/src/wit/deps/sockets/ip-name-lookup.wit similarity index 100% rename from wit/deps/sockets/ip-name-lookup.wit rename to src/wit/deps/sockets/ip-name-lookup.wit diff --git a/wit/deps/sockets/network.wit b/src/wit/deps/sockets/network.wit similarity index 100% rename from wit/deps/sockets/network.wit rename to src/wit/deps/sockets/network.wit diff --git a/wit/deps/sockets/tcp-create-socket.wit b/src/wit/deps/sockets/tcp-create-socket.wit similarity index 100% rename from wit/deps/sockets/tcp-create-socket.wit rename to src/wit/deps/sockets/tcp-create-socket.wit diff --git a/wit/deps/sockets/tcp.wit b/src/wit/deps/sockets/tcp.wit similarity index 100% rename from wit/deps/sockets/tcp.wit rename to src/wit/deps/sockets/tcp.wit diff --git a/wit/deps/sockets/udp-create-socket.wit b/src/wit/deps/sockets/udp-create-socket.wit similarity index 100% rename from wit/deps/sockets/udp-create-socket.wit rename to src/wit/deps/sockets/udp-create-socket.wit diff --git a/wit/deps/sockets/udp.wit b/src/wit/deps/sockets/udp.wit similarity index 100% rename from wit/deps/sockets/udp.wit rename to src/wit/deps/sockets/udp.wit diff --git a/wit/deps/sockets/world.wit b/src/wit/deps/sockets/world.wit similarity index 100% rename from wit/deps/sockets/world.wit rename to src/wit/deps/sockets/world.wit diff --git a/wit/wit-wire.wit b/src/wit/wit-wire.wit similarity index 100% rename from wit/wit-wire.wit rename to src/wit/wit-wire.wit diff --git a/libs/xtask/Cargo.toml b/src/xtask/Cargo.toml similarity index 52% rename from libs/xtask/Cargo.toml rename to src/xtask/Cargo.toml index a196a45eea..6c2c197412 100644 --- a/libs/xtask/Cargo.toml +++ b/src/xtask/Cargo.toml @@ -1,8 +1,15 @@ [package] name = "xtask" -version = "0.4.8" +version = "0.4.9-rc1" edition = "2021" +# this allows us to exclude the rust files +# from the dockerfile while keeping the Cargo.toml +# for cargo chef. Useful to improve cache hit in docker +[[bin]] +name = "xtask" +path = "src/main.rs" + [dependencies] anyhow.workspace = true clap = { workspace = true, features = ["derive"] } diff --git a/libs/xtask/src/deno.rs b/src/xtask/src/deno.rs similarity index 98% rename from libs/xtask/src/deno.rs rename to src/xtask/src/deno.rs index 2a3ef7e1f5..c757a09264 100644 --- a/libs/xtask/src/deno.rs +++ b/src/xtask/src/deno.rs @@ -65,6 +65,8 @@ impl Test { "deno", "poetry", "xtask", + "env", + "ls", ] .into_iter() .map(str::to_owned) diff --git a/libs/xtask/src/main.rs b/src/xtask/src/main.rs similarity index 100% rename from libs/xtask/src/main.rs rename to src/xtask/src/main.rs diff --git a/typegate/tests/artifacts/artifacts_test.ts b/tests/artifacts/artifacts_test.ts similarity index 96% rename from typegate/tests/artifacts/artifacts_test.ts rename to tests/artifacts/artifacts_test.ts index fb3c0231a8..cf88e10768 100644 --- a/typegate/tests/artifacts/artifacts_test.ts +++ b/tests/artifacts/artifacts_test.ts @@ -2,16 +2,16 @@ // SPDX-License-Identifier: Elastic-2.0 import { Meta } from "test-utils/mod.ts"; -import { join } from "std/path/join.ts"; -import { exists } from "std/fs/exists.ts"; -import { assert, assertFalse } from "std/assert/mod.ts"; +import { join } from "@std/path/join"; +import { exists } from "@std/fs/exists"; +import { assert, assertFalse } from "@std/assert"; import { connect } from "redis"; import { S3Client } from "aws-sdk/client-s3"; import { createBucket, hasObject, tryDeleteBucket } from "test-utils/s3.ts"; import { REDIS_REF_COUNTER, resolveS3Key, -} from "@typegate/typegate/artifacts/shared.ts"; +} from "@metatype/typegate/typegate/artifacts/shared.ts"; import { MetaTest } from "../utils/test.ts"; const syncConfig = { diff --git a/typegate/tests/auth/auth.py b/tests/auth/auth.py similarity index 100% rename from typegate/tests/auth/auth.py rename to tests/auth/auth.py diff --git a/typegate/tests/auth/auth_test.ts b/tests/auth/auth_test.ts similarity index 96% rename from typegate/tests/auth/auth_test.ts rename to tests/auth/auth_test.ts index 0476d4eb53..830066e01f 100644 --- a/typegate/tests/auth/auth_test.ts +++ b/tests/auth/auth_test.ts @@ -1,15 +1,15 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assertEquals, assertStringIncludes } from "std/assert/mod.ts"; +import { assertEquals, assertStringIncludes } from "@std/assert"; import { execute, gql, Meta, sleep } from "../utils/mod.ts"; import * as mf from "test/mock_fetch"; -import { randomUUID } from "../../src/crypto.ts"; -import { nextAuthorizationHeader } from "../../src/services/auth/mod.ts"; -import { JWTClaims } from "../../src/services/auth/mod.ts"; -import { getSetCookies } from "std/http/cookie.ts"; -import { b64decode } from "../../src/utils.ts"; +import { randomUUID } from "@metatype/typegate/crypto.ts"; +import { nextAuthorizationHeader } from "@metatype/typegate/services/auth/mod.ts"; +import { JWTClaims } from "@metatype/typegate/services/auth/mod.ts"; +import { getSetCookies } from "@std/http/cookie"; +import { b64decode } from "@metatype/typegate/utils.ts"; Meta.test("Auth", async (t) => { const typegate = t.typegate; diff --git a/typegate/tests/auto/__snapshots__/auto_test.ts.snap b/tests/auto/__snapshots__/auto_test.ts.snap similarity index 100% rename from typegate/tests/auto/__snapshots__/auto_test.ts.snap rename to tests/auto/__snapshots__/auto_test.ts.snap diff --git a/typegate/tests/auto/auto_test.ts_ b/tests/auto/auto_test.ts_ similarity index 83% rename from typegate/tests/auto/auto_test.ts_ rename to tests/auto/auto_test.ts_ index 52043b5bb5..9f956d595b 100644 --- a/typegate/tests/auto/auto_test.ts_ +++ b/tests/auto/auto_test.ts_ @@ -8,6 +8,6 @@ const localDir = dirname(fromFileUrl(import.meta.url)); await Meta.autoTest(localDir); -const websiteDir = join(localDir, "../../../website"); +const websiteDir = join(localDir, "../../../docs/metatype.dev"); await Meta.autoTest(websiteDir); diff --git a/typegate/tests/auto/test/test-1.graphql b/tests/auto/test/test-1.graphql similarity index 100% rename from typegate/tests/auto/test/test-1.graphql rename to tests/auto/test/test-1.graphql diff --git a/typegate/tests/auto/test/test.py b/tests/auto/test/test.py similarity index 100% rename from typegate/tests/auto/test/test.py rename to tests/auto/test/test.py diff --git a/typegate/tests/common_utils/proposition_test.ts b/tests/common_utils/proposition_test.ts similarity index 91% rename from typegate/tests/common_utils/proposition_test.ts rename to tests/common_utils/proposition_test.ts index d075e856b2..fa891fb704 100644 --- a/typegate/tests/common_utils/proposition_test.ts +++ b/tests/common_utils/proposition_test.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assertEquals } from "std/assert/mod.ts"; -import { closestWord } from "../../src/utils.ts"; +import { assertEquals } from "@std/assert"; +import { closestWord } from "@metatype/typegate/utils.ts"; Deno.test("closest word proposition", async (t) => { await t.step("basic edgecases", () => { assertEquals(closestWord("", []), null); diff --git a/typegate/tests/common_utils/url_test.ts b/tests/common_utils/url_test.ts similarity index 91% rename from typegate/tests/common_utils/url_test.ts rename to tests/common_utils/url_test.ts index 297d45ee92..85f8892759 100644 --- a/typegate/tests/common_utils/url_test.ts +++ b/tests/common_utils/url_test.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assertEquals } from "std/assert/mod.ts"; -import { createUrl } from "../../src/utils.ts"; +import { assertEquals } from "@std/assert"; +import { createUrl } from "@metatype/typegate/utils.ts"; Deno.test("createUrl behavior", async (t) => { await t.step("append path and remove dbl slashes", () => { const base = "https://example.com"; diff --git a/typegate/tests/crypto/crypto_test.ts b/tests/crypto/crypto_test.ts similarity index 86% rename from typegate/tests/crypto/crypto_test.ts rename to tests/crypto/crypto_test.ts index bedfe6b07b..a77acc2472 100644 --- a/typegate/tests/crypto/crypto_test.ts +++ b/tests/crypto/crypto_test.ts @@ -4,9 +4,9 @@ import { defaultTypegateConfigBase, getTypegateConfig, -} from "../../src/config.ts"; -import { TypegateCryptoKeys, unsafeExtractJWT } from "../../src/crypto.ts"; -import { assertEquals } from "std/assert/mod.ts"; +} from "@metatype/typegate/config.ts"; +import { TypegateCryptoKeys, unsafeExtractJWT } from "@metatype/typegate/crypto.ts"; +import { assertEquals } from "@std/assert"; const gateConfig = getTypegateConfig({ base: defaultTypegateConfigBase, diff --git a/tests/deno.jsonc b/tests/deno.jsonc new file mode 100644 index 0000000000..caaf1241d4 --- /dev/null +++ b/tests/deno.jsonc @@ -0,0 +1,29 @@ +{ + "imports": { + "@typegraph/sdk/": "../src/typegraph/deno/src/", + "@local/tools/": "../tools/", + "@metatype/typegate/": "../src/typegate/src/", + "@std/async": "jsr:@std/async@^1.0.3", + "@std/testing": "jsr:@std/testing@^1.0.1", + "@std/yaml": "jsr:@std/yaml@^1.0.4", + "ajv": "https://esm.sh/ajv@8.12.0?pin=v131", + "download": "https://deno.land/x/download@v1.0.1/mod.ts", + "json-schema-faker": "npm:json-schema-faker@0.5.3", + "outdent": "https://deno.land/x/outdent@v0.8.0/mod.ts", + "pg": "npm:pg@8.12.0", + "test-utils/": "./utils/", + "test/mock_fetch": "./utils/mock_fetch.ts" + }, + "exclude": [ + "e2e/nextjs/apollo", + "runtimes/temporal/worker" + ], + "lint": { + "rules": { + "include": [], + "exclude": [ + "no-explicit-any" + ] + } + } +} diff --git a/typegate/tests/docs/how-tos/prog_deploy/prog_deploy.py b/tests/docs/how-tos/prog_deploy/prog_deploy.py similarity index 100% rename from typegate/tests/docs/how-tos/prog_deploy/prog_deploy.py rename to tests/docs/how-tos/prog_deploy/prog_deploy.py diff --git a/typegate/tests/docs/how-tos/prog_deploy/prog_deploy.ts b/tests/docs/how-tos/prog_deploy/prog_deploy.ts similarity index 97% rename from typegate/tests/docs/how-tos/prog_deploy/prog_deploy.ts rename to tests/docs/how-tos/prog_deploy/prog_deploy.ts index 18af462c04..e19234d1e8 100644 --- a/typegate/tests/docs/how-tos/prog_deploy/prog_deploy.ts +++ b/tests/docs/how-tos/prog_deploy/prog_deploy.ts @@ -5,6 +5,7 @@ import { Policy, t, typegraph } from "@typegraph/sdk/index.ts"; import { DenoRuntime } from "@typegraph/sdk/runtimes/deno.ts"; +// deno-lint-ignore no-external-import import * as path from "node:path"; import { BasicAuth, tgDeploy } from "@typegraph/sdk/tg_deploy.ts"; diff --git a/typegate/tests/docs/how-tos/prog_deploy/prog_deploy_test.ts b/tests/docs/how-tos/prog_deploy/prog_deploy_test.ts similarity index 96% rename from typegate/tests/docs/how-tos/prog_deploy/prog_deploy_test.ts rename to tests/docs/how-tos/prog_deploy/prog_deploy_test.ts index b769749023..e9f11bdbee 100644 --- a/typegate/tests/docs/how-tos/prog_deploy/prog_deploy_test.ts +++ b/tests/docs/how-tos/prog_deploy/prog_deploy_test.ts @@ -3,8 +3,8 @@ import { Meta } from "test-utils/mod.ts"; import { MetaTest } from "../../../utils/test.ts"; -import * as path from "std/path/mod.ts"; -import { assertEquals, assertExists } from "std/assert/mod.ts"; +import * as path from "@std/path"; +import { assertEquals, assertExists } from "@std/assert"; Meta.test( { diff --git a/typegate/tests/docs/how-tos/prog_deploy/prog_remove.py b/tests/docs/how-tos/prog_deploy/prog_remove.py similarity index 100% rename from typegate/tests/docs/how-tos/prog_deploy/prog_remove.py rename to tests/docs/how-tos/prog_deploy/prog_remove.py diff --git a/typegate/tests/docs/how-tos/prog_deploy/prog_remove.ts b/tests/docs/how-tos/prog_deploy/prog_remove.ts similarity index 100% rename from typegate/tests/docs/how-tos/prog_deploy/prog_remove.ts rename to tests/docs/how-tos/prog_deploy/prog_remove.ts diff --git a/typegate/tests/docs/how-tos/prog_deploy/scripts/say_hello.ts b/tests/docs/how-tos/prog_deploy/scripts/say_hello.ts similarity index 100% rename from typegate/tests/docs/how-tos/prog_deploy/scripts/say_hello.ts rename to tests/docs/how-tos/prog_deploy/scripts/say_hello.ts diff --git a/typegate/tests/e2e/cli/.gitignore b/tests/e2e/cli/.gitignore similarity index 100% rename from typegate/tests/e2e/cli/.gitignore rename to tests/e2e/cli/.gitignore diff --git a/typegate/tests/e2e/cli/deploy_test.ts b/tests/e2e/cli/deploy_test.ts similarity index 99% rename from typegate/tests/e2e/cli/deploy_test.ts rename to tests/e2e/cli/deploy_test.ts index e70965b598..e9978d70c6 100644 --- a/typegate/tests/e2e/cli/deploy_test.ts +++ b/tests/e2e/cli/deploy_test.ts @@ -4,7 +4,7 @@ import { gql, Meta } from "../../utils/mod.ts"; import { TestModule } from "../../utils/test_module.ts"; import { dropSchemas, removeMigrations } from "test-utils/migrations.ts"; -import { assertRejects, assertStringIncludes } from "std/assert/mod.ts"; +import { assertRejects, assertStringIncludes } from "@std/assert"; import { randomPGConnStr, reset } from "test-utils/database.ts"; const m = new TestModule(import.meta); diff --git a/typegate/tests/e2e/cli/dev_test.ts b/tests/e2e/cli/dev_test.ts similarity index 95% rename from typegate/tests/e2e/cli/dev_test.ts rename to tests/e2e/cli/dev_test.ts index 6ca2ba337f..b3b8a657d1 100644 --- a/typegate/tests/e2e/cli/dev_test.ts +++ b/tests/e2e/cli/dev_test.ts @@ -2,11 +2,11 @@ // SPDX-License-Identifier: Elastic-2.0 import { gql, Meta } from "test-utils/mod.ts"; -import { join, resolve } from "std/path/mod.ts"; -import { assert, assertEquals, assertRejects } from "std/assert/mod.ts"; +import { join, resolve } from "@std/path"; +import { assert, assertEquals, assertRejects } from "@std/assert"; import { randomSchema, reset } from "test-utils/database.ts"; import { TestModule } from "test-utils/test_module.ts"; -import { $ } from "dax"; +import { $ } from "@david/dax"; import { killProcess, Lines, LineWriter } from "../../utils/process.ts"; import { workspaceDir } from "../../utils/dir.ts"; @@ -34,7 +34,7 @@ async function writeTypegraph(version: number | null, target = "migration.py") { Meta.test( { - // FIXME: + // FIXME: MET-622 ignore: true, name: "meta dev: choose to reset the database", gitRepo: { @@ -258,7 +258,9 @@ Meta.test( const examplesDir = $.path(workspaceDir).join("examples"); -Meta.test("meta dev with typegate", async (t) => { +Meta.test({ + name: "meta dev with typegate", +}, async (t) => { await $`bash build.sh`.cwd(examplesDir.join("typegraphs/metagen/rs")); const port = String(t.port + 1); @@ -267,15 +269,15 @@ Meta.test("meta dev with typegate", async (t) => { args: [ "dev", `--main-url`, - import.meta.resolve("../../../src/main.ts"), - `--import-map-url`, - import.meta.resolve("../../../import_map.json"), + import.meta.resolve("../../../src/typegate/src/main.ts"), + `--deno-config-url`, + import.meta.resolve("../../../src/typegate/deno.jsonc"), `--gate=http://localhost:${port}`, ], stdout: "piped", stderr: "piped", env: { - MCLI_LOADER_CMD: "deno run -A --config deno.json", + MCLI_LOADER_CMD: "deno run -A --config deno.jsonc", }, }).spawn(); const stderr = new Lines(metadev.stderr); diff --git a/typegate/tests/e2e/cli/select.sh b/tests/e2e/cli/select.sh similarity index 100% rename from typegate/tests/e2e/cli/select.sh rename to tests/e2e/cli/select.sh diff --git a/typegate/tests/e2e/cli/templates/migration.py b/tests/e2e/cli/templates/migration.py similarity index 100% rename from typegate/tests/e2e/cli/templates/migration.py rename to tests/e2e/cli/templates/migration.py diff --git a/typegate/tests/e2e/cli/undeploy_test.ts b/tests/e2e/cli/undeploy_test.ts similarity index 100% rename from typegate/tests/e2e/cli/undeploy_test.ts rename to tests/e2e/cli/undeploy_test.ts diff --git a/typegate/tests/e2e/nextjs/apollo/.eslintrc.json b/tests/e2e/nextjs/apollo/.eslintrc.json similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/.eslintrc.json rename to tests/e2e/nextjs/apollo/.eslintrc.json diff --git a/typegate/tests/e2e/nextjs/apollo/.gitignore b/tests/e2e/nextjs/apollo/.gitignore similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/.gitignore rename to tests/e2e/nextjs/apollo/.gitignore diff --git a/typegate/tests/e2e/nextjs/apollo/app/favicon.ico b/tests/e2e/nextjs/apollo/app/favicon.ico similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/app/favicon.ico rename to tests/e2e/nextjs/apollo/app/favicon.ico diff --git a/typegate/tests/e2e/nextjs/apollo/app/layout.tsx b/tests/e2e/nextjs/apollo/app/layout.tsx similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/app/layout.tsx rename to tests/e2e/nextjs/apollo/app/layout.tsx diff --git a/typegate/tests/e2e/nextjs/apollo/app/page.tsx b/tests/e2e/nextjs/apollo/app/page.tsx similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/app/page.tsx rename to tests/e2e/nextjs/apollo/app/page.tsx diff --git a/typegate/tests/e2e/nextjs/apollo/next.config.js b/tests/e2e/nextjs/apollo/next.config.js similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/next.config.js rename to tests/e2e/nextjs/apollo/next.config.js diff --git a/typegate/tests/e2e/nextjs/apollo/package.json b/tests/e2e/nextjs/apollo/package.json similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/package.json rename to tests/e2e/nextjs/apollo/package.json diff --git a/typegate/tests/e2e/nextjs/apollo/pages/api/apollo.ts b/tests/e2e/nextjs/apollo/pages/api/apollo.ts similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/pages/api/apollo.ts rename to tests/e2e/nextjs/apollo/pages/api/apollo.ts diff --git a/typegate/tests/e2e/nextjs/apollo/pnpm-lock.yaml b/tests/e2e/nextjs/apollo/pnpm-lock.yaml similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/pnpm-lock.yaml rename to tests/e2e/nextjs/apollo/pnpm-lock.yaml diff --git a/typegate/tests/e2e/nextjs/apollo/postcss.config.js b/tests/e2e/nextjs/apollo/postcss.config.js similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/postcss.config.js rename to tests/e2e/nextjs/apollo/postcss.config.js diff --git a/typegate/tests/e2e/nextjs/apollo/public/.keep b/tests/e2e/nextjs/apollo/public/.keep similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/public/.keep rename to tests/e2e/nextjs/apollo/public/.keep diff --git a/typegate/tests/e2e/nextjs/apollo/tailwind.config.ts b/tests/e2e/nextjs/apollo/tailwind.config.ts similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/tailwind.config.ts rename to tests/e2e/nextjs/apollo/tailwind.config.ts diff --git a/typegate/tests/e2e/nextjs/apollo/tsconfig.json b/tests/e2e/nextjs/apollo/tsconfig.json similarity index 100% rename from typegate/tests/e2e/nextjs/apollo/tsconfig.json rename to tests/e2e/nextjs/apollo/tsconfig.json diff --git a/typegate/tests/e2e/nextjs/apollo_test.ts b/tests/e2e/nextjs/apollo_test.ts similarity index 97% rename from typegate/tests/e2e/nextjs/apollo_test.ts rename to tests/e2e/nextjs/apollo_test.ts index d164709244..fd7437109f 100644 --- a/typegate/tests/e2e/nextjs/apollo_test.ts +++ b/tests/e2e/nextjs/apollo_test.ts @@ -10,9 +10,9 @@ import { } from "aws-sdk/client-s3"; import { TestModule } from "test-utils/test_module.ts"; import { testDir } from "test-utils/dir.ts"; -import { join } from "std/path/mod.ts"; -import { assertEquals } from "std/assert/assert_equals.ts"; -import { TextLineStream } from "std/streams/text_line_stream.ts"; +import { join } from "@std/path"; +import { assertEquals } from "@std/assert/equals"; +import { TextLineStream } from "@std/streams/text-line-stream"; const HOST = "http://localhost:9000"; const REGION = "local"; diff --git a/typegate/tests/e2e/nextjs/typegraph/apollo.py b/tests/e2e/nextjs/typegraph/apollo.py similarity index 100% rename from typegate/tests/e2e/nextjs/typegraph/apollo.py rename to tests/e2e/nextjs/typegraph/apollo.py diff --git a/typegate/tests/e2e/published/published_test.ts b/tests/e2e/published/published_test.ts similarity index 87% rename from typegate/tests/e2e/published/published_test.ts rename to tests/e2e/published/published_test.ts index 67b97e6189..02cee3f80e 100644 --- a/typegate/tests/e2e/published/published_test.ts +++ b/tests/e2e/published/published_test.ts @@ -2,19 +2,19 @@ // SPDX-License-Identifier: Elastic-2.0 import { Meta } from "test-utils/mod.ts"; -import { projectDir } from "@dev/utils.ts"; -import { $ } from "@dev/deps.ts"; -import { PUBLISHED_VERSION, PYTHON_VERSION } from "@dev/consts.ts"; +import { projectDir } from "@local/tools/utils.ts"; +import { $ } from "@local/tools/deps.ts"; +import { PUBLISHED_VERSION, PYTHON_VERSION } from "@local/tools/consts.ts"; import { download } from "download"; -import { Untar } from "std/archive/untar.ts"; -import { readerFromIterable } from "std/streams/mod.ts"; -import { copy } from "std/io/copy.ts"; -import { encodeBase64 } from "std/encoding/base64.ts"; +import { Untar } from "@std/archive"; +import { copy } from "@std/io/copy"; +import { readerFromStreamReader } from "@std/io"; +import { encodeBase64 } from "@std/encoding/base64"; import { Lines } from "test-utils/process.ts"; import { newTempDir } from "test-utils/dir.ts"; -import { transformSyncConfig } from "@typegate/config.ts"; +import { transformSyncConfig } from "@metatype/typegate/config.ts"; import { clearSyncData, setupSync } from "test-utils/hooks.ts"; -import { assertEquals } from "std/assert/mod.ts"; +import { assertEquals } from "@std/assert"; const previousVersion = PUBLISHED_VERSION; @@ -46,14 +46,10 @@ const syncConfig = transformSyncConfig({ console.log(syncConfig); // TODO remove after the next release -// These typegates are disabled because a compatibity issue on the pyrt wasm: -// Module was WebAssembly backtrace support but it is enabled for the host +// The build.rs script now uses a META_CMD env var allowing us +// to use meta-old const disabled = [ - "quick-start-project.ts", - "faas-runner.ts", - "microservice-orchestration.ts", "metagen-rs.ts", - "metagen-py.ts", ]; async function checkMetaBin(path: typeof tempDir, version: string) { @@ -92,10 +88,8 @@ export async function downloadAndExtractCli(version: string) { }); const archivePath = tempDir.join(archiveName); using file = await Deno.open(archivePath.toString()); - const reader = readerFromIterable( - file.readable.pipeThrough(new DecompressionStream("gzip")), - ); - const untar = new Untar(reader); + const reader = file.readable.pipeThrough(new DecompressionStream("gzip")); + const untar = new Untar(readerFromStreamReader(reader.getReader())); await extractTargetDir.ensureDir(); @@ -133,7 +127,7 @@ Meta.test( }, }, async (t) => { - let publishedBin: string = ""; + let publishedBin = ""; await t.should("download published cli (fat version)", async () => { publishedBin = await downloadAndExtractCli(previousVersion); }); @@ -145,12 +139,16 @@ Meta.test( const typegateTempDir = await newTempDir(); const repoDir = await newTempDir(); - const examplesDir = $.path(await newTempDir()); + const examplesDir = $.path( + await newTempDir({ + dir: undefined, + }), + ); t.addCleanup(async () => { await $.co([ $.removeIfExists(typegateTempDir), $.removeIfExists(repoDir), - $.removeIfExists(examplesDir), + // $.removeIfExists(examplesDir), ]); }); @@ -245,9 +243,9 @@ Meta.test( args: [ "typegate", `--main-url`, - import.meta.resolve("../../../src/main.ts"), - `--import-map-url`, - import.meta.resolve("../../../import_map.json"), + import.meta.resolve("../../../src/typegate/src/main.ts"), + `--deno-config-url`, + import.meta.resolve("../../../src/typegate/deno.jsonc"), ], env: { ...Deno.env.toObject(), @@ -299,7 +297,7 @@ Meta.test( }, }, async (t) => { - let publishedBin: string = ""; + let publishedBin = ""; await t.should("download published cli (fat version)", async () => { publishedBin = await downloadAndExtractCli(previousVersion); }); @@ -339,8 +337,12 @@ Meta.test( return !line.includes(`typegate ready on ${port}`); }); - const tgsDir = $.path(await newTempDir()); - t.addCleanup(() => $.removeIfExists(tgsDir)); + const tgsDir = $.path( + await newTempDir({ + dir: undefined, + }), + ); + // t.addCleanup(() => $.removeIfExists(tgsDir)); await tgsDir.join("metatype.yml").writeText(` typegates: @@ -361,9 +363,10 @@ typegraphs: await t.should("work with JSR npm", async () => { const npmJsrDir = await tgsDir.join("npm_jsr").ensureDir(); await $`pnpm init`.cwd(npmJsrDir); - await $`pnpm dlx jsr add @typegraph/sdk@${PUBLISHED_VERSION}`.cwd( - npmJsrDir, - ); + await $`pnpm --package=jsr dlx jsr add @typegraph/sdk@${PUBLISHED_VERSION}` + .cwd( + npmJsrDir, + ); await $.co([ $.path("examples/typegraphs/func.ts").copy(npmJsrDir.join("tg.ts")), $.path("examples/typegraphs/scripts").copyToDir(npmJsrDir), @@ -383,7 +386,7 @@ typegraphs: await $`bash -c ${command}` .cwd(npmJsrDir) .env("PATH", `${metaBinDir}:${Deno.env.get("PATH")}`) - .env("MCLI_LOADER_CMD", "pnpm dlx tsx") + .env("MCLI_LOADER_CMD", "pnpm --package=tsx dlx tsx") .env("RUST_LOG", "trace"); }); @@ -403,6 +406,7 @@ typegraphs: await $`bash -c ${command}` .cwd(denoJsrDir) .env("PATH", `${metaBinDir}:${Deno.env.get("PATH")}`) + // FIXME: rename to deno.jsonc on bump 0.4.9 .env("MCLI_LOADER_CMD", `deno run -A --config deno.json`) .env("RUST_LOG", "trace"); }); @@ -415,13 +419,17 @@ typegraphs: pypaDir, ); await $.co([ - $`bash -c 'poetry env use python && poetry install'`.cwd(pypaDir), + pypaDir.join("README.md").ensureFile(), + $`bash -c 'python3 -m venv .venv && source .venv/bin/activate && poetry install --no-root'` + .cwd( + pypaDir, + ), $.path("examples/typegraphs/func.py").copy(pypaDir.join("tg.py")), $.path("examples/typegraphs/scripts").copyToDir(pypaDir), ]); - const command = - `poetry env use python && meta-old deploy --target dev --allow-dirty --gate http://localhost:${port} -vvv -f tg.py`; + const command = `source .venv/bin/activate &&` + + ` ${metaBinDir}/meta-old deploy --target dev --allow-dirty --gate http://localhost:${port} -vvv -f tg.py`; await $`bash -c ${command}` .cwd(pypaDir) .env("PATH", `${metaBinDir}:${Deno.env.get("PATH")}`) diff --git a/typegate/tests/e2e/self_deploy/scripts/main.ts b/tests/e2e/self_deploy/scripts/main.ts similarity index 100% rename from typegate/tests/e2e/self_deploy/scripts/main.ts rename to tests/e2e/self_deploy/scripts/main.ts diff --git a/typegate/tests/e2e/self_deploy/self_deploy.ts b/tests/e2e/self_deploy/self_deploy.ts similarity index 100% rename from typegate/tests/e2e/self_deploy/self_deploy.ts rename to tests/e2e/self_deploy/self_deploy.ts diff --git a/typegate/tests/e2e/self_deploy/self_deploy_test.ts b/tests/e2e/self_deploy/self_deploy_test.ts similarity index 90% rename from typegate/tests/e2e/self_deploy/self_deploy_test.ts rename to tests/e2e/self_deploy/self_deploy_test.ts index 9188e942e6..933cee8668 100644 --- a/typegate/tests/e2e/self_deploy/self_deploy_test.ts +++ b/tests/e2e/self_deploy/self_deploy_test.ts @@ -5,9 +5,9 @@ import { BasicAuth, tgDeploy, tgRemove } from "@typegraph/sdk/tg_deploy.ts"; import { Meta } from "test-utils/mod.ts"; import { tg } from "./self_deploy.ts"; import { testDir } from "test-utils/dir.ts"; -import { join } from "std/path/join.ts"; -import { assertEquals, assertExists } from "std/assert/mod.ts"; -import * as path from "std/path/mod.ts"; +import { join } from "@std/path/join"; +import { assertEquals, assertExists } from "@std/assert"; +import * as path from "@std/path"; Meta.test( { diff --git a/typegate/tests/e2e/templates/templates_test.ts b/tests/e2e/templates/templates_test.ts similarity index 90% rename from typegate/tests/e2e/templates/templates_test.ts rename to tests/e2e/templates/templates_test.ts index 6902b44064..61899d1adb 100644 --- a/typegate/tests/e2e/templates/templates_test.ts +++ b/tests/e2e/templates/templates_test.ts @@ -3,9 +3,9 @@ import { Meta } from "test-utils/mod.ts"; import { newTempDir, workspaceDir } from "test-utils/dir.ts"; -import { exists, expandGlob } from "std/fs/mod.ts"; -import { join } from "std/path/mod.ts"; -import { assert } from "std/assert/mod.ts"; +import { exists, expandGlob } from "@std/fs"; +import { join } from "@std/path"; +import { assert } from "@std/assert"; import { shell } from "test-utils/shell.ts"; type LangRuntimeConfig = { @@ -19,8 +19,7 @@ const envs = { RUST_LOG: "trace", }, deno: { - MCLI_LOADER_CMD: - "deno run -A --import-map=../../typegate/import_map.json {filepath}", + MCLI_LOADER_CMD: "deno run -A {filepath}", RUST_LOG: "trace", }, node: { @@ -61,7 +60,7 @@ const install = { await shell("pnpm install".split(/\s+/), opt); // Use local node - const localNodeSdk = join(dir, "../../typegraph/node"); + const localNodeSdk = join(dir, "../../src/typegraph/node"); if (!(await exists(localNodeSdk))) { throw new Error(`Node sdk not found at ${localNodeSdk}`); } diff --git a/typegate/tests/e2e/typegraph/__snapshots__/typegraph_test.ts.snap b/tests/e2e/typegraph/__snapshots__/typegraph_test.ts.snap similarity index 100% rename from typegate/tests/e2e/typegraph/__snapshots__/typegraph_test.ts.snap rename to tests/e2e/typegraph/__snapshots__/typegraph_test.ts.snap diff --git a/typegate/tests/e2e/typegraph/__snapshots__/validator_test.ts.snap b/tests/e2e/typegraph/__snapshots__/validator_test.ts.snap similarity index 100% rename from typegate/tests/e2e/typegraph/__snapshots__/validator_test.ts.snap rename to tests/e2e/typegraph/__snapshots__/validator_test.ts.snap diff --git a/typegate/tests/e2e/typegraph/typegraph_test.ts b/tests/e2e/typegraph/typegraph_test.ts similarity index 88% rename from typegate/tests/e2e/typegraph/typegraph_test.ts rename to tests/e2e/typegraph/typegraph_test.ts index 6319e27574..203cdce594 100644 --- a/typegate/tests/e2e/typegraph/typegraph_test.ts +++ b/tests/e2e/typegraph/typegraph_test.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { expandGlob } from "std/fs/expand_glob.ts"; -import { dirname, fromFileUrl } from "std/path/mod.ts"; +import { expandGlob } from "@std/fs/expand-glob"; +import { dirname, fromFileUrl } from "@std/path"; import { Meta } from "../../utils/mod.ts"; import { MetaTest } from "../../utils/test.ts"; diff --git a/typegate/tests/e2e/typegraph/typegraphs/deno/complex.ts b/tests/e2e/typegraph/typegraphs/deno/complex.ts similarity index 100% rename from typegate/tests/e2e/typegraph/typegraphs/deno/complex.ts rename to tests/e2e/typegraph/typegraphs/deno/complex.ts diff --git a/typegate/tests/e2e/typegraph/typegraphs/deno/multiple_runtimes.ts b/tests/e2e/typegraph/typegraphs/deno/multiple_runtimes.ts similarity index 100% rename from typegate/tests/e2e/typegraph/typegraphs/deno/multiple_runtimes.ts rename to tests/e2e/typegraph/typegraphs/deno/multiple_runtimes.ts diff --git a/typegate/tests/e2e/typegraph/typegraphs/deno/scripts/three.ts b/tests/e2e/typegraph/typegraphs/deno/scripts/three.ts similarity index 100% rename from typegate/tests/e2e/typegraph/typegraphs/deno/scripts/three.ts rename to tests/e2e/typegraph/typegraphs/deno/scripts/three.ts diff --git a/typegate/tests/e2e/typegraph/typegraphs/deno/simple.ts b/tests/e2e/typegraph/typegraphs/deno/simple.ts similarity index 100% rename from typegate/tests/e2e/typegraph/typegraphs/deno/simple.ts rename to tests/e2e/typegraph/typegraphs/deno/simple.ts diff --git a/typegate/tests/e2e/typegraph/typegraphs/python/complex.py b/tests/e2e/typegraph/typegraphs/python/complex.py similarity index 100% rename from typegate/tests/e2e/typegraph/typegraphs/python/complex.py rename to tests/e2e/typegraph/typegraphs/python/complex.py diff --git a/typegate/tests/e2e/typegraph/typegraphs/python/multiple_runtimes.py b/tests/e2e/typegraph/typegraphs/python/multiple_runtimes.py similarity index 100% rename from typegate/tests/e2e/typegraph/typegraphs/python/multiple_runtimes.py rename to tests/e2e/typegraph/typegraphs/python/multiple_runtimes.py diff --git a/typegate/tests/e2e/typegraph/typegraphs/python/scripts/three.ts b/tests/e2e/typegraph/typegraphs/python/scripts/three.ts similarity index 100% rename from typegate/tests/e2e/typegraph/typegraphs/python/scripts/three.ts rename to tests/e2e/typegraph/typegraphs/python/scripts/three.ts diff --git a/typegate/tests/e2e/typegraph/typegraphs/python/simple.py b/tests/e2e/typegraph/typegraphs/python/simple.py similarity index 100% rename from typegate/tests/e2e/typegraph/typegraphs/python/simple.py rename to tests/e2e/typegraph/typegraphs/python/simple.py diff --git a/typegate/tests/e2e/typegraph/validator.py b/tests/e2e/typegraph/validator.py similarity index 100% rename from typegate/tests/e2e/typegraph/validator.py rename to tests/e2e/typegraph/validator.py diff --git a/typegate/tests/e2e/typegraph/validator_test.ts b/tests/e2e/typegraph/validator_test.ts similarity index 95% rename from typegate/tests/e2e/typegraph/validator_test.ts rename to tests/e2e/typegraph/validator_test.ts index b43dad53cb..b86a816488 100644 --- a/typegate/tests/e2e/typegraph/validator_test.ts +++ b/tests/e2e/typegraph/validator_test.ts @@ -3,7 +3,7 @@ import { TestModule } from "test-utils/test_module.ts"; import { Meta } from "test-utils/mod.ts"; -import { fail } from "std/assert/mod.ts"; +import { fail } from "@std/assert"; const m = new TestModule(import.meta); diff --git a/typegate/tests/e2e/website/website_test.ts b/tests/e2e/website/website_test.ts similarity index 87% rename from typegate/tests/e2e/website/website_test.ts rename to tests/e2e/website/website_test.ts index 82c288c6a0..9279fe63e9 100644 --- a/typegate/tests/e2e/website/website_test.ts +++ b/tests/e2e/website/website_test.ts @@ -1,12 +1,12 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { expandGlob } from "std/fs/expand_glob.ts"; -import { basename, dirname, fromFileUrl, join } from "std/path/mod.ts"; -import { Meta } from "../../utils/mod.ts"; -import { MetaTest } from "../../utils/test.ts"; -import { assertEquals } from "std/assert/assert_equals.ts"; -import { TypeGraphDS } from "../../../src/typegraph/mod.ts"; +import { expandGlob } from "@std/fs/expand-glob"; +import { basename, dirname, fromFileUrl, join } from "@std/path"; +import { Meta } from "test-utils/mod.ts"; +import { MetaTest } from "test-utils/test.ts"; +import { assertEquals } from "@std/assert/equals"; +import { TypeGraphDS } from "@metatype/typegate/typegraph/mod.ts"; export const thisDir = dirname(fromFileUrl(import.meta.url)); const typegraphsDir = "examples/typegraphs"; @@ -75,8 +75,7 @@ const prepare = { await t.shell("bash build.sh".split(" "), { currentDir: "examples/typegraphs/metagen/rs", env: { - MCLI_LOADER_CMD: - "deno run -A --import-map=../typegate/import_map.json {filepath}", + MCLI_LOADER_CMD: "deno run -A {filepath}", }, }) ).code, @@ -135,8 +134,7 @@ for (const name of list) { currentDir: "examples", env: { RUST_LOG: "trace", - MCLI_LOADER_CMD: - "deno run -A --import-map=../typegate/import_map.json {filepath}", + MCLI_LOADER_CMD: "deno run -A {filepath}", }, }, "serialize", diff --git a/typegate/tests/graphql/graphql.py b/tests/graphql/graphql.py similarity index 100% rename from typegate/tests/graphql/graphql.py rename to tests/graphql/graphql.py diff --git a/typegate/tests/graphql/graphql_test.ts b/tests/graphql/graphql_test.ts similarity index 96% rename from typegate/tests/graphql/graphql_test.ts rename to tests/graphql/graphql_test.ts index 3bdb1c1ed1..67d6583b25 100644 --- a/typegate/tests/graphql/graphql_test.ts +++ b/tests/graphql/graphql_test.ts @@ -4,8 +4,8 @@ import { gql, Meta } from "../utils/mod.ts"; import * as mf from "test/mock_fetch"; import { buildSchema, graphql } from "graphql"; -import { withInlinedVars } from "../../src/runtimes/utils/graphql_inline_vars.ts"; -import { assertEquals } from "std/assert/mod.ts"; +import { withInlinedVars } from "@metatype/typegate/runtimes/utils/graphql_inline_vars.ts"; +import { assertEquals } from "@std/assert"; import outdent from "outdent"; const schema = buildSchema(` diff --git a/typegate/tests/graphql/request_parser_test.ts b/tests/graphql/request_parser_test.ts similarity index 89% rename from typegate/tests/graphql/request_parser_test.ts rename to tests/graphql/request_parser_test.ts index 19b1710d78..eff6a8c7f0 100644 --- a/typegate/tests/graphql/request_parser_test.ts +++ b/tests/graphql/request_parser_test.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { FormDataParser } from "../../src/transports/graphql/request_parser.ts"; +import { FormDataParser } from "@metatype/typegate/transports/graphql/request_parser.ts"; import { gql, Meta } from "../utils/mod.ts"; import * as mf from "test/mock_fetch"; -import { assertEquals, assertExists } from "std/assert/mod.ts"; +import { assertEquals, assertExists } from "@std/assert"; mf.install(); diff --git a/typegate/tests/http_utils/http_utils_test.ts b/tests/http_utils/http_utils_test.ts similarity index 91% rename from typegate/tests/http_utils/http_utils_test.ts rename to tests/http_utils/http_utils_test.ts index 73357f0020..8c157d8286 100644 --- a/typegate/tests/http_utils/http_utils_test.ts +++ b/tests/http_utils/http_utils_test.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assertEquals } from "std/assert/mod.ts"; -import { replaceDynamicPathParams } from "../../src/runtimes/utils/http.ts"; +import { assertEquals } from "@std/assert"; +import { replaceDynamicPathParams } from "@metatype/typegate/runtimes/utils/http.ts"; Deno.test("dynamic path params", async (t) => { await t.step("{param} syntax", () => { diff --git a/typegate/tests/importers/gql_original.py b/tests/importers/gql_original.py similarity index 100% rename from typegate/tests/importers/gql_original.py rename to tests/importers/gql_original.py diff --git a/typegate/tests/importers/importers_test.ts.disabled b/tests/importers/importers_test.ts.disabled similarity index 100% rename from typegate/tests/importers/importers_test.ts.disabled rename to tests/importers/importers_test.ts.disabled diff --git a/typegate/tests/importers/introspection.json b/tests/importers/introspection.json similarity index 100% rename from typegate/tests/importers/introspection.json rename to tests/importers/introspection.json diff --git a/typegate/tests/importers/introspection.py b/tests/importers/introspection.py similarity index 100% rename from typegate/tests/importers/introspection.py rename to tests/importers/introspection.py diff --git a/typegate/tests/importers/openapi_original.py b/tests/importers/openapi_original.py similarity index 100% rename from typegate/tests/importers/openapi_original.py rename to tests/importers/openapi_original.py diff --git a/typegate/tests/importers/openapi_schema.json b/tests/importers/openapi_schema.json similarity index 100% rename from typegate/tests/importers/openapi_schema.json rename to tests/importers/openapi_schema.json diff --git a/typegate/tests/importers/openapi_schema.py b/tests/importers/openapi_schema.py similarity index 100% rename from typegate/tests/importers/openapi_schema.py rename to tests/importers/openapi_schema.py diff --git a/typegate/tests/injection/injection.py b/tests/injection/injection.py similarity index 100% rename from typegate/tests/injection/injection.py rename to tests/injection/injection.py diff --git a/typegate/tests/injection/injection.ts b/tests/injection/injection.ts similarity index 100% rename from typegate/tests/injection/injection.ts rename to tests/injection/injection.ts diff --git a/typegate/tests/injection/injection_test.ts b/tests/injection/injection_test.ts similarity index 99% rename from typegate/tests/injection/injection_test.ts rename to tests/injection/injection_test.ts index 458c3b53e6..88a06bcdfb 100644 --- a/typegate/tests/injection/injection_test.ts +++ b/tests/injection/injection_test.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Elastic-2.0 import { gql, Meta } from "../utils/mod.ts"; -import { assertRejects } from "std/assert/mod.ts"; +import { assertRejects } from "@std/assert"; import { buildSchema, graphql } from "graphql"; import * as mf from "test/mock_fetch"; import { dropSchemas, recreateMigrations } from "../utils/migrations.ts"; diff --git a/typegate/tests/injection/nested_context.py b/tests/injection/nested_context.py similarity index 100% rename from typegate/tests/injection/nested_context.py rename to tests/injection/nested_context.py diff --git a/typegate/tests/internal/internal.py b/tests/internal/internal.py similarity index 100% rename from typegate/tests/internal/internal.py rename to tests/internal/internal.py diff --git a/typegate/tests/internal/internal_test.ts b/tests/internal/internal_test.ts similarity index 100% rename from typegate/tests/internal/internal_test.ts rename to tests/internal/internal_test.ts diff --git a/typegate/tests/internal/ts/logic.ts b/tests/internal/ts/logic.ts similarity index 100% rename from typegate/tests/internal/ts/logic.ts rename to tests/internal/ts/logic.ts diff --git a/typegate/tests/introspection/__snapshots__/introspection_test.ts.snap b/tests/introspection/__snapshots__/introspection_test.ts.snap similarity index 100% rename from typegate/tests/introspection/__snapshots__/introspection_test.ts.snap rename to tests/introspection/__snapshots__/introspection_test.ts.snap diff --git a/typegate/tests/introspection/__snapshots__/union_either_test.ts.snap b/tests/introspection/__snapshots__/union_either_test.ts.snap similarity index 100% rename from typegate/tests/introspection/__snapshots__/union_either_test.ts.snap rename to tests/introspection/__snapshots__/union_either_test.ts.snap diff --git a/typegate/tests/introspection/introspection_test.ts b/tests/introspection/introspection_test.ts similarity index 100% rename from typegate/tests/introspection/introspection_test.ts rename to tests/introspection/introspection_test.ts diff --git a/typegate/tests/introspection/union_either.py b/tests/introspection/union_either.py similarity index 100% rename from typegate/tests/introspection/union_either.py rename to tests/introspection/union_either.py diff --git a/typegate/tests/introspection/union_either_test.ts b/tests/introspection/union_either_test.ts similarity index 100% rename from typegate/tests/introspection/union_either_test.ts rename to tests/introspection/union_either_test.ts diff --git a/typegate/tests/metagen/__snapshots__/metagen_test.ts.snap b/tests/metagen/__snapshots__/metagen_test.ts.snap similarity index 99% rename from typegate/tests/metagen/__snapshots__/metagen_test.ts.snap rename to tests/metagen/__snapshots__/metagen_test.ts.snap index a26fc3186a..2dd1aa6c39 100644 --- a/typegate/tests/metagen/__snapshots__/metagen_test.ts.snap +++ b/tests/metagen/__snapshots__/metagen_test.ts.snap @@ -540,7 +540,7 @@ impl Router { } pub fn init(&self, args: InitArgs) -> Result { - static MT_VERSION: &str = "0.4.8"; + static MT_VERSION: &str = "0.4.9-rc1"; if args.metatype_version != MT_VERSION { return Err(InitError::VersionMismatch(MT_VERSION.into())); } @@ -1365,7 +1365,7 @@ impl Router { } pub fn init(&self, args: InitArgs) -> Result { - static MT_VERSION: &str = "0.4.8"; + static MT_VERSION: &str = "0.4.9-rc1"; if args.metatype_version != MT_VERSION { return Err(InitError::VersionMismatch(MT_VERSION.into())); } diff --git a/typegate/tests/metagen/metagen_test.ts b/tests/metagen/metagen_test.ts similarity index 96% rename from typegate/tests/metagen/metagen_test.ts rename to tests/metagen/metagen_test.ts index 14ff7eb13f..2cf789d218 100644 --- a/typegate/tests/metagen/metagen_test.ts +++ b/tests/metagen/metagen_test.ts @@ -1,17 +1,17 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { Meta } from "../utils/mod.ts"; -import { join } from "std/path/join.ts"; -import { resolve } from "std/path/resolve.ts"; -import { assertEquals } from "std/assert/mod.ts"; -import { GraphQLQuery } from "../utils/query/graphql_query.ts"; -import { JSONValue } from "../../src/utils.ts"; -import { testDir } from "../utils/dir.ts"; -import $ from "dax"; +import { Meta } from "test-utils/mod.ts"; +import { join } from "@std/path/join"; +import { resolve } from "@std/path/resolve"; +import { assertEquals } from "@std/assert"; +import { GraphQLQuery } from "test-utils/query/graphql_query.ts"; +import { JSONValue } from "@metatype/typegate/utils.ts"; +import { testDir } from "test-utils/dir.ts"; +import $ from "@david/dax"; import { z as zod } from "zod"; -const denoJson = resolve(testDir, "../deno.jsonc"); +const denoJson = resolve(testDir, "./deno.jsonc"); Meta.test("metagen rust builds", async (t) => { const tmpDir = t.tempDir; @@ -545,7 +545,6 @@ Meta.test({ await metaTest.should(name, async () => { const res = await command .env({ "TG_PORT": metaTest.port.toString() }).text(); - console.log(res); expected.parse(JSON.parse(res)); }); } diff --git a/typegate/tests/metagen/typegraphs/identities.py b/tests/metagen/typegraphs/identities.py similarity index 100% rename from typegate/tests/metagen/typegraphs/identities.py rename to tests/metagen/typegraphs/identities.py diff --git a/typegate/tests/metagen/typegraphs/identities/metatype.yml b/tests/metagen/typegraphs/identities/metatype.yml similarity index 100% rename from typegate/tests/metagen/typegraphs/identities/metatype.yml rename to tests/metagen/typegraphs/identities/metatype.yml diff --git a/typegate/tests/metagen/typegraphs/identities/py/handlers.py b/tests/metagen/typegraphs/identities/py/handlers.py similarity index 100% rename from typegate/tests/metagen/typegraphs/identities/py/handlers.py rename to tests/metagen/typegraphs/identities/py/handlers.py diff --git a/typegate/tests/metagen/typegraphs/identities/py/handlers_types.py b/tests/metagen/typegraphs/identities/py/handlers_types.py similarity index 100% rename from typegate/tests/metagen/typegraphs/identities/py/handlers_types.py rename to tests/metagen/typegraphs/identities/py/handlers_types.py diff --git a/typegate/tests/metagen/typegraphs/identities/rs/Cargo.lock b/tests/metagen/typegraphs/identities/rs/Cargo.lock similarity index 100% rename from typegate/tests/metagen/typegraphs/identities/rs/Cargo.lock rename to tests/metagen/typegraphs/identities/rs/Cargo.lock diff --git a/typegate/tests/metagen/typegraphs/identities/rs/Cargo.toml b/tests/metagen/typegraphs/identities/rs/Cargo.toml similarity index 100% rename from typegate/tests/metagen/typegraphs/identities/rs/Cargo.toml rename to tests/metagen/typegraphs/identities/rs/Cargo.toml diff --git a/typegate/tests/metagen/typegraphs/identities/rs/build.sh b/tests/metagen/typegraphs/identities/rs/build.sh similarity index 87% rename from typegate/tests/metagen/typegraphs/identities/rs/build.sh rename to tests/metagen/typegraphs/identities/rs/build.sh index faef5c3688..b9ce191b0c 100755 --- a/typegate/tests/metagen/typegraphs/identities/rs/build.sh +++ b/tests/metagen/typegraphs/identities/rs/build.sh @@ -2,7 +2,7 @@ set -eux -ADAPTOR="../../../../../../tmp/wasi_snapshot_preview1.reactor.wasm" +ADAPTOR="../../../../../.metatype/wasi_snapshot_preview1.reactor.wasm" [ -f "$ADAPTOR" ] || ghjk x install-wasi-adapter TARGET=wasm32-wasi diff --git a/typegate/tests/metagen/typegraphs/identities/rs/lib.rs b/tests/metagen/typegraphs/identities/rs/lib.rs similarity index 100% rename from typegate/tests/metagen/typegraphs/identities/rs/lib.rs rename to tests/metagen/typegraphs/identities/rs/lib.rs diff --git a/typegate/tests/metagen/typegraphs/identities/rs/mdk.rs b/tests/metagen/typegraphs/identities/rs/mdk.rs similarity index 99% rename from typegate/tests/metagen/typegraphs/identities/rs/mdk.rs rename to tests/metagen/typegraphs/identities/rs/mdk.rs index fcd054bbb7..eec20fc219 100644 --- a/typegate/tests/metagen/typegraphs/identities/rs/mdk.rs +++ b/tests/metagen/typegraphs/identities/rs/mdk.rs @@ -109,7 +109,7 @@ impl Router { } pub fn init(&self, args: InitArgs) -> Result { - static MT_VERSION: &str = "0.4.8"; + static MT_VERSION: &str = "0.4.9-rc1"; if args.metatype_version != MT_VERSION { return Err(InitError::VersionMismatch(MT_VERSION.into())); } diff --git a/typegate/tests/metagen/typegraphs/identities/ts/deno.json b/tests/metagen/typegraphs/identities/ts/deno.json similarity index 100% rename from typegate/tests/metagen/typegraphs/identities/ts/deno.json rename to tests/metagen/typegraphs/identities/ts/deno.json diff --git a/typegate/tests/metagen/typegraphs/identities/ts/handlers.ts b/tests/metagen/typegraphs/identities/ts/handlers.ts similarity index 100% rename from typegate/tests/metagen/typegraphs/identities/ts/handlers.ts rename to tests/metagen/typegraphs/identities/ts/handlers.ts diff --git a/typegate/tests/metagen/typegraphs/identities/ts/mdk.ts b/tests/metagen/typegraphs/identities/ts/mdk.ts similarity index 99% rename from typegate/tests/metagen/typegraphs/identities/ts/mdk.ts rename to tests/metagen/typegraphs/identities/ts/mdk.ts index cdb3e74cb2..b1baf8ae0b 100644 --- a/typegate/tests/metagen/typegraphs/identities/ts/mdk.ts +++ b/tests/metagen/typegraphs/identities/ts/mdk.ts @@ -127,6 +127,7 @@ export type SimpleCycles1Args = { data: SimpleCycles1; }; + export type TsPrimitivesHandler = Handler; export type TsCompositesHandler = Handler; export type TsCyclesHandler = Handler; diff --git a/typegate/tests/metagen/typegraphs/metagen.py b/tests/metagen/typegraphs/metagen.py similarity index 100% rename from typegate/tests/metagen/typegraphs/metagen.py rename to tests/metagen/typegraphs/metagen.py diff --git a/typegate/tests/metagen/typegraphs/metagen.ts b/tests/metagen/typegraphs/metagen.ts similarity index 100% rename from typegate/tests/metagen/typegraphs/metagen.ts rename to tests/metagen/typegraphs/metagen.ts diff --git a/typegate/tests/metagen/typegraphs/python.py b/tests/metagen/typegraphs/python.py similarity index 100% rename from typegate/tests/metagen/typegraphs/python.py rename to tests/metagen/typegraphs/python.py diff --git a/typegate/tests/metagen/typegraphs/sample.ts b/tests/metagen/typegraphs/sample.ts similarity index 100% rename from typegate/tests/metagen/typegraphs/sample.ts rename to tests/metagen/typegraphs/sample.ts diff --git a/typegate/tests/metagen/typegraphs/sample/metatype.yml b/tests/metagen/typegraphs/sample/metatype.yml similarity index 100% rename from typegate/tests/metagen/typegraphs/sample/metatype.yml rename to tests/metagen/typegraphs/sample/metatype.yml diff --git a/typegate/tests/metagen/typegraphs/sample/py/client.py b/tests/metagen/typegraphs/sample/py/client.py similarity index 100% rename from typegate/tests/metagen/typegraphs/sample/py/client.py rename to tests/metagen/typegraphs/sample/py/client.py index 5c782652c7..e4cb67ad91 100644 --- a/typegate/tests/metagen/typegraphs/sample/py/client.py +++ b/tests/metagen/typegraphs/sample/py/client.py @@ -532,19 +532,20 @@ def Post(): ) @staticmethod - def User(): + def Func24(): return NodeMeta( - sub_nodes={ - "id": NodeDescs.scalar, - "email": NodeDescs.scalar, - "posts": NodeDescs.Post, - }, + sub_nodes=NodeDescs.Post().sub_nodes, ) @staticmethod - def Func23(): + def Func26(): return NodeMeta( - sub_nodes=NodeDescs.User().sub_nodes, + sub_nodes=NodeDescs.scalar().sub_nodes, + arg_types={ + "id": "String4", + "slug": "String1", + "title": "String1", + }, ) @staticmethod @@ -563,26 +564,25 @@ def Func28(): ) @staticmethod - def Func26(): + def User(): return NodeMeta( - sub_nodes=NodeDescs.scalar().sub_nodes, - arg_types={ - "id": "String4", - "slug": "String1", - "title": "String1", + sub_nodes={ + "id": NodeDescs.scalar, + "email": NodeDescs.scalar, + "posts": NodeDescs.Post, }, ) @staticmethod - def Func25(): + def Func23(): return NodeMeta( - sub_nodes=NodeDescs.scalar().sub_nodes, + sub_nodes=NodeDescs.User().sub_nodes, ) @staticmethod - def Func24(): + def Func25(): return NodeMeta( - sub_nodes=NodeDescs.Post().sub_nodes, + sub_nodes=NodeDescs.scalar().sub_nodes, ) diff --git a/typegate/tests/metagen/typegraphs/sample/py/main.py b/tests/metagen/typegraphs/sample/py/main.py similarity index 100% rename from typegate/tests/metagen/typegraphs/sample/py/main.py rename to tests/metagen/typegraphs/sample/py/main.py diff --git a/typegate/tests/metagen/typegraphs/sample/rs/Cargo.lock b/tests/metagen/typegraphs/sample/rs/Cargo.lock similarity index 100% rename from typegate/tests/metagen/typegraphs/sample/rs/Cargo.lock rename to tests/metagen/typegraphs/sample/rs/Cargo.lock diff --git a/typegate/tests/metagen/typegraphs/sample/rs/Cargo.toml b/tests/metagen/typegraphs/sample/rs/Cargo.toml similarity index 100% rename from typegate/tests/metagen/typegraphs/sample/rs/Cargo.toml rename to tests/metagen/typegraphs/sample/rs/Cargo.toml diff --git a/typegate/tests/metagen/typegraphs/sample/rs/client.rs b/tests/metagen/typegraphs/sample/rs/client.rs similarity index 100% rename from typegate/tests/metagen/typegraphs/sample/rs/client.rs rename to tests/metagen/typegraphs/sample/rs/client.rs index 37a3700395..983a0a9f17 100644 --- a/typegate/tests/metagen/typegraphs/sample/rs/client.rs +++ b/tests/metagen/typegraphs/sample/rs/client.rs @@ -2152,9 +2152,6 @@ mod node_metas { ), } } - pub fn Func27() -> NodeMeta { - NodeMeta { ..Post() } - } pub fn User() -> NodeMeta { NodeMeta { arg_types: None, @@ -2172,15 +2169,12 @@ mod node_metas { pub fn Func23() -> NodeMeta { NodeMeta { ..User() } } + pub fn Func25() -> NodeMeta { + NodeMeta { ..scalar() } + } pub fn Func24() -> NodeMeta { NodeMeta { ..Post() } } - pub fn Func28() -> NodeMeta { - NodeMeta { - arg_types: Some([("id".into(), "String13".into())].into()), - ..Post() - } - } pub fn Func26() -> NodeMeta { NodeMeta { arg_types: Some( @@ -2194,12 +2188,22 @@ mod node_metas { ..scalar() } } - pub fn Func25() -> NodeMeta { - NodeMeta { ..scalar() } + pub fn Func28() -> NodeMeta { + NodeMeta { + arg_types: Some([("id".into(), "String13".into())].into()), + ..Post() + } + } + pub fn Func27() -> NodeMeta { + NodeMeta { ..Post() } } } use types::*; pub mod types { + #[derive(Debug, serde::Serialize, serde::Deserialize)] + pub struct Object21Partial { + pub id: Option, + } pub type StringUuid4 = String; #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct PostPartial { @@ -2207,10 +2211,6 @@ pub mod types { pub slug: Option, pub title: Option, } - #[derive(Debug, serde::Serialize, serde::Deserialize)] - pub struct Object21Partial { - pub id: Option, - } pub type StringEmail5 = String; pub type Post7 = Vec; #[derive(Debug, serde::Serialize, serde::Deserialize)] diff --git a/typegate/tests/metagen/typegraphs/sample/rs/main.rs b/tests/metagen/typegraphs/sample/rs/main.rs similarity index 100% rename from typegate/tests/metagen/typegraphs/sample/rs/main.rs rename to tests/metagen/typegraphs/sample/rs/main.rs diff --git a/typegate/tests/metagen/typegraphs/sample/ts/client.ts b/tests/metagen/typegraphs/sample/ts/client.ts similarity index 99% rename from typegate/tests/metagen/typegraphs/sample/ts/client.ts rename to tests/metagen/typegraphs/sample/ts/client.ts index cd65928c03..56ae5cc7c8 100644 --- a/typegate/tests/metagen/typegraphs/sample/ts/client.ts +++ b/tests/metagen/typegraphs/sample/ts/client.ts @@ -641,21 +641,12 @@ class _QueryGraphBase { // -------------------------------------------------- // + const nodeMetas = { scalar() { return {}; }, - - Func26(): NodeMeta { - return { - ...nodeMetas.scalar(), - argumentTypes: { - id: "String4", - slug: "String1", - title: "String1", - }, - }; - }, + Post(): NodeMeta { return { subNodes: [ @@ -665,14 +656,6 @@ const nodeMetas = { ], }; }, - Func28(): NodeMeta { - return { - ...nodeMetas.Post(), - argumentTypes: { - id: "String13", - }, - }; - }, User(): NodeMeta { return { subNodes: [ @@ -687,9 +670,14 @@ const nodeMetas = { ...nodeMetas.User(), }; }, - Func24(): NodeMeta { + Func26(): NodeMeta { return { - ...nodeMetas.Post(), + ...nodeMetas.scalar(), + argumentTypes: { + id: "String4", + slug: "String1", + title: "String1", + }, }; }, Func25(): NodeMeta { @@ -702,6 +690,22 @@ const nodeMetas = { ...nodeMetas.Post(), }; }, + Func28(): NodeMeta { + return { + ...nodeMetas.Post(), + argumentTypes: { + id: "String13", + }, + }; + }, + Func24(): NodeMeta { + return { + ...nodeMetas.Post(), + }; + }, +}; +export type Object21 = { + id: string; }; export type StringUuid4 = string; export type Post = { @@ -709,9 +713,6 @@ export type Post = { slug: string; title: string; }; -export type Object21 = { - id: string; -}; export type StringEmail5 = string; export type Post7 = Array; export type User = { @@ -741,7 +742,7 @@ export class QueryGraph extends _QueryGraphBase { "String13": "String!", }); } - + getUser(select: UserSelections) { const inner = _selectionToNodeSet( { "getUser": select }, @@ -782,10 +783,7 @@ export class QueryGraph extends _QueryGraphBase { )[0]; return new MutationNode(inner) as MutationNode; } - compositeArgs( - args: Object21 | PlaceholderArgs, - select: PostSelections, - ) { + compositeArgs(args: Object21 | PlaceholderArgs, select: PostSelections) { const inner = _selectionToNodeSet( { "compositeArgs": [args, select] }, [["compositeArgs", nodeMetas.Func28]], diff --git a/typegate/tests/metagen/typegraphs/sample/ts/main.ts b/tests/metagen/typegraphs/sample/ts/main.ts similarity index 100% rename from typegate/tests/metagen/typegraphs/sample/ts/main.ts rename to tests/metagen/typegraphs/sample/ts/main.ts diff --git a/typegate/tests/metatype.yml b/tests/metatype.yml similarity index 100% rename from typegate/tests/metatype.yml rename to tests/metatype.yml diff --git a/typegate/tests/misc/publish_test.ts b/tests/misc/publish_test.ts similarity index 81% rename from typegate/tests/misc/publish_test.ts rename to tests/misc/publish_test.ts index 3aa6172c82..c9aaf38b70 100644 --- a/typegate/tests/misc/publish_test.ts +++ b/tests/misc/publish_test.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assert } from "std/assert/assert.ts"; -import { exists } from "std/fs/exists.ts"; +import { assert } from "@std/assert/assert"; +import { exists } from "@std/fs/exists"; import { Meta } from "test-utils/mod.ts"; Meta.test({ name: "simulate publish on npm and jsr" }, async (t) => { @@ -9,7 +9,7 @@ Meta.test({ name: "simulate publish on npm and jsr" }, async (t) => { const output = await t.shell( "pnpm publish --dry-run --no-git-check".split(/\s+/), { - currentDir: "typegraph/node", + currentDir: "src/typegraph/node", }, ); console.log("code", output.code); @@ -19,7 +19,7 @@ Meta.test({ name: "simulate publish on npm and jsr" }, async (t) => { await t.should("simulate publish on jsr", async () => { assert( - await exists("typegraph/deno/sdk/jsr.json"), + await exists("src/typegraph/deno/deno.json"), "jsr export map exists", ); @@ -27,7 +27,7 @@ Meta.test({ name: "simulate publish on npm and jsr" }, async (t) => { const output = await t.shell( "deno publish --dry-run --allow-slow-types --allow-dirty".split(/\s+/), { - currentDir: "typegraph/deno/sdk", + currentDir: "src/typegraph/deno", }, ); console.log("code", output.code); diff --git a/typegate/tests/misc/typegate_config_test.ts.disabled b/tests/misc/typegate_config_test.ts.disabled similarity index 100% rename from typegate/tests/misc/typegate_config_test.ts.disabled rename to tests/misc/typegate_config_test.ts.disabled diff --git a/typegate/tests/multi_typegraph/multi_typegraph.py b/tests/multi_typegraph/multi_typegraph.py similarity index 100% rename from typegate/tests/multi_typegraph/multi_typegraph.py rename to tests/multi_typegraph/multi_typegraph.py diff --git a/typegate/tests/multi_typegraph/multi_typegraph.ts b/tests/multi_typegraph/multi_typegraph.ts similarity index 100% rename from typegate/tests/multi_typegraph/multi_typegraph.ts rename to tests/multi_typegraph/multi_typegraph.ts diff --git a/typegate/tests/multi_typegraph/multi_typegraph_test.ts b/tests/multi_typegraph/multi_typegraph_test.ts similarity index 100% rename from typegate/tests/multi_typegraph/multi_typegraph_test.ts rename to tests/multi_typegraph/multi_typegraph_test.ts diff --git a/typegate/tests/nesting/nesting.py b/tests/nesting/nesting.py similarity index 100% rename from typegate/tests/nesting/nesting.py rename to tests/nesting/nesting.py diff --git a/typegate/tests/nesting/nesting_test.ts b/tests/nesting/nesting_test.ts similarity index 100% rename from typegate/tests/nesting/nesting_test.ts rename to tests/nesting/nesting_test.ts diff --git a/typegate/tests/params/apply.py b/tests/params/apply.py similarity index 100% rename from typegate/tests/params/apply.py rename to tests/params/apply.py diff --git a/typegate/tests/params/apply_nested_context.py b/tests/params/apply_nested_context.py similarity index 100% rename from typegate/tests/params/apply_nested_context.py rename to tests/params/apply_nested_context.py diff --git a/typegate/tests/params/apply_test.ts b/tests/params/apply_test.ts similarity index 100% rename from typegate/tests/params/apply_test.ts rename to tests/params/apply_test.ts diff --git a/typegate/tests/planner/__snapshots__/planner_test.ts.snap b/tests/planner/__snapshots__/planner_test.ts.snap similarity index 100% rename from typegate/tests/planner/__snapshots__/planner_test.ts.snap rename to tests/planner/__snapshots__/planner_test.ts.snap diff --git a/typegate/tests/planner/default_args_test.ts b/tests/planner/default_args_test.ts similarity index 100% rename from typegate/tests/planner/default_args_test.ts rename to tests/planner/default_args_test.ts diff --git a/typegate/tests/planner/planner.py b/tests/planner/planner.py similarity index 100% rename from typegate/tests/planner/planner.py rename to tests/planner/planner.py diff --git a/typegate/tests/planner/planner_test.ts b/tests/planner/planner_test.ts similarity index 97% rename from typegate/tests/planner/planner_test.ts rename to tests/planner/planner_test.ts index 70766302dd..d6e37985f4 100644 --- a/typegate/tests/planner/planner_test.ts +++ b/tests/planner/planner_test.ts @@ -2,8 +2,8 @@ // SPDX-License-Identifier: Elastic-2.0 import { gql, Meta } from "../utils/mod.ts"; -import { mapValues } from "std/collections/map_values.ts"; -import { filterKeys } from "std/collections/filter_keys.ts"; +import { mapValues } from "@std/collections/map-values"; +import { filterKeys } from "@std/collections/filter-keys"; Meta.test("planner", async (t) => { const e = await t.engine("planner/planner.py"); diff --git a/typegate/tests/policies/effects_py.py b/tests/policies/effects_py.py similarity index 100% rename from typegate/tests/policies/effects_py.py rename to tests/policies/effects_py.py diff --git a/typegate/tests/policies/policies.py b/tests/policies/policies.py similarity index 100% rename from typegate/tests/policies/policies.py rename to tests/policies/policies.py diff --git a/typegate/tests/policies/policies_jwt.py b/tests/policies/policies_jwt.py similarity index 100% rename from typegate/tests/policies/policies_jwt.py rename to tests/policies/policies_jwt.py diff --git a/typegate/tests/policies/policies_jwt_format.py b/tests/policies/policies_jwt_format.py similarity index 100% rename from typegate/tests/policies/policies_jwt_format.py rename to tests/policies/policies_jwt_format.py diff --git a/typegate/tests/policies/policies_jwt_injection.py b/tests/policies/policies_jwt_injection.py similarity index 100% rename from typegate/tests/policies/policies_jwt_injection.py rename to tests/policies/policies_jwt_injection.py diff --git a/typegate/tests/policies/policies_jwt_test.ts b/tests/policies/policies_jwt_test.ts similarity index 95% rename from typegate/tests/policies/policies_jwt_test.ts rename to tests/policies/policies_jwt_test.ts index 353b2caf13..35b9802505 100644 --- a/typegate/tests/policies/policies_jwt_test.ts +++ b/tests/policies/policies_jwt_test.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { gql, Meta } from "../utils/mod.ts"; +import { gql, Meta } from "test-utils/mod.ts"; import * as jwt from "jwt"; Meta.test("JWT with various formats", async (t) => { diff --git a/typegate/tests/policies/policies_test.ts b/tests/policies/policies_test.ts similarity index 98% rename from typegate/tests/policies/policies_test.ts rename to tests/policies/policies_test.ts index eeb6a0ac9c..a2c40bfe15 100644 --- a/typegate/tests/policies/policies_test.ts +++ b/tests/policies/policies_test.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TypegateConfig } from "../../src/config.ts"; +import { TypegateConfig } from "@metatype/typegate/config.ts"; import { gql, Meta } from "../utils/mod.ts"; async function genSecretKey( diff --git a/typegate/tests/policies/ts/effects.ts b/tests/policies/ts/effects.ts similarity index 100% rename from typegate/tests/policies/ts/effects.ts rename to tests/policies/ts/effects.ts diff --git a/typegate/tests/policies/ts/policies.ts b/tests/policies/ts/policies.ts similarity index 100% rename from typegate/tests/policies/ts/policies.ts rename to tests/policies/ts/policies.ts diff --git a/tests/prisma-migrations/full-prisma-mapping/prisma/20240711030527_init/migration.sql b/tests/prisma-migrations/full-prisma-mapping/prisma/20240711030527_init/migration.sql new file mode 100644 index 0000000000..a70c01a4c2 --- /dev/null +++ b/tests/prisma-migrations/full-prisma-mapping/prisma/20240711030527_init/migration.sql @@ -0,0 +1,52 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + "coinflips" BOOLEAN[], + "city" TEXT NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Post" ( + "id" INTEGER NOT NULL, + "title" TEXT NOT NULL, + "views" INTEGER NOT NULL, + "likes" INTEGER NOT NULL, + "published" BOOLEAN NOT NULL, + "authorId" INTEGER NOT NULL, + + CONSTRAINT "Post_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Comment" ( + "id" INTEGER NOT NULL, + "content" TEXT NOT NULL, + "related_postId" INTEGER NOT NULL, + "authorId" INTEGER NOT NULL, + + CONSTRAINT "Comment_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "ExtendedProfile" ( + "bio" TEXT NOT NULL, + "userId" INTEGER NOT NULL, + + CONSTRAINT "ExtendedProfile_pkey" PRIMARY KEY ("userId") +); + +-- AddForeignKey +ALTER TABLE "Post" ADD CONSTRAINT "Post_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "Comment" ADD CONSTRAINT "Comment_related_postId_fkey" FOREIGN KEY ("related_postId") REFERENCES "Post"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "Comment" ADD CONSTRAINT "Comment_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ExtendedProfile" ADD CONSTRAINT "ExtendedProfile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/full-prisma-mapping/prisma/20240711030719_init/migration.sql b/tests/prisma-migrations/full-prisma-mapping/prisma/20240711030719_init/migration.sql new file mode 100644 index 0000000000..a70c01a4c2 --- /dev/null +++ b/tests/prisma-migrations/full-prisma-mapping/prisma/20240711030719_init/migration.sql @@ -0,0 +1,52 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + "coinflips" BOOLEAN[], + "city" TEXT NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Post" ( + "id" INTEGER NOT NULL, + "title" TEXT NOT NULL, + "views" INTEGER NOT NULL, + "likes" INTEGER NOT NULL, + "published" BOOLEAN NOT NULL, + "authorId" INTEGER NOT NULL, + + CONSTRAINT "Post_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Comment" ( + "id" INTEGER NOT NULL, + "content" TEXT NOT NULL, + "related_postId" INTEGER NOT NULL, + "authorId" INTEGER NOT NULL, + + CONSTRAINT "Comment_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "ExtendedProfile" ( + "bio" TEXT NOT NULL, + "userId" INTEGER NOT NULL, + + CONSTRAINT "ExtendedProfile_pkey" PRIMARY KEY ("userId") +); + +-- AddForeignKey +ALTER TABLE "Post" ADD CONSTRAINT "Post_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "Comment" ADD CONSTRAINT "Comment_related_postId_fkey" FOREIGN KEY ("related_postId") REFERENCES "Post"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "Comment" ADD CONSTRAINT "Comment_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ExtendedProfile" ADD CONSTRAINT "ExtendedProfile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/full-prisma-mapping/prisma/20240711033036_init/migration.sql b/tests/prisma-migrations/full-prisma-mapping/prisma/20240711033036_init/migration.sql new file mode 100644 index 0000000000..a70c01a4c2 --- /dev/null +++ b/tests/prisma-migrations/full-prisma-mapping/prisma/20240711033036_init/migration.sql @@ -0,0 +1,52 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + "coinflips" BOOLEAN[], + "city" TEXT NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Post" ( + "id" INTEGER NOT NULL, + "title" TEXT NOT NULL, + "views" INTEGER NOT NULL, + "likes" INTEGER NOT NULL, + "published" BOOLEAN NOT NULL, + "authorId" INTEGER NOT NULL, + + CONSTRAINT "Post_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Comment" ( + "id" INTEGER NOT NULL, + "content" TEXT NOT NULL, + "related_postId" INTEGER NOT NULL, + "authorId" INTEGER NOT NULL, + + CONSTRAINT "Comment_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "ExtendedProfile" ( + "bio" TEXT NOT NULL, + "userId" INTEGER NOT NULL, + + CONSTRAINT "ExtendedProfile_pkey" PRIMARY KEY ("userId") +); + +-- AddForeignKey +ALTER TABLE "Post" ADD CONSTRAINT "Post_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "Comment" ADD CONSTRAINT "Comment_related_postId_fkey" FOREIGN KEY ("related_postId") REFERENCES "Post"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "Comment" ADD CONSTRAINT "Comment_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ExtendedProfile" ADD CONSTRAINT "ExtendedProfile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/full-prisma-mapping/prisma/20240711033536_init/migration.sql b/tests/prisma-migrations/full-prisma-mapping/prisma/20240711033536_init/migration.sql new file mode 100644 index 0000000000..a70c01a4c2 --- /dev/null +++ b/tests/prisma-migrations/full-prisma-mapping/prisma/20240711033536_init/migration.sql @@ -0,0 +1,52 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + "coinflips" BOOLEAN[], + "city" TEXT NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Post" ( + "id" INTEGER NOT NULL, + "title" TEXT NOT NULL, + "views" INTEGER NOT NULL, + "likes" INTEGER NOT NULL, + "published" BOOLEAN NOT NULL, + "authorId" INTEGER NOT NULL, + + CONSTRAINT "Post_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Comment" ( + "id" INTEGER NOT NULL, + "content" TEXT NOT NULL, + "related_postId" INTEGER NOT NULL, + "authorId" INTEGER NOT NULL, + + CONSTRAINT "Comment_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "ExtendedProfile" ( + "bio" TEXT NOT NULL, + "userId" INTEGER NOT NULL, + + CONSTRAINT "ExtendedProfile_pkey" PRIMARY KEY ("userId") +); + +-- AddForeignKey +ALTER TABLE "Post" ADD CONSTRAINT "Post_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "Comment" ADD CONSTRAINT "Comment_related_postId_fkey" FOREIGN KEY ("related_postId") REFERENCES "Post"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "Comment" ADD CONSTRAINT "Comment_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ExtendedProfile" ADD CONSTRAINT "ExtendedProfile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/full-prisma-mapping/prisma/migration_lock.toml b/tests/prisma-migrations/full-prisma-mapping/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/full-prisma-mapping/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/injection/prisma/20240711030413_init/migration.sql b/tests/prisma-migrations/injection/prisma/20240711030413_init/migration.sql new file mode 100644 index 0000000000..d4647cea5d --- /dev/null +++ b/tests/prisma-migrations/injection/prisma/20240711030413_init/migration.sql @@ -0,0 +1,10 @@ +-- CreateTable +CREATE TABLE "Messages" ( + "id" UUID NOT NULL, + "time" TIMESTAMP(3) NOT NULL, + "text" TEXT NOT NULL, + "senderId" INTEGER NOT NULL, + "recipientId" INTEGER NOT NULL, + + CONSTRAINT "Messages_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/injection/prisma/20240711032926_init/migration.sql b/tests/prisma-migrations/injection/prisma/20240711032926_init/migration.sql new file mode 100644 index 0000000000..d4647cea5d --- /dev/null +++ b/tests/prisma-migrations/injection/prisma/20240711032926_init/migration.sql @@ -0,0 +1,10 @@ +-- CreateTable +CREATE TABLE "Messages" ( + "id" UUID NOT NULL, + "time" TIMESTAMP(3) NOT NULL, + "text" TEXT NOT NULL, + "senderId" INTEGER NOT NULL, + "recipientId" INTEGER NOT NULL, + + CONSTRAINT "Messages_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/injection/prisma/20240814052852_init/migration.sql b/tests/prisma-migrations/injection/prisma/20240814052852_init/migration.sql new file mode 100644 index 0000000000..d4647cea5d --- /dev/null +++ b/tests/prisma-migrations/injection/prisma/20240814052852_init/migration.sql @@ -0,0 +1,10 @@ +-- CreateTable +CREATE TABLE "Messages" ( + "id" UUID NOT NULL, + "time" TIMESTAMP(3) NOT NULL, + "text" TEXT NOT NULL, + "senderId" INTEGER NOT NULL, + "recipientId" INTEGER NOT NULL, + + CONSTRAINT "Messages_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/injection/prisma/migration_lock.toml b/tests/prisma-migrations/injection/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/injection/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/mixed-runtime/prisma/20240711030744_init/migration.sql b/tests/prisma-migrations/mixed-runtime/prisma/20240711030744_init/migration.sql new file mode 100644 index 0000000000..e582d572b6 --- /dev/null +++ b/tests/prisma-migrations/mixed-runtime/prisma/20240711030744_init/migration.sql @@ -0,0 +1,7 @@ +-- CreateTable +CREATE TABLE "Record" ( + "id" SERIAL NOT NULL, + "description" TEXT NOT NULL, + + CONSTRAINT "Record_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/mixed-runtime/prisma/20240711033545_init/migration.sql b/tests/prisma-migrations/mixed-runtime/prisma/20240711033545_init/migration.sql new file mode 100644 index 0000000000..e582d572b6 --- /dev/null +++ b/tests/prisma-migrations/mixed-runtime/prisma/20240711033545_init/migration.sql @@ -0,0 +1,7 @@ +-- CreateTable +CREATE TABLE "Record" ( + "id" SERIAL NOT NULL, + "description" TEXT NOT NULL, + + CONSTRAINT "Record_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/mixed-runtime/prisma/migration_lock.toml b/tests/prisma-migrations/mixed-runtime/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/mixed-runtime/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/multi-relations/prisma/20240711030744_init/migration.sql b/tests/prisma-migrations/multi-relations/prisma/20240711030744_init/migration.sql new file mode 100644 index 0000000000..9585fb67e5 --- /dev/null +++ b/tests/prisma-migrations/multi-relations/prisma/20240711030744_init/migration.sql @@ -0,0 +1,34 @@ +-- CreateTable +CREATE TABLE "record" ( + "id" UUID NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + + CONSTRAINT "record_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "users" ( + "id" INTEGER NOT NULL, + "email" TEXT NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "users_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "messages" ( + "id" INTEGER NOT NULL, + "time" INTEGER NOT NULL, + "message" TEXT NOT NULL, + "senderId" INTEGER NOT NULL, + "recipientId" INTEGER NOT NULL, + + CONSTRAINT "messages_pkey" PRIMARY KEY ("id") +); + +-- AddForeignKey +ALTER TABLE "messages" ADD CONSTRAINT "messages_senderId_fkey" FOREIGN KEY ("senderId") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "messages" ADD CONSTRAINT "messages_recipientId_fkey" FOREIGN KEY ("recipientId") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/multi-relations/prisma/20240711033549_init/migration.sql b/tests/prisma-migrations/multi-relations/prisma/20240711033549_init/migration.sql new file mode 100644 index 0000000000..9585fb67e5 --- /dev/null +++ b/tests/prisma-migrations/multi-relations/prisma/20240711033549_init/migration.sql @@ -0,0 +1,34 @@ +-- CreateTable +CREATE TABLE "record" ( + "id" UUID NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + + CONSTRAINT "record_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "users" ( + "id" INTEGER NOT NULL, + "email" TEXT NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "users_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "messages" ( + "id" INTEGER NOT NULL, + "time" INTEGER NOT NULL, + "message" TEXT NOT NULL, + "senderId" INTEGER NOT NULL, + "recipientId" INTEGER NOT NULL, + + CONSTRAINT "messages_pkey" PRIMARY KEY ("id") +); + +-- AddForeignKey +ALTER TABLE "messages" ADD CONSTRAINT "messages_senderId_fkey" FOREIGN KEY ("senderId") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "messages" ADD CONSTRAINT "messages_recipientId_fkey" FOREIGN KEY ("recipientId") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/multi-relations/prisma/migration_lock.toml b/tests/prisma-migrations/multi-relations/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/multi-relations/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/multiple-runtimes/db1/20240711030754_init/migration.sql b/tests/prisma-migrations/multiple-runtimes/db1/20240711030754_init/migration.sql new file mode 100644 index 0000000000..febded207f --- /dev/null +++ b/tests/prisma-migrations/multiple-runtimes/db1/20240711030754_init/migration.sql @@ -0,0 +1,7 @@ +-- CreateTable +CREATE TABLE "User1" ( + "id" SERIAL NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "User1_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/multiple-runtimes/db1/20240711033554_init/migration.sql b/tests/prisma-migrations/multiple-runtimes/db1/20240711033554_init/migration.sql new file mode 100644 index 0000000000..febded207f --- /dev/null +++ b/tests/prisma-migrations/multiple-runtimes/db1/20240711033554_init/migration.sql @@ -0,0 +1,7 @@ +-- CreateTable +CREATE TABLE "User1" ( + "id" SERIAL NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "User1_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/multiple-runtimes/db1/migration_lock.toml b/tests/prisma-migrations/multiple-runtimes/db1/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/multiple-runtimes/db1/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/multiple-runtimes/db2/20240711030754_init/migration.sql b/tests/prisma-migrations/multiple-runtimes/db2/20240711030754_init/migration.sql new file mode 100644 index 0000000000..2a8d3d74b5 --- /dev/null +++ b/tests/prisma-migrations/multiple-runtimes/db2/20240711030754_init/migration.sql @@ -0,0 +1,7 @@ +-- CreateTable +CREATE TABLE "User2" ( + "id" SERIAL NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "User2_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/multiple-runtimes/db2/20240711033555_init/migration.sql b/tests/prisma-migrations/multiple-runtimes/db2/20240711033555_init/migration.sql new file mode 100644 index 0000000000..2a8d3d74b5 --- /dev/null +++ b/tests/prisma-migrations/multiple-runtimes/db2/20240711033555_init/migration.sql @@ -0,0 +1,7 @@ +-- CreateTable +CREATE TABLE "User2" ( + "id" SERIAL NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "User2_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/multiple-runtimes/db2/migration_lock.toml b/tests/prisma-migrations/multiple-runtimes/db2/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/multiple-runtimes/db2/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/normal-1-1/prisma/20240711030805_init/migration.sql b/tests/prisma-migrations/normal-1-1/prisma/20240711030805_init/migration.sql new file mode 100644 index 0000000000..479083e26c --- /dev/null +++ b/tests/prisma-migrations/normal-1-1/prisma/20240711030805_init/migration.sql @@ -0,0 +1,20 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Profile" ( + "id" INTEGER NOT NULL, + "userId" INTEGER NOT NULL, + + CONSTRAINT "Profile_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "Profile_userId_key" ON "Profile"("userId"); + +-- AddForeignKey +ALTER TABLE "Profile" ADD CONSTRAINT "Profile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/normal-1-1/prisma/20240711033609_init/migration.sql b/tests/prisma-migrations/normal-1-1/prisma/20240711033609_init/migration.sql new file mode 100644 index 0000000000..479083e26c --- /dev/null +++ b/tests/prisma-migrations/normal-1-1/prisma/20240711033609_init/migration.sql @@ -0,0 +1,20 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Profile" ( + "id" INTEGER NOT NULL, + "userId" INTEGER NOT NULL, + + CONSTRAINT "Profile_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "Profile_userId_key" ON "Profile"("userId"); + +-- AddForeignKey +ALTER TABLE "Profile" ADD CONSTRAINT "Profile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/normal-1-1/prisma/migration_lock.toml b/tests/prisma-migrations/normal-1-1/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/normal-1-1/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/optional-1-1/prisma/20240711030809_init/migration.sql b/tests/prisma-migrations/optional-1-1/prisma/20240711030809_init/migration.sql new file mode 100644 index 0000000000..c90244cae9 --- /dev/null +++ b/tests/prisma-migrations/optional-1-1/prisma/20240711030809_init/migration.sql @@ -0,0 +1,20 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Profile" ( + "id" INTEGER NOT NULL, + "userId" INTEGER, + + CONSTRAINT "Profile_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "Profile_userId_key" ON "Profile"("userId"); + +-- AddForeignKey +ALTER TABLE "Profile" ADD CONSTRAINT "Profile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/optional-1-1/prisma/20240711033612_init/migration.sql b/tests/prisma-migrations/optional-1-1/prisma/20240711033612_init/migration.sql new file mode 100644 index 0000000000..c90244cae9 --- /dev/null +++ b/tests/prisma-migrations/optional-1-1/prisma/20240711033612_init/migration.sql @@ -0,0 +1,20 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Profile" ( + "id" INTEGER NOT NULL, + "userId" INTEGER, + + CONSTRAINT "Profile_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "Profile_userId_key" ON "Profile"("userId"); + +-- AddForeignKey +ALTER TABLE "Profile" ADD CONSTRAINT "Profile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/optional-1-1/prisma/migration_lock.toml b/tests/prisma-migrations/optional-1-1/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/optional-1-1/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/optional-1-n/prisma/20240711030756_init/migration.sql b/tests/prisma-migrations/optional-1-n/prisma/20240711030756_init/migration.sql new file mode 100644 index 0000000000..3892421b99 --- /dev/null +++ b/tests/prisma-migrations/optional-1-n/prisma/20240711030756_init/migration.sql @@ -0,0 +1,30 @@ +-- CreateTable +CREATE TABLE "record" ( + "id" UUID NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + + CONSTRAINT "record_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "users" ( + "id" SERIAL NOT NULL, + "email" TEXT NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "users_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "messages" ( + "id" INTEGER NOT NULL, + "time" INTEGER NOT NULL, + "message" TEXT NOT NULL, + "senderId" INTEGER, + + CONSTRAINT "messages_pkey" PRIMARY KEY ("id") +); + +-- AddForeignKey +ALTER TABLE "messages" ADD CONSTRAINT "messages_senderId_fkey" FOREIGN KEY ("senderId") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/optional-1-n/prisma/20240711033601_init/migration.sql b/tests/prisma-migrations/optional-1-n/prisma/20240711033601_init/migration.sql new file mode 100644 index 0000000000..3892421b99 --- /dev/null +++ b/tests/prisma-migrations/optional-1-n/prisma/20240711033601_init/migration.sql @@ -0,0 +1,30 @@ +-- CreateTable +CREATE TABLE "record" ( + "id" UUID NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + + CONSTRAINT "record_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "users" ( + "id" SERIAL NOT NULL, + "email" TEXT NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "users_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "messages" ( + "id" INTEGER NOT NULL, + "time" INTEGER NOT NULL, + "message" TEXT NOT NULL, + "senderId" INTEGER, + + CONSTRAINT "messages_pkey" PRIMARY KEY ("id") +); + +-- AddForeignKey +ALTER TABLE "messages" ADD CONSTRAINT "messages_senderId_fkey" FOREIGN KEY ("senderId") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/optional-1-n/prisma/migration_lock.toml b/tests/prisma-migrations/optional-1-n/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/optional-1-n/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/prisma-edgecases/prisma/20240711030805_init/migration.sql b/tests/prisma-migrations/prisma-edgecases/prisma/20240711030805_init/migration.sql new file mode 100644 index 0000000000..224f5d7831 --- /dev/null +++ b/tests/prisma-migrations/prisma-edgecases/prisma/20240711030805_init/migration.sql @@ -0,0 +1,12 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" SERIAL NOT NULL, + "pseudo" TEXT NOT NULL, + "email" TEXT NOT NULL, + "firstname" VARCHAR(20) NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "User_pseudo_key" ON "User"("pseudo"); diff --git a/tests/prisma-migrations/prisma-edgecases/prisma/20240711033617_init/migration.sql b/tests/prisma-migrations/prisma-edgecases/prisma/20240711033617_init/migration.sql new file mode 100644 index 0000000000..224f5d7831 --- /dev/null +++ b/tests/prisma-migrations/prisma-edgecases/prisma/20240711033617_init/migration.sql @@ -0,0 +1,12 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" SERIAL NOT NULL, + "pseudo" TEXT NOT NULL, + "email" TEXT NOT NULL, + "firstname" VARCHAR(20) NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "User_pseudo_key" ON "User"("pseudo"); diff --git a/tests/prisma-migrations/prisma-edgecases/prisma/migration_lock.toml b/tests/prisma-migrations/prisma-edgecases/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/prisma-edgecases/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/prisma_normal/prisma/20240711030807_init/migration.sql b/tests/prisma-migrations/prisma_normal/prisma/20240711030807_init/migration.sql new file mode 100644 index 0000000000..479083e26c --- /dev/null +++ b/tests/prisma-migrations/prisma_normal/prisma/20240711030807_init/migration.sql @@ -0,0 +1,20 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Profile" ( + "id" INTEGER NOT NULL, + "userId" INTEGER NOT NULL, + + CONSTRAINT "Profile_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "Profile_userId_key" ON "Profile"("userId"); + +-- AddForeignKey +ALTER TABLE "Profile" ADD CONSTRAINT "Profile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/prisma_normal/prisma/20240711033610_init/migration.sql b/tests/prisma-migrations/prisma_normal/prisma/20240711033610_init/migration.sql new file mode 100644 index 0000000000..479083e26c --- /dev/null +++ b/tests/prisma-migrations/prisma_normal/prisma/20240711033610_init/migration.sql @@ -0,0 +1,20 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" INTEGER NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Profile" ( + "id" INTEGER NOT NULL, + "userId" INTEGER NOT NULL, + + CONSTRAINT "Profile_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "Profile_userId_key" ON "Profile"("userId"); + +-- AddForeignKey +ALTER TABLE "Profile" ADD CONSTRAINT "Profile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/prisma_normal/prisma/migration_lock.toml b/tests/prisma-migrations/prisma_normal/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/prisma_normal/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/prisma_opt_1/prisma/20240711030758_init/migration.sql b/tests/prisma-migrations/prisma_opt_1/prisma/20240711030758_init/migration.sql new file mode 100644 index 0000000000..3892421b99 --- /dev/null +++ b/tests/prisma-migrations/prisma_opt_1/prisma/20240711030758_init/migration.sql @@ -0,0 +1,30 @@ +-- CreateTable +CREATE TABLE "record" ( + "id" UUID NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + + CONSTRAINT "record_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "users" ( + "id" SERIAL NOT NULL, + "email" TEXT NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "users_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "messages" ( + "id" INTEGER NOT NULL, + "time" INTEGER NOT NULL, + "message" TEXT NOT NULL, + "senderId" INTEGER, + + CONSTRAINT "messages_pkey" PRIMARY KEY ("id") +); + +-- AddForeignKey +ALTER TABLE "messages" ADD CONSTRAINT "messages_senderId_fkey" FOREIGN KEY ("senderId") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/prisma_opt_1/prisma/20240711033603_init/migration.sql b/tests/prisma-migrations/prisma_opt_1/prisma/20240711033603_init/migration.sql new file mode 100644 index 0000000000..3892421b99 --- /dev/null +++ b/tests/prisma-migrations/prisma_opt_1/prisma/20240711033603_init/migration.sql @@ -0,0 +1,30 @@ +-- CreateTable +CREATE TABLE "record" ( + "id" UUID NOT NULL, + "name" TEXT NOT NULL, + "age" INTEGER, + + CONSTRAINT "record_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "users" ( + "id" SERIAL NOT NULL, + "email" TEXT NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "users_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "messages" ( + "id" INTEGER NOT NULL, + "time" INTEGER NOT NULL, + "message" TEXT NOT NULL, + "senderId" INTEGER, + + CONSTRAINT "messages_pkey" PRIMARY KEY ("id") +); + +-- AddForeignKey +ALTER TABLE "messages" ADD CONSTRAINT "messages_senderId_fkey" FOREIGN KEY ("senderId") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/tests/prisma-migrations/prisma_opt_1/prisma/migration_lock.toml b/tests/prisma-migrations/prisma_opt_1/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/prisma_opt_1/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/tests/prisma-migrations/typename/prisma/20240711031129_init/migration.sql b/tests/prisma-migrations/typename/prisma/20240711031129_init/migration.sql new file mode 100644 index 0000000000..8195a541ec --- /dev/null +++ b/tests/prisma-migrations/typename/prisma/20240711031129_init/migration.sql @@ -0,0 +1,6 @@ +-- CreateTable +CREATE TABLE "userprisma" ( + "id" INTEGER NOT NULL, + + CONSTRAINT "userprisma_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/typename/prisma/20240711034130_init/migration.sql b/tests/prisma-migrations/typename/prisma/20240711034130_init/migration.sql new file mode 100644 index 0000000000..8195a541ec --- /dev/null +++ b/tests/prisma-migrations/typename/prisma/20240711034130_init/migration.sql @@ -0,0 +1,6 @@ +-- CreateTable +CREATE TABLE "userprisma" ( + "id" INTEGER NOT NULL, + + CONSTRAINT "userprisma_pkey" PRIMARY KEY ("id") +); diff --git a/tests/prisma-migrations/typename/prisma/migration_lock.toml b/tests/prisma-migrations/typename/prisma/migration_lock.toml new file mode 100644 index 0000000000..99e4f20090 --- /dev/null +++ b/tests/prisma-migrations/typename/prisma/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" diff --git a/typegate/tests/prisma_migrate/prisma_migrate_test.ts b/tests/prisma_migrate/prisma_migrate_test.ts similarity index 97% rename from typegate/tests/prisma_migrate/prisma_migrate_test.ts rename to tests/prisma_migrate/prisma_migrate_test.ts index 7ba9d79c6c..6f899508ca 100644 --- a/typegate/tests/prisma_migrate/prisma_migrate_test.ts +++ b/tests/prisma_migrate/prisma_migrate_test.ts @@ -6,10 +6,10 @@ import { assertArrayIncludes, assertEquals, assertExists, -} from "std/assert/mod.ts"; -import { join } from "std/path/mod.ts"; +} from "@std/assert"; +import { join } from "@std/path"; import * as native from "native"; -import { nativeResult } from "../../src/utils.ts"; +import { nativeResult } from "@metatype/typegate/utils.ts"; import { gql, Meta } from "../utils/mod.ts"; import { dropSchemas, removeMigrations } from "../utils/migrations.ts"; import { testDir } from "../utils/dir.ts"; diff --git a/typegate/tests/query_parsers/__snapshots__/query_parsers_test.ts.snap b/tests/query_parsers/__snapshots__/query_parsers_test.ts.snap similarity index 100% rename from typegate/tests/query_parsers/__snapshots__/query_parsers_test.ts.snap rename to tests/query_parsers/__snapshots__/query_parsers_test.ts.snap diff --git a/typegate/tests/query_parsers/graphql_namespaces.py b/tests/query_parsers/graphql_namespaces.py similarity index 100% rename from typegate/tests/query_parsers/graphql_namespaces.py rename to tests/query_parsers/graphql_namespaces.py diff --git a/typegate/tests/query_parsers/query_parsers_test.ts b/tests/query_parsers/query_parsers_test.ts similarity index 100% rename from typegate/tests/query_parsers/query_parsers_test.ts rename to tests/query_parsers/query_parsers_test.ts diff --git a/typegate/tests/random/injection/random_injection.py b/tests/random/injection/random_injection.py similarity index 100% rename from typegate/tests/random/injection/random_injection.py rename to tests/random/injection/random_injection.py diff --git a/typegate/tests/random/injection/random_injection.ts b/tests/random/injection/random_injection.ts similarity index 100% rename from typegate/tests/random/injection/random_injection.ts rename to tests/random/injection/random_injection.ts diff --git a/typegate/tests/random/injection/random_injection_test.ts b/tests/random/injection/random_injection_test.ts similarity index 100% rename from typegate/tests/random/injection/random_injection_test.ts rename to tests/random/injection/random_injection_test.ts diff --git a/typegate/tests/random/random.ts b/tests/random/random.ts similarity index 100% rename from typegate/tests/random/random.ts rename to tests/random/random.ts diff --git a/typegate/tests/random/random_.py b/tests/random/random_.py similarity index 100% rename from typegate/tests/random/random_.py rename to tests/random/random_.py diff --git a/typegate/tests/random/random_test.ts b/tests/random/random_test.ts similarity index 100% rename from typegate/tests/random/random_test.ts rename to tests/random/random_test.ts diff --git a/typegate/tests/rate_limiter/rate_limiter_test.ts b/tests/rate_limiter/rate_limiter_test.ts similarity index 98% rename from typegate/tests/rate_limiter/rate_limiter_test.ts rename to tests/rate_limiter/rate_limiter_test.ts index d99fb78932..dc5e6c8aee 100644 --- a/typegate/tests/rate_limiter/rate_limiter_test.ts +++ b/tests/rate_limiter/rate_limiter_test.ts @@ -5,8 +5,8 @@ import { decrPosCmd, RateLimit, RedisRateLimiter, -} from "../../src/typegate/rate_limiter.ts"; -import { assertEquals, assertThrows } from "std/assert/mod.ts"; +} from "@metatype/typegate/typegate/rate_limiter.ts"; +import { assertEquals, assertThrows } from "@std/assert"; import { connect, Raw } from "redis"; import { sleep } from "test-utils/mod.ts"; @@ -23,7 +23,7 @@ const redisConfig = { hostname: "localhost", port: 6379, password: "password", - db: 1, + db: 12, }; Deno.test("Rate limiter", async (t) => { diff --git a/typegate/tests/regression/invalid_ref_error_message/invalid_ref.py b/tests/regression/invalid_ref_error_message/invalid_ref.py similarity index 100% rename from typegate/tests/regression/invalid_ref_error_message/invalid_ref.py rename to tests/regression/invalid_ref_error_message/invalid_ref.py diff --git a/typegate/tests/regression/invalid_ref_error_message/invalid_ref_test.ts b/tests/regression/invalid_ref_error_message/invalid_ref_test.ts similarity index 87% rename from typegate/tests/regression/invalid_ref_error_message/invalid_ref_test.ts rename to tests/regression/invalid_ref_error_message/invalid_ref_test.ts index 530776168a..f9633fb9c6 100644 --- a/typegate/tests/regression/invalid_ref_error_message/invalid_ref_test.ts +++ b/tests/regression/invalid_ref_error_message/invalid_ref_test.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Elastic-2.0 import { Meta } from "test-utils/mod.ts"; -import { assertRejects } from "std/assert/mod.ts"; +import { assertRejects } from "@std/assert"; Meta.test("invalid ref", async (t) => { await assertRejects( diff --git a/typegate/tests/rest/__snapshots__/rest_test.ts.snap b/tests/rest/__snapshots__/rest_test.ts.snap similarity index 100% rename from typegate/tests/rest/__snapshots__/rest_test.ts.snap rename to tests/rest/__snapshots__/rest_test.ts.snap diff --git a/typegate/tests/rest/custom/custom_loader.ts b/tests/rest/custom/custom_loader.ts similarity index 64% rename from typegate/tests/rest/custom/custom_loader.ts rename to tests/rest/custom/custom_loader.ts index cfd447134c..3db39d6999 100644 --- a/typegate/tests/rest/custom/custom_loader.ts +++ b/tests/rest/custom/custom_loader.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { dirname } from "std/path/dirname.ts"; -import { resolve } from "std/path/resolve.ts"; -import { join } from "std/path/join.ts"; -import { fromFileUrl } from "std/path/from_file_url.ts"; +import { dirname } from "@std/path/dirname"; +import { resolve } from "@std/path/resolve"; +import { join } from "@std/path/join"; +import { fromFileUrl } from "@std/path/from-file-url"; const customDir = resolve(dirname(fromFileUrl(import.meta.url))); diff --git a/typegate/tests/rest/custom/m.gql b/tests/rest/custom/m.gql similarity index 100% rename from typegate/tests/rest/custom/m.gql rename to tests/rest/custom/m.gql diff --git a/typegate/tests/rest/custom/q.graphql b/tests/rest/custom/q.graphql similarity index 100% rename from typegate/tests/rest/custom/q.graphql rename to tests/rest/custom/q.graphql diff --git a/typegate/tests/rest/rest_custom_loader.ts b/tests/rest/rest_custom_loader.ts similarity index 100% rename from typegate/tests/rest/rest_custom_loader.ts rename to tests/rest/rest_custom_loader.ts diff --git a/typegate/tests/rest/rest_schema.ts b/tests/rest/rest_schema.ts similarity index 100% rename from typegate/tests/rest/rest_schema.ts rename to tests/rest/rest_schema.ts diff --git a/typegate/tests/rest/rest_simple.py b/tests/rest/rest_simple.py similarity index 100% rename from typegate/tests/rest/rest_simple.py rename to tests/rest/rest_simple.py diff --git a/typegate/tests/rest/rest_test.ts b/tests/rest/rest_test.ts similarity index 96% rename from typegate/tests/rest/rest_test.ts rename to tests/rest/rest_test.ts index 3f86df6fb4..41a2e3e954 100644 --- a/typegate/tests/rest/rest_test.ts +++ b/tests/rest/rest_test.ts @@ -1,9 +1,9 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assertEquals, assertStringIncludes } from "std/assert/mod.ts"; +import { assertEquals, assertStringIncludes } from "@std/assert"; import { gql, Meta, rest } from "../utils/mod.ts"; -import { RestSchemaGenerator } from "../../src/transports/rest/rest_schema_generator.ts"; +import { RestSchemaGenerator } from "@metatype/typegate/transports/rest/rest_schema_generator.ts"; Meta.test("Rest queries in Python", async (t) => { const e = await t.engine("rest/rest_simple.py"); diff --git a/typegate/tests/runtimes/deno/deno.py b/tests/runtimes/deno/deno.py similarity index 100% rename from typegate/tests/runtimes/deno/deno.py rename to tests/runtimes/deno/deno.py diff --git a/typegate/tests/runtimes/deno/deno_dep.py b/tests/runtimes/deno/deno_dep.py similarity index 100% rename from typegate/tests/runtimes/deno/deno_dep.py rename to tests/runtimes/deno/deno_dep.py diff --git a/typegate/tests/runtimes/deno/deno_dep.ts b/tests/runtimes/deno/deno_dep.ts similarity index 100% rename from typegate/tests/runtimes/deno/deno_dep.ts rename to tests/runtimes/deno/deno_dep.ts diff --git a/typegate/tests/runtimes/deno/deno_dir.py b/tests/runtimes/deno/deno_dir.py similarity index 100% rename from typegate/tests/runtimes/deno/deno_dir.py rename to tests/runtimes/deno/deno_dir.py diff --git a/typegate/tests/runtimes/deno/deno_dir.ts b/tests/runtimes/deno/deno_dir.ts similarity index 100% rename from typegate/tests/runtimes/deno/deno_dir.ts rename to tests/runtimes/deno/deno_dir.ts diff --git a/typegate/tests/runtimes/deno/deno_dir_test.ts b/tests/runtimes/deno/deno_dir_test.ts similarity index 100% rename from typegate/tests/runtimes/deno/deno_dir_test.ts rename to tests/runtimes/deno/deno_dir_test.ts diff --git a/typegate/tests/runtimes/deno/deno_duplicate_artifact.py b/tests/runtimes/deno/deno_duplicate_artifact.py similarity index 100% rename from typegate/tests/runtimes/deno/deno_duplicate_artifact.py rename to tests/runtimes/deno/deno_duplicate_artifact.py diff --git a/typegate/tests/runtimes/deno/deno_duplicate_artifact.ts b/tests/runtimes/deno/deno_duplicate_artifact.ts similarity index 100% rename from typegate/tests/runtimes/deno/deno_duplicate_artifact.ts rename to tests/runtimes/deno/deno_duplicate_artifact.ts diff --git a/typegate/tests/runtimes/deno/deno_glob_test.ts b/tests/runtimes/deno/deno_glob_test.ts similarity index 100% rename from typegate/tests/runtimes/deno/deno_glob_test.ts rename to tests/runtimes/deno/deno_glob_test.ts diff --git a/typegate/tests/runtimes/deno/deno_globs.py b/tests/runtimes/deno/deno_globs.py similarity index 100% rename from typegate/tests/runtimes/deno/deno_globs.py rename to tests/runtimes/deno/deno_globs.py diff --git a/typegate/tests/runtimes/deno/deno_globs.ts b/tests/runtimes/deno/deno_globs.ts similarity index 100% rename from typegate/tests/runtimes/deno/deno_globs.ts rename to tests/runtimes/deno/deno_globs.ts diff --git a/typegate/tests/runtimes/deno/deno_no_artifact.py b/tests/runtimes/deno/deno_no_artifact.py similarity index 100% rename from typegate/tests/runtimes/deno/deno_no_artifact.py rename to tests/runtimes/deno/deno_no_artifact.py diff --git a/typegate/tests/runtimes/deno/deno_partial.py b/tests/runtimes/deno/deno_partial.py similarity index 100% rename from typegate/tests/runtimes/deno/deno_partial.py rename to tests/runtimes/deno/deno_partial.py diff --git a/typegate/tests/runtimes/deno/deno_reload.py b/tests/runtimes/deno/deno_reload.py similarity index 100% rename from typegate/tests/runtimes/deno/deno_reload.py rename to tests/runtimes/deno/deno_reload.py diff --git a/typegate/tests/runtimes/deno/deno_sync_test.ts b/tests/runtimes/deno/deno_sync_test.ts similarity index 99% rename from typegate/tests/runtimes/deno/deno_sync_test.ts rename to tests/runtimes/deno/deno_sync_test.ts index 4caec7f331..a9e2477833 100644 --- a/typegate/tests/runtimes/deno/deno_sync_test.ts +++ b/tests/runtimes/deno/deno_sync_test.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Elastic-2.0 import { gql, Meta, sleep } from "../../utils/mod.ts"; -import * as path from "std/path/mod.ts"; +import * as path from "@std/path"; import { clearSyncData, setupSync } from "test-utils/hooks.ts"; const syncConfig = { @@ -317,7 +317,7 @@ Meta.test( }, async (t) => { const denoScript = path.join( - "typegate/tests/runtimes/deno", + "tests/runtimes/deno", "reload", "template.ts", ); diff --git a/typegate/tests/runtimes/deno/deno_test.ts b/tests/runtimes/deno/deno_test.ts similarity index 99% rename from typegate/tests/runtimes/deno/deno_test.ts rename to tests/runtimes/deno/deno_test.ts index 33deccf952..3e7498623d 100644 --- a/typegate/tests/runtimes/deno/deno_test.ts +++ b/tests/runtimes/deno/deno_test.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Elastic-2.0 import { gql, Meta, sleep } from "../../utils/mod.ts"; -import * as path from "std/path/mod.ts"; +import * as path from "@std/path"; Meta.test( { diff --git a/typegate/tests/runtimes/deno/deno_typescript.ts b/tests/runtimes/deno/deno_typescript.ts similarity index 100% rename from typegate/tests/runtimes/deno/deno_typescript.ts rename to tests/runtimes/deno/deno_typescript.ts diff --git a/typegate/tests/runtimes/deno/dynamic/1.ts b/tests/runtimes/deno/dynamic/1.ts similarity index 100% rename from typegate/tests/runtimes/deno/dynamic/1.ts rename to tests/runtimes/deno/dynamic/1.ts diff --git a/typegate/tests/runtimes/deno/dynamic/2.ts b/tests/runtimes/deno/dynamic/2.ts similarity index 100% rename from typegate/tests/runtimes/deno/dynamic/2.ts rename to tests/runtimes/deno/dynamic/2.ts diff --git a/typegate/tests/runtimes/deno/reload/template.ts b/tests/runtimes/deno/reload/template.ts similarity index 100% rename from typegate/tests/runtimes/deno/reload/template.ts rename to tests/runtimes/deno/reload/template.ts diff --git a/typegate/tests/runtimes/deno/ts/deno.ts b/tests/runtimes/deno/ts/deno.ts similarity index 100% rename from typegate/tests/runtimes/deno/ts/deno.ts rename to tests/runtimes/deno/ts/deno.ts diff --git a/typegate/tests/runtimes/deno/ts/dep/main.ts b/tests/runtimes/deno/ts/dep/main.ts similarity index 100% rename from typegate/tests/runtimes/deno/ts/dep/main.ts rename to tests/runtimes/deno/ts/dep/main.ts diff --git a/typegate/tests/runtimes/deno/ts/dep/nested/dep.ts b/tests/runtimes/deno/ts/dep/nested/dep.ts similarity index 100% rename from typegate/tests/runtimes/deno/ts/dep/nested/dep.ts rename to tests/runtimes/deno/ts/dep/nested/dep.ts diff --git a/typegate/tests/runtimes/deno/ts/math-npm.ts b/tests/runtimes/deno/ts/math-npm.ts similarity index 89% rename from typegate/tests/runtimes/deno/ts/math-npm.ts rename to tests/runtimes/deno/ts/math-npm.ts index f8c79a672b..d1fc05e5e5 100644 --- a/typegate/tests/runtimes/deno/ts/math-npm.ts +++ b/tests/runtimes/deno/ts/math-npm.ts @@ -1,6 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 +// deno-lint-ignore no-external-import import * as MathJS from "npm:mathjs@11.11.1"; interface LogInput { diff --git a/typegate/tests/runtimes/deno/ts/math.ts b/tests/runtimes/deno/ts/math.ts similarity index 91% rename from typegate/tests/runtimes/deno/ts/math.ts rename to tests/runtimes/deno/ts/math.ts index ae4db35f7c..10871f4243 100644 --- a/typegate/tests/runtimes/deno/ts/math.ts +++ b/tests/runtimes/deno/ts/math.ts @@ -1,6 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 +// deno-lint-ignore no-external-import import * as MathLib from "https://deno.land/x/math@v1.1.0/mod.ts"; interface MinInput { diff --git a/typegate/tests/runtimes/graphql/__snapshots__/graphql_test.ts.snap b/tests/runtimes/graphql/__snapshots__/graphql_test.ts.snap similarity index 100% rename from typegate/tests/runtimes/graphql/__snapshots__/graphql_test.ts.snap rename to tests/runtimes/graphql/__snapshots__/graphql_test.ts.snap diff --git a/typegate/tests/runtimes/graphql/graphql_test.ts b/tests/runtimes/graphql/graphql_test.ts similarity index 98% rename from typegate/tests/runtimes/graphql/graphql_test.ts rename to tests/runtimes/graphql/graphql_test.ts index c0fcbd1e8d..42fa61f826 100644 --- a/typegate/tests/runtimes/graphql/graphql_test.ts +++ b/tests/runtimes/graphql/graphql_test.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryEngine } from "../../../src/engine/query_engine.ts"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; import { removeMigrations } from "../../utils/migrations.ts"; import { dropSchemas, recreateMigrations } from "../../utils/migrations.ts"; import { gql, Meta } from "../../utils/mod.ts"; diff --git a/typegate/tests/runtimes/graphql/typegraphs/deno/graphql.ts b/tests/runtimes/graphql/typegraphs/deno/graphql.ts similarity index 100% rename from typegate/tests/runtimes/graphql/typegraphs/deno/graphql.ts rename to tests/runtimes/graphql/typegraphs/deno/graphql.ts diff --git a/typegate/tests/runtimes/graphql/typegraphs/python/graphql.py b/tests/runtimes/graphql/typegraphs/python/graphql.py similarity index 100% rename from typegate/tests/runtimes/graphql/typegraphs/python/graphql.py rename to tests/runtimes/graphql/typegraphs/python/graphql.py diff --git a/typegate/tests/runtimes/http/http_content_type.py b/tests/runtimes/http/http_content_type.py similarity index 100% rename from typegate/tests/runtimes/http/http_content_type.py rename to tests/runtimes/http/http_content_type.py diff --git a/typegate/tests/runtimes/http/http_content_type_test.ts b/tests/runtimes/http/http_content_type_test.ts similarity index 100% rename from typegate/tests/runtimes/http/http_content_type_test.ts rename to tests/runtimes/http/http_content_type_test.ts diff --git a/typegate/tests/runtimes/http/http_py.py b/tests/runtimes/http/http_py.py similarity index 100% rename from typegate/tests/runtimes/http/http_py.py rename to tests/runtimes/http/http_py.py diff --git a/typegate/tests/runtimes/http/http_test.ts b/tests/runtimes/http/http_test.ts similarity index 100% rename from typegate/tests/runtimes/http/http_test.ts rename to tests/runtimes/http/http_test.ts diff --git a/typegate/tests/runtimes/kv/__snapshots__/kv_test.ts.snap b/tests/runtimes/kv/__snapshots__/kv_test.ts.snap similarity index 100% rename from typegate/tests/runtimes/kv/__snapshots__/kv_test.ts.snap rename to tests/runtimes/kv/__snapshots__/kv_test.ts.snap diff --git a/typegate/tests/runtimes/kv/kv.py b/tests/runtimes/kv/kv.py similarity index 100% rename from typegate/tests/runtimes/kv/kv.py rename to tests/runtimes/kv/kv.py diff --git a/typegate/tests/runtimes/kv/kv.ts b/tests/runtimes/kv/kv.ts similarity index 100% rename from typegate/tests/runtimes/kv/kv.ts rename to tests/runtimes/kv/kv.ts diff --git a/typegate/tests/runtimes/kv/kv_test.ts b/tests/runtimes/kv/kv_test.ts similarity index 100% rename from typegate/tests/runtimes/kv/kv_test.ts rename to tests/runtimes/kv/kv_test.ts diff --git a/typegate/tests/runtimes/prisma/full_prisma_mapping.py b/tests/runtimes/prisma/full_prisma_mapping.py similarity index 100% rename from typegate/tests/runtimes/prisma/full_prisma_mapping.py rename to tests/runtimes/prisma/full_prisma_mapping.py diff --git a/typegate/tests/runtimes/prisma/full_prisma_mapping_test.ts b/tests/runtimes/prisma/full_prisma_mapping_test.ts similarity index 100% rename from typegate/tests/runtimes/prisma/full_prisma_mapping_test.ts rename to tests/runtimes/prisma/full_prisma_mapping_test.ts diff --git a/typegate/tests/runtimes/prisma/graphql_variables_test.ts b/tests/runtimes/prisma/graphql_variables_test.ts similarity index 94% rename from typegate/tests/runtimes/prisma/graphql_variables_test.ts rename to tests/runtimes/prisma/graphql_variables_test.ts index 0bd9b7bb79..47a3d20cb0 100644 --- a/typegate/tests/runtimes/prisma/graphql_variables_test.ts +++ b/tests/runtimes/prisma/graphql_variables_test.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { v4 } from "std/uuid/mod.ts"; -import { assert } from "std/assert/mod.ts"; +import { v4 } from "@std/uuid"; +import { assert } from "@std/assert"; import { dropSchemas, recreateMigrations } from "../../utils/migrations.ts"; import { gql, Meta } from "../../utils/mod.ts"; diff --git a/typegate/tests/runtimes/prisma/mixed_runtime.py b/tests/runtimes/prisma/mixed_runtime.py similarity index 100% rename from typegate/tests/runtimes/prisma/mixed_runtime.py rename to tests/runtimes/prisma/mixed_runtime.py diff --git a/typegate/tests/runtimes/prisma/mixed_runtime_test.ts b/tests/runtimes/prisma/mixed_runtime_test.ts similarity index 100% rename from typegate/tests/runtimes/prisma/mixed_runtime_test.ts rename to tests/runtimes/prisma/mixed_runtime_test.ts diff --git a/typegate/tests/runtimes/prisma/multi_relations.py b/tests/runtimes/prisma/multi_relations.py similarity index 100% rename from typegate/tests/runtimes/prisma/multi_relations.py rename to tests/runtimes/prisma/multi_relations.py diff --git a/typegate/tests/runtimes/prisma/multi_relations_test.ts b/tests/runtimes/prisma/multi_relations_test.ts similarity index 100% rename from typegate/tests/runtimes/prisma/multi_relations_test.ts rename to tests/runtimes/prisma/multi_relations_test.ts diff --git a/typegate/tests/runtimes/prisma/multiple_runtimes.py b/tests/runtimes/prisma/multiple_runtimes.py similarity index 100% rename from typegate/tests/runtimes/prisma/multiple_runtimes.py rename to tests/runtimes/prisma/multiple_runtimes.py diff --git a/typegate/tests/runtimes/prisma/multiple_runtimes_test.ts b/tests/runtimes/prisma/multiple_runtimes_test.ts similarity index 100% rename from typegate/tests/runtimes/prisma/multiple_runtimes_test.ts rename to tests/runtimes/prisma/multiple_runtimes_test.ts diff --git a/typegate/tests/runtimes/prisma/normal_1_1.py b/tests/runtimes/prisma/normal_1_1.py similarity index 100% rename from typegate/tests/runtimes/prisma/normal_1_1.py rename to tests/runtimes/prisma/normal_1_1.py diff --git a/typegate/tests/runtimes/prisma/normal_1_1.ts b/tests/runtimes/prisma/normal_1_1.ts similarity index 100% rename from typegate/tests/runtimes/prisma/normal_1_1.ts rename to tests/runtimes/prisma/normal_1_1.ts diff --git a/typegate/tests/runtimes/prisma/one_to_many_test.ts b/tests/runtimes/prisma/one_to_many_test.ts similarity index 100% rename from typegate/tests/runtimes/prisma/one_to_many_test.ts rename to tests/runtimes/prisma/one_to_many_test.ts diff --git a/typegate/tests/runtimes/prisma/one_to_one_test.ts b/tests/runtimes/prisma/one_to_one_test.ts similarity index 97% rename from typegate/tests/runtimes/prisma/one_to_one_test.ts rename to tests/runtimes/prisma/one_to_one_test.ts index 60f6f8ae84..7e9ab901a6 100644 --- a/typegate/tests/runtimes/prisma/one_to_one_test.ts +++ b/tests/runtimes/prisma/one_to_one_test.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryEngine } from "../../../src/engine/query_engine.ts"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; import { randomPGConnStr } from "../../utils/database.ts"; import { dropSchemas, recreateMigrations } from "../../utils/migrations.ts"; import { gql, Meta } from "../../utils/mod.ts"; diff --git a/typegate/tests/runtimes/prisma/optional_1_1.py b/tests/runtimes/prisma/optional_1_1.py similarity index 100% rename from typegate/tests/runtimes/prisma/optional_1_1.py rename to tests/runtimes/prisma/optional_1_1.py diff --git a/typegate/tests/runtimes/prisma/optional_1_n.py b/tests/runtimes/prisma/optional_1_n.py similarity index 100% rename from typegate/tests/runtimes/prisma/optional_1_n.py rename to tests/runtimes/prisma/optional_1_n.py diff --git a/typegate/tests/runtimes/prisma/optional_1_n.ts b/tests/runtimes/prisma/optional_1_n.ts similarity index 100% rename from typegate/tests/runtimes/prisma/optional_1_n.ts rename to tests/runtimes/prisma/optional_1_n.ts diff --git a/typegate/tests/runtimes/prisma/prisma.py b/tests/runtimes/prisma/prisma.py similarity index 100% rename from typegate/tests/runtimes/prisma/prisma.py rename to tests/runtimes/prisma/prisma.py diff --git a/typegate/tests/runtimes/prisma/prisma_edgecases.py b/tests/runtimes/prisma/prisma_edgecases.py similarity index 100% rename from typegate/tests/runtimes/prisma/prisma_edgecases.py rename to tests/runtimes/prisma/prisma_edgecases.py diff --git a/typegate/tests/runtimes/prisma/prisma_edgecases_test.ts b/tests/runtimes/prisma/prisma_edgecases_test.ts similarity index 100% rename from typegate/tests/runtimes/prisma/prisma_edgecases_test.ts rename to tests/runtimes/prisma/prisma_edgecases_test.ts diff --git a/typegate/tests/runtimes/prisma/prisma_test.ts b/tests/runtimes/prisma/prisma_test.ts similarity index 97% rename from typegate/tests/runtimes/prisma/prisma_test.ts rename to tests/runtimes/prisma/prisma_test.ts index 92d73ec859..bf2e3b5b49 100644 --- a/typegate/tests/runtimes/prisma/prisma_test.ts +++ b/tests/runtimes/prisma/prisma_test.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { v4 } from "std/uuid/mod.ts"; -import { assert } from "std/assert/mod.ts"; +import { v4 } from "@std/uuid"; +import { assert } from "@std/assert"; import { dropSchemas, recreateMigrations } from "../../utils/migrations.ts"; import { gql, Meta } from "../../utils/mod.ts"; import { randomPGConnStr } from "../../utils/database.ts"; diff --git a/typegate/tests/runtimes/prisma/query_builder_test.ts b/tests/runtimes/prisma/query_builder_test.ts similarity index 92% rename from typegate/tests/runtimes/prisma/query_builder_test.ts rename to tests/runtimes/prisma/query_builder_test.ts index 7f81708dd5..52c5115240 100644 --- a/typegate/tests/runtimes/prisma/query_builder_test.ts +++ b/tests/runtimes/prisma/query_builder_test.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assertEquals } from "std/assert/mod.ts"; -import { PrismaRuntime } from "../../../src/runtimes/prisma/prisma.ts"; +import { assertEquals } from "@std/assert"; +import { PrismaRuntime } from "@metatype/typegate/runtimes/prisma/prisma.ts"; import { gql, Meta } from "../../utils/mod.ts"; import { randomPGConnStr } from "../../utils/database.ts"; diff --git a/typegate/tests/runtimes/prisma/schema_generation.py b/tests/runtimes/prisma/schema_generation.py similarity index 100% rename from typegate/tests/runtimes/prisma/schema_generation.py rename to tests/runtimes/prisma/schema_generation.py diff --git a/typegate/tests/runtimes/prisma/schema_generation_test.ts b/tests/runtimes/prisma/schema_generation_test.ts similarity index 97% rename from typegate/tests/runtimes/prisma/schema_generation_test.ts rename to tests/runtimes/prisma/schema_generation_test.ts index d3bf32143e..8b84b3e911 100644 --- a/typegate/tests/runtimes/prisma/schema_generation_test.ts +++ b/tests/runtimes/prisma/schema_generation_test.ts @@ -3,12 +3,12 @@ import { Meta } from "../../utils/mod.ts"; import { serialize } from "../../utils/meta.ts"; -import { SchemaGenerator } from "../../../src/runtimes/prisma/hooks/generate_schema.ts"; -import * as PrismaRT from "../../../src/runtimes/prisma/types.ts"; -import { assertEquals } from "std/assert/mod.ts"; +import { SchemaGenerator } from "@metatype/typegate/runtimes/prisma/hooks/generate_schema.ts"; +import * as PrismaRT from "@metatype/typegate/runtimes/prisma/types.ts"; +import { assertEquals } from "@std/assert"; import outdent from "outdent"; -import { SecretManager, TypeGraph } from "../../../src/typegraph/mod.ts"; -import { Model } from "../../../src/typegraph/types.ts"; +import { SecretManager, TypeGraph } from "@metatype/typegate/typegraph/mod.ts"; +import { Model } from "@metatype/typegate/typegraph/types.ts"; interface Permutation { (arr: T[]): T[]; diff --git a/typegate/tests/runtimes/python/py/hello.py b/tests/runtimes/python/py/hello.py similarity index 100% rename from typegate/tests/runtimes/python/py/hello.py rename to tests/runtimes/python/py/hello.py diff --git a/typegate/tests/runtimes/python/py/nested/dep.py b/tests/runtimes/python/py/nested/dep.py similarity index 100% rename from typegate/tests/runtimes/python/py/nested/dep.py rename to tests/runtimes/python/py/nested/dep.py diff --git a/typegate/tests/runtimes/python/python.py b/tests/runtimes/python/python.py similarity index 100% rename from typegate/tests/runtimes/python/python.py rename to tests/runtimes/python/python.py diff --git a/typegate/tests/runtimes/python/python.ts b/tests/runtimes/python/python.ts similarity index 100% rename from typegate/tests/runtimes/python/python.ts rename to tests/runtimes/python/python.ts diff --git a/typegate/tests/runtimes/python/python_dir.py b/tests/runtimes/python/python_dir.py similarity index 100% rename from typegate/tests/runtimes/python/python_dir.py rename to tests/runtimes/python/python_dir.py diff --git a/typegate/tests/runtimes/python/python_dir.ts b/tests/runtimes/python/python_dir.ts similarity index 100% rename from typegate/tests/runtimes/python/python_dir.ts rename to tests/runtimes/python/python_dir.ts diff --git a/typegate/tests/runtimes/python/python_dir_test.ts b/tests/runtimes/python/python_dir_test.ts similarity index 100% rename from typegate/tests/runtimes/python/python_dir_test.ts rename to tests/runtimes/python/python_dir_test.ts diff --git a/typegate/tests/runtimes/python/python_duplicate_artifact.py b/tests/runtimes/python/python_duplicate_artifact.py similarity index 100% rename from typegate/tests/runtimes/python/python_duplicate_artifact.py rename to tests/runtimes/python/python_duplicate_artifact.py diff --git a/typegate/tests/runtimes/python/python_duplicate_artifact.ts b/tests/runtimes/python/python_duplicate_artifact.ts similarity index 100% rename from typegate/tests/runtimes/python/python_duplicate_artifact.ts rename to tests/runtimes/python/python_duplicate_artifact.ts diff --git a/typegate/tests/runtimes/python/python_glob_test.ts b/tests/runtimes/python/python_glob_test.ts similarity index 100% rename from typegate/tests/runtimes/python/python_glob_test.ts rename to tests/runtimes/python/python_glob_test.ts diff --git a/typegate/tests/runtimes/python/python_globs.py b/tests/runtimes/python/python_globs.py similarity index 100% rename from typegate/tests/runtimes/python/python_globs.py rename to tests/runtimes/python/python_globs.py diff --git a/typegate/tests/runtimes/python/python_globs.ts b/tests/runtimes/python/python_globs.ts similarity index 100% rename from typegate/tests/runtimes/python/python_globs.ts rename to tests/runtimes/python/python_globs.ts diff --git a/typegate/tests/runtimes/python/python_no_artifact.py b/tests/runtimes/python/python_no_artifact.py similarity index 100% rename from typegate/tests/runtimes/python/python_no_artifact.py rename to tests/runtimes/python/python_no_artifact.py diff --git a/typegate/tests/runtimes/python/python_no_artifact.ts b/tests/runtimes/python/python_no_artifact.ts similarity index 100% rename from typegate/tests/runtimes/python/python_no_artifact.ts rename to tests/runtimes/python/python_no_artifact.ts diff --git a/typegate/tests/runtimes/python/python_sync_test.ts b/tests/runtimes/python/python_sync_test.ts similarity index 99% rename from typegate/tests/runtimes/python/python_sync_test.ts rename to tests/runtimes/python/python_sync_test.ts index da49b3871f..0ad6a0c522 100644 --- a/typegate/tests/runtimes/python/python_sync_test.ts +++ b/tests/runtimes/python/python_sync_test.ts @@ -5,8 +5,8 @@ import { gql, Meta, sleep } from "../../utils/mod.ts"; import { connect } from "redis"; import { S3Client } from "aws-sdk/client-s3"; import { createBucket, listObjects, tryDeleteBucket } from "test-utils/s3.ts"; -import { assert, assertEquals } from "std/assert/mod.ts"; -import { QueryEngine } from "../../../src/engine/query_engine.ts"; +import { assert, assertEquals } from "@std/assert"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; const redisKey = "typegraph"; const redisEventKey = "typegraph_event"; diff --git a/typegate/tests/runtimes/python/python_test.ts b/tests/runtimes/python/python_test.ts similarity index 97% rename from typegate/tests/runtimes/python/python_test.ts rename to tests/runtimes/python/python_test.ts index e98feab5b2..54777b529f 100644 --- a/typegate/tests/runtimes/python/python_test.ts +++ b/tests/runtimes/python/python_test.ts @@ -1,11 +1,11 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assert, assertEquals } from "std/assert/mod.ts"; +import { assert, assertEquals } from "@std/assert"; import { gql, Meta } from "test-utils/mod.ts"; -import { WitWireMessenger } from "../../../src/runtimes/wit_wire/mod.ts"; -import { QueryEngine } from "../../../src/engine/query_engine.ts"; -import type { ResolverArgs } from "../../../src/types.ts"; +import { WitWireMessenger } from "@metatype/typegate/runtimes/wit_wire/mod.ts"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; +import type { ResolverArgs } from "@metatype/typegate/types.ts"; Meta.test("Python VM performance", async (t) => { await t.should("work with low latency for lambdas", async () => { diff --git a/typegate/tests/runtimes/s3/__snapshots__/s3_test.ts.snap b/tests/runtimes/s3/__snapshots__/s3_test.ts.snap similarity index 100% rename from typegate/tests/runtimes/s3/__snapshots__/s3_test.ts.snap rename to tests/runtimes/s3/__snapshots__/s3_test.ts.snap diff --git a/typegate/tests/runtimes/s3/s3.py b/tests/runtimes/s3/s3.py similarity index 100% rename from typegate/tests/runtimes/s3/s3.py rename to tests/runtimes/s3/s3.py diff --git a/typegate/tests/runtimes/s3/s3.ts b/tests/runtimes/s3/s3.ts similarity index 100% rename from typegate/tests/runtimes/s3/s3.ts rename to tests/runtimes/s3/s3.ts diff --git a/typegate/tests/runtimes/s3/s3_test.ts b/tests/runtimes/s3/s3_test.ts similarity index 99% rename from typegate/tests/runtimes/s3/s3_test.ts rename to tests/runtimes/s3/s3_test.ts index ce129c20c8..715fa45cdf 100644 --- a/typegate/tests/runtimes/s3/s3_test.ts +++ b/tests/runtimes/s3/s3_test.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assertEquals, assertExists } from "std/assert/mod.ts"; +import { assertEquals, assertExists } from "@std/assert"; import { execute, gql, Meta } from "../../utils/mod.ts"; import { CreateBucketCommand, diff --git a/typegate/tests/runtimes/temporal/__snapshots__/temporal_test.ts.snap b/tests/runtimes/temporal/__snapshots__/temporal_test.ts.snap similarity index 100% rename from typegate/tests/runtimes/temporal/__snapshots__/temporal_test.ts.snap rename to tests/runtimes/temporal/__snapshots__/temporal_test.ts.snap diff --git a/typegate/tests/runtimes/temporal/temporal.py b/tests/runtimes/temporal/temporal.py similarity index 100% rename from typegate/tests/runtimes/temporal/temporal.py rename to tests/runtimes/temporal/temporal.py diff --git a/typegate/tests/runtimes/temporal/temporal.ts b/tests/runtimes/temporal/temporal.ts similarity index 100% rename from typegate/tests/runtimes/temporal/temporal.ts rename to tests/runtimes/temporal/temporal.ts diff --git a/typegate/tests/runtimes/temporal/temporal_test.ts b/tests/runtimes/temporal/temporal_test.ts similarity index 97% rename from typegate/tests/runtimes/temporal/temporal_test.ts rename to tests/runtimes/temporal/temporal_test.ts index 9c831444c7..1f1937d72f 100644 --- a/typegate/tests/runtimes/temporal/temporal_test.ts +++ b/tests/runtimes/temporal/temporal_test.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assertExists } from "std/assert/mod.ts"; +import { assertExists } from "@std/assert"; import { gql, Meta } from "test-utils/mod.ts"; import { MetaTest } from "test-utils/test.ts"; -import * as std_path from "std/path/mod.ts"; +import * as std_path from "@std/path"; async function testSerialize(t: MetaTest, file: string) { await t.should(`serialize typegraph ${file}`, async () => { diff --git a/typegate/tests/runtimes/temporal/worker/activities.ts b/tests/runtimes/temporal/worker/activities.ts similarity index 100% rename from typegate/tests/runtimes/temporal/worker/activities.ts rename to tests/runtimes/temporal/worker/activities.ts diff --git a/typegate/tests/runtimes/temporal/worker/package.json b/tests/runtimes/temporal/worker/package.json similarity index 100% rename from typegate/tests/runtimes/temporal/worker/package.json rename to tests/runtimes/temporal/worker/package.json diff --git a/typegate/tests/runtimes/temporal/worker/pnpm-lock.yaml b/tests/runtimes/temporal/worker/pnpm-lock.yaml similarity index 100% rename from typegate/tests/runtimes/temporal/worker/pnpm-lock.yaml rename to tests/runtimes/temporal/worker/pnpm-lock.yaml diff --git a/typegate/tests/runtimes/temporal/worker/tsconfig.json b/tests/runtimes/temporal/worker/tsconfig.json similarity index 100% rename from typegate/tests/runtimes/temporal/worker/tsconfig.json rename to tests/runtimes/temporal/worker/tsconfig.json diff --git a/typegate/tests/runtimes/temporal/worker/worker.ts b/tests/runtimes/temporal/worker/worker.ts similarity index 100% rename from typegate/tests/runtimes/temporal/worker/worker.ts rename to tests/runtimes/temporal/worker/worker.ts diff --git a/typegate/tests/runtimes/temporal/worker/workflows.ts b/tests/runtimes/temporal/worker/workflows.ts similarity index 100% rename from typegate/tests/runtimes/temporal/worker/workflows.ts rename to tests/runtimes/temporal/worker/workflows.ts diff --git a/typegate/tests/runtimes/typegate/__snapshots__/typegate_prisma_test.ts.snap b/tests/runtimes/typegate/__snapshots__/typegate_prisma_test.ts.snap similarity index 100% rename from typegate/tests/runtimes/typegate/__snapshots__/typegate_prisma_test.ts.snap rename to tests/runtimes/typegate/__snapshots__/typegate_prisma_test.ts.snap diff --git a/typegate/tests/runtimes/typegate/__snapshots__/typegate_runtime_test.ts.snap b/tests/runtimes/typegate/__snapshots__/typegate_runtime_test.ts.snap similarity index 100% rename from typegate/tests/runtimes/typegate/__snapshots__/typegate_runtime_test.ts.snap rename to tests/runtimes/typegate/__snapshots__/typegate_runtime_test.ts.snap diff --git a/typegate/tests/runtimes/typegate/typegate_prisma_test.ts b/tests/runtimes/typegate/typegate_prisma_test.ts similarity index 100% rename from typegate/tests/runtimes/typegate/typegate_prisma_test.ts rename to tests/runtimes/typegate/typegate_prisma_test.ts diff --git a/typegate/tests/runtimes/typegate/typegate_runtime_test.ts b/tests/runtimes/typegate/typegate_runtime_test.ts similarity index 100% rename from typegate/tests/runtimes/typegate/typegate_runtime_test.ts rename to tests/runtimes/typegate/typegate_runtime_test.ts diff --git a/typegate/tests/runtimes/wasm_reflected/rust/Cargo.lock b/tests/runtimes/wasm_reflected/rust/Cargo.lock similarity index 99% rename from typegate/tests/runtimes/wasm_reflected/rust/Cargo.lock rename to tests/runtimes/wasm_reflected/rust/Cargo.lock index dd0034b4a2..faa1f5f13d 100644 --- a/typegate/tests/runtimes/wasm_reflected/rust/Cargo.lock +++ b/tests/runtimes/wasm_reflected/rust/Cargo.lock @@ -114,7 +114,7 @@ dependencies = [ [[package]] name = "rust" -version = "0.4.8" +version = "0.4.9-rc1" dependencies = [ "wit-bindgen", ] diff --git a/typegate/tests/runtimes/wasm_reflected/rust/Cargo.toml b/tests/runtimes/wasm_reflected/rust/Cargo.toml similarity index 88% rename from typegate/tests/runtimes/wasm_reflected/rust/Cargo.toml rename to tests/runtimes/wasm_reflected/rust/Cargo.toml index 8fef7ebb1e..22c2297163 100644 --- a/typegate/tests/runtimes/wasm_reflected/rust/Cargo.toml +++ b/tests/runtimes/wasm_reflected/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust" -version = "0.4.8" +version = "0.4.9-rc1" edition = "2021" [lib] diff --git a/typegate/tests/runtimes/wasm_reflected/rust/build.sh b/tests/runtimes/wasm_reflected/rust/build.sh similarity index 100% rename from typegate/tests/runtimes/wasm_reflected/rust/build.sh rename to tests/runtimes/wasm_reflected/rust/build.sh diff --git a/typegate/tests/runtimes/wasm_reflected/rust/src/lib.rs b/tests/runtimes/wasm_reflected/rust/src/lib.rs similarity index 100% rename from typegate/tests/runtimes/wasm_reflected/rust/src/lib.rs rename to tests/runtimes/wasm_reflected/rust/src/lib.rs diff --git a/typegate/tests/runtimes/wasm_reflected/rust/wit/example.wit b/tests/runtimes/wasm_reflected/rust/wit/example.wit similarity index 100% rename from typegate/tests/runtimes/wasm_reflected/rust/wit/example.wit rename to tests/runtimes/wasm_reflected/rust/wit/example.wit diff --git a/typegate/tests/runtimes/wasm_reflected/wasm_duplicate.py b/tests/runtimes/wasm_reflected/wasm_duplicate.py similarity index 100% rename from typegate/tests/runtimes/wasm_reflected/wasm_duplicate.py rename to tests/runtimes/wasm_reflected/wasm_duplicate.py diff --git a/typegate/tests/runtimes/wasm_reflected/wasm_reflected.py b/tests/runtimes/wasm_reflected/wasm_reflected.py similarity index 100% rename from typegate/tests/runtimes/wasm_reflected/wasm_reflected.py rename to tests/runtimes/wasm_reflected/wasm_reflected.py diff --git a/typegate/tests/runtimes/wasm_reflected/wasm_reflected.ts b/tests/runtimes/wasm_reflected/wasm_reflected.ts similarity index 100% rename from typegate/tests/runtimes/wasm_reflected/wasm_reflected.ts rename to tests/runtimes/wasm_reflected/wasm_reflected.ts diff --git a/typegate/tests/runtimes/wasm_reflected/wasm_reflected_test.ts b/tests/runtimes/wasm_reflected/wasm_reflected_test.ts similarity index 100% rename from typegate/tests/runtimes/wasm_reflected/wasm_reflected_test.ts rename to tests/runtimes/wasm_reflected/wasm_reflected_test.ts diff --git a/typegate/tests/runtimes/wasm_reflected/wasm_sync_test.ts b/tests/runtimes/wasm_reflected/wasm_sync_test.ts similarity index 98% rename from typegate/tests/runtimes/wasm_reflected/wasm_sync_test.ts rename to tests/runtimes/wasm_reflected/wasm_sync_test.ts index 6a24090bd4..4e317dea61 100644 --- a/typegate/tests/runtimes/wasm_reflected/wasm_sync_test.ts +++ b/tests/runtimes/wasm_reflected/wasm_sync_test.ts @@ -5,7 +5,7 @@ import { gql, Meta } from "test-utils/mod.ts"; import { connect } from "redis"; import { S3Client } from "aws-sdk/client-s3"; import { createBucket, listObjects, tryDeleteBucket } from "test-utils/s3.ts"; -import { assertEquals } from "std/assert/mod.ts"; +import { assertEquals } from "@std/assert"; const redisKey = "typegraph"; const redisEventKey = "typegraph_event"; diff --git a/typegate/tests/runtimes/wasm_wire/rust/Cargo.lock b/tests/runtimes/wasm_wire/rust/Cargo.lock similarity index 100% rename from typegate/tests/runtimes/wasm_wire/rust/Cargo.lock rename to tests/runtimes/wasm_wire/rust/Cargo.lock diff --git a/typegate/tests/runtimes/wasm_wire/rust/Cargo.toml b/tests/runtimes/wasm_wire/rust/Cargo.toml similarity index 100% rename from typegate/tests/runtimes/wasm_wire/rust/Cargo.toml rename to tests/runtimes/wasm_wire/rust/Cargo.toml diff --git a/typegate/tests/runtimes/wasm_wire/rust/build.sh b/tests/runtimes/wasm_wire/rust/build.sh similarity index 88% rename from typegate/tests/runtimes/wasm_wire/rust/build.sh rename to tests/runtimes/wasm_wire/rust/build.sh index 9eedd88cba..7855602585 100755 --- a/typegate/tests/runtimes/wasm_wire/rust/build.sh +++ b/tests/runtimes/wasm_wire/rust/build.sh @@ -6,7 +6,7 @@ cd .. cargo run -p meta-cli -- gen wasm_wire cd - -ADAPTOR="../../../../../tmp/wasi_snapshot_preview1.reactor.wasm" +ADAPTOR="../../../../.metatype/wasi_snapshot_preview1.reactor.wasm" [ -f "$ADAPTOR" ] || ghjk x install-wasi-adapter TARGET=wasm32-unknown-unknown diff --git a/typegate/tests/runtimes/wasm_wire/rust/lib.rs b/tests/runtimes/wasm_wire/rust/lib.rs similarity index 100% rename from typegate/tests/runtimes/wasm_wire/rust/lib.rs rename to tests/runtimes/wasm_wire/rust/lib.rs diff --git a/typegate/tests/runtimes/wasm_wire/rust/mdk.rs b/tests/runtimes/wasm_wire/rust/mdk.rs similarity index 99% rename from typegate/tests/runtimes/wasm_wire/rust/mdk.rs rename to tests/runtimes/wasm_wire/rust/mdk.rs index cefc44125e..1eac4d2f17 100644 --- a/typegate/tests/runtimes/wasm_wire/rust/mdk.rs +++ b/tests/runtimes/wasm_wire/rust/mdk.rs @@ -109,7 +109,7 @@ impl Router { } pub fn init(&self, args: InitArgs) -> Result { - static MT_VERSION: &str = "0.4.8"; + static MT_VERSION: &str = "0.4.9-rc1"; if args.metatype_version != MT_VERSION { return Err(InitError::VersionMismatch(MT_VERSION.into())); } diff --git a/typegate/tests/runtimes/wasm_wire/wasm_duplicate.ts b/tests/runtimes/wasm_wire/wasm_duplicate.ts similarity index 100% rename from typegate/tests/runtimes/wasm_wire/wasm_duplicate.ts rename to tests/runtimes/wasm_wire/wasm_duplicate.ts diff --git a/typegate/tests/runtimes/wasm_wire/wasm_sync_test.ts b/tests/runtimes/wasm_wire/wasm_sync_test.ts similarity index 98% rename from typegate/tests/runtimes/wasm_wire/wasm_sync_test.ts rename to tests/runtimes/wasm_wire/wasm_sync_test.ts index 6d23ff5b46..d22f4a9240 100644 --- a/typegate/tests/runtimes/wasm_wire/wasm_sync_test.ts +++ b/tests/runtimes/wasm_wire/wasm_sync_test.ts @@ -5,7 +5,7 @@ import { gql, Meta } from "test-utils/mod.ts"; import { connect } from "redis"; import { S3Client } from "aws-sdk/client-s3"; import { createBucket, listObjects, tryDeleteBucket } from "test-utils/s3.ts"; -import { assertEquals } from "std/assert/mod.ts"; +import { assertEquals } from "@std/assert"; const redisKey = "typegraph"; const redisEventKey = "typegraph_event"; diff --git a/typegate/tests/runtimes/wasm_wire/wasm_wire.py b/tests/runtimes/wasm_wire/wasm_wire.py similarity index 100% rename from typegate/tests/runtimes/wasm_wire/wasm_wire.py rename to tests/runtimes/wasm_wire/wasm_wire.py diff --git a/typegate/tests/runtimes/wasm_wire/wasm_wire.ts b/tests/runtimes/wasm_wire/wasm_wire.ts similarity index 100% rename from typegate/tests/runtimes/wasm_wire/wasm_wire.ts rename to tests/runtimes/wasm_wire/wasm_wire.ts diff --git a/typegate/tests/runtimes/wasm_wire/wasm_wire_test.ts b/tests/runtimes/wasm_wire/wasm_wire_test.ts similarity index 98% rename from typegate/tests/runtimes/wasm_wire/wasm_wire_test.ts rename to tests/runtimes/wasm_wire/wasm_wire_test.ts index 38d20b9f29..93f4a31436 100644 --- a/typegate/tests/runtimes/wasm_wire/wasm_wire_test.ts +++ b/tests/runtimes/wasm_wire/wasm_wire_test.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 import { gql, Meta } from "test-utils/mod.ts"; -import { assert, assertEquals } from "std/assert/mod.ts"; +import { assert, assertEquals } from "@std/assert"; import { MetaTest } from "../../utils/test.ts"; Meta.test( diff --git a/typegate/tests/schema_validation/circular.py b/tests/schema_validation/circular.py similarity index 100% rename from typegate/tests/schema_validation/circular.py rename to tests/schema_validation/circular.py diff --git a/typegate/tests/schema_validation/circular_test.ts b/tests/schema_validation/circular_test.ts similarity index 100% rename from typegate/tests/schema_validation/circular_test.ts rename to tests/schema_validation/circular_test.ts diff --git a/typegate/tests/schema_validation/ts/circular.ts b/tests/schema_validation/ts/circular.ts similarity index 100% rename from typegate/tests/schema_validation/ts/circular.ts rename to tests/schema_validation/ts/circular.ts diff --git a/typegate/tests/simple/__snapshots__/class_syntax_test.ts.snap b/tests/simple/__snapshots__/class_syntax_test.ts.snap similarity index 100% rename from typegate/tests/simple/__snapshots__/class_syntax_test.ts.snap rename to tests/simple/__snapshots__/class_syntax_test.ts.snap diff --git a/typegate/tests/simple/class_syntax.py b/tests/simple/class_syntax.py similarity index 100% rename from typegate/tests/simple/class_syntax.py rename to tests/simple/class_syntax.py diff --git a/typegate/tests/simple/class_syntax_test.ts b/tests/simple/class_syntax_test.ts similarity index 100% rename from typegate/tests/simple/class_syntax_test.ts rename to tests/simple/class_syntax_test.ts diff --git a/typegate/tests/simple/error_message.py b/tests/simple/error_message.py similarity index 100% rename from typegate/tests/simple/error_message.py rename to tests/simple/error_message.py diff --git a/typegate/tests/simple/error_message_test.ts b/tests/simple/error_message_test.ts similarity index 100% rename from typegate/tests/simple/error_message_test.ts rename to tests/simple/error_message_test.ts diff --git a/typegate/tests/simple/simple.py b/tests/simple/simple.py similarity index 100% rename from typegate/tests/simple/simple.py rename to tests/simple/simple.py diff --git a/typegate/tests/simple/simple_test.ts b/tests/simple/simple_test.ts similarity index 100% rename from typegate/tests/simple/simple_test.ts rename to tests/simple/simple_test.ts diff --git a/typegate/tests/sync/sync_config_test.ts b/tests/sync/sync_config_test.ts similarity index 94% rename from typegate/tests/sync/sync_config_test.ts rename to tests/sync/sync_config_test.ts index 1002b4fc31..7f067af540 100644 --- a/typegate/tests/sync/sync_config_test.ts +++ b/tests/sync/sync_config_test.ts @@ -1,13 +1,13 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { assert, assertEquals } from "std/assert/mod.ts"; +import { assert, assertEquals } from "@std/assert"; import { defaultTypegateConfigBase, getTypegateConfig, SyncConfig, -} from "@typegate/config.ts"; -import { ConfigError } from "../../src/config/loader.ts"; +} from "@metatype/typegate/config.ts"; +import { ConfigError } from "@metatype/typegate/config/loader.ts"; function clearSyncVars() { for (const key of Object.keys(Deno.env.toObject())) { diff --git a/typegate/tests/sync/typegraph_sync_test.ts.disable b/tests/sync/typegraph_sync_test.ts.disable similarity index 97% rename from typegate/tests/sync/typegraph_sync_test.ts.disable rename to tests/sync/typegraph_sync_test.ts.disable index 4618e1a0dc..f97f39fb73 100644 --- a/typegate/tests/sync/typegraph_sync_test.ts.disable +++ b/tests/sync/typegraph_sync_test.ts.disable @@ -5,7 +5,7 @@ import { Meta } from "test-utils/mod.ts"; import { connect } from "redis"; import { S3Client } from "aws-sdk/client-s3"; import { assertEquals } from "std/assert/mod.ts"; -import { Typegate } from "../../src/typegate/mod.ts"; +import { Typegate } from "@metatype/typegate/typegate/mod.ts"; import { createBucket, listObjects, tryDeleteBucket } from "test-utils/s3.ts"; import { lazyAssert } from "test-utils/assert.ts"; diff --git a/typegate/tests/type_nodes/__snapshots__/array_of_optional_test.ts.snap b/tests/type_nodes/__snapshots__/array_of_optional_test.ts.snap similarity index 100% rename from typegate/tests/type_nodes/__snapshots__/array_of_optional_test.ts.snap rename to tests/type_nodes/__snapshots__/array_of_optional_test.ts.snap diff --git a/typegate/tests/type_nodes/__snapshots__/either_test.ts.snap b/tests/type_nodes/__snapshots__/either_test.ts.snap similarity index 100% rename from typegate/tests/type_nodes/__snapshots__/either_test.ts.snap rename to tests/type_nodes/__snapshots__/either_test.ts.snap diff --git a/typegate/tests/type_nodes/__snapshots__/union_test.ts.snap b/tests/type_nodes/__snapshots__/union_test.ts.snap similarity index 100% rename from typegate/tests/type_nodes/__snapshots__/union_test.ts.snap rename to tests/type_nodes/__snapshots__/union_test.ts.snap diff --git a/typegate/tests/type_nodes/array_of_optional.py b/tests/type_nodes/array_of_optional.py similarity index 100% rename from typegate/tests/type_nodes/array_of_optional.py rename to tests/type_nodes/array_of_optional.py diff --git a/typegate/tests/type_nodes/array_of_optional_test.ts b/tests/type_nodes/array_of_optional_test.ts similarity index 100% rename from typegate/tests/type_nodes/array_of_optional_test.ts rename to tests/type_nodes/array_of_optional_test.ts diff --git a/typegate/tests/type_nodes/either_node.py b/tests/type_nodes/either_node.py similarity index 100% rename from typegate/tests/type_nodes/either_node.py rename to tests/type_nodes/either_node.py diff --git a/typegate/tests/type_nodes/either_test.ts b/tests/type_nodes/either_test.ts similarity index 100% rename from typegate/tests/type_nodes/either_test.ts rename to tests/type_nodes/either_test.ts diff --git a/typegate/tests/type_nodes/ts/either/user_register.ts b/tests/type_nodes/ts/either/user_register.ts similarity index 100% rename from typegate/tests/type_nodes/ts/either/user_register.ts rename to tests/type_nodes/ts/either/user_register.ts diff --git a/typegate/tests/type_nodes/ts/union/color_converter.ts b/tests/type_nodes/ts/union/color_converter.ts similarity index 92% rename from typegate/tests/type_nodes/ts/union/color_converter.ts rename to tests/type_nodes/ts/union/color_converter.ts index 3284086a78..c60ca19335 100644 --- a/typegate/tests/type_nodes/ts/union/color_converter.ts +++ b/tests/type_nodes/ts/union/color_converter.ts @@ -1,8 +1,9 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 +// deno-lint-ignore no-external-import import { - HexColor, + HexColor as HexColorUtil, RGBColor, } from "https://deno.land/x/color_util@1.0.1/mod.ts"; @@ -90,14 +91,14 @@ export function convert( if (to == "hex") { const colorHex = rgb.toHex(); - return colorHex.toString(); + return colorHex.toString() as HexColor; } throw new Error("RGB to color name not supported"); } case "hex": { - const hex = new HexColor(color as string); + const hex = new HexColorUtil(color as string); if (to == "rgb_array" || to == "rgb_struct") { return rgbToArray(hex.toRGB()); @@ -120,7 +121,7 @@ export function convert( if (to == "hex") { const colorHex = rgb.toHex(); - return colorHex.toString(); + return colorHex.toString() as HexColor; } return color; diff --git a/typegate/tests/type_nodes/ts/union/phone_register.ts b/tests/type_nodes/ts/union/phone_register.ts similarity index 100% rename from typegate/tests/type_nodes/ts/union/phone_register.ts rename to tests/type_nodes/ts/union/phone_register.ts diff --git a/typegate/tests/type_nodes/ts/union/vec_normalizer.ts b/tests/type_nodes/ts/union/vec_normalizer.ts similarity index 100% rename from typegate/tests/type_nodes/ts/union/vec_normalizer.ts rename to tests/type_nodes/ts/union/vec_normalizer.ts diff --git a/typegate/tests/type_nodes/union_node.py b/tests/type_nodes/union_node.py similarity index 100% rename from typegate/tests/type_nodes/union_node.py rename to tests/type_nodes/union_node.py diff --git a/typegate/tests/type_nodes/union_node_attr.py b/tests/type_nodes/union_node_attr.py similarity index 100% rename from typegate/tests/type_nodes/union_node_attr.py rename to tests/type_nodes/union_node_attr.py diff --git a/typegate/tests/type_nodes/union_node_attr_test.ts b/tests/type_nodes/union_node_attr_test.ts similarity index 100% rename from typegate/tests/type_nodes/union_node_attr_test.ts rename to tests/type_nodes/union_node_attr_test.ts diff --git a/typegate/tests/type_nodes/union_node_quantifier.py b/tests/type_nodes/union_node_quantifier.py similarity index 100% rename from typegate/tests/type_nodes/union_node_quantifier.py rename to tests/type_nodes/union_node_quantifier.py diff --git a/typegate/tests/type_nodes/union_node_quantifier_test.ts b/tests/type_nodes/union_node_quantifier_test.ts similarity index 100% rename from typegate/tests/type_nodes/union_node_quantifier_test.ts rename to tests/type_nodes/union_node_quantifier_test.ts diff --git a/typegate/tests/type_nodes/union_test.ts b/tests/type_nodes/union_test.ts similarity index 99% rename from typegate/tests/type_nodes/union_test.ts rename to tests/type_nodes/union_test.ts index 4a9afff57b..e1ec8a5546 100644 --- a/typegate/tests/type_nodes/union_test.ts +++ b/tests/type_nodes/union_test.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { JSONValue } from "../../src/utils.ts"; +import { JSONValue } from "@metatype/typegate/utils.ts"; import { gql, Meta } from "../utils/mod.ts"; Meta.test( diff --git a/typegate/tests/typecheck/__snapshots__/input_validator_test.ts.snap b/tests/typecheck/__snapshots__/input_validator_test.ts.snap similarity index 100% rename from typegate/tests/typecheck/__snapshots__/input_validator_test.ts.snap rename to tests/typecheck/__snapshots__/input_validator_test.ts.snap diff --git a/typegate/tests/typecheck/__snapshots__/typecheck_test.ts.snap b/tests/typecheck/__snapshots__/typecheck_test.ts.snap similarity index 100% rename from typegate/tests/typecheck/__snapshots__/typecheck_test.ts.snap rename to tests/typecheck/__snapshots__/typecheck_test.ts.snap diff --git a/typegate/tests/typecheck/input_validator_test.ts b/tests/typecheck/input_validator_test.ts similarity index 96% rename from typegate/tests/typecheck/input_validator_test.ts rename to tests/typecheck/input_validator_test.ts index 4b04df6415..54341c1d1a 100644 --- a/typegate/tests/typecheck/input_validator_test.ts +++ b/tests/typecheck/input_validator_test.ts @@ -3,9 +3,9 @@ import { gql, Meta } from "../utils/mod.ts"; -import { Type } from "../../src/typegraph/type_node.ts"; -import { InputValidationCompiler } from "../../src/engine/typecheck/input.ts"; -import { assert, assertEquals } from "std/assert/mod.ts"; +import { Type } from "@metatype/typegate/typegraph/type_node.ts"; +import { InputValidationCompiler } from "@metatype/typegate/engine/typecheck/input.ts"; +import { assert, assertEquals } from "@std/assert"; function getFunctionName(idx: number): string { return `validate_${idx}`; diff --git a/typegate/tests/typecheck/reduce.ts b/tests/typecheck/reduce.ts similarity index 100% rename from typegate/tests/typecheck/reduce.ts rename to tests/typecheck/reduce.ts diff --git a/typegate/tests/typecheck/reduce_py.py b/tests/typecheck/reduce_py.py similarity index 100% rename from typegate/tests/typecheck/reduce_py.py rename to tests/typecheck/reduce_py.py diff --git a/typegate/tests/typecheck/reduce_syntax_test.ts b/tests/typecheck/reduce_syntax_test.ts similarity index 100% rename from typegate/tests/typecheck/reduce_syntax_test.ts rename to tests/typecheck/reduce_syntax_test.ts diff --git a/typegate/tests/typecheck/type_alias.py b/tests/typecheck/type_alias.py similarity index 100% rename from typegate/tests/typecheck/type_alias.py rename to tests/typecheck/type_alias.py diff --git a/typegate/tests/typecheck/type_alias_test.ts b/tests/typecheck/type_alias_test.ts similarity index 100% rename from typegate/tests/typecheck/type_alias_test.ts rename to tests/typecheck/type_alias_test.ts diff --git a/typegate/tests/typecheck/typecheck.py b/tests/typecheck/typecheck.py similarity index 100% rename from typegate/tests/typecheck/typecheck.py rename to tests/typecheck/typecheck.py diff --git a/typegate/tests/typecheck/typecheck_test.ts b/tests/typecheck/typecheck_test.ts similarity index 96% rename from typegate/tests/typecheck/typecheck_test.ts rename to tests/typecheck/typecheck_test.ts index 8c2039a9aa..ffbd7e397b 100644 --- a/typegate/tests/typecheck/typecheck_test.ts +++ b/tests/typecheck/typecheck_test.ts @@ -2,14 +2,14 @@ // SPDX-License-Identifier: Elastic-2.0 import { gql, Meta } from "../utils/mod.ts"; -import { assertThrows } from "std/assert/mod.ts"; -import { findOperation } from "../../src/transports/graphql/graphql.ts"; +import { assertThrows } from "@std/assert"; +import { findOperation } from "@metatype/typegate/transports/graphql/graphql.ts"; import { parse } from "graphql"; import { None } from "monads"; import { generateValidator, ResultValidationCompiler, -} from "../../src/engine/typecheck/result.ts"; +} from "@metatype/typegate/engine/typecheck/result.ts"; Meta.test("typecheck", async (t) => { const e = await t.engine("typecheck/typecheck.py"); diff --git a/typegate/tests/typegraph/version_test.ts b/tests/typegraph/version_test.ts similarity index 86% rename from typegate/tests/typegraph/version_test.ts rename to tests/typegraph/version_test.ts index 542c67aadb..b5b8530bbd 100644 --- a/typegate/tests/typegraph/version_test.ts +++ b/tests/typegraph/version_test.ts @@ -1,13 +1,13 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { expandGlobSync } from "std/fs/expand_glob.ts"; +import { expandGlob } from "@std/fs/expand-glob"; import { Meta } from "../utils/mod.ts"; -import { join } from "std/path/mod.ts"; +import { join } from "@std/path"; import { JSONSchemaFaker } from "json-schema-faker"; import Ajv from "ajv"; -import { assertNotStrictEquals } from "std/assert/mod.ts"; -import { upgradeTypegraph } from "../../src/typegraph/versions.ts"; +import { assertNotStrictEquals } from "@std/assert"; +import { upgradeTypegraph } from "@metatype/typegate/typegraph/versions.ts"; import { testDir } from "../utils/dir.ts"; const ajv = new Ajv({ allErrors: true, useDefaults: true, strict: false }); @@ -26,9 +26,9 @@ JSONSchemaFaker.option({ }); Meta.test("typegraphs creation", async (t) => { - const folder = join(testDir, "../../website/static/specs"); - const specs = Array.from( - expandGlobSync("*.json", { + const folder = join(testDir, "../docs/metatype.dev/static/specs"); + const specs = await Array.fromAsync( + expandGlob("*.json", { root: folder, includeDirs: false, globstar: true, diff --git a/typegate/tests/typename/typename.py b/tests/typename/typename.py similarity index 100% rename from typegate/tests/typename/typename.py rename to tests/typename/typename.py diff --git a/typegate/tests/typename/typename_test.ts b/tests/typename/typename_test.ts similarity index 100% rename from typegate/tests/typename/typename_test.ts rename to tests/typename/typename_test.ts diff --git a/typegate/tests/utils/assert.ts b/tests/utils/assert.ts similarity index 100% rename from typegate/tests/utils/assert.ts rename to tests/utils/assert.ts diff --git a/typegate/tests/utils/autotest.ts b/tests/utils/autotest.ts similarity index 94% rename from typegate/tests/utils/autotest.ts rename to tests/utils/autotest.ts index 3cfb24a5e8..59486e3b83 100644 --- a/typegate/tests/utils/autotest.ts +++ b/tests/utils/autotest.ts @@ -1,12 +1,12 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { dirname, join } from "std/path/mod.ts"; +import { dirname, join } from "@std/path"; -import { expandGlob } from "std/fs/expand_glob.ts"; -import * as yaml from "std/yaml/mod.ts"; +import { expandGlob } from "@std/fs/expand-glob"; +import * as yaml from "@std/yaml"; import * as graphql from "graphql"; -import { exists } from "std/fs/exists.ts"; +import { exists } from "@std/fs/exists"; import { dropSchemas, recreateMigrations } from "./migrations.ts"; import { test } from "./test.ts"; diff --git a/typegate/tests/utils/bindings_test.ts b/tests/utils/bindings_test.ts similarity index 100% rename from typegate/tests/utils/bindings_test.ts rename to tests/utils/bindings_test.ts diff --git a/typegate/tests/utils/database.ts b/tests/utils/database.ts similarity index 100% rename from typegate/tests/utils/database.ts rename to tests/utils/database.ts diff --git a/typegate/tests/utils/date.ts b/tests/utils/date.ts similarity index 100% rename from typegate/tests/utils/date.ts rename to tests/utils/date.ts diff --git a/typegate/tests/utils/dir.ts b/tests/utils/dir.ts similarity index 60% rename from typegate/tests/utils/dir.ts rename to tests/utils/dir.ts index 528062d803..2b5381c7b6 100644 --- a/typegate/tests/utils/dir.ts +++ b/tests/utils/dir.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { dirname, fromFileUrl, join } from "std/path/mod.ts"; +import { fromFileUrl, join } from "@std/path"; -export const testDir = dirname(dirname(fromFileUrl(import.meta.url))); -export const workspaceDir = dirname(dirname(testDir)); +export const testDir = fromFileUrl(import.meta.resolve("../")); +export const workspaceDir = fromFileUrl(import.meta.resolve("../../")); export function newTempDir( options: Deno.MakeTempOptions = {}, diff --git a/typegate/tests/utils/hooks.ts b/tests/utils/hooks.ts similarity index 95% rename from typegate/tests/utils/hooks.ts rename to tests/utils/hooks.ts index 92caf9a247..2e226c1b82 100644 --- a/typegate/tests/utils/hooks.ts +++ b/tests/utils/hooks.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { SyncConfig } from "@typegate/config.ts"; +import { SyncConfig } from "@metatype/typegate/config.ts"; import { createBucket, tryDeleteBucket } from "test-utils/s3.ts"; import { connect } from "redis"; import { S3Client, S3ClientConfig } from "aws-sdk/client-s3"; diff --git a/typegate/tests/utils/meta.ts b/tests/utils/meta.ts similarity index 100% rename from typegate/tests/utils/meta.ts rename to tests/utils/meta.ts diff --git a/typegate/tests/utils/migrations.ts b/tests/utils/migrations.ts similarity index 83% rename from typegate/tests/utils/migrations.ts rename to tests/utils/migrations.ts index 19937d6888..f5f42026ae 100644 --- a/typegate/tests/utils/migrations.ts +++ b/tests/utils/migrations.ts @@ -1,16 +1,16 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryEngine } from "../../src/engine/query_engine.ts"; -import { join } from "std/path/mod.ts"; -import { PrismaMigrate } from "../../src/runtimes/prisma/migration.ts"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; +import { join } from "@std/path"; +import { PrismaMigrate } from "@metatype/typegate/runtimes/prisma/migration.ts"; import * as native from "native"; -import { PrismaRuntime } from "../../src/runtimes/prisma/mod.ts"; -import * as PrismaRT from "../../src/runtimes/prisma/types.ts"; +import { PrismaRuntime } from "@metatype/typegate/runtimes/prisma/mod.ts"; +import * as PrismaRT from "@metatype/typegate/runtimes/prisma/types.ts"; -import { ensure } from "../../src/utils.ts"; +import { ensure } from "@metatype/typegate/utils.ts"; import { testDir } from "./dir.ts"; -import { KnownRuntime } from "../../src/typegraph/types.ts"; +import { KnownRuntime } from "@metatype/typegate/typegraph/types.ts"; type PrismaRuntimeDS = KnownRuntime & { name: "prisma" }; diff --git a/typegate/tests/utils/mock_fetch.ts b/tests/utils/mock_fetch.ts similarity index 100% rename from typegate/tests/utils/mock_fetch.ts rename to tests/utils/mock_fetch.ts diff --git a/typegate/tests/utils/mod.ts b/tests/utils/mod.ts similarity index 88% rename from typegate/tests/utils/mod.ts rename to tests/utils/mod.ts index 13c1dba23b..4e6121c0b9 100644 --- a/typegate/tests/utils/mod.ts +++ b/tests/utils/mod.ts @@ -2,10 +2,10 @@ // SPDX-License-Identifier: Elastic-2.0 // import { SingleRegister } from "test-utils/single_register.ts"; -// import { Typegate } from "@typegate/typegate/mod.ts"; -import { QueryEngine } from "../../src/engine/query_engine.ts"; -import { dirname, join } from "std/path/mod.ts"; -import { copy } from "std/fs/copy.ts"; +// import { Typegate } from "@metatype/typegate/typegate/mod.ts"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; +import { dirname, join } from "@std/path"; +import { copy } from "@std/fs/copy"; import { init_native } from "native"; import { RestQuery } from "./query/rest_query.ts"; import { GraphQLQuery } from "./query/graphql_query.ts"; @@ -13,7 +13,7 @@ import { test } from "./test.ts"; import { metaCli } from "./meta.ts"; import { testDir } from "./dir.ts"; import { autoTest } from "./autotest.ts"; -import { init_runtimes } from "../../src/runtimes/mod.ts"; +import { init_runtimes } from "@metatype/typegate/runtimes/mod.ts"; import { getCurrentTest } from "./test.ts"; // native must load first to avoid import race conditions and panic diff --git a/typegate/tests/utils/process.ts b/tests/utils/process.ts similarity index 93% rename from typegate/tests/utils/process.ts rename to tests/utils/process.ts index 3396e61e8f..bb844a436f 100644 --- a/typegate/tests/utils/process.ts +++ b/tests/utils/process.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { TextLineStream } from "@dev/deps.ts"; -import { deadline } from "std/async/mod.ts"; +import { TextLineStream } from "@local/tools/deps.ts"; +import { deadline } from "@std/async/deadline"; export type Consumer = { (line: string): boolean | Promise; // return false to stop diff --git a/typegate/tests/utils/query/file_extractor.ts b/tests/utils/query/file_extractor.ts similarity index 100% rename from typegate/tests/utils/query/file_extractor.ts rename to tests/utils/query/file_extractor.ts diff --git a/typegate/tests/utils/query/graphql_query.ts b/tests/utils/query/graphql_query.ts similarity index 94% rename from typegate/tests/utils/query/graphql_query.ts rename to tests/utils/query/graphql_query.ts index 5ad17dafa8..e2fea956e0 100644 --- a/typegate/tests/utils/query/graphql_query.ts +++ b/tests/utils/query/graphql_query.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryEngine } from "@typegate/engine/query_engine.ts"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; import { FileExtractor } from "./file_extractor.ts"; import { Context, @@ -11,8 +11,8 @@ import { Query, Variables, } from "./mod.ts"; -import { findOperation } from "@typegate/transports/graphql/graphql.ts"; -import { TypegateCryptoKeys } from "@typegate/crypto.ts"; +import { findOperation } from "@metatype/typegate/transports/graphql/graphql.ts"; +import { TypegateCryptoKeys } from "@metatype/typegate/crypto.ts"; import { parse } from "graphql"; import { None } from "monads"; import { MetaTest } from "../test.ts"; diff --git a/typegate/tests/utils/query/mod.ts b/tests/utils/query/mod.ts similarity index 94% rename from typegate/tests/utils/query/mod.ts rename to tests/utils/query/mod.ts index 61a6fd420b..9c198ad0f9 100644 --- a/typegate/tests/utils/query/mod.ts +++ b/tests/utils/query/mod.ts @@ -6,11 +6,11 @@ import { assertEquals, AssertionError, assertStringIncludes, -} from "std/assert/mod.ts"; -import { QueryEngine } from "@typegate/engine/query_engine.ts"; -import { JSONValue } from "@typegate/utils.ts"; -import { deepMerge } from "std/collections/deep_merge.ts"; -import { TypegateCryptoKeys } from "@typegate/crypto.ts"; +} from "@std/assert"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; +import { JSONValue } from "@metatype/typegate/utils.ts"; +import { deepMerge } from "@std/collections/deep-merge"; +import { TypegateCryptoKeys } from "@metatype/typegate/crypto.ts"; import { execute } from "../mod.ts"; diff --git a/typegate/tests/utils/query/rest_query.ts b/tests/utils/query/rest_query.ts similarity index 96% rename from typegate/tests/utils/query/rest_query.ts rename to tests/utils/query/rest_query.ts index 94a9736baf..d087be46d9 100644 --- a/typegate/tests/utils/query/rest_query.ts +++ b/tests/utils/query/rest_query.ts @@ -9,7 +9,7 @@ import { Query, Variables, } from "./mod.ts"; -import { TypegateCryptoKeys } from "@typegate/crypto.ts"; +import { TypegateCryptoKeys } from "@metatype/typegate/crypto.ts"; export class RestQuery extends Query { constructor( diff --git a/typegate/tests/utils/router@0.0.5.ts b/tests/utils/router@0.0.5.ts similarity index 100% rename from typegate/tests/utils/router@0.0.5.ts rename to tests/utils/router@0.0.5.ts diff --git a/typegate/tests/utils/s3.ts b/tests/utils/s3.ts similarity index 100% rename from typegate/tests/utils/s3.ts rename to tests/utils/s3.ts diff --git a/typegate/tests/utils/shell.ts b/tests/utils/shell.ts similarity index 100% rename from typegate/tests/utils/shell.ts rename to tests/utils/shell.ts diff --git a/typegate/tests/utils/single_register.ts b/tests/utils/single_register.ts similarity index 84% rename from typegate/tests/utils/single_register.ts rename to tests/utils/single_register.ts index 84e2a42b63..8bb631b806 100644 --- a/typegate/tests/utils/single_register.ts +++ b/tests/utils/single_register.ts @@ -1,8 +1,8 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { QueryEngine } from "../../src/engine/query_engine.ts"; -import { Register } from "../../src/typegate/register.ts"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; +import { Register } from "@metatype/typegate/typegate/register.ts"; export class SingleRegister extends Register { constructor(private name: string, private engine: QueryEngine) { diff --git a/typegate/tests/utils/test.ts b/tests/utils/test.ts similarity index 95% rename from typegate/tests/utils/test.ts rename to tests/utils/test.ts index 6cecc30142..424ef0ef88 100644 --- a/typegate/tests/utils/test.ts +++ b/tests/utils/test.ts @@ -1,22 +1,22 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { SystemTypegraph } from "../../src/system_typegraphs.ts"; -import { dirname, extname, join } from "std/path/mod.ts"; +import { SystemTypegraph } from "@metatype/typegate/system_typegraphs.ts"; +import { dirname, extname, join } from "@std/path"; import { newTempDir, testDir } from "./dir.ts"; import { shell, ShellOptions } from "./shell.ts"; -import { assertSnapshot } from "std/testing/snapshot.ts"; -import { type SnapshotOptions } from "std/testing/snapshot.ts"; -import { assertEquals, assertNotEquals } from "std/assert/mod.ts"; -import { QueryEngine } from "../../src/engine/query_engine.ts"; -import { Typegate } from "../../src/typegate/mod.ts"; +import { assertSnapshot } from "@std/testing/snapshot"; +import { type SnapshotOptions } from "@std/testing/snapshot"; +import { assertEquals, assertNotEquals } from "@std/assert"; +import { QueryEngine } from "@metatype/typegate/engine/query_engine.ts"; +import { Typegate } from "@metatype/typegate/typegate/mod.ts"; import { createMetaCli } from "./meta.ts"; -import { TypeGraph } from "../../src/typegraph/mod.ts"; +import { TypeGraph } from "@metatype/typegate/typegraph/mod.ts"; import { defaultTypegateConfigBase, getTypegateConfig, SyncConfig, -} from "../../src/config.ts"; +} from "@metatype/typegate/config.ts"; // until deno supports it... import { AsyncDisposableStack } from "dispose"; diff --git a/typegate/tests/utils/test_module.ts b/tests/utils/test_module.ts similarity index 92% rename from typegate/tests/utils/test_module.ts rename to tests/utils/test_module.ts index aad61d0724..99da40cab8 100644 --- a/typegate/tests/utils/test_module.ts +++ b/tests/utils/test_module.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { dirname, fromFileUrl } from "std/path/mod.ts"; +import { dirname, fromFileUrl } from "@std/path"; import { shell, ShellOptions, ShellOutput } from "./shell.ts"; import { metaCli } from "./meta.ts"; diff --git a/typegate/tests/utils/tg_deploy_script.py b/tests/utils/tg_deploy_script.py similarity index 100% rename from typegate/tests/utils/tg_deploy_script.py rename to tests/utils/tg_deploy_script.py diff --git a/typegate/tests/utils/tg_deploy_script.ts b/tests/utils/tg_deploy_script.ts similarity index 93% rename from typegate/tests/utils/tg_deploy_script.ts rename to tests/utils/tg_deploy_script.ts index 07ca9b9456..ed4be2fa65 100644 --- a/typegate/tests/utils/tg_deploy_script.ts +++ b/tests/utils/tg_deploy_script.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Elastic-2.0 import { BasicAuth, tgDeploy } from "@typegraph/sdk/tg_deploy.ts"; -import * as path from "std/path/mod.ts"; +import * as path from "@std/path"; const cwd = Deno.args[0]; const PORT = Deno.args[1]; @@ -46,13 +46,14 @@ if (globalActionCreate !== true) { globalActionCreate = globalActionCreate === "true"; } -const { serialized, typegate: _gateResponseAdd } = await tgDeploy(tg, { +const { serialized, response: _gateResponseAdd } = await tgDeploy(tg, { typegate: { url: gate, auth }, typegraphPath: tgPath, prefix: Deno.env.get("PREFIX") ?? undefined, secrets: secrets, migrationsDir: `${cwd}/${migrationDir}`, defaultMigrationAction: { + apply: true, create: globalActionCreate, reset: globalActionReset, }, diff --git a/typegate/tests/vars/vars.py b/tests/vars/vars.py similarity index 100% rename from typegate/tests/vars/vars.py rename to tests/vars/vars.py diff --git a/typegate/tests/vars/vars_test.ts b/tests/vars/vars_test.ts similarity index 100% rename from typegate/tests/vars/vars_test.ts rename to tests/vars/vars_test.ts diff --git a/Cross.toml b/tools/Cross.toml similarity index 100% rename from Cross.toml rename to tools/Cross.toml diff --git a/dev/Dockerfile b/tools/Dockerfile similarity index 75% rename from dev/Dockerfile rename to tools/Dockerfile index 4f50566063..701ad2922c 100644 --- a/dev/Dockerfile +++ b/tools/Dockerfile @@ -1,6 +1,6 @@ # disable SHELL cmd down below if switching to non-debug -ARG RUST_VERSION=1.79.0 -ARG DENO_VERSION=1.45.2 +ARG RUST_VERSION=1.80.1 +ARG DENO_VERSION=1.46.1 ARG DISTROLESS_TAG=debug-nonroot # @@ -11,7 +11,7 @@ WORKDIR /app RUN cargo install cargo-chef --locked --debug -FROM base as plan +FROM base AS plan COPY . . @@ -56,7 +56,7 @@ ARG GHJK_VERSION=v0.2.1 RUN GHJK_INSTALL_EXE_DIR=/usr/bin GHJK_INSTALL_HOOK_SHELLS=bash \ deno run -A https://raw.github.com/metatypedev/ghjk/$GHJK_VERSION/install.ts -COPY dev/*.ts dev/ +COPY tools/ tools/ COPY ghjk.ts . ENV GHJK_ENV=oci ENV GHJK_ACTIVATE=.ghjk/envs/$GHJK_ENV/activate.sh @@ -81,11 +81,11 @@ RUN . "$GHJK_ACTIVATE" \ ) RUN . "$GHJK_ACTIVATE" \ - && deno run -A dev/update.ts --cache-only --src-only \ - && mkdir -p typegate/tmp + && deno run -A tools/update.ts --cache-only --src-only \ + && mkdir -p .metatype # -FROM builder as dev +FROM builder AS dev RUN . "$GHJK_ACTIVATE" \ && mv target /tmp/target \ @@ -107,7 +107,7 @@ RUN . "$GHJK_ACTIVATE" \ && ln -s /lib/x86_64-linux-gnu /lib/sym/amd64 # -FROM gcr.io/distroless/cc-debian11:${DISTROLESS_TAG} as prd +FROM gcr.io/distroless/cc-debian11:${DISTROLESS_TAG} AS prd SHELL ["/busybox/sh", "-c"] @@ -124,22 +124,26 @@ COPY --from=builder /lib/*-linux-gnu/libz.so* /lib/sym/${TARGETARCH} COPY --from=builder /app/typegate-bin /bin/typegate # the typegate ecma sources -COPY --from=builder /app/typegate/deno.jsonc /app/typegate/import_map.json ./typegate/ -COPY --from=builder /app/typegate/engine/*.js /app/typegate/engine/*.ts ./typegate/engine/ -COPY --from=builder /app/typegate/src ./typegate/src/ -COPY --from=builder /app/typegate/tests ./typegate/tests/ -COPY dev/LICENSE-Elastic-2.0.md LICENSE.md +COPY --from=builder /app/deno.jsonc ./ +COPY --from=builder /app/src/typegate/engine/*.js /app/src/typegate/engine/*.ts ./src/typegate/engine/ +COPY --from=builder /app/src/typegate/src ./src/typegate/src/ +COPY --from=builder /app/src/typegate/deno.jsonc ./src/typegate/ +COPY --from=builder /app/src/typegraph/deno/deno.json ./src/typegraph/deno/ +COPY --from=builder /app/tests/deno.jsonc ./tests/ +COPY --from=builder /app/examples/deno.jsonc ./examples/ +COPY --from=builder /app/tools/deno.jsonc ./tools/ +COPY tools/LICENSE-Elastic-2.0.md LICENSE.md # writeable COPY --from=builder --chown=nonroot:nonroot /deno-dir /deno-dir -COPY --from=builder --chown=nonroot:nonroot /app/typegate/deno.lock ./typegate/ -COPY --from=builder --chown=nonroot:nonroot /app/typegate/tmp ./tmp +COPY --from=builder --chown=nonroot:nonroot /app/deno.lock ./typegate/ +COPY --from=builder --chown=nonroot:nonroot /app/.metatype ./.metatype # # run the checks in a separate target to avoid bloating # the final image with the deno bin # https://forums.docker.com/t/why-run-command-which-deletes-files-inflates-image-size/33670 -FROM prd as check +FROM prd AS check # distroless-nonroot is by default the nonroot user # which prevents us from removing the /deno bin down below @@ -149,18 +153,15 @@ USER root # to make sure all required ts files are found in the image COPY --from=deno-bin --chown=nonroot:nonroot /usr/bin/deno /bin/deno RUN /bin/deno check \ - --config /app/typegate/deno.jsonc \ - /app/typegate/src/**/*.ts \ - /app/typegate/tests/utils/**/*.ts \ + --config /app/src/typegate/deno.jsonc \ + /app/src/typegate/src/**/*.ts \ && rm /bin/deno # -FROM prd as epoint +FROM prd AS epoint USER nonroot EXPOSE 7890 -ENV MT_DIR=/app/tmp - ENTRYPOINT ["/tini", "--"] CMD ["/bin/typegate"] diff --git a/tools/Dockerfile.dockerignore b/tools/Dockerfile.dockerignore new file mode 100644 index 0000000000..94ab80fc84 --- /dev/null +++ b/tools/Dockerfile.dockerignore @@ -0,0 +1,23 @@ +* +!tools/deno.jsonc +!tools/*.ts +!tools/tasks/ +!tools/LICENSE-Elastic-2.0.md +!src/common +!src/meta-cli/Cargo.toml +!src/metagen/Cargo.toml +!src/metagen/src/mdk_rust/static/Cargo.toml +!src/mt_deno +!src/pyrt_wit_wire +!src/typegate/ +!src/typegraph/core/ +!src/wit/ +!src/xtask/Cargo.toml +!deno.jsonc +!examples/deno.jsonc +!src/typegraph/deno/deno.json +!tests/deno.jsonc +!deno.lock +!ghjk.ts +!Cargo.toml +!Cargo.lock diff --git a/dev/LICENSE-Elastic-2.0.md b/tools/LICENSE-Elastic-2.0.md similarity index 100% rename from dev/LICENSE-Elastic-2.0.md rename to tools/LICENSE-Elastic-2.0.md diff --git a/dev/LICENSE-MPL-2.0.md b/tools/LICENSE-MPL-2.0.md similarity index 100% rename from dev/LICENSE-MPL-2.0.md rename to tools/LICENSE-MPL-2.0.md diff --git a/cliff.toml b/tools/cliff.toml similarity index 100% rename from cliff.toml rename to tools/cliff.toml diff --git a/codecov.yml b/tools/codecov.yml similarity index 100% rename from codecov.yml rename to tools/codecov.yml diff --git a/dev/envs/compose.adminer.yml b/tools/compose/compose.adminer.yml similarity index 100% rename from dev/envs/compose.adminer.yml rename to tools/compose/compose.adminer.yml diff --git a/dev/envs/compose.base.yml b/tools/compose/compose.base.yml similarity index 100% rename from dev/envs/compose.base.yml rename to tools/compose/compose.base.yml diff --git a/dev/envs/compose.elastic.yml b/tools/compose/compose.elastic.yml similarity index 100% rename from dev/envs/compose.elastic.yml rename to tools/compose/compose.elastic.yml diff --git a/dev/envs/compose.imgproxy.yml b/tools/compose/compose.imgproxy.yml similarity index 100% rename from dev/envs/compose.imgproxy.yml rename to tools/compose/compose.imgproxy.yml diff --git a/dev/envs/compose.prisma.yml b/tools/compose/compose.prisma.yml similarity index 100% rename from dev/envs/compose.prisma.yml rename to tools/compose/compose.prisma.yml diff --git a/dev/consts.ts b/tools/consts.ts similarity index 75% rename from dev/consts.ts rename to tools/consts.ts index 505cf73c42..b17b69c4bd 100644 --- a/dev/consts.ts +++ b/tools/consts.ts @@ -1,12 +1,12 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -export const METATYPE_VERSION = "0.4.8"; -export const PUBLISHED_VERSION = "0.4.7"; +export const METATYPE_VERSION = "0.4.9-rc1"; +export const PUBLISHED_VERSION = "0.4.8"; export const GHJK_VERSION = "v0.2.1"; export const GHJK_ACTION_VERSION = "318209a9d215f70716a4ac89dbeb9653a2deb8bc"; -export const RUST_VERSION = "1.79.0"; -export const DENO_VERSION = "1.45.2"; +export const RUST_VERSION = "1.80.1"; +export const DENO_VERSION = "1.46.1"; export const WASMTIME_VERSION = "21.0.0"; export const WASMTIME_PY_VERSION = "21.0.0"; export const TYPEGRAPH_VERSION = "0.0.3"; @@ -14,7 +14,7 @@ export const PRISMA_VERSION = "5.6.0"; export const SDK_PACKAGE_NAME_TS = "@typegraph/sdk"; export const PYTHON_VERSION = "3.8.18"; export const TAGLINE = - `Declarative API development platform. Build backend components with WASM, Typescript and Python, no matter where and how your (legacy) systems are.`; + `Declarative API development platform. Build backend components with WASM, Typescript and Python, no matter where and how your (legacy) systems are.` as string; export const sedLockLines: Record = { "rust-toolchain.toml": [[/(channel = ").+(")/, RUST_VERSION]], @@ -22,25 +22,25 @@ export const sedLockLines: Record = { ['( GHJK_VERSION: ").+(")', GHJK_VERSION], [/([\s-]+uses:\s+metatypedev\/setup-ghjk@).+()/, GHJK_ACTION_VERSION], ], - "meta-lsp/package.json": [ + "src/meta-lsp/package.json": [ [/(\s*"version"\s*:\s*").+(",?)/, METATYPE_VERSION], ], - "meta-lsp/ts-language-server/package.json": [ + "src/meta-lsp/ts-language-server/package.json": [ [/(\s*"version"\s*:\s*").+(",?)/, METATYPE_VERSION], ], - "meta-lsp/vscode-metatype-support/package.json": [ + "src/meta-lsp/vscode-metatype-support/package.json": [ [/(\s*"version"\s*:\s*").+(",?)/, METATYPE_VERSION], ], - "typegate/tests/**/*.snap": [ + "tests/**/*.snap": [ [/(\s*static\s*MT_VERSION:\s*&str\s*=\s*").+(";)/, METATYPE_VERSION], ], - "typegraph/python/typegraph/__init__.py": [ + "src/typegraph/python/typegraph/__init__.py": [ ['(version = ").+(")', METATYPE_VERSION], ], - "typegraph/core/src/global_store.rs": [ + "src/typegraph/core/src/global_store.rs": [ [/(\s{4}pub static SDK_VERSION.+=\s?").*(".+;)/, METATYPE_VERSION], ], - "typegraph/python/pyproject.toml": [['(description = ").+(")', TAGLINE]], + "src/typegraph/python/pyproject.toml": [['(description = ").+(")', TAGLINE]], "**/Cargo.toml": [ [/^(version = ").+(")/, METATYPE_VERSION], ['(description = ").+(")', TAGLINE], @@ -55,30 +55,30 @@ export const sedLockLines: Record = { ['(wasmtime = ").+(")', WASMTIME_VERSION], ['(wasmtime-wasi = ").+(")', WASMTIME_VERSION], ], - "typegraph/deno/sdk/jsr.json": [ + "src/typegraph/deno/deno.json": [ [/(\s*"version"\s*:\s*").+(",?)/, METATYPE_VERSION], ], - "dev/deps.ts": [[/(.*\/metatypedev\/ghjk\/)[^\/]*(\/.*)/, GHJK_VERSION]], - "dev/cross.Dockerfile": [["(ARG GHJK_VERSION=).*()", GHJK_VERSION]], - "dev/Dockerfile": [ + "tools/deps.ts": [[/(.*\/metatypedev\/ghjk\/)[^\/]*(\/.*)/, GHJK_VERSION]], + "tools/cross.Dockerfile": [["(ARG GHJK_VERSION=).*()", GHJK_VERSION]], + "tools/Dockerfile": [ ["(ARG DENO_VERSION=).*()", DENO_VERSION], ["(ARG RUST_VERSION=).*()", RUST_VERSION], ["(ARG GHJK_VERSION=).*()", GHJK_VERSION], ], - "typegate/src/runtimes/wit_wire/mod.ts": [ + "src/typegate/src/runtimes/wit_wire/mod.ts": [ [/(const\s+METATYPE_VERSION = ").*(";)/, METATYPE_VERSION], ], - "typegate/src/typegraph/versions.ts": [ + "src/typegate/src/typegraph/versions.ts": [ ['(const typegraphVersion = ").*(";)', TYPEGRAPH_VERSION], ], - "typegraph/core/src/typegraph.rs": [ + "src/typegraph/core/src/typegraph.rs": [ [/(static TYPEGRAPH_VERSION: &str = ").*(";)/, TYPEGRAPH_VERSION], ], "whiz.yaml": [ ['( TYPEGRAPH_VERSION: ").+(")', TYPEGRAPH_VERSION], ['( GHJK_VERSION: ").+(")', GHJK_VERSION], ], - "website/docusaurus.config.js": [['( tagline: ").+(",)', TAGLINE]], + "docs/metatype.dev/docusaurus.config.js": [['( tagline: ").+(",)', TAGLINE]], "**/pyproject.toml": [ ['(version = ").+(")', METATYPE_VERSION], [/(wasmtime = "\^).+(")/, WASMTIME_PY_VERSION], diff --git a/dev/cross.Dockerfile b/tools/cross.Dockerfile similarity index 98% rename from dev/cross.Dockerfile rename to tools/cross.Dockerfile index 3718d5174a..be1d63a394 100644 --- a/dev/cross.Dockerfile +++ b/tools/cross.Dockerfile @@ -42,7 +42,7 @@ RUN curl -fsSL https://raw.github.com/metatypedev/ghjk/$GHJK_VERSION/install.sh WORKDIR /app -COPY dev/*.ts dev/ +COPY tools/*.ts tools/ COPY ghjk.ts . # mold breaks builds for aarch64 linux ENV GHJK_ENV=_rust diff --git a/tools/deno.jsonc b/tools/deno.jsonc new file mode 100644 index 0000000000..c43d83ea7e --- /dev/null +++ b/tools/deno.jsonc @@ -0,0 +1,5 @@ +{ + "imports": { + "@metatype/ghjk/": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/" + } +} diff --git a/tools/deno.lock b/tools/deno.lock new file mode 100644 index 0000000000..1338ae6007 --- /dev/null +++ b/tools/deno.lock @@ -0,0 +1,638 @@ +{ + "version": "3", + "packages": { + "specifiers": { + "jsr:@david/dax@0.41.0": "jsr:@david/dax@0.41.0", + "jsr:@david/which@^0.4.1": "jsr:@david/which@0.4.1", + "jsr:@std/assert@^0.221.0": "jsr:@std/assert@0.221.0", + "jsr:@std/bytes@^0.221.0": "jsr:@std/bytes@0.221.0", + "jsr:@std/bytes@^1.0.2-rc.3": "jsr:@std/bytes@1.0.2", + "jsr:@std/cli@^1.0.3": "jsr:@std/cli@1.0.3", + "jsr:@std/fmt@^0.221.0": "jsr:@std/fmt@0.221.0", + "jsr:@std/fmt@^1.0.0": "jsr:@std/fmt@1.0.0", + "jsr:@std/fs@0.221.0": "jsr:@std/fs@0.221.0", + "jsr:@std/fs@^1.0.1": "jsr:@std/fs@1.0.1", + "jsr:@std/io@0.221.0": "jsr:@std/io@0.221.0", + "jsr:@std/io@^0.221.0": "jsr:@std/io@0.221.0", + "jsr:@std/path@0.221.0": "jsr:@std/path@0.221.0", + "jsr:@std/path@^0.221.0": "jsr:@std/path@0.221.0", + "jsr:@std/path@^1.0.2": "jsr:@std/path@1.0.2", + "jsr:@std/semver@^1.0.1": "jsr:@std/semver@1.0.1", + "jsr:@std/streams@0.221.0": "jsr:@std/streams@0.221.0", + "jsr:@std/streams@1": "jsr:@std/streams@1.0.1", + "npm:@noble/hashes@1.4.0": "npm:@noble/hashes@1.4.0", + "npm:multiformats@13.1.0": "npm:multiformats@13.1.0", + "npm:zod-validation-error@3.3.0": "npm:zod-validation-error@3.3.0_zod@3.23.8", + "npm:zod@3.23.8": "npm:zod@3.23.8" + }, + "jsr": { + "@david/dax@0.41.0": { + "integrity": "9e1ecf66a0415962cc8ad3ba4e3fa93ce0f1a1cc797dd95c36fdfb6977dc7fc8", + "dependencies": [ + "jsr:@david/which@^0.4.1", + "jsr:@std/fmt@^0.221.0", + "jsr:@std/fs@0.221.0", + "jsr:@std/io@0.221.0", + "jsr:@std/path@0.221.0", + "jsr:@std/streams@0.221.0" + ] + }, + "@david/which@0.4.1": { + "integrity": "896a682b111f92ab866cc70c5b4afab2f5899d2f9bde31ed00203b9c250f225e" + }, + "@std/assert@0.221.0": { + "integrity": "a5f1aa6e7909dbea271754fd4ab3f4e687aeff4873b4cef9a320af813adb489a" + }, + "@std/bytes@0.221.0": { + "integrity": "64a047011cf833890a4a2ab7293ac55a1b4f5a050624ebc6a0159c357de91966" + }, + "@std/bytes@1.0.2": { + "integrity": "fbdee322bbd8c599a6af186a1603b3355e59a5fb1baa139f8f4c3c9a1b3e3d57" + }, + "@std/cli@1.0.3": { + "integrity": "9a0488b5d2e58d29dce106a941eecec7181fae996bf0d2225563f1ca7e4b100c" + }, + "@std/fmt@0.221.0": { + "integrity": "379fed69bdd9731110f26b9085aeb740606b20428ce6af31ef6bd45ef8efa62a" + }, + "@std/fmt@1.0.0": { + "integrity": "8a95c9fdbb61559418ccbc0f536080cf43341655e1444f9d375a66886ceaaa3d" + }, + "@std/fs@0.221.0": { + "integrity": "028044450299de8ed5a716ade4e6d524399f035513b85913794f4e81f07da286", + "dependencies": [ + "jsr:@std/assert@^0.221.0", + "jsr:@std/path@^0.221.0" + ] + }, + "@std/fs@1.0.1": { + "integrity": "d6914ca2c21abe591f733b31dbe6331e446815e513e2451b3b9e472daddfefcb", + "dependencies": [ + "jsr:@std/path@^1.0.2" + ] + }, + "@std/io@0.221.0": { + "integrity": "faf7f8700d46ab527fa05cc6167f4b97701a06c413024431c6b4d207caa010da", + "dependencies": [ + "jsr:@std/assert@^0.221.0", + "jsr:@std/bytes@^0.221.0" + ] + }, + "@std/path@0.221.0": { + "integrity": "0a36f6b17314ef653a3a1649740cc8db51b25a133ecfe838f20b79a56ebe0095", + "dependencies": [ + "jsr:@std/assert@^0.221.0" + ] + }, + "@std/path@1.0.2": { + "integrity": "a452174603f8c620bd278a380c596437a9eef50c891c64b85812f735245d9ec7" + }, + "@std/semver@1.0.1": { + "integrity": "f0c9b41b70e27e8cdfe9252b486c55a727d66ead72625e0fa1aae75f45ca15e1" + }, + "@std/streams@0.221.0": { + "integrity": "47f2f74634b47449277c0ee79fe878da4424b66bd8975c032e3afdca88986e61", + "dependencies": [ + "jsr:@std/io@^0.221.0" + ] + }, + "@std/streams@1.0.1": { + "integrity": "b07008b83fd7ae08965920d0fd700e07caf233bdd81e0ef1c8cca6c4140da364", + "dependencies": [ + "jsr:@std/bytes@^1.0.2-rc.3" + ] + } + }, + "npm": { + "@noble/hashes@1.4.0": { + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "dependencies": {} + }, + "multiformats@13.1.0": { + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==", + "dependencies": {} + }, + "zod-validation-error@3.3.0_zod@3.23.8": { + "integrity": "sha512-Syib9oumw1NTqEv4LT0e6U83Td9aVRk9iTXPUQr1otyV1PuXQKOvOwhMNqZIq5hluzHP2pMgnOmHEo7kPdI2mw==", + "dependencies": { + "zod": "zod@3.23.8" + } + }, + "zod@3.23.8": { + "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", + "dependencies": {} + } + } + }, + "redirects": { + "https://github.com/levibostian/deno-udd/raw/ignore-prerelease/mod.ts": "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/mod.ts", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1//mod.ts": "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/mod.ts" + }, + "remote": { + "https://deno.land/std@0.116.0/_util/assert.ts": "2f868145a042a11d5ad0a3c748dcf580add8a0dbc0e876eaa0026303a5488f58", + "https://deno.land/std@0.116.0/_util/os.ts": "dfb186cc4e968c770ab6cc3288bd65f4871be03b93beecae57d657232ecffcac", + "https://deno.land/std@0.116.0/fs/walk.ts": "31464d75099aa3fc7764212576a8772dfabb2692783e6eabb910f874a26eac54", + "https://deno.land/std@0.116.0/path/_constants.ts": "1247fee4a79b70c89f23499691ef169b41b6ccf01887a0abd131009c5581b853", + "https://deno.land/std@0.116.0/path/_interface.ts": "1fa73b02aaa24867e481a48492b44f2598cd9dfa513c7b34001437007d3642e4", + "https://deno.land/std@0.116.0/path/_util.ts": "2e06a3b9e79beaf62687196bd4b60a4c391d862cfa007a20fc3a39f778ba073b", + "https://deno.land/std@0.116.0/path/common.ts": "f41a38a0719a1e85aa11c6ba3bea5e37c15dd009d705bd8873f94c833568cbc4", + "https://deno.land/std@0.116.0/path/glob.ts": "ea87985765b977cc284b92771003b2070c440e0807c90e1eb0ff3e095911a820", + "https://deno.land/std@0.116.0/path/mod.ts": "4465dc494f271b02569edbb4a18d727063b5dbd6ed84283ff906260970a15d12", + "https://deno.land/std@0.116.0/path/posix.ts": "34349174b9cd121625a2810837a82dd8b986bbaaad5ade690d1de75bbb4555b2", + "https://deno.land/std@0.116.0/path/separator.ts": "8fdcf289b1b76fd726a508f57d3370ca029ae6976fcde5044007f062e643ff1c", + "https://deno.land/std@0.116.0/path/win32.ts": "11549e8c6df8307a8efcfa47ad7b2a75da743eac7d4c89c9723a944661c8bd2e", + "https://deno.land/std@0.140.0/_util/assert.ts": "e94f2eb37cebd7f199952e242c77654e43333c1ac4c5c700e929ea3aa5489f74", + "https://deno.land/std@0.140.0/_util/os.ts": "3b4c6e27febd119d36a416d7a97bd3b0251b77c88942c8f16ee5953ea13e2e49", + "https://deno.land/std@0.140.0/bytes/bytes_list.ts": "67eb118e0b7891d2f389dad4add35856f4ad5faab46318ff99653456c23b025d", + "https://deno.land/std@0.140.0/bytes/equals.ts": "fc16dff2090cced02497f16483de123dfa91e591029f985029193dfaa9d894c9", + "https://deno.land/std@0.140.0/bytes/mod.ts": "763f97d33051cc3f28af1a688dfe2830841192a9fea0cbaa55f927b49d49d0bf", + "https://deno.land/std@0.140.0/fmt/colors.ts": "30455035d6d728394781c10755351742dd731e3db6771b1843f9b9e490104d37", + "https://deno.land/std@0.140.0/fs/_util.ts": "0fb24eb4bfebc2c194fb1afdb42b9c3dda12e368f43e8f2321f84fc77d42cb0f", + "https://deno.land/std@0.140.0/fs/ensure_dir.ts": "9dc109c27df4098b9fc12d949612ae5c9c7169507660dcf9ad90631833209d9d", + "https://deno.land/std@0.140.0/io/buffer.ts": "bd0c4bf53db4b4be916ca5963e454bddfd3fcd45039041ea161dbf826817822b", + "https://deno.land/std@0.140.0/path/_constants.ts": "df1db3ffa6dd6d1252cc9617e5d72165cd2483df90e93833e13580687b6083c3", + "https://deno.land/std@0.140.0/path/_interface.ts": "ee3b431a336b80cf445441109d089b70d87d5e248f4f90ff906820889ecf8d09", + "https://deno.land/std@0.140.0/path/_util.ts": "c1e9686d0164e29f7d880b2158971d805b6e0efc3110d0b3e24e4b8af2190d2b", + "https://deno.land/std@0.140.0/path/common.ts": "bee563630abd2d97f99d83c96c2fa0cca7cee103e8cb4e7699ec4d5db7bd2633", + "https://deno.land/std@0.140.0/path/glob.ts": "cb5255638de1048973c3e69e420c77dc04f75755524cb3b2e160fe9277d939ee", + "https://deno.land/std@0.140.0/path/mod.ts": "d3e68d0abb393fb0bf94a6d07c46ec31dc755b544b13144dee931d8d5f06a52d", + "https://deno.land/std@0.140.0/path/posix.ts": "293cdaec3ecccec0a9cc2b534302dfe308adb6f10861fa183275d6695faace44", + "https://deno.land/std@0.140.0/path/separator.ts": "fe1816cb765a8068afb3e8f13ad272351c85cbc739af56dacfc7d93d710fe0f9", + "https://deno.land/std@0.140.0/path/win32.ts": "31811536855e19ba37a999cd8d1b62078235548d67902ece4aa6b814596dd757", + "https://deno.land/std@0.140.0/streams/conversion.ts": "712585bfa0172a97fb68dd46e784ae8ad59d11b88079d6a4ab098ff42e697d21", + "https://deno.land/std@0.166.0/_util/asserts.ts": "d0844e9b62510f89ce1f9878b046f6a57bf88f208a10304aab50efcb48365272", + "https://deno.land/std@0.166.0/_util/os.ts": "8a33345f74990e627b9dfe2de9b040004b08ea5146c7c9e8fe9a29070d193934", + "https://deno.land/std@0.166.0/flags/mod.ts": "3b459daf581e047819b6b799c92b96c81b4eecbd5ea025643d54dc0abc6ac923", + "https://deno.land/std@0.166.0/fmt/colors.ts": "9e36a716611dcd2e4865adea9c4bec916b5c60caad4cdcdc630d4974e6bb8bd4", + "https://deno.land/std@0.166.0/fs/_util.ts": "fdc156f897197f261a1c096dcf8ff9267ed0ff42bd5b31f55053a4763a4bae3b", + "https://deno.land/std@0.166.0/fs/copy.ts": "37ad2d3390a672a34baf7d16a8623238906a1ee9b2c5fffc8efaa97810f4e6a9", + "https://deno.land/std@0.166.0/fs/empty_dir.ts": "c15a0aaaf40f8c21cca902aa1e01a789ad0c2fd1b7e2eecf4957053c5dbf707f", + "https://deno.land/std@0.166.0/fs/ensure_dir.ts": "76395fc1c989ca8d2de3aedfa8240eb8f5225cde20f926de957995b063135b80", + "https://deno.land/std@0.166.0/fs/ensure_file.ts": "b8e32ea63aa21221d0219760ba3f741f682d7f7d68d0d24a3ec067c338568152", + "https://deno.land/std@0.166.0/fs/ensure_link.ts": "5cc1c04f18487d7d1edf4c5469705f30b61390ffd24ad7db6df85e7209b32bb2", + "https://deno.land/std@0.166.0/fs/ensure_symlink.ts": "5273557b8c50be69477aa9cb003b54ff2240a336db52a40851c97abce76b96ab", + "https://deno.land/std@0.166.0/fs/eol.ts": "65b1e27320c3eec6fb653b27e20056ee3d015d3e91db388cfefa41616ebc7cb3", + "https://deno.land/std@0.166.0/fs/exists.ts": "6a447912e49eb79cc640adacfbf4b0baf8e17ede6d5bed057062ce33c4fa0d68", + "https://deno.land/std@0.166.0/fs/expand_glob.ts": "d08678afa768881b055bdfb5cebe4f089f8db4513a4d2b0bbe748f5870d77ce3", + "https://deno.land/std@0.166.0/fs/mod.ts": "354a6f972ef4e00c4dd1f1339a8828ef0764c1c23d3c0010af3fcc025d8655b0", + "https://deno.land/std@0.166.0/fs/move.ts": "6d7fa9da60dbc7a32dd7fdbc2ff812b745861213c8e92ba96dace0669b0c378c", + "https://deno.land/std@0.166.0/fs/walk.ts": "0a754cc4696a15bdb175380a4b7deff3eb65be9768cb11d91a4138beee35c2d7", + "https://deno.land/std@0.166.0/path/_constants.ts": "df1db3ffa6dd6d1252cc9617e5d72165cd2483df90e93833e13580687b6083c3", + "https://deno.land/std@0.166.0/path/_interface.ts": "ee3b431a336b80cf445441109d089b70d87d5e248f4f90ff906820889ecf8d09", + "https://deno.land/std@0.166.0/path/_util.ts": "d16be2a16e1204b65f9d0dfc54a9bc472cafe5f4a190b3c8471ec2016ccd1677", + "https://deno.land/std@0.166.0/path/common.ts": "bee563630abd2d97f99d83c96c2fa0cca7cee103e8cb4e7699ec4d5db7bd2633", + "https://deno.land/std@0.166.0/path/glob.ts": "cb5255638de1048973c3e69e420c77dc04f75755524cb3b2e160fe9277d939ee", + "https://deno.land/std@0.166.0/path/mod.ts": "56fec03ad0ebd61b6ab39ddb9b0ddb4c4a5c9f2f4f632e09dd37ec9ebfd722ac", + "https://deno.land/std@0.166.0/path/posix.ts": "6b63de7097e68c8663c84ccedc0fd977656eb134432d818ecd3a4e122638ac24", + "https://deno.land/std@0.166.0/path/separator.ts": "fe1816cb765a8068afb3e8f13ad272351c85cbc739af56dacfc7d93d710fe0f9", + "https://deno.land/std@0.166.0/path/win32.ts": "7cebd2bda6657371adc00061a1d23fdd87bcdf64b4843bb148b0b24c11b40f69", + "https://deno.land/std@0.181.0/_util/asserts.ts": "178dfc49a464aee693a7e285567b3d0b555dc805ff490505a8aae34f9cfb1462", + "https://deno.land/std@0.181.0/_util/os.ts": "d932f56d41e4f6a6093d56044e29ce637f8dcc43c5a90af43504a889cf1775e3", + "https://deno.land/std@0.181.0/fs/_util.ts": "65381f341af1ff7f40198cee15c20f59951ac26e51ddc651c5293e24f9ce6f32", + "https://deno.land/std@0.181.0/fs/ensure_dir.ts": "dc64c4c75c64721d4e3fb681f1382f803ff3d2868f08563ff923fdd20d071c40", + "https://deno.land/std@0.181.0/fs/expand_glob.ts": "e4f56259a0a70fe23f05215b00de3ac5e6ba46646ab2a06ebbe9b010f81c972a", + "https://deno.land/std@0.181.0/fs/walk.ts": "ea95ffa6500c1eda6b365be488c056edc7c883a1db41ef46ec3bf057b1c0fe32", + "https://deno.land/std@0.181.0/path/_constants.ts": "e49961f6f4f48039c0dfed3c3f93e963ca3d92791c9d478ac5b43183413136e0", + "https://deno.land/std@0.181.0/path/_interface.ts": "6471159dfbbc357e03882c2266d21ef9afdb1e4aa771b0545e90db58a0ba314b", + "https://deno.land/std@0.181.0/path/_util.ts": "d7abb1e0dea065f427b89156e28cdeb32b045870acdf865833ba808a73b576d0", + "https://deno.land/std@0.181.0/path/common.ts": "ee7505ab01fd22de3963b64e46cff31f40de34f9f8de1fff6a1bd2fe79380000", + "https://deno.land/std@0.181.0/path/glob.ts": "d479e0a695621c94d3fd7fe7abd4f9499caf32a8de13f25073451c6ef420a4e1", + "https://deno.land/std@0.181.0/path/mod.ts": "bf718f19a4fdd545aee1b06409ca0805bd1b68ecf876605ce632e932fe54510c", + "https://deno.land/std@0.181.0/path/posix.ts": "8b7c67ac338714b30c816079303d0285dd24af6b284f7ad63da5b27372a2c94d", + "https://deno.land/std@0.181.0/path/separator.ts": "0fb679739d0d1d7bf45b68dacfb4ec7563597a902edbaf3c59b50d5bcadd93b1", + "https://deno.land/std@0.181.0/path/win32.ts": "d186344e5583bcbf8b18af416d13d82b35a317116e6460a5a3953508c3de5bba", + "https://deno.land/std@0.182.0/_util/asserts.ts": "178dfc49a464aee693a7e285567b3d0b555dc805ff490505a8aae34f9cfb1462", + "https://deno.land/std@0.182.0/_util/os.ts": "d932f56d41e4f6a6093d56044e29ce637f8dcc43c5a90af43504a889cf1775e3", + "https://deno.land/std@0.182.0/fmt/colors.ts": "d67e3cd9f472535241a8e410d33423980bec45047e343577554d3356e1f0ef4e", + "https://deno.land/std@0.182.0/fs/_util.ts": "65381f341af1ff7f40198cee15c20f59951ac26e51ddc651c5293e24f9ce6f32", + "https://deno.land/std@0.182.0/fs/empty_dir.ts": "c3d2da4c7352fab1cf144a1ecfef58090769e8af633678e0f3fabaef98594688", + "https://deno.land/std@0.182.0/fs/expand_glob.ts": "e4f56259a0a70fe23f05215b00de3ac5e6ba46646ab2a06ebbe9b010f81c972a", + "https://deno.land/std@0.182.0/fs/walk.ts": "920be35a7376db6c0b5b1caf1486fb962925e38c9825f90367f8f26b5e5d0897", + "https://deno.land/std@0.182.0/path/_constants.ts": "e49961f6f4f48039c0dfed3c3f93e963ca3d92791c9d478ac5b43183413136e0", + "https://deno.land/std@0.182.0/path/_interface.ts": "6471159dfbbc357e03882c2266d21ef9afdb1e4aa771b0545e90db58a0ba314b", + "https://deno.land/std@0.182.0/path/_util.ts": "d7abb1e0dea065f427b89156e28cdeb32b045870acdf865833ba808a73b576d0", + "https://deno.land/std@0.182.0/path/common.ts": "ee7505ab01fd22de3963b64e46cff31f40de34f9f8de1fff6a1bd2fe79380000", + "https://deno.land/std@0.182.0/path/glob.ts": "d479e0a695621c94d3fd7fe7abd4f9499caf32a8de13f25073451c6ef420a4e1", + "https://deno.land/std@0.182.0/path/mod.ts": "bf718f19a4fdd545aee1b06409ca0805bd1b68ecf876605ce632e932fe54510c", + "https://deno.land/std@0.182.0/path/posix.ts": "8b7c67ac338714b30c816079303d0285dd24af6b284f7ad63da5b27372a2c94d", + "https://deno.land/std@0.182.0/path/separator.ts": "0fb679739d0d1d7bf45b68dacfb4ec7563597a902edbaf3c59b50d5bcadd93b1", + "https://deno.land/std@0.182.0/path/win32.ts": "d186344e5583bcbf8b18af416d13d82b35a317116e6460a5a3953508c3de5bba", + "https://deno.land/std@0.185.0/semver/mod.ts": "200f50cf6872212667df532fb09f0b1a33d3427a5201f75fad30a0d0c6dbcce3", + "https://deno.land/std@0.213.0/archive/_common.ts": "85edd5cdd4324833f613c1bc055f8e2f935cc9229c6b3044421268d9959997ef", + "https://deno.land/std@0.213.0/archive/untar.ts": "7677c136f2188cd8c33363ccaaee6e77d4ca656cca3e2093d08de8f294d4353d", + "https://deno.land/std@0.213.0/assert/assert.ts": "bec068b2fccdd434c138a555b19a2c2393b71dfaada02b7d568a01541e67cdc5", + "https://deno.land/std@0.213.0/assert/assertion_error.ts": "9f689a101ee586c4ce92f52fa7ddd362e86434ffdf1f848e45987dc7689976b8", + "https://deno.land/std@0.213.0/bytes/concat.ts": "9cac3b4376afbef98ff03588eb3cf948e0d1eb6c27cfe81a7651ab6dd3adc54a", + "https://deno.land/std@0.213.0/bytes/copy.ts": "f29c03168853720dfe82eaa57793d0b9e3543ebfe5306684182f0f1e3bfd422a", + "https://deno.land/std@0.213.0/fmt/colors.ts": "aeaee795471b56fc62a3cb2e174ed33e91551b535f44677f6320336aabb54fbb", + "https://deno.land/std@0.213.0/fs/_create_walk_entry.ts": "5d9d2aaec05bcf09a06748b1684224d33eba7a4de24cf4cf5599991ca6b5b412", + "https://deno.land/std@0.213.0/fs/_get_file_info_type.ts": "da7bec18a7661dba360a1db475b826b18977582ce6fc9b25f3d4ee0403fe8cbd", + "https://deno.land/std@0.213.0/fs/_is_same_path.ts": "709c95868345fea051c58b9e96af95cff94e6ae98dfcff2b66dee0c212c4221f", + "https://deno.land/std@0.213.0/fs/_is_subdir.ts": "c68b309d46cc8568ed83c000f608a61bbdba0943b7524e7a30f9e450cf67eecd", + "https://deno.land/std@0.213.0/fs/_to_path_string.ts": "29bfc9c6c112254961d75cbf6ba814d6de5349767818eb93090cecfa9665591e", + "https://deno.land/std@0.213.0/fs/copy.ts": "dc0f68c4b6c3b090bfdb909387e309f6169b746bd713927c9507c9ef545d71f6", + "https://deno.land/std@0.213.0/fs/empty_dir.ts": "4f01e6d56e2aa8d90ad60f20bc25601f516b00f6c3044cdf6863a058791d91aa", + "https://deno.land/std@0.213.0/fs/ensure_dir.ts": "dffff68de0d10799b5aa9e39dec4e327e12bbd29e762292193684542648c4aeb", + "https://deno.land/std@0.213.0/fs/ensure_file.ts": "ac5cfde94786b0284d2c8e9f7f9425269bea1b2140612b4aea1f20b508870f59", + "https://deno.land/std@0.213.0/fs/ensure_link.ts": "d42af2edefeaa9817873ec6e46dc5d209ac4d744f8c69c5ecc2dffade78465b6", + "https://deno.land/std@0.213.0/fs/ensure_symlink.ts": "aee3f1655700f60090b4a3037f5b6c07ab37c36807cccad746ce89987719e6d2", + "https://deno.land/std@0.213.0/fs/eol.ts": "c9807291f78361d49fd986a9be04654610c615c5e2ec63d748976197d30ff206", + "https://deno.land/std@0.213.0/fs/exists.ts": "d2757ef764eaf5c6c5af7228e8447db2de42ab084a2dae540097f905723d83f5", + "https://deno.land/std@0.213.0/fs/expand_glob.ts": "a64e4ab51f62780f764789c9cdeacc862d221e35207fb81170a980ccc22868e3", + "https://deno.land/std@0.213.0/fs/mod.ts": "107f5afa4424c2d3ce2f7e9266173198da30302c69af662c720115fe504dc5ee", + "https://deno.land/std@0.213.0/fs/move.ts": "39e0d7ccb88a566d20b949712020e766b15ef1ec19159573d11f949bd677909c", + "https://deno.land/std@0.213.0/fs/walk.ts": "f04cc83ad3b27b5a5d078c831a01c7406069474bf280d5db015d937149a60128", + "https://deno.land/std@0.213.0/internal/warn_on_deprecated_api.ts": "0708590b803a3c4462bbd89ee8b9a1b3fe941a7679ee3cfc332227a69b5c36f1", + "https://deno.land/std@0.213.0/io/_common.ts": "36705cdb4dfcd338d6131bca1b16e48a4d5bf0d1dada6ce397268e88c17a5835", + "https://deno.land/std@0.213.0/io/_constants.ts": "3c7ad4695832e6e4a32e35f218c70376b62bc78621ef069a4a0a3d55739f8856", + "https://deno.land/std@0.213.0/io/buf_reader.ts": "ccbd43ace0a9eebbd5e1b4765724b79da79d1e28b90c2b08537b99192da4a1f7", + "https://deno.land/std@0.213.0/io/buf_writer.ts": "bf68b9c74b1bccf51b9960c54db5eec60e7e3d922c7c62781b0d3971770021ba", + "https://deno.land/std@0.213.0/io/buffer.ts": "79182995c8340ece2fa8763a8da86d282c507e854921d0a4c2ba7425c63609ef", + "https://deno.land/std@0.213.0/io/copy.ts": "63c6a4acf71fb1e89f5e47a7b3b2972f9d2c56dd645560975ead72db7eb23f61", + "https://deno.land/std@0.213.0/io/copy_n.ts": "e4a169b8965b69e6a05175d06bf14565caa91266143ec895e54e95b6cdb27cf2", + "https://deno.land/std@0.213.0/io/limited_reader.ts": "2b3e6c2d134bbbabbc918584db5fd2f8b21091843357f75af0d9f262cb5c94c1", + "https://deno.land/std@0.213.0/io/mod.ts": "571384032c5f60530542a28f2e8b0e73e47e87eca77056ba7e2363f4d4a4573a", + "https://deno.land/std@0.213.0/io/multi_reader.ts": "ca8a7813208a3393dfaed75894d955fe58a38c21b880e69839a4e0547eadbf61", + "https://deno.land/std@0.213.0/io/read_all.ts": "876c1cb20adea15349c72afc86cecd3573335845ae778967aefb5e55fe5a8a4a", + "https://deno.land/std@0.213.0/io/read_delim.ts": "fb0884d97adc398877c6f59e1d1450be12e078790f52845fae7876dc119bb8f6", + "https://deno.land/std@0.213.0/io/read_int.ts": "6ada4e0eec5044982df530e4de804e32ae757a2c318b57eba622d893841ffe2a", + "https://deno.land/std@0.213.0/io/read_lines.ts": "34555eaa25269f6cfb9a842a03daedc9eae4f8295c8f933bd2b1639274ce89e3", + "https://deno.land/std@0.213.0/io/read_long.ts": "199cba44526464f8499e1f3d96008d513bcadc8e5665356a9b84425cac6b16ad", + "https://deno.land/std@0.213.0/io/read_range.ts": "a0c930ea61fdc3ea5520be4df34a7927fe8a2d6da9b04bfaa7b9588ef2e1a718", + "https://deno.land/std@0.213.0/io/read_short.ts": "73777709ad41b6faeff3638c275a329cc820c1082f4dad07909f48875a35a71d", + "https://deno.land/std@0.213.0/io/read_string_delim.ts": "8c604ceea5c3c7ab244583570b467ce194238ace6d49b1d47f25d4f75de86d59", + "https://deno.land/std@0.213.0/io/slice_long_to_bytes.ts": "9769174a8f3b4449f1e1af1a79f78e58ef84d0aaf2f457e1fdc31a01f92439b7", + "https://deno.land/std@0.213.0/io/string_reader.ts": "b0176211e61e235a684abef722e7ecc7a6481238ba264f1a7b199b8a1d2a62f5", + "https://deno.land/std@0.213.0/io/string_writer.ts": "4fe4dcbdadff11c726bf79b0239e14fa9b1e8468a795b465622e4dbd6c1f819c", + "https://deno.land/std@0.213.0/io/to_readable_stream.ts": "ed03a44a1ec1cc55a85a857acf6cac472035298f6f3b6207ea209f93b4aefb39", + "https://deno.land/std@0.213.0/io/to_writable_stream.ts": "ef422e0425963c8a1e0481674e66c3023da50f0acbe5ef51ec9789efc3c1e2ed", + "https://deno.land/std@0.213.0/io/types.ts": "748bbb3ac96abda03594ef5a0db15ce5450dcc6c0d841c8906f8b10ac8d32c96", + "https://deno.land/std@0.213.0/io/write_all.ts": "24aac2312bb21096ae3ae0b102b22c26164d3249dff96dbac130958aa736f038", + "https://deno.land/std@0.213.0/log/base_handler.ts": "924b370558d561f4e728295ebcb392224e36061542c7ad2e5b48c8e29614c27f", + "https://deno.land/std@0.213.0/log/console_handler.ts": "75653acd6932fb97c7121f63336b39de3f072e329874d66f05abcb2a7f514558", + "https://deno.land/std@0.213.0/log/file_handler.ts": "7b58c7017117ae290700b0e23f21573c1dc8ba8b5d4978d8aa0b8e05742d75e2", + "https://deno.land/std@0.213.0/log/formatters.ts": "5491ac778cf404a9379025bef33565644eb10b6a1f8083aba2595887d49edf15", + "https://deno.land/std@0.213.0/log/handlers.ts": "ff5b5d8293ca5d452acfb2e7c214f527ad953aaab4036219b818a3b859944b08", + "https://deno.land/std@0.213.0/log/levels.ts": "3746b311bc5cd28340fe7b563002f94508ace565592e9f4730f8b07916f189a6", + "https://deno.land/std@0.213.0/log/logger.ts": "32ad896c88182ee9cbe2a579afb09b48ed642a2bfaa3f3b2fb8009314ab18855", + "https://deno.land/std@0.213.0/log/mod.ts": "d8a8ebca268767a610d686d7f3c5c97096121ff3bc7ebec71ab7dd73cc52231b", + "https://deno.land/std@0.213.0/log/rotating_file_handler.ts": "dc0333959ff725ac1f43b741ababa9fef074f658a60c65235d12e44952085fbe", + "https://deno.land/std@0.213.0/path/_common/assert_path.ts": "2ca275f36ac1788b2acb60fb2b79cb06027198bc2ba6fb7e163efaedde98c297", + "https://deno.land/std@0.213.0/path/_common/basename.ts": "569744855bc8445f3a56087fd2aed56bdad39da971a8d92b138c9913aecc5fa2", + "https://deno.land/std@0.213.0/path/_common/common.ts": "6157c7ec1f4db2b4a9a187efd6ce76dcaf1e61cfd49f87e40d4ea102818df031", + "https://deno.land/std@0.213.0/path/_common/constants.ts": "dc5f8057159f4b48cd304eb3027e42f1148cf4df1fb4240774d3492b5d12ac0c", + "https://deno.land/std@0.213.0/path/_common/dirname.ts": "684df4aa71a04bbcc346c692c8485594fc8a90b9408dfbc26ff32cf3e0c98cc8", + "https://deno.land/std@0.213.0/path/_common/format.ts": "92500e91ea5de21c97f5fe91e178bae62af524b72d5fcd246d6d60ae4bcada8b", + "https://deno.land/std@0.213.0/path/_common/from_file_url.ts": "d672bdeebc11bf80e99bf266f886c70963107bdd31134c4e249eef51133ceccf", + "https://deno.land/std@0.213.0/path/_common/glob_to_reg_exp.ts": "2007aa87bed6eb2c8ae8381adcc3125027543d9ec347713c1ad2c68427330770", + "https://deno.land/std@0.213.0/path/_common/normalize.ts": "684df4aa71a04bbcc346c692c8485594fc8a90b9408dfbc26ff32cf3e0c98cc8", + "https://deno.land/std@0.213.0/path/_common/normalize_string.ts": "dfdf657a1b1a7db7999f7c575ee7e6b0551d9c20f19486c6c3f5ff428384c965", + "https://deno.land/std@0.213.0/path/_common/relative.ts": "faa2753d9b32320ed4ada0733261e3357c186e5705678d9dd08b97527deae607", + "https://deno.land/std@0.213.0/path/_common/strip_trailing_separators.ts": "7024a93447efcdcfeaa9339a98fa63ef9d53de363f1fbe9858970f1bba02655a", + "https://deno.land/std@0.213.0/path/_common/to_file_url.ts": "7f76adbc83ece1bba173e6e98a27c647712cab773d3f8cbe0398b74afc817883", + "https://deno.land/std@0.213.0/path/_interface.ts": "a1419fcf45c0ceb8acdccc94394e3e94f99e18cfd32d509aab514c8841799600", + "https://deno.land/std@0.213.0/path/_os.ts": "8fb9b90fb6b753bd8c77cfd8a33c2ff6c5f5bc185f50de8ca4ac6a05710b2c15", + "https://deno.land/std@0.213.0/path/basename.ts": "5d341aadb7ada266e2280561692c165771d071c98746fcb66da928870cd47668", + "https://deno.land/std@0.213.0/path/common.ts": "03e52e22882402c986fe97ca3b5bb4263c2aa811c515ce84584b23bac4cc2643", + "https://deno.land/std@0.213.0/path/constants.ts": "0c206169ca104938ede9da48ac952de288f23343304a1c3cb6ec7625e7325f36", + "https://deno.land/std@0.213.0/path/dirname.ts": "85bd955bf31d62c9aafdd7ff561c4b5fb587d11a9a5a45e2b01aedffa4238a7c", + "https://deno.land/std@0.213.0/path/extname.ts": "593303db8ae8c865cbd9ceec6e55d4b9ac5410c1e276bfd3131916591b954441", + "https://deno.land/std@0.213.0/path/format.ts": "98fad25f1af7b96a48efb5b67378fcc8ed77be895df8b9c733b86411632162af", + "https://deno.land/std@0.213.0/path/from_file_url.ts": "911833ae4fd10a1c84f6271f36151ab785955849117dc48c6e43b929504ee069", + "https://deno.land/std@0.213.0/path/glob.ts": "04510962905d4b1513b44da9cb195914e0fa46c24359f6feaca20848d797dcb0", + "https://deno.land/std@0.213.0/path/glob_to_regexp.ts": "83c5fd36a8c86f5e72df9d0f45317f9546afa2ce39acaafe079d43a865aced08", + "https://deno.land/std@0.213.0/path/is_absolute.ts": "4791afc8bfd0c87f0526eaa616b0d16e7b3ab6a65b62942e50eac68de4ef67d7", + "https://deno.land/std@0.213.0/path/is_glob.ts": "a65f6195d3058c3050ab905705891b412ff942a292bcbaa1a807a74439a14141", + "https://deno.land/std@0.213.0/path/join.ts": "ae2ec5ca44c7e84a235fd532e4a0116bfb1f2368b394db1c4fb75e3c0f26a33a", + "https://deno.land/std@0.213.0/path/join_globs.ts": "e9589869a33dc3982101898ee50903db918ca00ad2614dbe3934d597d7b1fbea", + "https://deno.land/std@0.213.0/path/mod.ts": "ffeaccb713dbe6c72e015b7c767f753f8ec5fbc3b621ff5eeee486ffc2c0ddda", + "https://deno.land/std@0.213.0/path/normalize.ts": "4155743ccceeed319b350c1e62e931600272fad8ad00c417b91df093867a8352", + "https://deno.land/std@0.213.0/path/normalize_glob.ts": "98ee8268fad271193603271c203ae973280b5abfbdd2cbca1053fd2af71869ca", + "https://deno.land/std@0.213.0/path/parse.ts": "65e8e285f1a63b714e19ef24b68f56e76934c3df0b6e65fd440d3991f4f8aefb", + "https://deno.land/std@0.213.0/path/posix/_util.ts": "1e3937da30f080bfc99fe45d7ed23c47dd8585c5e473b2d771380d3a6937cf9d", + "https://deno.land/std@0.213.0/path/posix/basename.ts": "39ee27a29f1f35935d3603ccf01d53f3d6e0c5d4d0f84421e65bd1afeff42843", + "https://deno.land/std@0.213.0/path/posix/common.ts": "26f60ccc8b2cac3e1613000c23ac5a7d392715d479e5be413473a37903a2b5d4", + "https://deno.land/std@0.213.0/path/posix/constants.ts": "93481efb98cdffa4c719c22a0182b994e5a6aed3047e1962f6c2c75b7592bef1", + "https://deno.land/std@0.213.0/path/posix/dirname.ts": "6535d2bdd566118963537b9dda8867ba9e2a361015540dc91f5afbb65c0cce8b", + "https://deno.land/std@0.213.0/path/posix/extname.ts": "8d36ae0082063c5e1191639699e6f77d3acf501600a3d87b74943f0ae5327427", + "https://deno.land/std@0.213.0/path/posix/format.ts": "185e9ee2091a42dd39e2a3b8e4925370ee8407572cee1ae52838aed96310c5c1", + "https://deno.land/std@0.213.0/path/posix/from_file_url.ts": "951aee3a2c46fd0ed488899d024c6352b59154c70552e90885ed0c2ab699bc40", + "https://deno.land/std@0.213.0/path/posix/glob_to_regexp.ts": "54d3ff40f309e3732ab6e5b19d7111d2d415248bcd35b67a99defcbc1972e697", + "https://deno.land/std@0.213.0/path/posix/is_absolute.ts": "cebe561ad0ae294f0ce0365a1879dcfca8abd872821519b4fcc8d8967f888ede", + "https://deno.land/std@0.213.0/path/posix/is_glob.ts": "8a8b08c08bf731acf2c1232218f1f45a11131bc01de81e5f803450a5914434b9", + "https://deno.land/std@0.213.0/path/posix/join.ts": "aef88d5fa3650f7516730865dbb951594d1a955b785e2450dbee93b8e32694f3", + "https://deno.land/std@0.213.0/path/posix/join_globs.ts": "ee2f4676c5b8a0dfa519da58b8ade4d1c4aa8dd3fe35619edec883ae9df1f8c9", + "https://deno.land/std@0.213.0/path/posix/mod.ts": "563a18c2b3ddc62f3e4a324ff0f583e819b8602a72ad880cb98c9e2e34f8db5b", + "https://deno.land/std@0.213.0/path/posix/normalize.ts": "baeb49816a8299f90a0237d214cef46f00ba3e95c0d2ceb74205a6a584b58a91", + "https://deno.land/std@0.213.0/path/posix/normalize_glob.ts": "65f0138fa518ef9ece354f32889783fc38cdf985fb02dcf1c3b14fa47d665640", + "https://deno.land/std@0.213.0/path/posix/parse.ts": "d5bac4eb21262ab168eead7e2196cb862940c84cee572eafedd12a0d34adc8fb", + "https://deno.land/std@0.213.0/path/posix/relative.ts": "3907d6eda41f0ff723d336125a1ad4349112cd4d48f693859980314d5b9da31c", + "https://deno.land/std@0.213.0/path/posix/resolve.ts": "bac20d9921beebbbb2b73706683b518b1d0c1b1da514140cee409e90d6b2913a", + "https://deno.land/std@0.213.0/path/posix/separator.ts": "c9ecae5c843170118156ac5d12dc53e9caf6a1a4c96fc8b1a0ab02dff5c847b0", + "https://deno.land/std@0.213.0/path/posix/to_file_url.ts": "7aa752ba66a35049e0e4a4be5a0a31ac6b645257d2e031142abb1854de250aaf", + "https://deno.land/std@0.213.0/path/posix/to_namespaced_path.ts": "28b216b3c76f892a4dca9734ff1cc0045d135532bfd9c435ae4858bfa5a2ebf0", + "https://deno.land/std@0.213.0/path/relative.ts": "ab739d727180ed8727e34ed71d976912461d98e2b76de3d3de834c1066667add", + "https://deno.land/std@0.213.0/path/resolve.ts": "a6f977bdb4272e79d8d0ed4333e3d71367cc3926acf15ac271f1d059c8494d8d", + "https://deno.land/std@0.213.0/path/separator.ts": "c6c890507f944a1f5cb7d53b8d638d6ce3cf0f34609c8d84a10c1eaa400b77a9", + "https://deno.land/std@0.213.0/path/to_file_url.ts": "88f049b769bce411e2d2db5bd9e6fd9a185a5fbd6b9f5ad8f52bef517c4ece1b", + "https://deno.land/std@0.213.0/path/to_namespaced_path.ts": "b706a4103b104cfadc09600a5f838c2ba94dbcdb642344557122dda444526e40", + "https://deno.land/std@0.213.0/path/windows/_util.ts": "d5f47363e5293fced22c984550d5e70e98e266cc3f31769e1710511803d04808", + "https://deno.land/std@0.213.0/path/windows/basename.ts": "e2dbf31d1d6385bfab1ce38c333aa290b6d7ae9e0ecb8234a654e583cf22f8fe", + "https://deno.land/std@0.213.0/path/windows/common.ts": "26f60ccc8b2cac3e1613000c23ac5a7d392715d479e5be413473a37903a2b5d4", + "https://deno.land/std@0.213.0/path/windows/constants.ts": "5afaac0a1f67b68b0a380a4ef391bf59feb55856aa8c60dfc01bd3b6abb813f5", + "https://deno.land/std@0.213.0/path/windows/dirname.ts": "33e421be5a5558a1346a48e74c330b8e560be7424ed7684ea03c12c21b627bc9", + "https://deno.land/std@0.213.0/path/windows/extname.ts": "165a61b00d781257fda1e9606a48c78b06815385e7d703232548dbfc95346bef", + "https://deno.land/std@0.213.0/path/windows/format.ts": "bbb5ecf379305b472b1082cd2fdc010e44a0020030414974d6029be9ad52aeb6", + "https://deno.land/std@0.213.0/path/windows/from_file_url.ts": "ced2d587b6dff18f963f269d745c4a599cf82b0c4007356bd957cb4cb52efc01", + "https://deno.land/std@0.213.0/path/windows/glob_to_regexp.ts": "6dcd1242bd8907aa9660cbdd7c93446e6927b201112b0cba37ca5d80f81be51b", + "https://deno.land/std@0.213.0/path/windows/is_absolute.ts": "4a8f6853f8598cf91a835f41abed42112cebab09478b072e4beb00ec81f8ca8a", + "https://deno.land/std@0.213.0/path/windows/is_glob.ts": "8a8b08c08bf731acf2c1232218f1f45a11131bc01de81e5f803450a5914434b9", + "https://deno.land/std@0.213.0/path/windows/join.ts": "e0b3356615c1a75c56ebb6a7311157911659e11fd533d80d724800126b761ac3", + "https://deno.land/std@0.213.0/path/windows/join_globs.ts": "ee2f4676c5b8a0dfa519da58b8ade4d1c4aa8dd3fe35619edec883ae9df1f8c9", + "https://deno.land/std@0.213.0/path/windows/mod.ts": "7d6062927bda47c47847ffb55d8f1a37b0383840aee5c7dfc93984005819689c", + "https://deno.land/std@0.213.0/path/windows/normalize.ts": "78126170ab917f0ca355a9af9e65ad6bfa5be14d574c5fb09bb1920f52577780", + "https://deno.land/std@0.213.0/path/windows/normalize_glob.ts": "179c86ba89f4d3fe283d2addbe0607341f79ee9b1ae663abcfb3439db2e97810", + "https://deno.land/std@0.213.0/path/windows/parse.ts": "b9239edd892a06a06625c1b58425e199f018ce5649ace024d144495c984da734", + "https://deno.land/std@0.213.0/path/windows/relative.ts": "3e1abc7977ee6cc0db2730d1f9cb38be87b0ce4806759d271a70e4997fc638d7", + "https://deno.land/std@0.213.0/path/windows/resolve.ts": "75b2e3e1238d840782cee3d8864d82bfaa593c7af8b22f19c6422cf82f330ab3", + "https://deno.land/std@0.213.0/path/windows/separator.ts": "e51c5522140eff4f8402617c5c68a201fdfa3a1a8b28dc23587cff931b665e43", + "https://deno.land/std@0.213.0/path/windows/to_file_url.ts": "1cd63fd35ec8d1370feaa4752eccc4cc05ea5362a878be8dc7db733650995484", + "https://deno.land/std@0.213.0/path/windows/to_namespaced_path.ts": "4ffa4fb6fae321448d5fe810b3ca741d84df4d7897e61ee29be961a6aac89a4c", + "https://deno.land/std@0.213.0/semver/_constants.ts": "90879e4ea94a34c49c8ecea3d9c06e13e61ecb7caca80c8f289139440ca9835a", + "https://deno.land/std@0.213.0/semver/_shared.ts": "8d44684775cde4a64bd6bdb99b51f3bc59ed65f10af78ca136cc2eab3f6716f1", + "https://deno.land/std@0.213.0/semver/comparator_format.ts": "41f00b1275923317fa3f7c39df58fa7f62f541b0f231134c1655bc8a42965393", + "https://deno.land/std@0.213.0/semver/comparator_intersects.ts": "dc231c5ebded8e88b8355a33edfbd228e36a08384848d73c15d394833384ee8f", + "https://deno.land/std@0.213.0/semver/comparator_max.ts": "2038cded7cce886e2c81926acb97f625908707f2d66864b603493b9674e2bd58", + "https://deno.land/std@0.213.0/semver/comparator_min.ts": "453d3e449aaee4d59acc9b36fe77eddfcb0c4097ffe7efe11eb2a04a64cc520d", + "https://deno.land/std@0.213.0/semver/compare.ts": "e507146fd997d33ae5abc2675e8b24a1ea84b50ddc9918cb8ddc1b1911c97011", + "https://deno.land/std@0.213.0/semver/constants.ts": "52dde17ff45479fbdc6b3a7198224e02a2deb9cb4f99ac6592c9727173f13a83", + "https://deno.land/std@0.213.0/semver/difference.ts": "be4f01b7745406408a16b708185a48c1c652cc87e0244b12a5ca75c5585db668", + "https://deno.land/std@0.213.0/semver/eq.ts": "7aaffb5d841dee589fa81e18d54fb4aec065feaa701f58214f89e17edbcf5da5", + "https://deno.land/std@0.213.0/semver/equals.ts": "8b9b18260c9a55feee9d3f9250fba345be922380f2e8f8009e455c394ce5e81d", + "https://deno.land/std@0.213.0/semver/format.ts": "26d3a357ac5abd73dee0fe7dbbac6107fbdce0a844370c7b1bcb673c92e46bf6", + "https://deno.land/std@0.213.0/semver/format_range.ts": "d472a7f743cf0290beebed90d1e6d8f1b5e93d91c03f3503e869f18931acd156", + "https://deno.land/std@0.213.0/semver/greater_or_equal.ts": "89c26f68070896944676eb9704cbb617febc6ed693720282741d6859c3d1fe80", + "https://deno.land/std@0.213.0/semver/greater_than.ts": "d8c4a227cd28ea80a1de9c80215d7f3f95786fe1b196f0cb5ec91d6567adad27", + "https://deno.land/std@0.213.0/semver/gt.ts": "e9a7b3e80eaf07fa949daf2622ed0be6f863d972f744557107fbfce7d6786624", + "https://deno.land/std@0.213.0/semver/gte.ts": "2f6deabbeb5c716d916d80bf6c0cfabbb00e0eb12c34420f2cf96dbb85fdc0f7", + "https://deno.land/std@0.213.0/semver/gtr.ts": "50cde7d0a05416f2a8b9d5125848e141eba474755d8c0e852ab2dfd22443ad2c", + "https://deno.land/std@0.213.0/semver/increment.ts": "427a043be71d6481e45c1a3939b955e800924d70779cb297b872d9cbf9f0e46d", + "https://deno.land/std@0.213.0/semver/is_comparator.ts": "895e7ecff33d23d7a465074a76b2341eda430f84c4817199f7492c5393e2e54f", + "https://deno.land/std@0.213.0/semver/is_semver.ts": "57914027d6141e593eb04418aaabbfd6f4562a1c53c6c33a1743fa50ada8d849", + "https://deno.land/std@0.213.0/semver/is_semver_range.ts": "1e4602ed91d5d7228e63765ab4d28042ee358304155a0eeb562871d030cabaee", + "https://deno.land/std@0.213.0/semver/less_or_equal.ts": "7dbf8190f37f3281048c30cf11e072a7af18685534ae88d295baa170b485bd90", + "https://deno.land/std@0.213.0/semver/less_than.ts": "b0c7902c54cecadcc7c1c80afc2f6a0f1bf0b3f53c8d2bfd11f01a3a414cccfe", + "https://deno.land/std@0.213.0/semver/lt.ts": "42b40467018e72e6637c68dde5439960a2db366e1edd730a8bb60a432d30f703", + "https://deno.land/std@0.213.0/semver/lte.ts": "678b9919c5abe85a7917f6815e74a323788f4a81f5da64d329b34cb32bb788c6", + "https://deno.land/std@0.213.0/semver/ltr.ts": "57ee19e33c90883d953e22255c0e02bfc8f682c610e32aab0a76db45a6cd159c", + "https://deno.land/std@0.213.0/semver/max_satisfying.ts": "1008802c70eaa6d13a9455f0bda7fcfbd0dd53d837d87930b8520411670d2766", + "https://deno.land/std@0.213.0/semver/min_satisfying.ts": "ad035539bb23c3d9545d5e9508123cd84be4ec47331acc23574795a3ae6c460e", + "https://deno.land/std@0.213.0/semver/mod.ts": "6c8c5aba6f9c1499e5e2bc1b1272d13157ed1f438296a095a14b8d321e805b59", + "https://deno.land/std@0.213.0/semver/neq.ts": "8c8c474249aa43331cc3d2a93ff0e824792f4fe823b674c79c50b778b06331a9", + "https://deno.land/std@0.213.0/semver/not_equals.ts": "17147a6f68b9d14f4643c1e2150378ccf6954710309f9618f75b411752a8e13d", + "https://deno.land/std@0.213.0/semver/outside.ts": "9953ed5935a1bc79b9d8e6258fa1717281a33bd5501f2ee0bc0fe6ed80b310b9", + "https://deno.land/std@0.213.0/semver/parse.ts": "2ba215c9aa3c71be753570724cfad75cc81972f0026dc81836ea3d1986112066", + "https://deno.land/std@0.213.0/semver/parse_comparator.ts": "94accf91b8c68c083a2fb932ff3afa81fb01cd5ce007d4e679f59ec86be3a132", + "https://deno.land/std@0.213.0/semver/parse_range.ts": "3242441370743df07919ca340be719acd9655311fa6a18e115761dfe562fc5ca", + "https://deno.land/std@0.213.0/semver/range_format.ts": "1d9f3a1b8176be0e49698929143da0e6a1b84f2581eb750e2cf17d7a0b6fac6c", + "https://deno.land/std@0.213.0/semver/range_intersects.ts": "461ce0045852511bbfe9204483ddbee897c4fb5557fc707e055edf98f15d5d30", + "https://deno.land/std@0.213.0/semver/range_max.ts": "c0eba7c51f462470bc3822227df57e0153deeacf47a4c40d5c27790fddd6cb92", + "https://deno.land/std@0.213.0/semver/range_min.ts": "37b9664103d5202c91f6228e8d7ac4ea508d7867f40a686dbe211e2a57f3efff", + "https://deno.land/std@0.213.0/semver/sort.ts": "b97c4f392cf688e27d304dc437b1a4d7278fbf5d2554ad6e51f64db6cc405c09", + "https://deno.land/std@0.213.0/semver/test_comparator.ts": "85476901a71fe8a09520902d85e1c573ce60a353846f8bbf6667e9518686591b", + "https://deno.land/std@0.213.0/semver/test_range.ts": "88de9dab0d61c82fd0861d50eabe72f0f27f29f3df4d50e83f36e09c1c3cd8a6", + "https://deno.land/std@0.213.0/semver/types.ts": "c85eb042ba22c69d62194ea7e535c3c104d0e9af75316b6315379101b4a7ef66", + "https://deno.land/std@0.213.0/streams/_common.ts": "4f9f2958d853b9a456be033631dabb7519daa68ee4d02caf53e2ecbffaf5805f", + "https://deno.land/std@0.213.0/streams/buffer.ts": "71120cceddacab2eb47a2f2908c64e82e79ac089506649bd41412042fcc97773", + "https://deno.land/std@0.213.0/streams/byte_slice_stream.ts": "5bbdcadb118390affa9b3d0a0f73ef8e83754f59bb89df349add669dd9369713", + "https://deno.land/std@0.213.0/streams/copy.ts": "442d1d647ce7daf350dd989797dd2eea51ec8ad3b3a6851fcdaf7ef44a387c71", + "https://deno.land/std@0.213.0/streams/delimiter_stream.ts": "45271f9db844e8e501a6df75b946cd2a5e01663de0e9ccf26b92996983e0cdbe", + "https://deno.land/std@0.213.0/streams/early_zip_readable_streams.ts": "21f5cf6dd36381c6a50c31a7727b5bd219f6382bbb7a413418595c3e466c4d14", + "https://deno.land/std@0.213.0/streams/iterate_reader.ts": "bd79a18de211449e5140e8f705e195c3e0e79020d752a64cd0a1d4b829b14633", + "https://deno.land/std@0.213.0/streams/limited_bytes_transform_stream.ts": "b22a45a337374e863c4eb1867ec6b8ad3e68620a6c52fe837746060ea610e6f1", + "https://deno.land/std@0.213.0/streams/limited_transform_stream.ts": "4c47da5ca38a30fa9f33b0f1a61d4548e7f52a9a58c294b0f430f680e44cc543", + "https://deno.land/std@0.213.0/streams/merge_readable_streams.ts": "9c541012e130d6e36086b6b8c197078a6053f5446367e33f233b71858a2c03cc", + "https://deno.land/std@0.213.0/streams/mod.ts": "cbe5466def4eb5e44a628df7be4700f7e2f88ac8b7d82cf3d769cfef5233aca4", + "https://deno.land/std@0.213.0/streams/read_all.ts": "b39b7d56b3ef9c0f78bbde82244ab3663b4adc1dee1be6ec97c0117f033c884c", + "https://deno.land/std@0.213.0/streams/readable_stream_from_reader.ts": "4289a63836f73901441c1879f2be76eea2a983920f4b10a4a9b8a6d8c29ece56", + "https://deno.land/std@0.213.0/streams/reader_from_iterable.ts": "cf7785e518beaaba1dfb3ff4ae854bb76499bbc1f013910af6402ec7643bf769", + "https://deno.land/std@0.213.0/streams/reader_from_stream_reader.ts": "f981cf94a42133e5c6ace8c3b500565750806c4fc9802262ee63746abc528b0d", + "https://deno.land/std@0.213.0/streams/text_delimiter_stream.ts": "ef0d7898cea4a9fff850173ed9f3d2cf9e42ba858d8175bd89fe851c8dfa6a6e", + "https://deno.land/std@0.213.0/streams/text_line_stream.ts": "21f33d3922e019ec1a1676474beb543929cb564ec99b69cd2654e029e0f45bd5", + "https://deno.land/std@0.213.0/streams/to_array_buffer.ts": "1a9c07c4a396ce557ab205c44415815ab13b614fed94a12f62b80f8e650c726d", + "https://deno.land/std@0.213.0/streams/to_blob.ts": "bf5daaae50fa8f57e0c8bfd7474ebac16ac09e130e3d01ef2947ae5153912b4a", + "https://deno.land/std@0.213.0/streams/to_json.ts": "b6a908d0da7cd30956e5fbbfa7460747e50b8f307d1041282ed6fe9070d579ee", + "https://deno.land/std@0.213.0/streams/to_text.ts": "6f93593bdfc2cea5cca39755ea5caf0d4092580c0a713dfe04a1e85c60df331f", + "https://deno.land/std@0.213.0/streams/to_transform_stream.ts": "4c4836455ef89bab9ece55975ee3a819f07d3d8b0e43101ec7f4ed033c8a2b61", + "https://deno.land/std@0.213.0/streams/writable_stream_from_writer.ts": "62f2712d3a7bebd981fca8bd5140192c37450f9c4aa94283f7ca833e46bc7485", + "https://deno.land/std@0.213.0/streams/write_all.ts": "3170620e750c1eaf43ac9e216669f55df762e2dc827d8b8a920b4f64a803c362", + "https://deno.land/std@0.213.0/streams/writer_from_stream_writer.ts": "b0e39ef607dfdc5abdfb627edf61a9672809463e2bb022afcbaf0cd006c40feb", + "https://deno.land/std@0.213.0/streams/zip_readable_streams.ts": "53eb10d7557539b489bd858907aab6dd28247f074b3446573801de3150cb932e", + "https://deno.land/std@0.213.0/url/_strip.ts": "928fe9af16d7c5bf24816d1e90d84bfe702f3e059f9d63509b5a37087e947800", + "https://deno.land/std@0.213.0/url/basename.ts": "a2e6ef35d44da3764551cbc61cdd39004c778aaedc7a6c2559e571f018c42daa", + "https://deno.land/std@0.213.0/url/dirname.ts": "0915864aac7d2d0413c90dff7841b18b29c83ed102fa340e760af1fb2c0ad26c", + "https://deno.land/std@0.213.0/url/extname.ts": "b247eac636161c5e263220c6e5116ed10e0c1702b5e90fad258a88c0b3b6bf98", + "https://deno.land/std@0.213.0/url/join.ts": "00c7e9088cafaa24963ce4081119e58b3afe2c58f033701383f359ea02620dd2", + "https://deno.land/std@0.213.0/url/mod.ts": "e2621f6a0db6fdbe7fbbd240064095bb203014657e5e1ab81db1c44d80dce6c9", + "https://deno.land/std@0.213.0/url/normalize.ts": "6328c75df0fab300f74bc4a1c255062a0db882240e15ab646606d0009e7e40d7", + "https://deno.land/std@0.221.0/assert/assert.ts": "bec068b2fccdd434c138a555b19a2c2393b71dfaada02b7d568a01541e67cdc5", + "https://deno.land/std@0.221.0/assert/assertion_error.ts": "9f689a101ee586c4ce92f52fa7ddd362e86434ffdf1f848e45987dc7689976b8", + "https://deno.land/std@0.221.0/console/_data.json": "cf2cc9d039a192b3adbfe64627167c7e6212704c888c25c769fc8f1709e1e1b8", + "https://deno.land/std@0.221.0/console/_run_length.ts": "7da8642a0f4f41ac27c0adb1364e18886be856c1d08c5cce6c6b5c00543c8722", + "https://deno.land/std@0.221.0/console/unicode_width.ts": "d92f085c0ab9c7ab171e4e7862dfd9d3a36ffd369939be5d3e1140ec58bc820f", + "https://deno.land/std@0.221.0/fmt/colors.ts": "d239d84620b921ea520125d778947881f62c50e78deef2657073840b8af9559a", + "https://deno.land/std@0.221.0/text/closest_string.ts": "8a91ee8b6d69ff96addcb7c251dad53b476ac8be9c756a0ef786abe9e13a93a5", + "https://deno.land/std@0.221.0/text/levenshtein_distance.ts": "24be5cc88326bbba83ca7c1ea89259af0050cffda2817ff3a6d240ad6495eae2", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/_argument_types.ts": "ab269dacea2030f865a07c2a1e953ec437a64419a05bad1f1ddaab3f99752ead", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/_errors.ts": "d78e1b4d69d84b8b476b5f3c0b028e3906d48f21b8f1ca1d36d5abe9ccfe48bc", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/_spread.ts": "0cc6eb70a6df97b5d7d26008822d39f3e8a1232ee0a27f395aa19e68de738245", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/_type_utils.ts": "820004a59bc858e355b11f80e5b3ff1be2c87e66f31f53f253610170795602f0", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/_utils.ts": "fa0e88cc4215b18554a7308e8e2ae3a12be0fb91c54d1473c54c530dbd4adfcb", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/command.ts": "83cbece11c1459d5bc5add32c3cad0bf49e92c4ddd3ef00f22f80efdae30994e", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/completions/_bash_completions_generator.ts": "0c6cb1df4d378d22f001155781d97a9c3519fd10c48187a198fef2cc63b0f84a", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/completions/_fish_completions_generator.ts": "8ba4455f7f76a756e05c3db4ce35332b2951af65a2891f2750b530e06880f495", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/completions/_zsh_completions_generator.ts": "9df79fbac17a32b9645d01628c41a2bfd295d7976b87b0ae235f50a9c8975fbc", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/completions/bash.ts": "53fe78994eb2359110dc4fa79235bdd86800a38c1d6b1c4fe673c81756f3a0e2", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/completions/complete.ts": "58df61caa5e6220ff2768636a69337923ad9d4b8c1932aeb27165081c4d07d8b", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/completions/completions_command.ts": "506f97f1c6b0b1c3e9956e5069070028b818942310600d4157f64c9b644d3c49", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/completions/fish.ts": "6f0b44b4067740b2931c9ec8863b6619b1d3410fea0c5a3988525a4c53059197", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/completions/mod.ts": "8dda715ca25f3f66d5ec232b76d7c9a96dd4c64b5029feff91738cc0c9586fb1", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/completions/zsh.ts": "f1263c3946975e090d4aadc8681db811d86b52a8ae680f246e03248025885c21", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/deprecated.ts": "bbe6670f1d645b773d04b725b8b8e7814c862c9f1afba460c4d599ffe9d4983c", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/deps.ts": "a58ea2fa4e2ed9b39bb8dd8c35dd0498c74f05392517ff230a9a4d04c4c766b7", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/help/_help_generator.ts": "98619da83ff25523280a6fdcad89af3f13a6fafefc81b71f8230f3344b5ff2c5", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/help/help_command.ts": "fbbf0c0827dd21d3cec7bcc68c00c20b55f53e2b621032891b9d23ac4191231c", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/help/mod.ts": "8369b292761dcc9ddaf41f2d34bfb06fb6800b69efe80da4fc9752c3b890275b", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/mod.ts": "4b708df1b97152522bee0e3828f06abbbc1d2250168910e5cf454950d7b7404b", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/type.ts": "f588f5d9635b79100044e62aced4b00e510e75b83801f9b089c40c2d98674de2", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types.ts": "bc9ff7459b9cc1079eeb95ff101690a51b4b4afa4af5623340076ee361d08dbb", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types/action_list.ts": "33c98d449617c7a563a535c9ceb3741bde9f6363353fd492f90a74570c611c27", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types/boolean.ts": "3879ec16092b4b5b1a0acb8675f8c9250c0b8a972e1e4c7adfba8335bd2263ed", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types/child_command.ts": "f1fca390c7fbfa7a713ca15ef55c2c7656bcbb394d50e8ef54085bdf6dc22559", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types/command.ts": "325d0382e383b725fd8d0ef34ebaeae082c5b76a1f6f2e843fee5dbb1a4fe3ac", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types/enum.ts": "8a7cd2898e03089234083bb78c8b1d9b7172254c53c32d4710321638165a48ec", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types/file.ts": "8618f16ac9015c8589cbd946b3de1988cc4899b90ea251f3325c93c46745140e", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types/integer.ts": "29864725fd48738579d18123d7ee78fed37515e6dc62146c7544c98a82f1778d", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types/number.ts": "aeba96e6f470309317a16b308c82e0e4138a830ec79c9877e4622c682012bc1f", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/types/string.ts": "e4dadb08a11795474871c7967beab954593813bb53d9f69ea5f9b734e43dc0e0", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/upgrade/_check_version.ts": "6cfa7dc26bc0dc46381500e8d4b130fb224f4c5456152dada15bd3793edca89b", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/upgrade/mod.ts": "4eff69c489467be17dea27fb95a795396111ee385d170ac0cbcc82f0ea38156c", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/upgrade/provider.ts": "c23253334097dc4b8a147ccdeb3aa44f5a95aa953a6386cb5396f830d95d77a5", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/upgrade/provider/deno_land.ts": "24f8d82e38c51e09be989f30f8ad21f9dd41ac1bb1973b443a13883e8ba06d6d", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/upgrade/provider/github.ts": "99e1b133dd446c6aa79f69e69c46eb8bc1c968dd331c2a7d4064514a317c7b59", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/upgrade/provider/nest_land.ts": "0e07936cea04fa41ac9297f32d87f39152ea873970c54cb5b4934b12fee1885e", + "https://deno.land/x/cliffy@v1.0.0-rc.4/command/upgrade/upgrade_command.ts": "27191f4b1ce93581b6d5ee2fff6003fe4fca437f476ecb98b6eae92f2b4d0716", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/_errors.ts": "f1fbb6bfa009e7950508c9d491cfb4a5551027d9f453389606adb3f2327d048f", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/_utils.ts": "25e519ce1f35acc8b43c75d1ca1c4ab591e7dab08327b7b408705b591e27d8bd", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/_validate_flags.ts": "e60b9038c0136ab7e6bd1baf0e993a07bf23f18afbfb6e12c59adf665a622957", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/deprecated.ts": "a72a35de3cc7314e5ebea605ca23d08385b218ef171c32a3f135fb4318b08126", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/deps.ts": "bed26afff36eeb25509440edec9d5d141b3411e08cc7a90e38a370969b5166bb", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/flags.ts": "3e62c4a9756b5705aada29e7e94847001356b3a83cd18ad56f4207387a71cf51", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/types.ts": "9e2f75edff2217d972fc711a21676a59dfd88378da2f1ace440ea84c07db1dcc", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/types/boolean.ts": "4c026dd66ec9c5436860dc6d0241427bdb8d8e07337ad71b33c08193428a2236", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/types/integer.ts": "b60d4d590f309ddddf066782d43e4dc3799f0e7d08e5ede7dc62a5ee94b9a6d9", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/types/number.ts": "610936e2d29de7c8c304b65489a75ebae17b005c6122c24e791fbed12444d51e", + "https://deno.land/x/cliffy@v1.0.0-rc.4/flags/types/string.ts": "e89b6a5ce322f65a894edecdc48b44956ec246a1d881f03e97bbda90dd8638c5", + "https://deno.land/x/cliffy@v1.0.0-rc.4/table/_layout.ts": "73a9bcb8a87b3a6817c4c9d2a31a21b874a7dd690ade1c64c9a1f066d628d626", + "https://deno.land/x/cliffy@v1.0.0-rc.4/table/_utils.ts": "13390db3f11977b7a4fc1202fa8386be14696b475a7f46a65178354f9a6640b7", + "https://deno.land/x/cliffy@v1.0.0-rc.4/table/border.ts": "5c6e9ef5078c6930169aacb668b274bdbb498461c724a7693ac9270fe9d3f5d5", + "https://deno.land/x/cliffy@v1.0.0-rc.4/table/cell.ts": "65e3ee699c3cebeb4d4d44e8f156e37a8532a0f317359d73178a95724d3f9267", + "https://deno.land/x/cliffy@v1.0.0-rc.4/table/column.ts": "cf14009f2cb14bad156f879946186c1893acdc6a2fee6845db152edddb6a2714", + "https://deno.land/x/cliffy@v1.0.0-rc.4/table/consume_words.ts": "369d065dbf7f15c664ea8523e0ef750fb952aea6d88e146c375e64aec9503052", + "https://deno.land/x/cliffy@v1.0.0-rc.4/table/deps.ts": "cbb896e8d7a6b5e3c2b9dda7d16638c202d9b46eb738c2dae1fa9480d8091486", + "https://deno.land/x/cliffy@v1.0.0-rc.4/table/row.ts": "79eb1468aafdd951e5963898cdafe0752d4ab4c519d5f847f3d8ecb8fe857d4f", + "https://deno.land/x/cliffy@v1.0.0-rc.4/table/table.ts": "298671e72e61f1ab18b42ae36643181993f79e29b39dc411fdc6ffd53aa04684", + "https://deno.land/x/code_block_writer@12.0.0/mod.ts": "2c3448060e47c9d08604c8f40dee34343f553f33edcdfebbf648442be33205e5", + "https://deno.land/x/code_block_writer@12.0.0/utils/string_utils.ts": "60cb4ec8bd335bf241ef785ccec51e809d576ff8e8d29da43d2273b69ce2a6ff", + "https://deno.land/x/convert_bytes@v2.1.1/mod.ts": "036bd2d9519c8ad44bd5a15d4e42123dc16843f793b3c81ca1fca905b21dd7df", + "https://deno.land/x/convert_bytes@v2.1.1/src/utility.ts": "a94b4c50286910a23a90c0a0510e8191fa3311dec44d062a6d4fe3d5b7ff8176", + "https://deno.land/x/ctrlc@0.2.1/mod.ts": "b7895894c596f2e8355d3b181ed30fa74cb54b94c419b730f6cb6ff96b20ec8b", + "https://deno.land/x/deep_eql@v5.0.1/index.js": "60e1547b99d4ae08df387067c2ac0a1b9ab42f212f0d8a11b8b0b61270d2b1c4", + "https://deno.land/x/deno_cache@0.5.2/auth_tokens.ts": "5d1d56474c54a9d152e44d43ea17c2e6a398dd1e9682c69811a313567c01ee1e", + "https://deno.land/x/deno_cache@0.5.2/cache.ts": "92ce8511e1e5c00fdf53a41619aa77d632ea8e0fc711324322e4d5ebf8133911", + "https://deno.land/x/deno_cache@0.5.2/deno_dir.ts": "1ea355b8ba11c630d076b222b197cfc937dd81e5a4a260938997da99e8ff93a0", + "https://deno.land/x/deno_cache@0.5.2/deps.ts": "26a75905652510b76e54b6d5ef3cf824d1062031e00782efcd768978419224e7", + "https://deno.land/x/deno_cache@0.5.2/dirs.ts": "009c6f54e0b610914d6ce9f72f6f6ccfffd2d47a79a19061e0a9eb4253836069", + "https://deno.land/x/deno_cache@0.5.2/disk_cache.ts": "66a1e604a8d564b6dd0500326cac33d08b561d331036bf7272def80f2f7952aa", + "https://deno.land/x/deno_cache@0.5.2/file_fetcher.ts": "89616c50b6df73fb04e73d0b7cd99e5f2ed7967386913d65b9e8baa4238501f7", + "https://deno.land/x/deno_cache@0.5.2/http_cache.ts": "407135eaf2802809ed373c230d57da7ef8dff923c4abf205410b9b99886491fd", + "https://deno.land/x/deno_cache@0.5.2/lib/deno_cache_dir.generated.js": "18b6526d0c50791a73dd0eb894e99de1ac05ee79dcbd53298ff5b5b6b0757fe6", + "https://deno.land/x/deno_cache@0.5.2/lib/snippets/deno_cache_dir-77bed54ace8005e0/fs.js": "cbe3a976ed63c72c7cb34ef845c27013033a3b11f9d8d3e2c4aa5dda2c0c7af6", + "https://deno.land/x/deno_cache@0.5.2/mod.ts": "0b4d071ad095128bdc2b1bc6e5d2095222dcbae08287261690ee9757e6300db6", + "https://deno.land/x/deno_cache@0.5.2/util.ts": "f3f5a0cfc60051f09162942fb0ee87a0e27b11a12aec4c22076e3006be4cc1e2", + "https://deno.land/x/dir@1.5.1/data_local_dir/mod.ts": "91eb1c4bfadfbeda30171007bac6d85aadacd43224a5ed721bbe56bc64e9eb66", + "https://deno.land/x/dnt@0.38.1/lib/compiler.ts": "209ad2e1b294f93f87ec02ade9a0821f942d2e524104552d0aa8ff87021050a5", + "https://deno.land/x/dnt@0.38.1/lib/compiler_transforms.ts": "f21aba052f5dcf0b0595c734450842855c7f572e96165d3d34f8fed2fc1f7ba1", + "https://deno.land/x/dnt@0.38.1/lib/mod.deps.ts": "30367fc68bcd2acf3b7020cf5cdd26f817f7ac9ac35c4bfb6c4551475f91bc3e", + "https://deno.land/x/dnt@0.38.1/lib/npm_ignore.ts": "57fbb7e7b935417d225eec586c6aa240288905eb095847d3f6a88e290209df4e", + "https://deno.land/x/dnt@0.38.1/lib/package_json.ts": "61f35b06e374ed39ca776d29d67df4be7ee809d0bca29a8239687556c6d027c2", + "https://deno.land/x/dnt@0.38.1/lib/pkg/dnt_wasm.generated.js": "cfb352ae839865f5698c9b35099d4c783510195a1e3c9f9b04d94fac86394ed9", + "https://deno.land/x/dnt@0.38.1/lib/pkg/snippets/dnt-wasm-a15ef721fa5290c5/helpers.js": "45f74f00472b3a399bc16e5dc056966b55dcdd8fa2bd61505c6dfd2f5d33b9f4", + "https://deno.land/x/dnt@0.38.1/lib/shims.ts": "df1bd4d9a196dca4b2d512b1564fff64ac6c945189a273d706391f87f210d7e6", + "https://deno.land/x/dnt@0.38.1/lib/test_runner/get_test_runner_code.ts": "4dc7a73a13b027341c0688df2b29a4ef102f287c126f134c33f69f0339b46968", + "https://deno.land/x/dnt@0.38.1/lib/test_runner/test_runner.ts": "4d0da0500ec427d5f390d9a8d42fb882fbeccc92c92d66b6f2e758606dbd40e6", + "https://deno.land/x/dnt@0.38.1/lib/transform.deps.ts": "e42f2bdef46d098453bdba19261a67cf90b583f5d868f7fe83113c1380d9b85c", + "https://deno.land/x/dnt@0.38.1/lib/types.ts": "b8e228b2fac44c2ae902fbb73b1689f6ab889915bd66486c8a85c0c24255f5fb", + "https://deno.land/x/dnt@0.38.1/lib/utils.ts": "878b7ac7003a10c16e6061aa49dbef9b42bd43174853ebffc9b67ea47eeb11d8", + "https://deno.land/x/dnt@0.38.1/mod.ts": "b13349fe77847cf58e26b40bcd58797a8cec5d71b31a1ca567071329c8489de1", + "https://deno.land/x/dnt@0.38.1/transform.ts": "f68743a14cf9bf53bfc9c81073871d69d447a7f9e3453e0447ca2fb78926bb1d", + "https://deno.land/x/foras@v2.1.4/src/deno/mod.ts": "c350ea5f32938e6dcb694df3761615f316d730dafc57440e9afd5f36f8e309fd", + "https://deno.land/x/foras@v2.1.4/src/deno/mods/mod.ts": "cc099bbce378f3cdaa94303e8aff2611e207442e5ac2d5161aba636bb4a95b46", + "https://deno.land/x/foras@v2.1.4/wasm/pkg/foras.js": "06f8875b456918b9671d52133f64f3047f1c95540feda87fdd4a55ba3d30091d", + "https://deno.land/x/foras@v2.1.4/wasm/pkg/foras.wasm.js": "2df8522df7243b0f05b1d188e220629cd5d2c92080a5f1407e15396fc35bebb3", + "https://deno.land/x/fuse@v6.4.1/dist/fuse.esm.min.js": "02034c3e0a1d7f4d207ecd104c9cde1bab116d474dc60c2a019e9d4353455ff4", + "https://deno.land/x/json_hash@0.2.0/canon.ts": "ce7c07abd871cd7f0eb1280ad9f58f6382f02f84a217898ce977cf35ad315877", + "https://deno.land/x/jszip@0.11.0/mod.ts": "5661ddc18e9ac9c07e3c5d2483bc912a7022b6af0d784bb7b05035973e640ba1", + "https://deno.land/x/ts_morph@18.0.0/bootstrap/mod.ts": "b53aad517f106c4079971fcd4a81ab79fadc40b50061a3ab2b741a09119d51e9", + "https://deno.land/x/ts_morph@18.0.0/bootstrap/ts_morph_bootstrap.js": "6645ac03c5e6687dfa8c78109dc5df0250b811ecb3aea2d97c504c35e8401c06", + "https://deno.land/x/ts_morph@18.0.0/common/DenoRuntime.ts": "6a7180f0c6e90dcf23ccffc86aa8271c20b1c4f34c570588d08a45880b7e172d", + "https://deno.land/x/ts_morph@18.0.0/common/mod.ts": "01985d2ee7da8d1caee318a9d07664774fbee4e31602bc2bb6bb62c3489555ed", + "https://deno.land/x/ts_morph@18.0.0/common/ts_morph_common.js": "845671ca951073400ce142f8acefa2d39ea9a51e29ca80928642f3f8cf2b7700", + "https://deno.land/x/ts_morph@18.0.0/common/typescript.js": "d5c598b6a2db2202d0428fca5fd79fc9a301a71880831a805d778797d2413c59", + "https://deno.land/x/wasmbuild@0.15.0/cache.ts": "89eea5f3ce6035a1164b3e655c95f21300498920575ade23161421f5b01967f4", + "https://deno.land/x/wasmbuild@0.15.0/loader.ts": "d98d195a715f823151cbc8baa3f32127337628379a02d9eb2a3c5902dbccfc02", + "https://esm.sh/jszip@3.7.1": "f3872a819b015715edb05f81d973b5cd05d3d213d8eb28293ca5471fe7a71773", + "https://esm.sh/v135/jszip@3.7.1/denonext/jszip.mjs": "d31d7f9e0de9c6db3c07ca93f7301b756273d4dccb41b600461978fc313504c9", + "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/deps.ts": "2b20d8c142749898e0ad5e4adfdc554dbe1411e8e5ef093687767650a1073ff8", + "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/mod.ts": "3ef8bb10b88541586bae7d92c32f469627d3a6a799fa8a897ac819b2f7dd95e8", + "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/progress.ts": "bb8eb122f5ac32efc073e05e2c13cceea61458b0e49ac05bddc3a49124dc39e3", + "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/registry.ts": "fd8e1b05f14cb988fee7a72a51e68131a920f7d4b72f949d9b86794b3c699671", + "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/search.ts": "52f9a539ca76893c47d01f8c6d401487ea286d54d1305b079b8727598e4c847a", + "https://raw.githubusercontent.com/levibostian/deno-udd/ignore-prerelease/semver.ts": "c051a906405dd72b55434eb0f390f678881379d57847abe4ec60d8a02af4f6f2", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/deps/cli.ts": "aac025f9372ad413b9c2663dc7f61affd597820d9448f010a510d541df3b56ea", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/deps/common.ts": "f775710b66a9099b98651cd3831906466e9b83ef98f2e5c080fd59ee801c28d4", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/deps/ports.ts": "3c60d1f7ab626ffdd81b37f4e83a780910936480da8fe24f4ccceaefa207d339", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/files/mod.ts": "44a8874c6ee9f086b7a521d4956c1802be201d01f9e91329d52a4b96738f7a34", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/host/types.ts": "f450d9b9c0eced2650262d02455aa6f794de0edd6b052aade256882148e5697f", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/install/mod.ts": "aa54eb3e119f28d33e61645c89669da292ee00376068ead8f45be2807e7a9989", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/install/utils.ts": "d4634d4fc0e963f540402b4ca7eb5dcba340eaa0d8fceb43af57d722ad267115", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/mod.ts": "1d31b4f801ae2ebad052d219236699c4f227b6ce53c6e5016deaed5fcd00dbb6", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/envs/inter.ts": "84805fa208754a08f185dca7a5236de3760bbc1d0df96af86ea5fd7778f827a2", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/envs/mod.ts": "5f37b9f155808f8d6d51e1f16f58c07914d8c7d8070bc5c2fb5076ab748798a7", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/envs/posix.ts": "b22f9564d9773548d537c95265e694a2630c3fe1fd63354d6f4790e275545299", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/envs/reducer.ts": "76ee6974c9d4885da0898e01c498dcfdd99a3652a5a564d679577931a680e781", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/envs/types.ts": "9ff28d47aa60042df42fbb98a46f7689d8111be462237f5fb81771011e429088", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/mod.ts": "fc1cb9176c6557b44ae9c6536fa51c6c4f80ac01fc476d15b0a217e70cb0d176", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/ambient.ts": "823ec8d98702a60e6bfcdbeb64b69dc9f5039e73a1f10e87cd51210c1aaf52d5", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/base.ts": "8ef8a8de372420bddcd63a1b363937f43d898059e99478a58621e8432bcd5891", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/db.ts": "a309d1058f66079a481141c3f1733d928b9af8a37b7ce911b1228f70fd24df0f", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/ghrel.ts": "ebbc30a5c31244131d937eadca73fbc099c9e7bdf0ad4f668766d4388ede143c", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/inter.ts": "b3999e73d73d7f928a8de86e5e2261fe6b1450ceedfb54f24537bf0803532ed0", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/mod.ts": "646cfe12c181f378ffd865890e07ba0a2c92b70cf10687f43de49864ca15c482", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/reducers.ts": "d04e813652101f67f946242df68429ed5540e499fbdb7776b8be5703f16754c8", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/std.ts": "985902519aafef6e8e6aecc8922e70abdea5b8e97d5439bf94338b93242fe11f", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/sync.ts": "a7a297f6b098360d56af168692f3cff96f8ceeb5189e5baa249e094f8d9c42ef", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/types.ts": "f4dbd1a3f4b7f539b3a85418617d25adbf710b54144161880d48f6c4ec032eee", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/types/platform.ts": "0ecffeda71919293f9ffdb6c564ddea4f23bc85c4e640b08ea78225d34387fdc", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/utils.ts": "6b14b331cce66bd46e7aec51f02424327d819150f16d3f72a6b0aaf7aee43c09", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/ports/worker.ts": "6b76ba1efb2e47a82582fc48bcc6264fe153a166beffccde1a9a3a185024c337", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/std.ts": "419d6b04680f73f7b252257ab287d68c1571cee4347301c53278e2b53df21c4a", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/tasks/deno.ts": "75b85d8cdc129e56d7bd1bfbfdc4a6f4685e86933c41908e48fbc51be7a57fee", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/tasks/exec.ts": "ddc6bc7cbed464fdd94038a0df8668138411e94e49ae639615b93e734e37d311", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/tasks/inter.ts": "63e8f2860f7e3b4d95b6f61ca56aeb8567e4f265aa9c22cace6c8075edd6210f", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/tasks/mod.ts": "334b18d7c110cc05483be96353e342425c0033b7410c271a8a47d2b18308c73e", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/tasks/types.ts": "072a34bd0749428bad4d612cc86abe463d4d4f74dc56cf0a48a1f41650e2399b", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/modules/types.ts": "c0f212b686a2721d076e9aeb127596c7cbc939758e2cc32fd1d165a8fb320a87", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/port.ts": "c039a010dee7dfd978478cf4c5e2256c643135e10f33c30a09f8db9915e9d89d", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/act.ts": "2ce6b8fddf61db12ba69b7cad6985237a2962ca79853edbddee5bfb49c47d1ab", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/asdf.ts": "11d41bcad5981e014478343270f05bac265990e801c525e3288113d89bd287be", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/asdf_plugin_git.ts": "a3742fcd994ded231febf33754b087ab56393a799297b26315c2cf8a388a7f82", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargo-binstall.ts": "72860580e6f6db9ec7ba74dbe391ad98ed49b4ff43247661b27701f4e683d41b", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cargobi.ts": "51c95fe47132ee35df2cd34c67d10d2e53dc10edd438c0f4f70eb644e81f2563", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cmake.ts": "745bcfdbffdd5d7cb0314e4e618b764a3a0f7d19246ec8b9134b1ff981bc2091", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/cpy_bs.ts": "4066e5eb094e72be4dec2428fb7f99231dcc5c4e2db7b5ea2373a9ad9ce28662", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/curl.ts": "58acd2a158187f448d940f45bfcd87c9b4884db127dcbaaaef27258bb4ebce92", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/deno_ghrel.ts": "eca02a93ceb62ad9fb7f395361d32da0d5657aba5f7856c8ae0109135da0e070", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/earthly.ts": "7a3c8cae1631f670105a63bc41c47a49da6fc777968c0e9546c55d43fa418619", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/git.ts": "2e68f1fa5ba534ee32db204bcc357f987437dffe5d87c1a0a9c47850fa654419", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/infisical.ts": "77789ea377250f0e762d01f1a8d378636bc520e7291aa9e82c5321c4059b6205", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/jq_ghrel.ts": "f685342c833c96637732fb28556f411f4537e85292046473f2b0d7f28c66ec8c", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/meta_cli_ghrel.ts": "0d5128cd3a15eece3fdf49c0697f5354e37ede6388e058dde572699634df1464", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/mod.ts": "a25ca4a4ca5e640ef436195cd0b5d0b1be33fa7f770e2d40a8eec6fb2b23838a", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/mold.ts": "b916227b48d7aa307ccc7d54c66724a41baa67be82bd558b5b9a35db4179c2f3", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/node.ts": "a98a095d3405a4907acfb620ff43babb0771d51ecaed87af8d1816c1cecd009b", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/npmi.ts": "056c7e733b1157601647630b9d460f19b5416dccc20415dd275d7ce972f09c39", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/opentofu_ghrel.ts": "46ef05d30772d36b91d88a2dc1aae31e096c59ba6ecf82af08359996c1476725", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pipi.ts": "a4abf1bd197f01e0fbc68bfb60bdb43849d9719654e1033820d3fb4ce4f36449", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/pnpm.ts": "41e7f473a687123ae96ab14a3a04f67ef0c4b44eea6747448826dbdae00bfdde", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/protoc.ts": "ef93af8f37d8186c2220b6d2f760b5da10decaa3e9fe7768003ee319d32335bf", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/ruff.ts": "2a3246bf3d21482ea62c3e801e58ef760fa6b30d4652e5be55c9051ecf6df72e", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/rust.ts": "e8b58f3ccb5411f0bba4bf3aadc040017da11eab4f6820cee03ab8f764383ca2", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/rustup.ts": "0a8033d24fb6be84585db545b2592b868d36182907565fe23454e9a0262618cc", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/tar.ts": "c3c43a99f8a9b1c160286cbc6240f59658d994856eeacaee479f645ece44d6c4", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/temporal_cli.ts": "a5db59114e294b58715349e72e3d7e868274d4a25d7de027afa0470c5585ed9c", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/terraform.ts": "035fbdd3a6b858bd302c440fc0a588fb40ae57959685af837f8a4e34302b55a7", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/unzip.ts": "c4559c627246f9c051571bbdff8c63ab15780ffd9e71656a9055488cc3bf32c3", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/wasmedge.ts": "b74a35190b79be686d2c8615c291b883da21e0caea36a8a32340fba93694b8e0", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/zstd.ts": "fb8334b7b43ef34ba60ad391460e2fabb62889f77eade7798c823b14842cea45", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/setup_logger.ts": "f8a206bda0595497d6f4718032d4a959000b32ef3346d4b507777eec6a169458", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/std.ts": "74515b1d816e643860b2a94409a49c08d8478d756c1fcae0dce95dde2c5c7162", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/std/copyLock.ts": "a47725f058cc8120914629bd0d4488345f168e80f1b3b286a64d4d1e919d6599", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/std/sedLock.ts": "115bcf40bb13435e579df24919d1a0f9be3d3ec96c442812c9ae4ceb335932aa", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/logger.ts": "fcbafb35ae4b812412b9b301ce6d06b8b9798f94ebebe3f92677e25e4b19af3c", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/mod.ts": "25901b5a03625353cc0d9c024daca806eb2513b153faede5ecad73b428542721", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/unarchive.ts": "f6d0e9e75f470eeef5aecd0089169f4350fc30ebfdc05466bb7b30042294d6d3", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/url.ts": "e1ada6fd30fc796b8918c88456ea1b5bbd87a07d0a0538b092b91fd2bb9b7623", + "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/utils/worker.ts": "ac4caf72a36d2e4af4f4e92f2e0a95f9fc2324b568640f24c7c2ff6dc0c11d62" + } +} diff --git a/dev/deps.ts b/tools/deps.ts similarity index 70% rename from dev/deps.ts rename to tools/deps.ts index e2cda6b45d..1e91c2e5a7 100644 --- a/dev/deps.ts +++ b/tools/deps.ts @@ -1,6 +1,9 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 +// FIXME: we can't use the import map in ghjk so we must +// rely on ghjk.ts + export { file } from "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/mod.ts"; export * from "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/mod.ts"; export * as ports from "https://raw.githubusercontent.com/metatypedev/ghjk/v0.2.1/ports/mod.ts"; @@ -19,6 +22,7 @@ export { downloadFile } from "https://raw.githubusercontent.com/metatypedev/ghjk // export { std_url, zod } from "../../ghjk/deps/common.ts"; // export { copyLock, sedLock } from "../../ghjk/std.ts"; +// TODO: move to import map export { basename, dirname, @@ -26,29 +30,19 @@ export { join, relative, resolve, -} from "https://deno.land/std@0.219.0/path/mod.ts"; -export { parseArgs } from "https://deno.land/std@0.219.0/cli/mod.ts"; +} from "jsr:@std/path@^1.0.2"; +export { parseArgs } from "jsr:@std/cli@^1.0.3"; export { copySync, existsSync, expandGlob, expandGlobSync, -} from "https://deno.land/std@0.219.0/fs/mod.ts"; -export { - cyan, - gray, - green, - red, - yellow, -} from "https://deno.land/std@0.219.0/fmt/colors.ts"; -export { format as formatDuration } from "https://deno.land/std@0.219.0/fmt/duration.ts"; -export { - mergeReadableStreams, - TextLineStream, -} from "https://deno.land/std@0.219.0/streams/mod.ts"; -export type { WalkEntry } from "https://deno.land/std@0.219.0/fs/mod.ts"; -export * as yaml from "https://deno.land/std@0.219.0/yaml/mod.ts"; -export * as semver from "https://deno.land/std@0.219.0/semver/mod.ts"; +} from "jsr:@std/fs@^1.0.1"; +export { cyan, gray, green, red, yellow } from "jsr:@std/fmt@^1.0.0/colors"; +export { format as formatDuration } from "jsr:@std/fmt@^1.0.0/duration"; +export { mergeReadableStreams, TextLineStream } from "jsr:@std/streams@1"; +export type {} from "jsr:@std/path@^1.0.2"; +export * as semver from "jsr:@std/semver@^1.0.1"; // https://github.com/hayd/deno-udd/pull/108 // export { udd } from "https://deno.land/x/udd@0.8.2/mod.ts"; export { udd } from "https://github.com/levibostian/deno-udd/raw/ignore-prerelease/mod.ts"; diff --git a/dev/envoy.yaml b/tools/envoy.yaml similarity index 100% rename from dev/envoy.yaml rename to tools/envoy.yaml diff --git a/dev/installs.ts b/tools/installs.ts similarity index 92% rename from dev/installs.ts rename to tools/installs.ts index de7bd5ac89..ce3d5b1456 100644 --- a/dev/installs.ts +++ b/tools/installs.ts @@ -12,4 +12,5 @@ export default { rust_stable: ports.rust({ version: RUST_VERSION }), rust_nightly: ports.rust({ version: "nightly-2024-05-26" }), deno: ports.deno_ghrel({ version: DENO_VERSION }), + // deno: ports.deno_ghrel({ version: "1.45.2" }), }; diff --git a/typegraph/deno/dev/common.ts b/tools/jsr/common.ts similarity index 52% rename from typegraph/deno/dev/common.ts rename to tools/jsr/common.ts index b2c8e46903..cfb3c551f2 100644 --- a/typegraph/deno/dev/common.ts +++ b/tools/jsr/common.ts @@ -1,12 +1,12 @@ // Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. // SPDX-License-Identifier: MPL-2.0 -import { resolve } from "../../../dev/deps.ts"; -import { projectDir } from "../../../dev/utils.ts"; +import { resolve } from "../deps.ts"; +import { projectDir } from "../utils.ts"; -export const denoSdkDir = resolve(projectDir, "./typegraph/deno/sdk"); +export const denoSdkDir = resolve(projectDir, "./src/typegraph/deno"); export const srcDir = resolve(denoSdkDir, "src"); -export const outDir = resolve(projectDir, "./typegraph/node"); +export const outDir = resolve(projectDir, "./src/typegraph/node"); export function fromRoot(relPath: string) { return resolve(projectDir, relPath); diff --git a/typegraph/deno/dev/deno2node.ts b/tools/jsr/deno2node.ts similarity index 83% rename from typegraph/deno/dev/deno2node.ts rename to tools/jsr/deno2node.ts index bd46df9d74..6354b95478 100644 --- a/typegraph/deno/dev/deno2node.ts +++ b/tools/jsr/deno2node.ts @@ -1,13 +1,9 @@ // Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. // SPDX-License-Identifier: MPL-2.0 -import { dnt, expandGlobSync, join } from "../../../dev/deps.ts"; -import { copyFilesAt, removeExtension } from "../../../dev/utils.ts"; -import { - METATYPE_VERSION, - SDK_PACKAGE_NAME_TS, - TAGLINE, -} from "../../../dev/consts.ts"; +import { dnt, expandGlobSync, join } from "../deps.ts"; +import { copyFilesAt, removeExtension } from "..//utils.ts"; +import { METATYPE_VERSION, SDK_PACKAGE_NAME_TS, TAGLINE } from "../consts.ts"; import { fromRoot, outDir } from "./common.ts"; import { srcDir } from "./common.ts"; @@ -79,8 +75,8 @@ await dnt.build({ }, { [fromRoot("README.md")]: "README.md", - [fromRoot("dev/LICENSE-MPL-2.0.md")]: "LICENSE.md", - [fromRoot("./typegraph/deno/sdk/src/gen/typegraph_core.core.wasm")]: + [fromRoot("tools/LICENSE-MPL-2.0.md")]: "LICENSE.md", + [fromRoot("./src/typegraph/deno/src/gen/typegraph_core.core.wasm")]: "./esm/gen/typegraph_core.core.wasm", }, ); diff --git a/typegraph/deno/dev/fix-declarations.ts b/tools/jsr/fix-declarations.ts similarity index 75% rename from typegraph/deno/dev/fix-declarations.ts rename to tools/jsr/fix-declarations.ts index b95ecb45f0..286bb7bd49 100644 --- a/typegraph/deno/dev/fix-declarations.ts +++ b/tools/jsr/fix-declarations.ts @@ -1,13 +1,9 @@ // Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. // SPDX-License-Identifier: MPL-2.0 -import { - dirname, - fromFileUrl, - resolve, -} from "https://deno.land/std@0.224.0/path/mod.ts"; -import { expandGlobSync } from "https://deno.land/std@0.224.0/fs/mod.ts"; -import { join, relative } from "../../../dev/deps.ts"; +import { dirname, fromFileUrl, resolve } from "@std/path"; +import { expandGlob } from "@std/fs"; +import { join, relative } from "../deps.ts"; import { denoSdkDir } from "./common.ts"; export const thisDir = dirname(fromFileUrl(import.meta.url)); @@ -17,17 +13,17 @@ type Replacer = { op: (s: string) => string; }; -const basePath = "../sdk/src/gen"; +const basePath = "../../src/typegraph/deno/src/gen"; const replacements = [ // Imports should refer to the actual file - ...Array.from( - expandGlobSync(join(basePath, "/**/*.d.ts"), { + ...(await Array.fromAsync( + expandGlob(join(basePath, "/**/*.d.ts"), { root: thisDir, includeDirs: false, globstar: true, }), - ).map(({ path }) => ({ + )).map(({ path }) => ({ path, op: (s: string) => s.replace(/^(import .*)(\.js)\';$/, "$1.d.ts';"), })), @@ -46,7 +42,7 @@ const replacements = [ console.log("Fixing declarations.."); for (const { path, op } of replacements) { - const text = Deno.readTextFileSync(path); + const text = await Deno.readTextFile(path); const rewrite = [...text.split("\n")]; for (let i = 0; i < rewrite.length; i += 1) { @@ -56,19 +52,19 @@ for (const { path, op } of replacements) { const newText = rewrite.join("\n"); if (text != newText) { console.log(` Fixed generated code at ${relative(thisDir, path)}`); - Deno.writeTextFileSync(path, newText); + await Deno.writeTextFile(path, newText); } } console.log("Merge types"); // Merge everything at interfaces/* -const merged = Array.from( - expandGlobSync(join(basePath, "/interfaces/*.d.ts"), { +const merged = (await Array.fromAsync( + expandGlob(join(basePath, "/interfaces/*.d.ts"), { root: thisDir, includeDirs: false, globstar: true, }), -).reduce((curr, { path }) => { +)).reduce((curr, { path }) => { console.log(` < ${path}`); const next = ` // ${relative(denoSdkDir, path)} @@ -98,5 +94,5 @@ for (const dup of dupDecl) { } mergedContent += `\n${dupDecl.join("\n")}`; -Deno.writeTextFileSync(hintMainPath, mergedContent); -Deno.removeSync(join(thisDir, basePath, "/interfaces"), { recursive: true }); +await Deno.writeTextFile(hintMainPath, mergedContent); +await Deno.remove(join(thisDir, basePath, "/interfaces"), { recursive: true }); diff --git a/typegraph/deno/dev/jsr-gen.ts b/tools/jsr/jsr-gen.ts similarity index 77% rename from typegraph/deno/dev/jsr-gen.ts rename to tools/jsr/jsr-gen.ts index 9338aca6a3..68e807992a 100644 --- a/typegraph/deno/dev/jsr-gen.ts +++ b/tools/jsr/jsr-gen.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. // SPDX-License-Identifier: MPL-2.0 -import { METATYPE_VERSION, SDK_PACKAGE_NAME_TS } from "../../../dev/consts.ts"; -import { existsSync, expandGlobSync, join } from "../../../dev/deps.ts"; -import { copyFilesAt } from "../../../dev/utils.ts"; -import { removeExtension } from "../../../dev/utils.ts"; +import { METATYPE_VERSION, SDK_PACKAGE_NAME_TS } from "../consts.ts"; +import { existsSync, expandGlobSync, join } from "../deps.ts"; +import { copyFilesAt } from "../utils.ts"; +import { removeExtension } from "../utils.ts"; import { denoSdkDir, fromRoot, srcDir } from "./common.ts"; // Update license, readme @@ -15,7 +15,7 @@ copyFilesAt( }, { [fromRoot("README.md")]: "README.md", - [fromRoot("dev/LICENSE-MPL-2.0.md")]: "LICENSE.md", + [fromRoot("tools/LICENSE-MPL-2.0.md")]: "LICENSE.md", }, ); @@ -38,7 +38,7 @@ for ( } Deno.writeTextFileSync( - join(denoSdkDir, "jsr.json"), + join(denoSdkDir, "deno.json"), JSON.stringify( { name: SDK_PACKAGE_NAME_TS, diff --git a/dev/license-header-Elastic-2.0.txt b/tools/license-header-Elastic-2.0.txt similarity index 100% rename from dev/license-header-Elastic-2.0.txt rename to tools/license-header-Elastic-2.0.txt diff --git a/dev/license-header-MPL-2.0.txt b/tools/license-header-MPL-2.0.txt similarity index 100% rename from dev/license-header-MPL-2.0.txt rename to tools/license-header-MPL-2.0.txt diff --git a/ruff.toml b/tools/ruff.toml similarity index 100% rename from ruff.toml rename to tools/ruff.toml diff --git a/dev/tasks-build.ts b/tools/tasks/build.ts similarity index 73% rename from dev/tasks-build.ts rename to tools/tasks/build.ts index c275695c70..215495e49b 100644 --- a/dev/tasks-build.ts +++ b/tools/tasks/build.ts @@ -1,15 +1,15 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { DenoTaskDefArgs } from "./deps.ts"; +import type { DenoTaskDefArgs } from "../deps.ts"; -const tasks: Record = { +export default { "build-sys-tgraphs": { inherit: ["_rust", "_python"], async fn($) { const typegraphs = await Array.fromAsync( - $.path(import.meta.dirname!) - .join("../typegate/src/typegraphs/") + $.workingDir + .join("src/typegate/src/typegraphs/") .expandGlob("**/*.py", { includeDirs: false, globstar: true, @@ -43,23 +43,25 @@ const tasks: Record = { dependsOn: "build-tgraph-core", inherit: ["build-tgraph-core", "_ecma"], async fn($) { - const denoSdkPath = $.workingDir.join("typegraph/deno/sdk"); - const genPath = await $.removeIfExists(denoSdkPath.join("src/gen")); + const genPath = await $.removeIfExists( + $.workingDir.join("src/typegraph/deno/src/gen"), + ); await $`jco transpile $WASM_FILE -o ${genPath} --map metatype:typegraph/host=../host/host.js`; - await $`deno run -A typegraph/deno/dev/fix-declarations.ts`; + // FIXME: deno workspace discovery broken when + await $`bash -c "deno run -A tools/jsr/fix-declarations.ts"`; }, }, "build-tgraph-ts-node": { dependsOn: "build-tgraph-ts", inherit: ["build-tgraph-ts"], async fn($) { - await $`deno run -A typegraph/deno/dev/deno2node.ts`; + await $`bash -c "deno run -A tools/jsr/deno2node.ts"`; }, }, "build-tgraph-ts-jsr": { async fn($) { - await $`deno run -A typegraph/deno/dev/jsr-gen.ts`; + await $`bash -c "deno run -A tools/jsr/jsr-gen.ts"`; }, }, "build-tgraph-py": { @@ -69,8 +71,8 @@ const tasks: Record = { await $.removeIfExists( $.workingDir.join("typegraph/python/typegraph/gen"), ); - await $`poetry run python -m wasmtime.bindgen $WASM_FILE --out-dir typegraph/python/typegraph/gen`; - await $`poetry run ruff check typegraph/python/typegraph`; + await $`poetry run python -m wasmtime.bindgen $WASM_FILE --out-dir src/typegraph/python/typegraph/gen`; + await $`poetry run ruff check src/typegraph/python/typegraph`; }, }, "build-tgraph": { @@ -80,9 +82,9 @@ const tasks: Record = { "gen-pyrt-bind": { inherit: "_wasm", async fn($) { - await $.removeIfExists("./libs/pyrt_wit_wire/wit_wire"); - await $`componentize-py -d ../../wit/wit-wire.wit bindings .`.cwd( - "./libs/pyrt_wit_wire", + await $.removeIfExists("./src/pyrt_wit_wire/wit_wire"); + await $`componentize-py -d ../wit/wit-wire.wit bindings .`.cwd( + "./src/pyrt_wit_wire", ); }, }, @@ -92,11 +94,10 @@ const tasks: Record = { async fn($) { const wasmOut = $.env["PYRT_WASM_OUT"] ?? "./target/pyrt.wasm"; // TODO: support for `world-module` is missing on the `componentize` subcmd - await $`componentize-py -d ./wit/wit-wire.wit componentize -o ${wasmOut} libs.pyrt_wit_wire.main`; + await $`componentize-py -d ./src/wit/wit-wire.wit componentize -o ${wasmOut} src.pyrt_wit_wire.main`; // const target = env["PYRT_TARGET"] ? `--target ${env["PYRT_TARGET"]}` : ""; // const cwasmOut = env["PYRT_CWASM_OUT"] ?? "./target/pyrt.cwasm"; // await `wasmtime compile -W component-model ${target} ${wasmOut} -o ${cwasmOut}`; }, }, -}; -export default tasks; +} satisfies Record; diff --git a/dev/tasks-dev.ts b/tools/tasks/dev.ts similarity index 90% rename from dev/tasks-dev.ts rename to tools/tasks/dev.ts index 437a98093b..11229c02c2 100644 --- a/dev/tasks-dev.ts +++ b/tools/tasks/dev.ts @@ -1,22 +1,22 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { DenoTaskDefArgs } from "./deps.ts"; +import type { DenoTaskDefArgs } from "../deps.ts"; const DOCKER_CMD = Deno.env.get("DOCKER_CMD") ?? "docker"; -const tasks: Record = { +export default { dev: { - desc: "Execute dev/*.ts scripts.", + desc: "Execute tools/*.ts scripts.", async fn($) { if ($.argv.length == 0) { $.log("Usage: dev [args...]"); return; } const [cmd, ...args] = $.argv; - const script = $.workingDir.join(`dev/${cmd}.ts`); + const script = $.workingDir.join(`tools/${cmd}.ts`); $.logStep(`Running ${script}`, args); - await $`deno run --allow-all ${script} ${args}`; + await $`bash -c "deno run --allow-all ${script} ${args}"`; }, }, @@ -24,7 +24,7 @@ const tasks: Record = { desc: "Wrapper around docker compose to manage runtime dependencies", async fn($) { const dcs = await Array.fromAsync( - $.workingDir.join("dev/envs").expandGlob("compose.*.yml", { + $.workingDir.join("tools/compose").expandGlob("compose.*.yml", { includeDirs: false, globstar: true, }), @@ -98,8 +98,7 @@ const tasks: Record = { inherit: "dev-gate1", vars: { SYNC_ENABLED: "true", - SYNC_REDIS_URL: "redis://localhost:6379/0", - SYNC_REDIS_PASSWORD: "password", + SYNC_REDIS_URL: "redis://:password@localhost:6379/0", SYNC_S3_HOST: "http://localhost:9000", SYNC_S3_REGION: "local", SYNC_S3_ACCESS_KEY: "minio", @@ -154,11 +153,10 @@ const tasks: Record = { "dev-website": { desc: "Launch the website", inherit: ["_ecma", "_python"], - workingDir: "./website", + workingDir: "./docs/metatype.dev", vars: { TG_URL: "http://localhost:7890", }, fn: ($) => $`pnpm start --no-open`, }, -}; -export default tasks; +} satisfies Record; diff --git a/tools/tasks/fetch.ts b/tools/tasks/fetch.ts new file mode 100644 index 0000000000..72c02c8099 --- /dev/null +++ b/tools/tasks/fetch.ts @@ -0,0 +1,29 @@ +// Copyright Metatype OÜ, licensed under the Elastic License 2.0. +// SPDX-License-Identifier: Elastic-2.0 + +import type { DenoTaskDefArgs } from "../deps.ts"; + +export default { + "fetch-deno": { + inherit: "_ecma", + desc: "Cache remote deno modules.", + fn: ($) => + $`bash -sx` + .stdinText( + "deno cache --config src/typegate/deno.jsonc " + + [ + "src/typegate/src/main.ts", + "tests/utils/mod.ts", + ...($.argv[0] == "full" + ? [ + "tests/utils/*.ts", + "tests/runtimes/wasm_wire/*.ts", + "tests/runtimes/wasm_reflected/*.ts", + "tests/runtimes/python/*.ts", + "tools/*.ts", + ] + : []), + ].join(" "), + ), + }, +} satisfies Record; diff --git a/dev/tasks-install.ts b/tools/tasks/install.ts similarity index 72% rename from dev/tasks-install.ts rename to tools/tasks/install.ts index adf36f25bb..b3f790e09b 100644 --- a/dev/tasks-install.ts +++ b/tools/tasks/install.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { DenoTaskDefArgs, std_url } from "./deps.ts"; -import { WASMTIME_VERSION } from "./consts.ts"; +import { type DenoTaskDefArgs, std_url } from "../deps.ts"; +import { WASMTIME_VERSION } from "../consts.ts"; -const tasks: Record = { +export default { "install-sys": { desc: "Print a command you can use to install system items", fn: async ($) => { @@ -45,7 +45,7 @@ const tasks: Record = { [ `. .venv/bin/activate`, `poetry install --no-root`, - `cd typegraph/python`, + `cd src/typegraph/python`, `poetry install --no-root`, ].join("\n"), ); @@ -57,8 +57,8 @@ const tasks: Record = { fn: ($) => $`pnpm install --recursive --filter ./examples/typegraphs/ - --filter ./typegraph/node/ - --filter ./libs/metagen/tests/*...`.stdinText( + --filter ./src/typegraph/node/ + --filter ./src/metagen/tests/*...`.stdinText( Array(1000) .map(() => "y") .join("\n"), @@ -67,12 +67,12 @@ const tasks: Record = { "install-website": { inherit: "_ecma", - fn: ($) => $`pnpm install -C ./website/`, + fn: ($) => $`pnpm install -C ./docs/metatype.dev/`, }, "install-lsp": { inherit: "_ecma", - fn: ($) => $`pnpm install -C ./meta-lsp/ --frozen-lockfile --recursive`, + fn: ($) => $`pnpm install -C ./src/meta-lsp/ --frozen-lockfile --recursive`, }, // this is used somewhere in a test build.sh file @@ -81,23 +81,31 @@ const tasks: Record = { await $.withRetries({ count: 10, delay: $.exponentialBackoff(500), - action: async () => - await $.co( + action: async () => { + const dir = await $.workingDir.join(".metatype").ensureDir(); + return await $.co( ["command", "reactor", "proxy"].map((kind) => { const url = `https://github.com/bytecodealliance/wasmtime` + `/releases/download/v${WASMTIME_VERSION}/wasi_snapshot_preview1.${kind}.wasm`; - return $.request(url) + const token = Deno.env.get("GITHUB_TOKEN") || + Deno.env.get("GH_TOKEN"); + const headers = token + ? { + "Authorization": `Bearer ${token}`, + } + : {}; + return $.request(url).header(headers) .showProgress() .pipeToPath( - $.workingDir.join("tmp").join(std_url.basename(url)), + dir.join(std_url.basename(url)), { create: true, }, ); }), - ), + ); + }, }); }, }, -}; -export default tasks; +} satisfies Record; diff --git a/tools/tasks/lint.ts b/tools/tasks/lint.ts new file mode 100644 index 0000000000..6837ea2def --- /dev/null +++ b/tools/tasks/lint.ts @@ -0,0 +1,47 @@ +// Copyright Metatype OÜ, licensed under the Elastic License 2.0. +// SPDX-License-Identifier: Elastic-2.0 + +import { type DenoTaskDefArgs, ports } from "../deps.ts"; +import installs from "../installs.ts"; + +export default { + "lint-udeps": { + desc: "Check for unused cargo depenencies", + installs: [ + // udeps needs nightly support + installs.rust_nightly, + ports.cargobi({ + crateName: "cargo-udeps", + version: "0.1.47", + locked: true, + }), + ], + fn: ($) => $`cargo udeps --all-targets --all-features ${$.argv}`, + }, + "lint-deno": { + async fn($) { + const files = (await $.co( + [ + Array.fromAsync( + $.workingDir.join("src/typegate/src").expandGlob("**/*.ts", { + exclude: [], + }), + ), + Array.fromAsync( + $.workingDir.join("tests").expandGlob("**/*.ts", { + exclude: [], + }), + ), + Array.fromAsync( + $.workingDir.join("tools").expandGlob("**/*.ts", { + exclude: [], + }), + ), + ], + )) + .flat() + .map((ref) => ref.path.toString()); + await $`bash -c "deno check ${files}"`; + }, + }, +} satisfies Record; diff --git a/dev/tasks-lock.ts b/tools/tasks/lock.ts similarity index 78% rename from dev/tasks-lock.ts rename to tools/tasks/lock.ts index 9c15556b0e..8dc229d72d 100644 --- a/dev/tasks-lock.ts +++ b/tools/tasks/lock.ts @@ -1,10 +1,10 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { copyLock, DenoTaskDefArgs, parseArgs, sedLock } from "./deps.ts"; -import * as consts from "./consts.ts"; +import { copyLock, type DenoTaskDefArgs, parseArgs, sedLock } from "../deps.ts"; +import * as consts from "../consts.ts"; -const tasks: Record = { +export default { "lock-sed": { desc: "Update versions", fn: async ($) => { @@ -14,7 +14,7 @@ const tasks: Record = { }); const ignores = [ - "dev/tasks-lock.ts", + "tools/tasks-lock.ts", ...(await $.workingDir.resolve(".gitignore").readText()) .split("\n") .map((l) => l.trim()) @@ -28,9 +28,9 @@ const tasks: Record = { ignores, }); dirty = (await copyLock($.workingDir, { - "dev/LICENSE-MPL-2.0.md": [ - "typegraph/python/LICENSE.md", - "typegraph/deno/sdk/LICENSE.md", + "tools/LICENSE-MPL-2.0.md": [ + "src/typegraph/python/LICENSE.md", + "src/typegraph/deno/LICENSE.md", ], })) || dirty; @@ -48,5 +48,4 @@ const tasks: Record = { } }, }, -}; -export default tasks; +} satisfies Record; diff --git a/tools/tasks/mod.ts b/tools/tasks/mod.ts new file mode 100644 index 0000000000..388ab022a9 --- /dev/null +++ b/tools/tasks/mod.ts @@ -0,0 +1,19 @@ +import type { DenoTaskDefArgs } from "../deps.ts"; + +import tasksBuild from "./build.ts"; +import tasksDev from "./dev.ts"; +import tasksFetch from "./fetch.ts"; +import tasksInstall from "./install.ts"; +import tasksLint from "./lint.ts"; +import tasksLock from "./lock.ts"; +import tasksTest from "./test.ts"; + +export default { + ...tasksBuild, + ...tasksDev, + ...tasksFetch, + ...tasksInstall, + ...tasksLint, + ...tasksLock, + ...tasksTest, +} satisfies Record; diff --git a/dev/tasks-test.ts b/tools/tasks/test.ts similarity index 80% rename from dev/tasks-test.ts rename to tools/tasks/test.ts index 0e3d2a5584..f00f76f212 100644 --- a/dev/tasks-test.ts +++ b/tools/tasks/test.ts @@ -1,13 +1,13 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { testE2eCli } from "../dev/test.ts"; -import { DenoTaskDefArgs } from "./deps.ts"; +import { testE2eCli } from "../test.ts"; +import type { DenoTaskDefArgs } from "../deps.ts"; -const tasks: Record = { +export default { "test-e2e": { inherit: "ci", - desc: "Shorthand for `dev/test.ts`", + desc: "Shorthand for `tools/test.ts`", fn: async ($) => { if (await testE2eCli($.argv) != 0) { throw new Error("tests failed"); @@ -16,7 +16,7 @@ const tasks: Record = { }, "test-website": { inherit: "_ecma", - workingDir: "./website", + workingDir: "./docs/metatype.dev", async fn($) { await $`pnpm lint`; await $`pnpm build`; @@ -41,7 +41,6 @@ const tasks: Record = { inherit: "_ecma", fn: ($) => $`bash -sx`.stdinText("node --test --import=tsx tests/*.test.ts") - .cwd("meta-lsp/ts-language-server"), + .cwd("src/meta-lsp/ts-language-server"), }, -}; -export default tasks; +} satisfies Record; diff --git a/dev/test.ts b/tools/test.ts similarity index 96% rename from dev/test.ts rename to tools/test.ts index 4779d676b0..05b0150358 100755 --- a/dev/test.ts +++ b/tools/test.ts @@ -22,7 +22,7 @@ * with the -q flag. */ -import { CommandChild } from "jsr:@david/dax@0.41.0"; +import type { CommandChild } from "@david/dax"; import { $, ctrlc, @@ -40,7 +40,7 @@ import { projectDir } from "./utils.ts"; const wd = $.path(projectDir); -const profile: string = "debug"; +const profile = "debug"; async function listTestFiles(filesArg: string[]): Promise { if (filesArg.length > 0) { @@ -50,7 +50,7 @@ async function listTestFiles(filesArg: string[]): Promise { let path = wd.resolve(inPath); let stat = await path.stat(); if (!stat) { - path = wd.resolve("typegate/tests", inPath); + path = wd.resolve("tests", inPath); stat = await path.stat(); if (!stat) { throw new Error(`unable to resolve test files under "${inPath}"`); @@ -82,7 +82,7 @@ async function listTestFiles(filesArg: string[]): Promise { return ( await Array.fromAsync( wd - .join("typegate/tests") + .join("tests") .expandGlob("**/*_test.ts", { globstar: true }), ) ).map((ent) => ent.path.toString()); @@ -103,7 +103,7 @@ interface Run { } function applyFilter(files: string[], filter: string | undefined): string[] { - const prefixLength = `${projectDir}/typegate/tests/`.length; + const prefixLength = `${projectDir}/tests/`.length; const fuse = new Fuse( files.map((f) => f.slice(prefixLength)), { @@ -132,7 +132,8 @@ export async function testE2e(args: { const tmpDir = wd.join("tmp"); const env: Record = { CLICOLOR_FORCE: "1", - RUST_LOG: "off,xtask=debug,meta=debug", + RUST_LOG: + "info,xtask=debug,meta=debug,deno=warn,swc_ecma_codegen=off,tracing::span=off", RUST_SPANTRACE: "1", // "RUST_BACKTRACE": "short", RUST_MIN_STACK: "8388608", @@ -172,13 +173,14 @@ export async function testE2e(args: { $.logStep(`${prefix} Testing with ${threads} threads`); const xtask = wd.join(`target/${profile}/xtask`); - const denoConfig = wd.join("typegate/deno.jsonc"); + const denoConfig = wd.join("tests/deno.jsonc"); function createRun(testFile: string, streamed: boolean): Run { const start = Date.now(); const outputOption = streamed ? "inherit" : "piped"; const child = $ .raw`${xtask} deno test --config=${denoConfig} ${testFile} ${flags}` + // .raw`deno test --config=${denoConfig} ${testFile} ${flags}` .cwd(wd) .env(env) .stdout(outputOption) @@ -554,7 +556,7 @@ class TestThread { const testFile = this.queue.shift(); if (!testFile) break; - const pathPrefix = `${projectDir}/typegate/tests/`; + const pathPrefix = `${projectDir}/tests/`; const relativePath = testFile.slice(pathPrefix.length); this.logger.threadState(this.threadId, { diff --git a/dev/tree-view.ts b/tools/tree-view.ts similarity index 91% rename from dev/tree-view.ts rename to tools/tree-view.ts index 7bc708db1b..fd7f276e64 100755 --- a/dev/tree-view.ts +++ b/tools/tree-view.ts @@ -15,8 +15,9 @@ */ import { cyan, green, parseArgs } from "./deps.ts"; -import { TypeGraphDS } from "../typegate/src/typegraph/mod.ts"; -import { visitType } from "../typegate/src/typegraph/visitor.ts"; +// FIXME: import from @metatype/typegate +import type { TypeGraphDS } from "../src/typegate/src/typegraph/mod.ts"; +import { visitType } from "../src/typegate/src/typegraph/visitor.ts"; import { projectDir } from "./utils.ts"; export function treeView(tg: TypeGraphDS, rootIdx = 0, depth = 4) { diff --git a/dev/typegraph-size.ts b/tools/typegraph-size.ts similarity index 92% rename from dev/typegraph-size.ts rename to tools/typegraph-size.ts index 9ccbe42875..1a153c909f 100644 --- a/dev/typegraph-size.ts +++ b/tools/typegraph-size.ts @@ -8,7 +8,8 @@ const cargoManifestPath = resolve(projectDir, "Cargo.toml"); const arg = Deno.args[0]; if (!arg) { - const usage = "Usage: deno run -A dev/typegraph-size.ts "; + const usage = + "Usage: deno run -A tools/typegraph-size.ts "; console.error(usage); Deno.exit(1); } diff --git a/dev/update.ts b/tools/update.ts similarity index 85% rename from dev/update.ts rename to tools/update.ts index 0a17508c69..149e3fbb89 100755 --- a/dev/update.ts +++ b/tools/update.ts @@ -9,12 +9,12 @@ import { parseArgs, resolve, udd, - WalkEntry, + type WalkEntry, } from "./deps.ts"; import { projectDir, runOrExit } from "./utils.ts"; -const denoConfigPath = resolve(projectDir, "typegate/deno.jsonc"); -const devConfigPath = resolve(projectDir, "dev/deps.ts"); +const denoConfigPath = resolve(projectDir, "src/typegate/deno.jsonc"); +const devConfigPath = resolve(projectDir, "tools/deps.ts"); const flags = parseArgs(Deno.args, { boolean: ["outdated", "upgrade", "cache-only", "src-only"], @@ -65,13 +65,20 @@ if (flags.outdated || flags.upgrade) { const tsFiles = [ ...expandGlobSync( - `typegate/{${flags["src-only"] ? "src" : "src,tests"}}/**/*.ts`, + `src/typegate/src/**/*.ts`, + { + root: projectDir, + globstar: true, + }, + ), + ...flags["src-only"] ? [] : expandGlobSync( + `tests/**/*.ts`, { root: projectDir, globstar: true, exclude: [ - "typegate/tests/e2e/nextjs", - "typegate/tests/runtimes/temporal/worker", + "tests/e2e/nextjs/apollo", + "tests/runtimes/temporal/worker", ], }, ), diff --git a/dev/utils.ts b/tools/utils.ts similarity index 91% rename from dev/utils.ts rename to tools/utils.ts index 2987058a66..172c7efda5 100644 --- a/dev/utils.ts +++ b/tools/utils.ts @@ -1,7 +1,7 @@ // Copyright Metatype OÜ, licensed under the Elastic License 2.0. // SPDX-License-Identifier: Elastic-2.0 -import { copySync, dirname, fromFileUrl, join, resolve, yaml } from "./deps.ts"; +import { copySync, dirname, fromFileUrl, join, resolve } from "./deps.ts"; export const projectDir = resolve(dirname(fromFileUrl(import.meta.url)), ".."); @@ -36,13 +36,6 @@ interface Lockfile { }; } -export const lockfileUrl = resolve(projectDir, "dev/lock.yml"); - -export async function getLockfile() { - const file = await Deno.readTextFile(lockfileUrl); - return yaml.parse(file) as Lockfile; -} - export type Cursor = { start: number; end: number; diff --git a/dev/verdaccio/config.yaml b/tools/verdaccio/config.yaml similarity index 100% rename from dev/verdaccio/config.yaml rename to tools/verdaccio/config.yaml diff --git a/typegate/deno.jsonc b/typegate/deno.jsonc deleted file mode 100644 index 643a5b173d..0000000000 --- a/typegate/deno.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "allowJs": false, - "strict": true, - "experimentalDecorators": true, - "types": [ - "./engine/runtime.d.ts" - ], - "lib": [ - "deno.ns", - "deno.unstable", - "deno.worker" - ] - }, - "tasks": { - "comment1": "echo cwd is by default the directory of deno.json", - "comment2": "echo cannot restrict ffi to a lib https://github.com/denoland/deno/issues/15511", - "run": "cd .. && deno run --config=typegate/deno.jsonc --unstable-worker-options --unstable-net --allow-run=hostname,npm --allow-sys --allow-env --allow-hrtime --allow-write=tmp --allow-ffi --allow-read=. --allow-net typegate/src/main.ts" - }, - "nodeModulesDir": false, - "lock": "deno.lock", - "importMap": "import_map.json" -} diff --git a/typegate/engine/Cargo.toml b/typegate/engine/Cargo.toml deleted file mode 100644 index fbd99298c0..0000000000 --- a/typegate/engine/Cargo.toml +++ /dev/null @@ -1,56 +0,0 @@ -[package] -name = "typegate_engine" -edition.workspace = true -version.workspace = true - -[dependencies] -anyhow.workspace = true -thiserror.workspace = true -tap = "1.0.1" - -connection-string = "0.2.0" - -futures.workspace = true -tokio = { workspace = true, features = ["full"] } - -log.workspace = true - -serde.workspace = true -regex.workspace = true -zstd = "0.13" -base64.workspace = true -convert_case = "0.6.0" - -once_cell.workspace = true -dashmap = "5.5.3" - -temporal-client = { git = "https://github.com/temporalio/sdk-core", rev = "7f9755b" } -temporal-sdk-core-protos = { git = "https://github.com/temporalio/sdk-core", rev = "7f9755b" } -query-core = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -query-connector = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -request-handlers = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -prisma-models = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -datamodel-renderer = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -user-facing-errors = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -query-engine-metrics = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -schema-core = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -psl = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -schema-connector = { git = "https://github.com/prisma/prisma-engines", tag = "5.6.0" } -tempfile.workspace = true - -mt_deno.workspace = true -deno_core.workspace = true -common.workspace = true - -wasmtime = { workspace = true, features = ["component-model"] } -wasmtime-wasi.workspace = true - -shadow-rs.workspace = true - -[dev-dependencies] -env_logger.workspace = true - -[build-dependencies] -shadow-rs.workspace = true -wasmtime = { workspace = true, features = ["component-model"] } -zstd = "0.13.1" diff --git a/typegate/import_map.json b/typegate/import_map.json deleted file mode 100644 index 502cc83f00..0000000000 --- a/typegate/import_map.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "imports": { - "native": "./engine/bindings.ts", - "std/": "https://deno.land/std@0.224.0/", - "compress/": "https://deno.land/x/compress@v0.4.5/", - "graphql": "npm:graphql@16.8.1", - "graphql/ast": "npm:graphql@16.8.1/language/ast.js", - "graphql/characters": "npm:graphql@16.8.1/language/characterClasses.js", - "sentry": "npm:@sentry/node@7.70.0", - "dataloader": "npm:dataloader@2.2.2", - "chance": "npm:chance@1.1.11", - "validator": "npm:validator@13.12.0", - "lodash": "npm:lodash@4.17.21", - "pg": "npm:pg@8.12.0", - "swc": "https://deno.land/x/swc@0.2.1/mod.ts", - "swc/types": "https://esm.sh/@swc/core@1.3.87/types.d.ts?pin=v131", - "zod": "https://deno.land/x/zod@v3.22.2/mod.ts", - "monads": "https://deno.land/x/monads@v0.5.10/mod.ts", - "jwt": "https://deno.land/x/djwt@v3.0.1/mod.ts", - "redis": "https://deno.land/x/redis@v0.32.1/mod.ts", - "oauth2_client": "https://deno.land/x/oauth2_client@v1.0.2/mod.ts", - "test/mock_fetch": "./tests/utils/mock_fetch.ts", - "levenshtein": "https://deno.land/x/levenshtein@v1.0.1/mod.ts", - "aws-sdk/client-s3": "https://esm.sh/@aws-sdk/client-s3@3.335.0?pin=v131", - "aws-sdk/s3-request-presigner": "https://esm.sh/@aws-sdk/s3-request-presigner@3.335.0?pin=v131", - "outdent": "https://deno.land/x/outdent@v0.8.0/mod.ts", - "json-schema-faker": "npm:json-schema-faker@0.5.3", - "ajv": "https://esm.sh/ajv@8.12.0?pin=v131", - "@typegraph/sdk": "../typegraph/deno/sdk/src", - "@typegraph/sdk/": "../typegraph/deno/sdk/src/", - "@typegate/": "./src/", - "test-utils/": "./tests/utils/", - "@dev/": "../dev/", - "dax": "jsr:@david/dax@0.41.0", - "dispose": "https://deno.land/x/dispose@1.1.0/mod.ts", - "download": "https://deno.land/x/download@v1.0.1/mod.ts" - } -} diff --git a/typegate/tests/metagen/typegraphs/sample/ts/deno.json b/typegate/tests/metagen/typegraphs/sample/ts/deno.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/typegate/tests/metagen/typegraphs/sample/ts/deno.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/typegraph/python/poetry.lock b/typegraph/python/poetry.lock deleted file mode 100644 index db51a7bed4..0000000000 --- a/typegraph/python/poetry.lock +++ /dev/null @@ -1,143 +0,0 @@ -# This file is automatically @generated by Poetry 1.7.0 and should not be changed by hand. - -[[package]] -name = "astunparse" -version = "1.6.3" -description = "An AST unparser for Python" -optional = false -python-versions = "*" -files = [ - {file = "astunparse-1.6.3-py2.py3-none-any.whl", hash = "sha256:c2652417f2c8b5bb325c885ae329bdf3f86424075c4fd1a128674bc6fba4b8e8"}, - {file = "astunparse-1.6.3.tar.gz", hash = "sha256:5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872"}, -] - -[package.dependencies] -six = ">=1.6.1,<2.0" -wheel = ">=0.23.0,<1.0" - -[[package]] -name = "importlib-resources" -version = "6.4.0" -description = "Read resources from Python packages" -optional = false -python-versions = ">=3.8" -files = [ - {file = "importlib_resources-6.4.0-py3-none-any.whl", hash = "sha256:50d10f043df931902d4194ea07ec57960f66a80449ff867bfe782b4c486ba78c"}, - {file = "importlib_resources-6.4.0.tar.gz", hash = "sha256:cdb2b453b8046ca4e3798eb1d84f3cce1446a0e8e7b5ef4efb600f19fc398145"}, -] - -[package.dependencies] -zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} - -[package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["jaraco.test (>=5.4)", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-ruff (>=0.2.1)", "zipp (>=3.17)"] - -[[package]] -name = "python-box" -version = "7.1.1" -description = "Advanced Python dictionaries with dot notation access" -optional = false -python-versions = ">=3.8" -files = [ - {file = "python-box-7.1.1.tar.gz", hash = "sha256:2a3df244a5a79ac8f8447b5d11b5be0f2747d7b141cb2866060081ae9b53cc50"}, - {file = "python_box-7.1.1-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:81ed1ec0f0ff2370227fc07277c5baca46d190a4747631bad7eb6ab1630fb7d9"}, - {file = "python_box-7.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8891735b4148e84d348c6eadd2f127152f751c9603e35d43a1f496183a291ac4"}, - {file = "python_box-7.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:0036fd47d388deaca8ebd65aea905f88ee6ef91d1d8ce34898b66f1824afbe80"}, - {file = "python_box-7.1.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:aabf8b9ae5dbc8ba431d8cbe0d4cfe737a25d52d68b0f5f2ff34915c21a2c1db"}, - {file = "python_box-7.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c046608337e723ae4de3206db5d1e1202ed166da2dfdc70c1f9361e72ace5633"}, - {file = "python_box-7.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:f9266795e9c233874fb5b34fa994054b4fb0371881678e6ec45aec17fc95feac"}, - {file = "python_box-7.1.1-cp38-cp38-macosx_11_0_x86_64.whl", hash = "sha256:f76b5b7f0cdc07bfdd4200dc24e6e33189bb2ae322137a2b7110fd41891a3157"}, - {file = "python_box-7.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ea13c98e05a3ec0ff26f254986a17290b69b5ade209fad081fd628f8fcfaa08"}, - {file = "python_box-7.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:1b3f346e332dba16df0b0543d319d9e7ce07d93e5ae152175302894352aa2d28"}, - {file = "python_box-7.1.1-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:24c4ec0ee0278f66321100aaa9c615413da27a14ff43d376a2a3b4665e1d9494"}, - {file = "python_box-7.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d95e5eec4fc8f3fc5c9cc7347fc2eb4f9187c853d34c90b1658d1eff96cd4eac"}, - {file = "python_box-7.1.1-cp39-cp39-win_amd64.whl", hash = "sha256:a0f1333c42e81529b6f68c192050df9d4505b803be7ac47f114036b98707f7cf"}, - {file = "python_box-7.1.1-py3-none-any.whl", hash = "sha256:63b609555554d7a9d4b6e725f8e78ef1717c67e7d386200e03422ad612338df8"}, -] - -[package.extras] -all = ["msgpack", "ruamel.yaml (>=0.17)", "toml"] -msgpack = ["msgpack"] -pyyaml = ["PyYAML"] -ruamel-yaml = ["ruamel.yaml (>=0.17)"] -toml = ["toml"] -tomli = ["tomli", "tomli-w"] -yaml = ["ruamel.yaml (>=0.17)"] - -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" -files = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] - -[[package]] -name = "typing-extensions" -version = "4.11.0" -description = "Backported and Experimental Type Hints for Python 3.8+" -optional = false -python-versions = ">=3.8" -files = [ - {file = "typing_extensions-4.11.0-py3-none-any.whl", hash = "sha256:c1f94d72897edaf4ce775bb7558d5b79d8126906a14ea5ed1635921406c0387a"}, - {file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"}, -] - -[[package]] -name = "wasmtime" -version = "21.0.0" -description = "A WebAssembly runtime powered by Wasmtime" -optional = false -python-versions = ">=3.8" -files = [ - {file = "wasmtime-21.0.0-py3-none-any.whl", hash = "sha256:9b7ee9bb6c14586974d34c92bb7f0723161067769233c5dd8ea99c233759b48d"}, - {file = "wasmtime-21.0.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:b10b6ec13fa04fc1d81a4f9b2d244938c67710e9279011e53397bfa071b85b3f"}, - {file = "wasmtime-21.0.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3e245a5c03c1de46cdafcd98da6daa381cadd7bd41aae70d8bef4c8c0ea51798"}, - {file = "wasmtime-21.0.0-py3-none-manylinux1_x86_64.whl", hash = "sha256:6587515be9603f8bb0732f3b508d2034f21d407fd55879c4402032e40e1ddae6"}, - {file = "wasmtime-21.0.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:4b242b065922f65cd40d8cedb3f19269423f28d7955567fe2daca03a44c03446"}, - {file = "wasmtime-21.0.0-py3-none-win_amd64.whl", hash = "sha256:00f929d0caf58a69890df00888f9da12c2aa3ed5af4c8b7b2dca96a4996da731"}, -] - -[package.dependencies] -importlib-resources = ">=5.10" - -[package.extras] -testing = ["componentize-py", "coverage", "pycparser", "pytest", "pytest-mypy"] - -[[package]] -name = "wheel" -version = "0.43.0" -description = "A built-package format for Python" -optional = false -python-versions = ">=3.8" -files = [ - {file = "wheel-0.43.0-py3-none-any.whl", hash = "sha256:55c570405f142630c6b9f72fe09d9b67cf1477fcf543ae5b8dcb1f5b7377da81"}, - {file = "wheel-0.43.0.tar.gz", hash = "sha256:465ef92c69fa5c5da2d1cf8ac40559a8c940886afcef87dcf14b9470862f1d85"}, -] - -[package.extras] -test = ["pytest (>=6.0.0)", "setuptools (>=65)"] - -[[package]] -name = "zipp" -version = "3.18.2" -description = "Backport of pathlib-compatible object wrapper for zip files" -optional = false -python-versions = ">=3.8" -files = [ - {file = "zipp-3.18.2-py3-none-any.whl", hash = "sha256:dce197b859eb796242b0622af1b8beb0a722d52aa2f57133ead08edd5bf5374e"}, - {file = "zipp-3.18.2.tar.gz", hash = "sha256:6278d9ddbcfb1f1089a88fde84481528b07b0e10474e09dcfe53dad4069fa059"}, -] - -[package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"] - -[metadata] -lock-version = "2.0" -python-versions = ">=3.8,<4.0" -content-hash = "1a8b08df1555b98d2c92c186d3b26d648451538f89f14f8174bf857ea4de8445" diff --git a/whiz.yaml b/whiz.yaml index 385c847497..877f5dd45d 100644 --- a/whiz.yaml +++ b/whiz.yaml @@ -1,3 +1,7 @@ +# FIXME: ghjk created processes are leaky. If a task +# like the gate tasks are terminated manually, the typegate +# process will leak in the bg and hog the port + env: TYPEGRAPH_VERSION: "0.0.3" CLICOLOR_FORCE: "1" @@ -5,9 +9,9 @@ env: gate1: &tp watch: - - "typegate/src/**/*.ts" - - "typegate/{engine,standalone}/**/*.rs" - - "libs/{xtask,deno}/**/*.rs" + - "src/typegate/src/**/*.ts" + - "src/typegate/{engine,standalone}/**/*.rs" + - "src/{xtask,mt_deno}/**/*.rs" command: ghjk x dev-gate1 pipe: "^.+DEBUG http .*$": whiz://http @@ -22,27 +26,27 @@ http: meta-cli: workdir: . watch: - - "meta-cli/src/**/*.rs" - - "typegate/src/**/*.ts" - - "typegate/core/**/*.rs" - - "libs/deno/**/*" + - "src/meta-cli/src/**/*.rs" + - "src/typegate/src/**/*.ts" + - "src/typegate/core/**/*.rs" + - "src/mt_deno/**/*" depends_on: - typegraph command: ghjk x dev-eg-tgraphs typegraph: watch: - - "typegraph/core/src/**/*.rs" - - "typegraph/core/wit/*.wit" - - "typegraph/deno/sdk/src/**/*.ts" - - "libs/metagen/**/*" + - "src/typegraph/core/src/**/*.rs" + - "src/typegraph/core/wit/*.wit" + - "src/typegraph/deno/sdk/src/**/*.ts" + - "src/metagen/**/*" command: | ghjk x build-tgraph system_graphs: watch: - - typegate/src/typegraphs/*.py - - typegraph/**/*.py + - src/typegate/src/typegraphs/*.py + - src/typegraph/**/*.py depends_on: - typegraph command: ghjk x build-sys-tgraphs @@ -50,8 +54,8 @@ system_graphs: setup: workdir: . watch: - - typegraph/python/pyproject.toml - - website/package.json + - src/typegraph/python/pyproject.toml + - docs/metatype.dev/package.json env: GHJK_VERSION: "v0.2.1" command: |