Skip to content

MCP Remote Workers Observability, and monorepo refactor #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = tab
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{yml,yaml,mdx}]
indent_style = space
9 changes: 9 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// This configuration only applies to the package manager root.
/** @type {import("eslint").Linter.Config} */
module.exports = {
ignorePatterns: [
'apps/**',
'packages/**',
],
extends: ['@repo/eslint-config/default.cjs']
}
53 changes: 47 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,50 @@
node_modules/
.windsurfrules
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Wrangler
.wrangler
.dev.vars

# Astro generated types
.astro/

# Dependencies
node_modules
.pnp
.pnp.js

.eslintcache

# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.secret
*.env
dist/
*.log

# Testing
coverage

# Turbo
.turbo

# Vercel
.vercel

# Build Outputs
.next/
out/
dist
dist2

# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Misc
.DS_Store
*.backup
/tmp
*.pem
.sentryclirc.lock/
tmp.json
tmp.ts
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
auto-install-peers=true
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*prettier*
8 changes: 6 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
*.md
*.yaml
.changeset
pnpm-lock.yaml
vitest.config.ts.timestamp*
vite.config.ts.timestamp*
worker-configuration.d.ts
**/dist/**
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

57 changes: 57 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// @ts-check

const codeImports = [
// Groups
'<BUILTIN_MODULES>',
'<THIRD_PARTY_MODULES>',
'',
'^(@repo)(/.*)$', // Workspace imports
'',
// Local (relative) imports
'^[.]{2}$', // ..
'^[.]{2}/', // ../
'^[.]/(?!index)', // ./foo (but not ./index)
'^[.]$', // .
'^[.]/index$', // ./index
'',
]

// Type imports are ordered the same way, but without separators.
// We also need a catch-all <TYPES> here to prevent prettier from failing.
const typeImports = ['<TYPES>'].concat(
codeImports.filter((i) => i !== '').map((i) => `<TYPES>${i}`)
)

/** @type {import("prettier").Config} */
const config = {
trailingComma: 'es5',
tabWidth: 2,
useTabs: true,
semi: false,
singleQuote: true,
printWidth: 100,
plugins: [
'@ianvs/prettier-plugin-sort-imports',
'prettier-plugin-packagejson',
'prettier-plugin-astro',
'prettier-plugin-tailwindcss',
],
importOrder: [...codeImports, ...typeImports],
importOrderTypeScriptVersion: '5.5.4',
overrides: [
{
files: '*.mdx',
options: {
parser: 'mdx',
},
},
{
files: ['*.jsonc', '*.code-workspace'],
options: {
trailingComma: 'none',
},
},
],
}

module.exports = config
59 changes: 59 additions & 0 deletions .syncpackrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// @ts-check
/** @type {import("syncpack").RcFile} */
const config = {
indent: '\t',
lintFormatting: false, // handled by prettier
versionGroups: [
{
label: 'local packages',
packages: ['**'],
dependencies: ['@repo/*'],
dependencyTypes: ['!local'], // Exclude the local package itself
pinVersion: 'workspace:*',
},
{
label: 'Sentry types that are compatible with toucan-js',
dependencies: ['@sentry/types', '@sentry/tracing'],
pinVersion: '7.76.0',
},
{
label: 'toucan-js that is compatible with pinned sentry types',
dependencies: ['toucan-js'],
pinVersion: '3.3.1',
},
{
label: 'pin vitest compatible with @cloudflare/vitest-pool-workers',
dependencies: ['vitest', '@vitest/ui'],
pinVersion: '3.0.9',
},
{
label: 'pin typescript for eslint',
dependencies: ['typescript'],
pinVersion: '5.5.4',
},
{
label: `pin eslint and all it's plugins for eslint v8`,
dependencies: [
'eslint',
'@types/eslint',
'eslint-config-prettier',
'eslint-plugin-react-hooks',
'eslint-plugin-unused-imports',
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
],
// snapTo removes it from syncpack update list, which is the main goal
snapTo: ['@repo/eslint-config'],
},
],
semverGroups: [
{
label: 'pin all deps',
range: '',
dependencies: ['**'],
packages: ['**'],
},
],
}

module.exports = config
12 changes: 12 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
23 changes: 23 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"editor.detectIndentation": true,
// https://arktype.io/docs/intro/setup#settings
// allow autocomplete for ArkType expressions like "string | num"
"editor.quickSuggestions": {
"strings": "on"
},
// prioritize ArkType's "type" for autoimports
"typescript.preferences.autoImportSpecifierExcludeRegexes": ["^(node:)?os$"],
"typescript.preferences.autoImportFileExcludePatterns": ["**/vitest/dist/**"],
"typescript.preferences.importModuleSpecifier": "non-relative",
"files.associations": {
"**/packages/tools/bin/*": "shellscript",
"**/*.css": "tailwindcss",
"turbo.json": "jsonc",
"**/packages/typescript-config/*.json": "jsonc",
},
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
}
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "changeset:new",
"group": "none",
"label": "changeset: new",
"detail": "Create changeset and commit all changes",
"runOptions": { "instanceLimit": 1 },
"presentation": {
"reveal": "always",
"focus": true,
"panel": "new",
"close": true
}
}
]
}
Loading