Skip to content
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
29 changes: 29 additions & 0 deletions .agents/skills/python-inline-scripts/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: python-inline-scripts
description: Guide for running inline Python scripts with uv
---

## Python Inline Scripts with uv

### IMPORTANT

- NEVER add stdlib modules like json, os, re, etc. to dependencies OR THE SCRIPT WILL FAIL
- ALWAYS assume Python 3.12+

### Example

```bash
uv run --no-project -q --script - < <(cat <<'EOF'
# /// script
# # ONLY add dependencies array if you need PyPi packages
# dependencies = [
# "httpx"
# ]
# requires-python = ">=3.12"
# ///

import httpx
print(httpx.get("https://api.github.com/zen").text)
EOF
)
```
82 changes: 82 additions & 0 deletions .agents/skills/typescript-inline-scripts/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
name: typescript-inline-scripts
description: Guide for running inline TypeScript scripts with Bun
---

## TypeScript Inline Scripts with Bun

### IMPORTANT

- ALWAYS assume Bun runtime with modern TypeScript features
- Imported npm packages will be automatically installed by Bun
- ALWAYS prefer Bun APIs where possible

### Example

```bash
bun run --install=fallback - < <(cat <<'EOF'
import { z } from 'zod'

console.log(z.coerce.number().parse('5'))
EOF
)
```

## Bun APIs Reference

### Core Runtime APIs

- `Bun.spawn()` - Process spawning and management
- `Bun.file()` - File system operations and reading
- `Bun.write()` - File writing operations
- `fetch()` - HTTP requests (Web API standard)
- `Bun.preconnect()` - URL preconnection for performance

### File System

- `Bun.file(path)` - Create file handle for reading/writing
- `await Bun.file(path).text()` - Read file as text
- `await Bun.file(path).json()` - Read file as JSON
- `await Bun.file(path).arrayBuffer()` - Read file as ArrayBuffer
- `await Bun.write(path, data)` - Write data to file

### Shell Commands

```typescript
import { $ } from 'bun'
await $`command` // Execute shell commands with template literals
const result = await $`ls -la` // Capture command output
```

### Compression

- `Bun.gzipSync()` - Synchronous gzip compression
- `Bun.gunzipSync()` - Synchronous gzip decompression
- `Bun.inflateSync()` - Synchronous deflate decompression

### SQLite

```typescript
import { Database } from 'bun:sqlite'
// Database operations and SQL execution
```

### FFI (Foreign Function Interface)

```typescript
import { dlopen, CString } from 'bun:ffi'
// Native library interaction
```

### Utilities

- `Bun.escapeHTML()` - HTML escaping
- `Bun.hash()` - Hashing functions
- `Bun.password.hash()` - Password hashing
- `Bun.password.verify()` - Password verification

### Node.js Compatibility

- Full Node.js API support via `node:` imports
- `import { createRequire } from 'node:module'`
- All standard Node.js modules available
5 changes: 0 additions & 5 deletions .changeset/breezy-jars-press.md

This file was deleted.

1 change: 0 additions & 1 deletion .changeset/cuddly-windows-train.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
'@repo/workspace-dependencies': patch
'example-worker-echoback': patch
'@repo/eslint-config': patch
'@repo/hono-helpers': patch
'@repo/tools': patch
---
Expand Down
1 change: 0 additions & 1 deletion .changeset/deep-mirrors-look.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
'@repo/workspace-dependencies': patch
'example-worker-echoback': patch
'@repo/eslint-config': patch
'@repo/hono-helpers': patch
'@repo/tools': patch
---
Expand Down
1 change: 0 additions & 1 deletion .changeset/dull-showers-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
'@repo/workspace-dependencies': patch
'example-worker-echoback': patch
'@repo/typescript-config': patch
'@repo/eslint-config': patch
'@repo/hono-helpers': patch
'@repo/tools': patch
---
Expand Down
1 change: 0 additions & 1 deletion .changeset/fast-beers-guess.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
'@repo/workspace-dependencies': patch
'example-worker-echoback': patch
'@repo/typescript-config': patch
'@repo/eslint-config': patch
'@repo/hono-helpers': patch
'@repo/tools': patch
---
Expand Down
5 changes: 0 additions & 5 deletions .changeset/fine-words-type.md

This file was deleted.

1 change: 0 additions & 1 deletion .changeset/five-falcons-guess.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
'@repo/workspace-dependencies': patch
'example-worker-echoback': patch
'@repo/eslint-config': patch
'@repo/hono-helpers': patch
'@repo/tools': patch
---
Expand Down
5 changes: 0 additions & 5 deletions .changeset/modern-cities-slide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/open-feet-read.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/petite-berries-hammer.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/petite-brooms-watch.md

This file was deleted.

1 change: 0 additions & 1 deletion .changeset/red-singers-kneel.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
'@repo/workspace-dependencies': patch
'example-worker-echoback': patch
'@repo/eslint-config': patch
'@repo/hono-helpers': patch
'@repo/tools': patch
---
Expand Down
5 changes: 0 additions & 5 deletions .changeset/stale-monkeys-dig.md

This file was deleted.

1 change: 0 additions & 1 deletion .changeset/tame-files-search.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
'@repo/workspace-dependencies': patch
'example-worker-echoback': patch
'@repo/eslint-config': patch
'@repo/hono-helpers': patch
'@repo/tools': patch
---
Expand Down
5 changes: 0 additions & 5 deletions .changeset/tasty-months-fold.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thick-buses-rhyme.md

This file was deleted.

1 change: 0 additions & 1 deletion .changeset/tired-ghosts-end.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
'example-worker-echoback': minor
'@repo/eslint-config': minor
'@repo/hono-helpers': minor
---

Expand Down
1 change: 0 additions & 1 deletion .changeset/two-loops-reply.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
'@repo/workspace-dependencies': patch
'example-worker-echoback': patch
'@repo/eslint-config': patch
'@repo/hono-helpers': patch
'@repo/tools': patch
---
Expand Down
5 changes: 0 additions & 5 deletions .changeset/yellow-dancers-dig.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/yellow-singers-glow.md

This file was deleted.

11 changes: 11 additions & 0 deletions .changeset/young-carrots-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@repo/workspace-dependencies': patch
'example-worker-echoback': patch
'@repo/typescript-config': patch
'@repo/oxlint-config': patch
'@repo/hono-helpers': patch
'@repo/turbo-generators': patch
'@repo/tools': patch
---

chore: migrate from eslint to oxlint
4 changes: 2 additions & 2 deletions .cursor/rules/ci-cd-deployment.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This guide covers the continuous integration, deployment, and release processes
- Dependency version checks
- Code formatting validation
- TypeScript type checking
- ESLint linting
- oxlint linting
- Unit tests across all packages
- Integration tests for workers

Expand Down Expand Up @@ -176,7 +176,7 @@ pnpm changeset

Currently focused on internal packages:

- `@repo/eslint-config`
- `@repo/oxlint-config`
- `@repo/typescript-config`
- `@repo/hono-helpers`
- `@repo/tools`
Expand Down
4 changes: 2 additions & 2 deletions .cursor/rules/package-management.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This guide covers how to manage packages and dependencies in the Workers monorep

All internal packages use the `@repo/` namespace:

- `@repo/eslint-config` - Shared ESLint configuration
- `@repo/oxlint-config` - Shared oxlint configuration
- `@repo/typescript-config` - Shared TypeScript configuration
- `@repo/hono-helpers` - Hono framework utilities
- `@repo/tools` - Development tools and scripts
Expand Down Expand Up @@ -97,7 +97,7 @@ Most packages reference scripts from [packages/tools/](mdc:packages/tools):
{
"scripts": {
"build:wrangler": "run-wrangler-build",
"check:lint": "run-eslint",
"check:lint": "run-oxlint",
"check:types": "run-tsc",
"deploy": "run-wrangler-deploy",
"dev": "run-wrangler-dev",
Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/project-structure.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This is a Cloudflare Workers monorepo template built with Turborepo, pnpm worksp
- Example: [apps/example-worker-echoback/](mdc:apps/example-worker-echoback/) - demonstrates basic worker functionality

- **`packages/`** - Shared libraries, utilities, and configurations
- [packages/eslint-config/](mdc:packages/eslint-config/) - Shared ESLint configuration
- [packages/oxlint-config/](mdc:packages/oxlint-config/) - Shared oxlint configuration
- [packages/typescript-config/](mdc:packages/typescript-config/) - Shared TypeScript configuration
- [packages/hono-helpers/](mdc:packages/hono-helpers/) - Hono framework utilities and middleware
- [packages/tools/](mdc:packages/tools/) - CLI tools and development scripts
Expand Down
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
auto-install-peers=true
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=oxlint
public-hoist-pattern[]=oxlint-tsgolint
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ pnpm-lock.yaml
vite.config.ts.timestamp*
vitest.config.ts.timestamp*
worker-configuration.d.ts
.agents/skills/**
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// 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"],
"recommendations": ["esbenp.prettier-vscode", "oxc.oxc-vscode"],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
11 changes: 1 addition & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"*.jsx": "$(capture).js",
"*.tsx": "$(capture).ts",
"tsconfig.json": "tsconfig.*.json",
"package.json": ".*, eslint.config.ts, CLAUDE.md, AGENTS.md, bun.lock, docker-compose.yml, docker-compose.yaml, dagger.json, env.d.ts, postcss.config.ts, vitest.config.*.ts, Dockerfile, railway.json, vitest.config.*.ts, uuid-rocks.code-workspace, astro.config.ts, ndstories.code-workspace, wrangler.jsonc, workflows.code-workspace, astroblog.code-workspace, astro.config.mjs, drizzle.config.ts, Earthfile, workers.code-workspace, Justfile, CHANGELOG.md, vitest.config.ts, vitest.workspace.ts, postcss.config.mjs, vite.config.ts, worker-configuration.d.ts, README.md, package-lock.json, yarn.lock, postcss.config.js, remix.config.js, remix.env.d.ts, tailwind.config.js, tsconfig.json, server.ts, tailwind.config.ts, turbo.jsonc, LICENSE, pnpm-lock.yaml, pnpm-workspace.yaml"
"package.json": ".*, *.config.ts, CLAUDE.md, AGENTS.md, bun.lock, docker-compose.yml, docker-compose.yaml, dagger.json, env.d.ts, postcss.config.ts, vitest.config.*.ts, Dockerfile, railway.json, vitest.config.*.ts, uuid-rocks.code-workspace, astro.config.ts, ndstories.code-workspace, wrangler.jsonc, workflows.code-workspace, astroblog.code-workspace, astro.config.mjs, drizzle.config.ts, Earthfile, workers.code-workspace, Justfile, CHANGELOG.md, vitest.config.ts, vitest.workspace.ts, postcss.config.mjs, vite.config.ts, worker-configuration.d.ts, README.md, package-lock.json, yarn.lock, postcss.config.js, remix.config.js, remix.env.d.ts, tailwind.config.js, tsconfig.json, server.ts, tailwind.config.ts, turbo.jsonc, LICENSE, pnpm-lock.yaml, pnpm-workspace.yaml"
},
"editor.detectIndentation": true,

Expand All @@ -23,10 +23,6 @@
// I always prefer format on save
"editor.formatOnSave": true,

"eslint.options": {
"flags": ["v10_config_lookup_from_file"]
},

"github-actions.workflows.pinned.workflows": [
".github/workflows/release.yml",
".github/workflows/branches.yml"
Expand All @@ -41,11 +37,6 @@
"**/packages/typescript-config/*.json": "jsonc",
"*.mdc": "markdown"
},
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
"cSpell.words": [
"cftrace",
"cloudflareaccess",
Expand Down
4 changes: 2 additions & 2 deletions .windsurf/rules/ci-cd-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This guide covers the continuous integration, deployment, and release processes
- Dependency version checks
- Code formatting validation
- TypeScript type checking
- ESLint linting
- oxlint linting
- Unit tests across all packages
- Integration tests for workers

Expand Down Expand Up @@ -172,7 +172,7 @@ just cs

Currently focused on internal packages:

- `@repo/eslint-config`
- `@repo/oxlint-config`
- `@repo/typescript-config`
- `@repo/hono-helpers`
- `@repo/tools`
Expand Down
2 changes: 1 addition & 1 deletion .windsurf/rules/package-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This guide covers how to manage packages and dependencies in the Workers monorep

All internal packages use the `@repo/` namespace:

- `@repo/eslint-config` - Shared ESLint configuration
- `@repo/oxlint-config` - Shared oxlint configuration
- `@repo/typescript-config` - Shared TypeScript configuration
- `@repo/hono-helpers` - Hono framework utilities
- `@repo/tools` - Development tools and scripts
Expand Down
Loading
Loading