Add full gitfastr implementation
Full-stack Git repository manager built on Cloudflare Workers, D1, R2, and Pages: - Git Smart HTTP protocol (push/clone/fetch over HTTPS) - Custom TypeScript pack file parser and generator (zero runtime deps) - REST API with 30 endpoints: auth, repos, browsing, merge requests, webhooks, settings - Astro + Preact web UI: repo browsing, file viewer, commit diffs, MR workflow - D1 schema with 11 tables (users, repos, refs, MRs, comments, webhooks, activity) - Dark/light theme toggle with modern indigo color palette - 49 passing unit tests (pkt-line, SHA-1, git objects, delta encoding, diff algorithm) Deployed to Cloudflare: - Worker API: gitfastr-api.operations-dev.workers.dev - Pages UI: gitfastr.pages.dev Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Maher Kassim committed on Apr 3, 2026, 04:26 PM
49d02a2e9a Parent:
f78f7f8
Showing 73 changed files with
12333 additions and
0 deletions
A package.json
| @@ -1,0 +1,15 @@ | ||
| 1 | +{ | |
| 2 | + "name": "gitfastr", | |
| 3 | + "private": true, | |
| 4 | + "scripts": { | |
| 5 | + "build": "turbo build", | |
| 6 | + "dev": "turbo dev", | |
| 7 | + "test": "turbo test", | |
| 8 | + "lint": "turbo lint" | |
| 9 | + }, | |
| 10 | + "devDependencies": { | |
| 11 | + "turbo": "^2.4.0", | |
| 12 | + "typescript": "^5.7.0" | |
| 13 | + } | |
| 14 | +} | |
| 15 | + | |
A packages/shared/package.json
| @@ -1,0 +1,68 @@ | ||
| 1 | +{ | |
| 2 | + "name": "@gitfastr/shared", | |
| 3 | + "version": "0.0.1", | |
| 4 | + "type": "module", | |
| 5 | + "main": "./dist/index.js", | |
| 6 | + "types": "./dist/index.d.ts", | |
| 7 | + "exports": { | |
| 8 | + ".": { | |
| 9 | + "types": "./dist/index.d.ts", | |
| 10 | + "import": "./dist/index.js" | |
| 11 | + }, | |
| 12 | + "./git/pkt-line.js": { | |
| 13 | + "types": "./dist/git/pkt-line.d.ts", | |
| 14 | + "import": "./dist/git/pkt-line.js" | |
| 15 | + }, | |
| 16 | + "./git/sha1.js": { | |
| 17 | + "types": "./dist/git/sha1.d.ts", | |
| 18 | + "import": "./dist/git/sha1.js" | |
| 19 | + }, | |
| 20 | + "./git/zlib.js": { | |
| 21 | + "types": "./dist/git/zlib.d.ts", | |
| 22 | + "import": "./dist/git/zlib.js" | |
| 23 | + }, | |
| 24 | + "./git/object.js": { | |
| 25 | + "types": "./dist/git/object.d.ts", | |
| 26 | + "import": "./dist/git/object.js" | |
| 27 | + }, | |
| 28 | + "./git/delta.js": { | |
| 29 | + "types": "./dist/git/delta.d.ts", | |
| 30 | + "import": "./dist/git/delta.js" | |
| 31 | + }, | |
| 32 | + "./git/pack-parse.js": { | |
| 33 | + "types": "./dist/git/pack-parse.d.ts", | |
| 34 | + "import": "./dist/git/pack-parse.js" | |
| 35 | + }, | |
| 36 | + "./git/pack-generate.js": { | |
| 37 | + "types": "./dist/git/pack-generate.d.ts", | |
| 38 | + "import": "./dist/git/pack-generate.js" | |
| 39 | + }, | |
| 40 | + "./types/index.js": { | |
| 41 | + "types": "./dist/types/index.d.ts", | |
| 42 | + "import": "./dist/types/index.js" | |
| 43 | + }, | |
| 44 | + "./utils/auth.js": { | |
| 45 | + "types": "./dist/utils/auth.d.ts", | |
| 46 | + "import": "./dist/utils/auth.js" | |
| 47 | + }, | |
| 48 | + "./utils/errors.js": { | |
| 49 | + "types": "./dist/utils/errors.d.ts", | |
| 50 | + "import": "./dist/utils/errors.js" | |
| 51 | + }, | |
| 52 | + "./git/diff.js": { | |
| 53 | + "types": "./dist/git/diff.d.ts", | |
| 54 | + "import": "./dist/git/diff.js" | |
| 55 | + } | |
| 56 | + }, | |
| 57 | + "scripts": { | |
| 58 | + "build": "tsc", | |
| 59 | + "test": "vitest run", | |
| 60 | + "test:watch": "vitest" | |
| 61 | + }, | |
| 62 | + "devDependencies": { | |
| 63 | + "@cloudflare/workers-types": "^4.20250310.0", | |
| 64 | + "@types/node": "^25.5.0", | |
| 65 | + "vitest": "^3.0.0" | |
| 66 | + } | |
| 67 | +} | |
| 68 | + | |
A packages/shared/src/git/__tests__/delta.test.ts
| @@ -1,0 +1,86 @@ | ||
| 1 | +import { describe, it, expect } from 'vitest'; | |
| 2 | +import { applyDelta, readOfsOffset } from '../delta.js'; | |
| 3 | + | |
| 4 | +const encoder = new TextEncoder(); | |
| 5 | + | |
| 6 | +describe('applyDelta', () => { | |
| 7 | + it('should apply an insert-only delta', () => { | |
| 8 | + const base = encoder.encode('hello'); | |
| 9 | + // Delta: source size 5, target size 11, insert "hello world" | |
| 10 | + const delta = new Uint8Array([ | |
| 11 | + 5, // source size: 5 | |
| 12 | + 11, // target size: 11 | |
| 13 | + 11, // insert 11 bytes | |
| 14 | + ...encoder.encode('hello world'), | |
| 15 | + ]); | |
| 16 | + | |
| 17 | + const result = applyDelta(base, delta); | |
| 18 | + expect(new TextDecoder().decode(result)).toBe('hello world'); | |
| 19 | + }); | |
| 20 | + | |
| 21 | + it('should apply a copy-only delta', () => { | |
| 22 | + const base = encoder.encode('hello world'); | |
| 23 | + // Delta: source size 11, target size 5, copy 5 bytes from offset 0 | |
| 24 | + const delta = new Uint8Array([ | |
| 25 | + 11, // source size: 11 | |
| 26 | + 5, // target size: 5 | |
| 27 | + 0x80 | 0x01 | 0x10, // copy: offset byte + size byte present | |
| 28 | + 0, // offset: 0 | |
| 29 | + 5, // size: 5 | |
| 30 | + ]); | |
| 31 | + | |
| 32 | + const result = applyDelta(base, delta); | |
| 33 | + expect(new TextDecoder().decode(result)).toBe('hello'); | |
| 34 | + }); | |
| 35 | + | |
| 36 | + it('should apply a mixed copy+insert delta', () => { | |
| 37 | + const base = encoder.encode('hello world'); | |
| 38 | + // Copy "hello" (5 bytes from offset 0), then insert " there" | |
| 39 | + const delta = new Uint8Array([ | |
| 40 | + 11, // source size: 11 | |
| 41 | + 11, // target size: 11 ("hello there") | |
| 42 | + // Copy instruction: offset=0, size=5 | |
| 43 | + 0x80 | 0x01 | 0x10, | |
| 44 | + 0, // offset: 0 | |
| 45 | + 5, // size: 5 | |
| 46 | + // Insert instruction: 6 bytes " there" | |
| 47 | + 6, | |
| 48 | + ...encoder.encode(' there'), | |
| 49 | + ]); | |
| 50 | + | |
| 51 | + const result = applyDelta(base, delta); | |
| 52 | + expect(new TextDecoder().decode(result)).toBe('hello there'); | |
| 53 | + }); | |
| 54 | + | |
| 55 | + it('should throw on source size mismatch', () => { | |
| 56 | + const base = encoder.encode('hi'); | |
| 57 | + const delta = new Uint8Array([ | |
| 58 | + 10, // says source is 10 bytes | |
| 59 | + 5, | |
| 60 | + 5, | |
| 61 | + ...encoder.encode('hello'), | |
| 62 | + ]); | |
| 63 | + | |
| 64 | + expect(() => applyDelta(base, delta)).toThrow('source size mismatch'); | |
| 65 | + }); | |
| 66 | +}); | |
| 67 | + | |
| 68 | +describe('readOfsOffset', () => { | |
| 69 | + it('should read a single-byte offset', () => { | |
| 70 | + const buf = new Uint8Array([42]); | |
| 71 | + const { value, bytesRead } = readOfsOffset(buf, 0); | |
| 72 | + expect(value).toBe(42); | |
| 73 | + expect(bytesRead).toBe(1); | |
| 74 | + }); | |
| 75 | + | |
| 76 | + it('should read a multi-byte offset', () => { | |
| 77 | + // First byte: 0x80 | 0x01 = 129 (continuation bit set, value = 1) | |
| 78 | + // Second byte: 0x00 (value = 0) | |
| 79 | + // Decoded: ((1 + 1) << 7) | 0 = 256 | |
| 80 | + const buf = new Uint8Array([0x81, 0x00]); | |
| 81 | + const { value, bytesRead } = readOfsOffset(buf, 0); | |
| 82 | + expect(value).toBe(256); | |
| 83 | + expect(bytesRead).toBe(2); | |
| 84 | + }); | |
| 85 | +}); | |
| 86 | + | |
A packages/shared/src/git/__tests__/diff.test.ts
| @@ -1,0 +1,69 @@ | ||
| 1 | +import { describe, it, expect } from 'vitest'; | |
| 2 | +import { computeDiff } from '../diff.js'; | |
| 3 | + | |
| 4 | +describe('computeDiff', () => { | |
| 5 | + it('should return empty hunks for identical text', () => { | |
| 6 | + const hunks = computeDiff('hello\nworld', 'hello\nworld'); | |
| 7 | + expect(hunks).toHaveLength(0); | |
| 8 | + }); | |
| 9 | + | |
| 10 | + it('should detect a single added line', () => { | |
| 11 | + const hunks = computeDiff('hello', 'hello\nworld'); | |
| 12 | + expect(hunks).toHaveLength(1); | |
| 13 | + const addLines = hunks[0].lines.filter((l) => l.type === 'add'); | |
| 14 | + expect(addLines.length).toBeGreaterThanOrEqual(1); | |
| 15 | + expect(addLines.some((l) => l.content === 'world')).toBe(true); | |
| 16 | + }); | |
| 17 | + | |
| 18 | + it('should detect a single deleted line', () => { | |
| 19 | + const hunks = computeDiff('hello\nworld', 'hello'); | |
| 20 | + expect(hunks).toHaveLength(1); | |
| 21 | + const delLines = hunks[0].lines.filter((l) => l.type === 'delete'); | |
| 22 | + expect(delLines.length).toBeGreaterThanOrEqual(1); | |
| 23 | + expect(delLines.some((l) => l.content === 'world')).toBe(true); | |
| 24 | + }); | |
| 25 | + | |
| 26 | + it('should detect modifications', () => { | |
| 27 | + const hunks = computeDiff('line1\nold\nline3', 'line1\nnew\nline3'); | |
| 28 | + expect(hunks).toHaveLength(1); | |
| 29 | + const delLines = hunks[0].lines.filter((l) => l.type === 'delete'); | |
| 30 | + const addLines = hunks[0].lines.filter((l) => l.type === 'add'); | |
| 31 | + expect(delLines.length).toBeGreaterThanOrEqual(1); | |
| 32 | + expect(addLines.length).toBeGreaterThanOrEqual(1); | |
| 33 | + expect(delLines.some((l) => l.content === 'old')).toBe(true); | |
| 34 | + expect(addLines.some((l) => l.content === 'new')).toBe(true); | |
| 35 | + }); | |
| 36 | + | |
| 37 | + it('should handle adding to empty file', () => { | |
| 38 | + const hunks = computeDiff('', 'hello\nworld'); | |
| 39 | + expect(hunks.length).toBeGreaterThanOrEqual(1); | |
| 40 | + const addLines = hunks.flatMap((h) => h.lines).filter((l) => l.type === 'add'); | |
| 41 | + expect(addLines.length).toBeGreaterThanOrEqual(1); | |
| 42 | + }); | |
| 43 | + | |
| 44 | + it('should handle deleting entire file', () => { | |
| 45 | + const hunks = computeDiff('hello\nworld', ''); | |
| 46 | + expect(hunks.length).toBeGreaterThanOrEqual(1); | |
| 47 | + const delLines = hunks.flatMap((h) => h.lines).filter((l) => l.type === 'delete'); | |
| 48 | + expect(delLines.length).toBeGreaterThanOrEqual(1); | |
| 49 | + }); | |
| 50 | + | |
| 51 | + it('should include context lines', () => { | |
| 52 | + const old = 'a\nb\nc\nd\ne\nf\ng'; | |
| 53 | + const new_ = 'a\nb\nc\nX\ne\nf\ng'; | |
| 54 | + const hunks = computeDiff(old, new_, 2); | |
| 55 | + expect(hunks).toHaveLength(1); | |
| 56 | + const contextLines = hunks[0].lines.filter((l) => l.type === 'context'); | |
| 57 | + expect(contextLines.length).toBeGreaterThan(0); | |
| 58 | + }); | |
| 59 | + | |
| 60 | + it('should produce valid hunks with line numbers', () => { | |
| 61 | + const hunks = computeDiff('a\nb\nc', 'a\nX\nc'); | |
| 62 | + expect(hunks).toHaveLength(1); | |
| 63 | + // All lines should have at least one line number | |
| 64 | + for (const line of hunks[0].lines) { | |
| 65 | + expect(line.oldLineNo !== null || line.newLineNo !== null).toBe(true); | |
| 66 | + } | |
| 67 | + }); | |
| 68 | +}); | |
| 69 | + | |
A packages/shared/src/git/__tests__/object.test.ts
| @@ -1,0 +1,115 @@ | ||
| 1 | +import { describe, it, expect } from 'vitest'; | |
| 2 | +import { | |
| 3 | + serializeGitObject, | |
| 4 | + parseRawGitObject, | |
| 5 | + parseTree, | |
| 6 | + serializeTree, | |
| 7 | + parseCommit, | |
| 8 | + PACK_OBJECT_TYPE, | |
| 9 | + packTypeToString, | |
| 10 | + stringToPackType, | |
| 11 | +} from '../object.js'; | |
| 12 | + | |
| 13 | +const encoder = new TextEncoder(); | |
| 14 | + | |
| 15 | +describe('git object serialization', () => { | |
| 16 | + it('should round-trip serialize/parse a blob', () => { | |
| 17 | + const content = encoder.encode('file content here'); | |
| 18 | + const serialized = serializeGitObject('blob', content); | |
| 19 | + const parsed = parseRawGitObject(serialized); | |
| 20 | + expect(parsed.type).toBe('blob'); | |
| 21 | + expect(parsed.content).toEqual(content); | |
| 22 | + }); | |
| 23 | + | |
| 24 | + it('should round-trip serialize/parse a commit', () => { | |
| 25 | + const content = encoder.encode( | |
| 26 | + 'tree aaaa\nparent bbbb\nauthor Test\ncommitter Test\n\ncommit message' | |
| 27 | + ); | |
| 28 | + const serialized = serializeGitObject('commit', content); | |
| 29 | + const parsed = parseRawGitObject(serialized); | |
| 30 | + expect(parsed.type).toBe('commit'); | |
| 31 | + expect(parsed.content).toEqual(content); | |
| 32 | + }); | |
| 33 | + | |
| 34 | + it('should throw on invalid object (no NUL)', () => { | |
| 35 | + expect(() => parseRawGitObject(encoder.encode('blob 5hello'))).toThrow(); | |
| 36 | + }); | |
| 37 | +}); | |
| 38 | + | |
| 39 | +describe('tree parsing', () => { | |
| 40 | + it('should round-trip tree entries', () => { | |
| 41 | + const entries = [ | |
| 42 | + { mode: '100644', name: 'file.txt', sha: 'a'.repeat(40) }, | |
| 43 | + { mode: '040000', name: 'dir', sha: 'b'.repeat(40) }, | |
| 44 | + { mode: '120000', name: 'link', sha: 'c'.repeat(40) }, | |
| 45 | + ]; | |
| 46 | + | |
| 47 | + const serialized = serializeTree(entries); | |
| 48 | + const parsed = parseTree(serialized); | |
| 49 | + | |
| 50 | + expect(parsed).toHaveLength(3); | |
| 51 | + for (let i = 0; i < entries.length; i++) { | |
| 52 | + expect(parsed[i].mode).toBe(entries[i].mode); | |
| 53 | + expect(parsed[i].name).toBe(entries[i].name); | |
| 54 | + expect(parsed[i].sha).toBe(entries[i].sha); | |
| 55 | + } | |
| 56 | + }); | |
| 57 | +}); | |
| 58 | + | |
| 59 | +describe('commit parsing', () => { | |
| 60 | + it('should parse a commit with parents', () => { | |
| 61 | + const commitContent = [ | |
| 62 | + 'tree ' + 'a'.repeat(40), | |
| 63 | + 'parent ' + 'b'.repeat(40), | |
| 64 | + 'parent ' + 'c'.repeat(40), | |
| 65 | + 'author Test User <test@example.com> 1234567890 +0000', | |
| 66 | + 'committer Test User <test@example.com> 1234567890 +0000', | |
| 67 | + '', | |
| 68 | + 'Initial commit', | |
| 69 | + '', | |
| 70 | + 'More details here.', | |
| 71 | + ].join('\n'); | |
| 72 | + | |
| 73 | + const parsed = parseCommit(encoder.encode(commitContent)); | |
| 74 | + | |
| 75 | + expect(parsed.tree).toBe('a'.repeat(40)); | |
| 76 | + expect(parsed.parents).toEqual(['b'.repeat(40), 'c'.repeat(40)]); | |
| 77 | + expect(parsed.author).toBe('Test User <test@example.com> 1234567890 +0000'); | |
| 78 | + expect(parsed.committer).toBe('Test User <test@example.com> 1234567890 +0000'); | |
| 79 | + expect(parsed.message).toBe('Initial commit\n\nMore details here.'); | |
| 80 | + }); | |
| 81 | + | |
| 82 | + it('should parse a root commit (no parents)', () => { | |
| 83 | + const commitContent = [ | |
| 84 | + 'tree ' + 'a'.repeat(40), | |
| 85 | + 'author Test <test@test.com> 1000 +0000', | |
| 86 | + 'committer Test <test@test.com> 1000 +0000', | |
| 87 | + '', | |
| 88 | + 'root commit', | |
| 89 | + ].join('\n'); | |
| 90 | + | |
| 91 | + const parsed = parseCommit(encoder.encode(commitContent)); | |
| 92 | + expect(parsed.parents).toEqual([]); | |
| 93 | + }); | |
| 94 | +}); | |
| 95 | + | |
| 96 | +describe('pack type conversions', () => { | |
| 97 | + it('should convert type numbers to strings', () => { | |
| 98 | + expect(packTypeToString(1)).toBe('commit'); | |
| 99 | + expect(packTypeToString(2)).toBe('tree'); | |
| 100 | + expect(packTypeToString(3)).toBe('blob'); | |
| 101 | + expect(packTypeToString(4)).toBe('tag'); | |
| 102 | + }); | |
| 103 | + | |
| 104 | + it('should convert strings to type numbers', () => { | |
| 105 | + expect(stringToPackType('commit')).toBe(1); | |
| 106 | + expect(stringToPackType('tree')).toBe(2); | |
| 107 | + expect(stringToPackType('blob')).toBe(3); | |
| 108 | + expect(stringToPackType('tag')).toBe(4); | |
| 109 | + }); | |
| 110 | + | |
| 111 | + it('should throw for unknown type number', () => { | |
| 112 | + expect(() => packTypeToString(5)).toThrow(); | |
| 113 | + }); | |
| 114 | +}); | |
| 115 | + | |
A packages/shared/src/git/__tests__/pkt-line.test.ts
| @@ -1,0 +1,191 @@ | ||
| 1 | +import { describe, it, expect } from 'vitest'; | |
| 2 | +import { | |
| 3 | + pktLineEncode, | |
| 4 | + pktLineEncodeBytes, | |
| 5 | + pktFlush, | |
| 6 | + pktDelim, | |
| 7 | + pktLineParse, | |
| 8 | + pktLineDataToString, | |
| 9 | + pktConcat, | |
| 10 | + buildServiceAdvertisement, | |
| 11 | + pktSideBandEncode, | |
| 12 | + SIDE_BAND, | |
| 13 | +} from '../pkt-line.js'; | |
| 14 | + | |
| 15 | +const encoder = new TextEncoder(); | |
| 16 | +const decoder = new TextDecoder(); | |
| 17 | + | |
| 18 | +describe('pkt-line', () => { | |
| 19 | + describe('pktLineEncode', () => { | |
| 20 | + it('should encode a string with correct length prefix', () => { | |
| 21 | + const result = pktLineEncode('hello\n'); | |
| 22 | + const str = decoder.decode(result); | |
| 23 | + // 4 (prefix) + 6 (payload) = 10 = 000a | |
| 24 | + expect(str).toBe('000ahello\n'); | |
| 25 | + }); | |
| 26 | + | |
| 27 | + it('should encode an empty-ish string', () => { | |
| 28 | + const result = pktLineEncode('a'); | |
| 29 | + const str = decoder.decode(result); | |
| 30 | + // 4 + 1 = 5 = 0005 | |
| 31 | + expect(str).toBe('0005a'); | |
| 32 | + }); | |
| 33 | + | |
| 34 | + it('should handle longer strings', () => { | |
| 35 | + const data = 'x'.repeat(100); | |
| 36 | + const result = pktLineEncode(data); | |
| 37 | + const str = decoder.decode(result); | |
| 38 | + // 4 + 100 = 104 = 0068 | |
| 39 | + expect(str.slice(0, 4)).toBe('0068'); | |
| 40 | + expect(str.slice(4)).toBe(data); | |
| 41 | + }); | |
| 42 | + }); | |
| 43 | + | |
| 44 | + describe('pktFlush / pktDelim', () => { | |
| 45 | + it('should produce flush packet', () => { | |
| 46 | + expect(decoder.decode(pktFlush())).toBe('0000'); | |
| 47 | + }); | |
| 48 | + | |
| 49 | + it('should produce delimiter packet', () => { | |
| 50 | + expect(decoder.decode(pktDelim())).toBe('0001'); | |
| 51 | + }); | |
| 52 | + }); | |
| 53 | + | |
| 54 | + describe('pktLineParse', () => { | |
| 55 | + it('should parse data lines', () => { | |
| 56 | + const input = pktLineEncode('hello\n'); | |
| 57 | + const { lines, remaining } = pktLineParse(input); | |
| 58 | + expect(lines).toHaveLength(1); | |
| 59 | + expect(lines[0].type).toBe('data'); | |
| 60 | + if (lines[0].type === 'data') { | |
| 61 | + expect(decoder.decode(lines[0].data)).toBe('hello\n'); | |
| 62 | + } | |
| 63 | + expect(remaining.length).toBe(0); | |
| 64 | + }); | |
| 65 | + | |
| 66 | + it('should parse flush packets', () => { | |
| 67 | + const input = pktFlush(); | |
| 68 | + const { lines } = pktLineParse(input); | |
| 69 | + expect(lines).toHaveLength(1); | |
| 70 | + expect(lines[0].type).toBe('flush'); | |
| 71 | + }); | |
| 72 | + | |
| 73 | + it('should parse multiple lines', () => { | |
| 74 | + const input = pktConcat( | |
| 75 | + pktLineEncode('line1\n'), | |
| 76 | + pktLineEncode('line2\n'), | |
| 77 | + pktFlush() | |
| 78 | + ); | |
| 79 | + const { lines } = pktLineParse(input); | |
| 80 | + expect(lines).toHaveLength(3); | |
| 81 | + expect(pktLineDataToString(lines[0])).toBe('line1'); | |
| 82 | + expect(pktLineDataToString(lines[1])).toBe('line2'); | |
| 83 | + expect(lines[2].type).toBe('flush'); | |
| 84 | + }); | |
| 85 | + | |
| 86 | + it('should handle incomplete data', () => { | |
| 87 | + const full = pktLineEncode('hello\n'); | |
| 88 | + // Give it only 6 of 10 bytes | |
| 89 | + const partial = full.slice(0, 6); | |
| 90 | + const { lines, remaining } = pktLineParse(partial); | |
| 91 | + expect(lines).toHaveLength(0); | |
| 92 | + expect(remaining.length).toBe(6); | |
| 93 | + }); | |
| 94 | + | |
| 95 | + it('should parse delimiter packets', () => { | |
| 96 | + const input = pktDelim(); | |
| 97 | + const { lines } = pktLineParse(input); | |
| 98 | + expect(lines).toHaveLength(1); | |
| 99 | + expect(lines[0].type).toBe('delim'); | |
| 100 | + }); | |
| 101 | + }); | |
| 102 | + | |
| 103 | + describe('pktLineDataToString', () => { | |
| 104 | + it('should return string for data lines', () => { | |
| 105 | + expect(pktLineDataToString({ type: 'data', data: encoder.encode('test\n') })).toBe('test'); | |
| 106 | + }); | |
| 107 | + | |
| 108 | + it('should return null for non-data lines', () => { | |
| 109 | + expect(pktLineDataToString({ type: 'flush' })).toBe(null); | |
| 110 | + }); | |
| 111 | + }); | |
| 112 | + | |
| 113 | + describe('pktConcat', () => { | |
| 114 | + it('should concatenate multiple buffers', () => { | |
| 115 | + const a = encoder.encode('abc'); | |
| 116 | + const b = encoder.encode('def'); | |
| 117 | + const result = pktConcat(a, b); | |
| 118 | + expect(decoder.decode(result)).toBe('abcdef'); | |
| 119 | + }); | |
| 120 | + }); | |
| 121 | + | |
| 122 | + describe('buildServiceAdvertisement', () => { | |
| 123 | + it('should build a valid advertisement for upload-pack', () => { | |
| 124 | + const refs = [ | |
| 125 | + { sha: 'a'.repeat(40), name: 'refs/heads/main' }, | |
| 126 | + { sha: 'b'.repeat(40), name: 'refs/heads/feature' }, | |
| 127 | + ]; | |
| 128 | + const caps = ['multi_ack', 'side-band-64k']; | |
| 129 | + const result = buildServiceAdvertisement('git-upload-pack', refs, caps); | |
| 130 | + const { lines } = pktLineParse(result); | |
| 131 | + | |
| 132 | + // First line: service announcement | |
| 133 | + expect(pktLineDataToString(lines[0])).toBe('# service=git-upload-pack'); | |
| 134 | + | |
| 135 | + // Then flush | |
| 136 | + expect(lines[1].type).toBe('flush'); | |
| 137 | + | |
| 138 | + // First ref with capabilities | |
| 139 | + const firstRef = pktLineDataToString(lines[2])!; | |
| 140 | + expect(firstRef).toContain('a'.repeat(40)); | |
| 141 | + expect(firstRef).toContain('refs/heads/main'); | |
| 142 | + expect(firstRef).toContain('\0multi_ack side-band-64k'); | |
| 143 | + | |
| 144 | + // Second ref without capabilities | |
| 145 | + const secondRef = pktLineDataToString(lines[3])!; | |
| 146 | + expect(secondRef).toContain('b'.repeat(40)); | |
| 147 | + expect(secondRef).toContain('refs/heads/feature'); | |
| 148 | + expect(secondRef).not.toContain('\0'); | |
| 149 | + | |
| 150 | + // Final flush | |
| 151 | + expect(lines[4].type).toBe('flush'); | |
| 152 | + }); | |
| 153 | + | |
| 154 | + it('should handle empty repo (no refs)', () => { | |
| 155 | + const result = buildServiceAdvertisement('git-upload-pack', [], ['multi_ack']); | |
| 156 | + const { lines } = pktLineParse(result); | |
| 157 | + | |
| 158 | + // Service line + flush + zero-id capabilities line + flush | |
| 159 | + expect(lines).toHaveLength(4); | |
| 160 | + const capsLine = pktLineDataToString(lines[2])!; | |
| 161 | + expect(capsLine).toContain('0'.repeat(40)); | |
| 162 | + expect(capsLine).toContain('capabilities^{}'); | |
| 163 | + }); | |
| 164 | + }); | |
| 165 | + | |
| 166 | + describe('pktSideBandEncode', () => { | |
| 167 | + it('should prepend channel byte', () => { | |
| 168 | + const data = encoder.encode('pack data'); | |
| 169 | + const result = pktSideBandEncode(SIDE_BAND.DATA, data); | |
| 170 | + const { lines } = pktLineParse(result); | |
| 171 | + expect(lines).toHaveLength(1); | |
| 172 | + if (lines[0].type === 'data') { | |
| 173 | + expect(lines[0].data[0]).toBe(1); // DATA channel | |
| 174 | + expect(decoder.decode(lines[0].data.slice(1))).toBe('pack data'); | |
| 175 | + } | |
| 176 | + }); | |
| 177 | + }); | |
| 178 | + | |
| 179 | + describe('round-trip encode/parse', () => { | |
| 180 | + it('should round-trip arbitrary strings', () => { | |
| 181 | + const testStrings = ['hello\n', 'git protocol\n', 'a'.repeat(1000) + '\n']; | |
| 182 | + for (const str of testStrings) { | |
| 183 | + const encoded = pktLineEncode(str); | |
| 184 | + const { lines } = pktLineParse(encoded); | |
| 185 | + expect(lines).toHaveLength(1); | |
| 186 | + expect(pktLineDataToString(lines[0])).toBe(str.replace(/\n$/, '')); | |
| 187 | + } | |
| 188 | + }); | |
| 189 | + }); | |
| 190 | +}); | |
| 191 | + | |
A packages/shared/src/git/__tests__/sha1.test.ts
| @@ -1,0 +1,68 @@ | ||
| 1 | +import { describe, it, expect } from 'vitest'; | |
| 2 | +import { sha1, sha256, hexEncode, hexDecode, gitObjectHash } from '../sha1.js'; | |
| 3 | + | |
| 4 | +const encoder = new TextEncoder(); | |
| 5 | + | |
| 6 | +describe('sha1', () => { | |
| 7 | + it('should hash empty string correctly', async () => { | |
| 8 | + const result = await sha1(new Uint8Array(0)); | |
| 9 | + expect(result).toBe('da39a3ee5e6b4b0d3255bfef95601890afd80709'); | |
| 10 | + }); | |
| 11 | + | |
| 12 | + it('should hash "hello" correctly', async () => { | |
| 13 | + const result = await sha1(encoder.encode('hello')); | |
| 14 | + expect(result).toBe('aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d'); | |
| 15 | + }); | |
| 16 | + | |
| 17 | + it('should hash "hello world" correctly', async () => { | |
| 18 | + const result = await sha1(encoder.encode('hello world')); | |
| 19 | + expect(result).toBe('2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'); | |
| 20 | + }); | |
| 21 | +}); | |
| 22 | + | |
| 23 | +describe('sha256', () => { | |
| 24 | + it('should hash empty string correctly', async () => { | |
| 25 | + const result = await sha256(new Uint8Array(0)); | |
| 26 | + expect(result).toBe('e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'); | |
| 27 | + }); | |
| 28 | + | |
| 29 | + it('should hash "hello" correctly', async () => { | |
| 30 | + const result = await sha256(encoder.encode('hello')); | |
| 31 | + expect(result).toBe('2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824'); | |
| 32 | + }); | |
| 33 | +}); | |
| 34 | + | |
| 35 | +describe('hexEncode / hexDecode', () => { | |
| 36 | + it('should round-trip bytes', () => { | |
| 37 | + const bytes = new Uint8Array([0x00, 0x0f, 0x10, 0xff, 0xab, 0xcd]); | |
| 38 | + const hex = hexEncode(bytes); | |
| 39 | + expect(hex).toBe('000f10ffabcd'); | |
| 40 | + const decoded = hexDecode(hex); | |
| 41 | + expect(decoded).toEqual(bytes); | |
| 42 | + }); | |
| 43 | + | |
| 44 | + it('should handle empty bytes', () => { | |
| 45 | + const hex = hexEncode(new Uint8Array(0)); | |
| 46 | + expect(hex).toBe(''); | |
| 47 | + expect(hexDecode(hex).length).toBe(0); | |
| 48 | + }); | |
| 49 | +}); | |
| 50 | + | |
| 51 | +describe('gitObjectHash', () => { | |
| 52 | + it('should compute correct hash for a blob', async () => { | |
| 53 | + // This is the SHA-1 of a git blob containing "hello\n" | |
| 54 | + // Verified: echo -n "hello" | git hash-object --stdin | |
| 55 | + const content = encoder.encode('hello'); | |
| 56 | + const hash = await gitObjectHash('blob', content); | |
| 57 | + // "blob 5\0hello" hashed with SHA-1 | |
| 58 | + // ce013625 is "hello\n" (with newline); "hello" without newline is: | |
| 59 | + expect(hash).toBe('b6fc4c620b67d95f953a5c1c1230aaab5db5a1b0'); | |
| 60 | + }); | |
| 61 | + | |
| 62 | + it('should compute correct hash for empty blob', async () => { | |
| 63 | + const hash = await gitObjectHash('blob', new Uint8Array(0)); | |
| 64 | + // "blob 0\0" hashed with SHA-1 | |
| 65 | + expect(hash).toBe('e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'); | |
| 66 | + }); | |
| 67 | +}); | |
| 68 | + | |
A packages/shared/src/git/delta.ts
| @@ -1,0 +1,113 @@ | ||
| 1 | +/** | |
| 2 | + * Git delta encoding/decoding for pack files. | |
| 3 | + * | |
| 4 | + * Pack files use two delta types: | |
| 5 | + * - OFS_DELTA: base referenced by negative offset in pack | |
| 6 | + * - REF_DELTA: base referenced by SHA-1 | |
| 7 | + * | |
| 8 | + * Delta format: | |
| 9 | + * - Variable-length encoded source size | |
| 10 | + * - Variable-length encoded target size | |
| 11 | + * - Series of instructions: | |
| 12 | + * - Copy (bit 7 set): copy bytes from source | |
| 13 | + * - Insert (bit 7 clear): insert literal bytes | |
| 14 | + */ | |
| 15 | + | |
| 16 | +/** Apply a delta to a base object to produce the target object. */ | |
| 17 | +export function applyDelta(base: Uint8Array, delta: Uint8Array): Uint8Array { | |
| 18 | + let offset = 0; | |
| 19 | + | |
| 20 | + // Read source size (variable-length encoding) | |
| 21 | + const { value: sourceSize, bytesRead: srcBytes } = readDeltaSize(delta, offset); | |
| 22 | + offset += srcBytes; | |
| 23 | + | |
| 24 | + // Read target size | |
| 25 | + const { value: targetSize, bytesRead: tgtBytes } = readDeltaSize(delta, offset); | |
| 26 | + offset += tgtBytes; | |
| 27 | + | |
| 28 | + if (base.length !== sourceSize) { | |
| 29 | + throw new Error(`Delta source size mismatch: expected ${sourceSize}, got ${base.length}`); | |
| 30 | + } | |
| 31 | + | |
| 32 | + const target = new Uint8Array(targetSize); | |
| 33 | + let targetOffset = 0; | |
| 34 | + | |
| 35 | + while (offset < delta.length) { | |
| 36 | + const cmd = delta[offset++]; | |
| 37 | + | |
| 38 | + if (cmd === 0) { | |
| 39 | + // Reserved, invalid | |
| 40 | + throw new Error('Invalid delta: zero instruction byte'); | |
| 41 | + } | |
| 42 | + | |
| 43 | + if (cmd & 0x80) { | |
| 44 | + // Copy instruction: copy from source | |
| 45 | + let copyOffset = 0; | |
| 46 | + let copySize = 0; | |
| 47 | + | |
| 48 | + if (cmd & 0x01) copyOffset = delta[offset++]; | |
| 49 | + if (cmd & 0x02) copyOffset |= delta[offset++] << 8; | |
| 50 | + if (cmd & 0x04) copyOffset |= delta[offset++] << 16; | |
| 51 | + if (cmd & 0x08) copyOffset |= delta[offset++] << 24; | |
| 52 | + | |
| 53 | + if (cmd & 0x10) copySize = delta[offset++]; | |
| 54 | + if (cmd & 0x20) copySize |= delta[offset++] << 8; | |
| 55 | + if (cmd & 0x40) copySize |= delta[offset++] << 16; | |
| 56 | + | |
| 57 | + if (copySize === 0) copySize = 0x10000; | |
| 58 | + | |
| 59 | + target.set(base.slice(copyOffset, copyOffset + copySize), targetOffset); | |
| 60 | + targetOffset += copySize; | |
| 61 | + } else { | |
| 62 | + // Insert instruction: insert literal bytes | |
| 63 | + const insertSize = cmd; | |
| 64 | + target.set(delta.slice(offset, offset + insertSize), targetOffset); | |
| 65 | + offset += insertSize; | |
| 66 | + targetOffset += insertSize; | |
| 67 | + } | |
| 68 | + } | |
| 69 | + | |
| 70 | + if (targetOffset !== targetSize) { | |
| 71 | + throw new Error(`Delta target size mismatch: expected ${targetSize}, produced ${targetOffset}`); | |
| 72 | + } | |
| 73 | + | |
| 74 | + return target; | |
| 75 | +} | |
| 76 | + | |
| 77 | +/** Read a variable-length size from delta header. */ | |
| 78 | +function readDeltaSize(buf: Uint8Array, offset: number): { value: number; bytesRead: number } { | |
| 79 | + let value = 0; | |
| 80 | + let shift = 0; | |
| 81 | + let bytesRead = 0; | |
| 82 | + | |
| 83 | + // eslint-disable-next-line no-constant-condition | |
| 84 | + while (true) { | |
| 85 | + const byte = buf[offset + bytesRead]; | |
| 86 | + bytesRead++; | |
| 87 | + value |= (byte & 0x7f) << shift; | |
| 88 | + shift += 7; | |
| 89 | + if (!(byte & 0x80)) break; | |
| 90 | + } | |
| 91 | + | |
| 92 | + return { value, bytesRead }; | |
| 93 | +} | |
| 94 | + | |
| 95 | +/** | |
| 96 | + * Read a variable-length negative offset used by OFS_DELTA. | |
| 97 | + * The encoding uses the high bit as a continuation flag, but each | |
| 98 | + * subsequent byte adds 1 before shifting (to avoid ambiguity). | |
| 99 | + */ | |
| 100 | +export function readOfsOffset(buf: Uint8Array, offset: number): { value: number; bytesRead: number } { | |
| 101 | + let byte = buf[offset]; | |
| 102 | + let value = byte & 0x7f; | |
| 103 | + let bytesRead = 1; | |
| 104 | + | |
| 105 | + while (byte & 0x80) { | |
| 106 | + byte = buf[offset + bytesRead]; | |
| 107 | + bytesRead++; | |
| 108 | + value = ((value + 1) << 7) | (byte & 0x7f); | |
| 109 | + } | |
| 110 | + | |
| 111 | + return { value, bytesRead }; | |
| 112 | +} | |
| 113 | + | |
A packages/shared/src/git/diff.ts
| @@ -1,0 +1,233 @@ | ||
| 1 | +/** | |
| 2 | + * Line-level diff using a simple LCS-based approach. | |
| 3 | + * Produces unified diff hunks with context. | |
| 4 | + */ | |
| 5 | + | |
| 6 | +export type DiffLineType = 'context' | 'add' | 'delete'; | |
| 7 | + | |
| 8 | +export interface DiffLine { | |
| 9 | + type: DiffLineType; | |
| 10 | + content: string; | |
| 11 | + oldLineNo: number | null; | |
| 12 | + newLineNo: number | null; | |
| 13 | +} | |
| 14 | + | |
| 15 | +export interface DiffHunk { | |
| 16 | + oldStart: number; | |
| 17 | + oldCount: number; | |
| 18 | + newStart: number; | |
| 19 | + newCount: number; | |
| 20 | + lines: DiffLine[]; | |
| 21 | +} | |
| 22 | + | |
| 23 | +/** | |
| 24 | + * Compute a unified diff between two strings. | |
| 25 | + * Returns hunks with context lines (default 3). | |
| 26 | + */ | |
| 27 | +export function computeDiff(oldText: string, newText: string, contextLines: number = 3): DiffHunk[] { | |
| 28 | + const oldLines = oldText.length > 0 ? oldText.split('\n') : []; | |
| 29 | + const newLines = newText.length > 0 ? newText.split('\n') : []; | |
| 30 | + | |
| 31 | + // Compute LCS to find matching lines | |
| 32 | + const editScript = computeEditScript(oldLines, newLines); | |
| 33 | + | |
| 34 | + // Build annotated diff lines | |
| 35 | + const allLines: DiffLine[] = []; | |
| 36 | + let oldNo = 1; | |
| 37 | + let newNo = 1; | |
| 38 | + | |
| 39 | + for (const op of editScript) { | |
| 40 | + if (op === 'equal') { | |
| 41 | + allLines.push({ | |
| 42 | + type: 'context', | |
| 43 | + content: oldLines[oldNo - 1], | |
| 44 | + oldLineNo: oldNo, | |
| 45 | + newLineNo: newNo, | |
| 46 | + }); | |
| 47 | + oldNo++; | |
| 48 | + newNo++; | |
| 49 | + } else if (op === 'delete') { | |
| 50 | + allLines.push({ | |
| 51 | + type: 'delete', | |
| 52 | + content: oldLines[oldNo - 1], | |
| 53 | + oldLineNo: oldNo, | |
| 54 | + newLineNo: null, | |
| 55 | + }); | |
| 56 | + oldNo++; | |
| 57 | + } else if (op === 'insert') { | |
| 58 | + allLines.push({ | |
| 59 | + type: 'add', | |
| 60 | + content: newLines[newNo - 1], | |
| 61 | + oldLineNo: null, | |
| 62 | + newLineNo: newNo, | |
| 63 | + }); | |
| 64 | + newNo++; | |
| 65 | + } | |
| 66 | + } | |
| 67 | + | |
| 68 | + // Group into hunks with context | |
| 69 | + return groupIntoHunks(allLines, contextLines); | |
| 70 | +} | |
| 71 | + | |
| 72 | +/** | |
| 73 | + * Compute an edit script using the LCS (Longest Common Subsequence) approach. | |
| 74 | + * Returns an array of operations: 'equal', 'delete', 'insert'. | |
| 75 | + */ | |
| 76 | +function computeEditScript(oldLines: string[], newLines: string[]): ('equal' | 'delete' | 'insert')[] { | |
| 77 | + const N = oldLines.length; | |
| 78 | + const M = newLines.length; | |
| 79 | + | |
| 80 | + // For very large files, use a simpler greedy approach | |
| 81 | + if (N + M > 10000) { | |
| 82 | + return greedyDiff(oldLines, newLines); | |
| 83 | + } | |
| 84 | + | |
| 85 | + // Standard LCS DP | |
| 86 | + // dp[i][j] = length of LCS of oldLines[0..i-1] and newLines[0..j-1] | |
| 87 | + const dp: number[][] = []; | |
| 88 | + for (let i = 0; i <= N; i++) { | |
| 89 | + dp[i] = new Array(M + 1).fill(0); | |
| 90 | + } | |
| 91 | + | |
| 92 | + for (let i = 1; i <= N; i++) { | |
| 93 | + for (let j = 1; j <= M; j++) { | |
| 94 | + if (oldLines[i - 1] === newLines[j - 1]) { | |
| 95 | + dp[i][j] = dp[i - 1][j - 1] + 1; | |
| 96 | + } else { | |
| 97 | + dp[i][j] = Math.max(dp[i - 1][j], dp[i][j - 1]); | |
| 98 | + } | |
| 99 | + } | |
| 100 | + } | |
| 101 | + | |
| 102 | + // Backtrack to build edit script | |
| 103 | + const script: ('equal' | 'delete' | 'insert')[] = []; | |
| 104 | + let i = N; | |
| 105 | + let j = M; | |
| 106 | + | |
| 107 | + while (i > 0 || j > 0) { | |
| 108 | + if (i > 0 && j > 0 && oldLines[i - 1] === newLines[j - 1]) { | |
| 109 | + script.unshift('equal'); | |
| 110 | + i--; | |
| 111 | + j--; | |
| 112 | + } else if (j > 0 && (i === 0 || dp[i][j - 1] >= dp[i - 1][j])) { | |
| 113 | + script.unshift('insert'); | |
| 114 | + j--; | |
| 115 | + } else { | |
| 116 | + script.unshift('delete'); | |
| 117 | + i--; | |
| 118 | + } | |
| 119 | + } | |
| 120 | + | |
| 121 | + return script; | |
| 122 | +} | |
| 123 | + | |
| 124 | +/** | |
| 125 | + * Simple greedy diff for very large files. | |
| 126 | + * Not optimal but avoids O(N*M) memory. | |
| 127 | + */ | |
| 128 | +function greedyDiff(oldLines: string[], newLines: string[]): ('equal' | 'delete' | 'insert')[] { | |
| 129 | + const script: ('equal' | 'delete' | 'insert')[] = []; | |
| 130 | + let i = 0; | |
| 131 | + let j = 0; | |
| 132 | + | |
| 133 | + while (i < oldLines.length && j < newLines.length) { | |
| 134 | + if (oldLines[i] === newLines[j]) { | |
| 135 | + script.push('equal'); | |
| 136 | + i++; | |
| 137 | + j++; | |
| 138 | + } else { | |
| 139 | + // Look ahead to find a match | |
| 140 | + let foundOld = -1; | |
| 141 | + let foundNew = -1; | |
| 142 | + const lookAhead = Math.min(10, Math.max(oldLines.length - i, newLines.length - j)); | |
| 143 | + | |
| 144 | + for (let k = 1; k <= lookAhead; k++) { | |
| 145 | + if (j + k < newLines.length && oldLines[i] === newLines[j + k] && foundNew === -1) { | |
| 146 | + foundNew = k; | |
| 147 | + } | |
| 148 | + if (i + k < oldLines.length && oldLines[i + k] === newLines[j] && foundOld === -1) { | |
| 149 | + foundOld = k; | |
| 150 | + } | |
| 151 | + } | |
| 152 | + | |
| 153 | + if (foundNew !== -1 && (foundOld === -1 || foundNew <= foundOld)) { | |
| 154 | + for (let k = 0; k < foundNew; k++) { | |
| 155 | + script.push('insert'); | |
| 156 | + j++; | |
| 157 | + } | |
| 158 | + } else if (foundOld !== -1) { | |
| 159 | + for (let k = 0; k < foundOld; k++) { | |
| 160 | + script.push('delete'); | |
| 161 | + i++; | |
| 162 | + } | |
| 163 | + } else { | |
| 164 | + script.push('delete'); | |
| 165 | + script.push('insert'); | |
| 166 | + i++; | |
| 167 | + j++; | |
| 168 | + } | |
| 169 | + } | |
| 170 | + } | |
| 171 | + | |
| 172 | + while (i < oldLines.length) { | |
| 173 | + script.push('delete'); | |
| 174 | + i++; | |
| 175 | + } | |
| 176 | + while (j < newLines.length) { | |
| 177 | + script.push('insert'); | |
| 178 | + j++; | |
| 179 | + } | |
| 180 | + | |
| 181 | + return script; | |
| 182 | +} | |
| 183 | + | |
| 184 | +/** | |
| 185 | + * Group diff lines into hunks with surrounding context. | |
| 186 | + */ | |
| 187 | +function groupIntoHunks(allLines: DiffLine[], contextLines: number): DiffHunk[] { | |
| 188 | + // Find indices of changed lines | |
| 189 | + const changeIndices: number[] = []; | |
| 190 | + for (let i = 0; i < allLines.length; i++) { | |
| 191 | + if (allLines[i].type !== 'context') { | |
| 192 | + changeIndices.push(i); | |
| 193 | + } | |
| 194 | + } | |
| 195 | + | |
| 196 | + if (changeIndices.length === 0) return []; | |
| 197 | + | |
| 198 | + // Group changes that are close together (within 2*context lines) | |
| 199 | + const groups: number[][] = []; | |
| 200 | + let currentGroup: number[] = [changeIndices[0]]; | |
| 201 | + | |
| 202 | + for (let i = 1; i < changeIndices.length; i++) { | |
| 203 | + if (changeIndices[i] - changeIndices[i - 1] <= contextLines * 2 + 1) { | |
| 204 | + currentGroup.push(changeIndices[i]); | |
| 205 | + } else { | |
| 206 | + groups.push(currentGroup); | |
| 207 | + currentGroup = [changeIndices[i]]; | |
| 208 | + } | |
| 209 | + } | |
| 210 | + groups.push(currentGroup); | |
| 211 | + | |
| 212 | + // Build hunks from groups | |
| 213 | + const hunks: DiffHunk[] = []; | |
| 214 | + for (const group of groups) { | |
| 215 | + const firstChange = group[0]; | |
| 216 | + const lastChange = group[group.length - 1]; | |
| 217 | + | |
| 218 | + const start = Math.max(0, firstChange - contextLines); | |
| 219 | + const end = Math.min(allLines.length, lastChange + contextLines + 1); | |
| 220 | + | |
| 221 | + const hunkLines = allLines.slice(start, end); | |
| 222 | + | |
| 223 | + const oldStart = hunkLines.find((l) => l.oldLineNo !== null)?.oldLineNo ?? 1; | |
| 224 | + const newStart = hunkLines.find((l) => l.newLineNo !== null)?.newLineNo ?? 1; | |
| 225 | + const oldCount = hunkLines.filter((l) => l.type !== 'add').length; | |
| 226 | + const newCount = hunkLines.filter((l) => l.type !== 'delete').length; | |
| 227 | + | |
| 228 | + hunks.push({ oldStart, oldCount, newStart, newCount, lines: hunkLines }); | |
| 229 | + } | |
| 230 | + | |
| 231 | + return hunks; | |
| 232 | +} | |
| 233 | + | |
A packages/shared/src/git/object.ts
| @@ -1,0 +1,198 @@ | ||
| 1 | +/** | |
| 2 | + * Git object types and serialization. | |
| 3 | + * | |
| 4 | + * Git has four object types: blob, tree, commit, tag. | |
| 5 | + * Each is stored as: "{type} {size}\0{content}" then zlib-compressed. | |
| 6 | + */ | |
| 7 | + | |
| 8 | +const encoder = new TextEncoder(); | |
| 9 | +const decoder = new TextDecoder(); | |
| 10 | + | |
| 11 | +export type GitObjectType = 'blob' | 'tree' | 'commit' | 'tag'; | |
| 12 | + | |
| 13 | +/** Numeric type IDs used in pack files. */ | |
| 14 | +export const PACK_OBJECT_TYPE = { | |
| 15 | + COMMIT: 1, | |
| 16 | + TREE: 2, | |
| 17 | + BLOB: 3, | |
| 18 | + TAG: 4, | |
| 19 | + OFS_DELTA: 6, | |
| 20 | + REF_DELTA: 7, | |
| 21 | +} as const; | |
| 22 | + | |
| 23 | +export type PackObjectTypeNum = (typeof PACK_OBJECT_TYPE)[keyof typeof PACK_OBJECT_TYPE]; | |
| 24 | + | |
| 25 | +export function packTypeToString(type: number): GitObjectType { | |
| 26 | + switch (type) { | |
| 27 | + case PACK_OBJECT_TYPE.COMMIT: return 'commit'; | |
| 28 | + case PACK_OBJECT_TYPE.TREE: return 'tree'; | |
| 29 | + case PACK_OBJECT_TYPE.BLOB: return 'blob'; | |
| 30 | + case PACK_OBJECT_TYPE.TAG: return 'tag'; | |
| 31 | + default: throw new Error(`Unknown pack object type: ${type}`); | |
| 32 | + } | |
| 33 | +} | |
| 34 | + | |
| 35 | +export function stringToPackType(type: GitObjectType): number { | |
| 36 | + switch (type) { | |
| 37 | + case 'commit': return PACK_OBJECT_TYPE.COMMIT; | |
| 38 | + case 'tree': return PACK_OBJECT_TYPE.TREE; | |
| 39 | + case 'blob': return PACK_OBJECT_TYPE.BLOB; | |
| 40 | + case 'tag': return PACK_OBJECT_TYPE.TAG; | |
| 41 | + } | |
| 42 | +} | |
| 43 | + | |
| 44 | +/** A parsed git object with its type, content, and computed SHA. */ | |
| 45 | +export interface GitObject { | |
| 46 | + type: GitObjectType; | |
| 47 | + content: Uint8Array; | |
| 48 | + sha: string; | |
| 49 | +} | |
| 50 | + | |
| 51 | +/** Serialize a git object into its storable form (header + content, before compression). */ | |
| 52 | +export function serializeGitObject(type: GitObjectType, content: Uint8Array): Uint8Array { | |
| 53 | + const header = encoder.encode(`${type} ${content.length}\0`); | |
| 54 | + const result = new Uint8Array(header.length + content.length); | |
| 55 | + result.set(header, 0); | |
| 56 | + result.set(content, header.length); | |
| 57 | + return result; | |
| 58 | +} | |
| 59 | + | |
| 60 | +/** | |
| 61 | + * Parse a raw git object (after decompression). | |
| 62 | + * Format: "{type} {size}\0{content}" | |
| 63 | + */ | |
| 64 | +export function parseRawGitObject(raw: Uint8Array): { type: GitObjectType; content: Uint8Array } { | |
| 65 | + // Find the NUL byte separating header from content | |
| 66 | + const nulIdx = raw.indexOf(0); | |
| 67 | + if (nulIdx === -1) throw new Error('Invalid git object: no NUL separator'); | |
| 68 | + | |
| 69 | + const headerStr = decoder.decode(raw.slice(0, nulIdx)); | |
| 70 | + const spaceIdx = headerStr.indexOf(' '); | |
| 71 | + if (spaceIdx === -1) throw new Error('Invalid git object header'); | |
| 72 | + | |
| 73 | + const type = headerStr.slice(0, spaceIdx) as GitObjectType; | |
| 74 | + const size = parseInt(headerStr.slice(spaceIdx + 1), 10); | |
| 75 | + const content = raw.slice(nulIdx + 1); | |
| 76 | + | |
| 77 | + if (content.length !== size) { | |
| 78 | + throw new Error(`Git object size mismatch: header says ${size}, got ${content.length}`); | |
| 79 | + } | |
| 80 | + | |
| 81 | + return { type, content }; | |
| 82 | +} | |
| 83 | + | |
| 84 | +// --- Tree parsing --- | |
| 85 | + | |
| 86 | +export interface TreeEntry { | |
| 87 | + mode: string; // e.g., "100644", "040000", "120000" | |
| 88 | + name: string; | |
| 89 | + sha: string; // 40-char hex | |
| 90 | +} | |
| 91 | + | |
| 92 | +/** | |
| 93 | + * Parse a tree object's content into entries. | |
| 94 | + * Tree format: repeated "{mode} {name}\0{20-byte-sha}" | |
| 95 | + */ | |
| 96 | +export function parseTree(content: Uint8Array): TreeEntry[] { | |
| 97 | + const entries: TreeEntry[] = []; | |
| 98 | + let offset = 0; | |
| 99 | + | |
| 100 | + while (offset < content.length) { | |
| 101 | + // Find space separating mode from name | |
| 102 | + const spaceIdx = content.indexOf(0x20, offset); // space | |
| 103 | + if (spaceIdx === -1) break; | |
| 104 | + const mode = decoder.decode(content.slice(offset, spaceIdx)); | |
| 105 | + | |
| 106 | + // Find NUL separating name from SHA | |
| 107 | + const nulIdx = content.indexOf(0, spaceIdx + 1); | |
| 108 | + if (nulIdx === -1) break; | |
| 109 | + const name = decoder.decode(content.slice(spaceIdx + 1, nulIdx)); | |
| 110 | + | |
| 111 | + // Next 20 bytes are the binary SHA-1 | |
| 112 | + const shaBytes = content.slice(nulIdx + 1, nulIdx + 21); | |
| 113 | + let sha = ''; | |
| 114 | + for (let i = 0; i < 20; i++) { | |
| 115 | + sha += shaBytes[i].toString(16).padStart(2, '0'); | |
| 116 | + } | |
| 117 | + | |
| 118 | + entries.push({ mode, name, sha }); | |
| 119 | + offset = nulIdx + 21; | |
| 120 | + } | |
| 121 | + | |
| 122 | + return entries; | |
| 123 | +} | |
| 124 | + | |
| 125 | +/** Serialize tree entries into tree object content. */ | |
| 126 | +export function serializeTree(entries: TreeEntry[]): Uint8Array { | |
| 127 | + const parts: Uint8Array[] = []; | |
| 128 | + | |
| 129 | + for (const entry of entries) { | |
| 130 | + const modeAndName = encoder.encode(`${entry.mode} ${entry.name}\0`); | |
| 131 | + const shaBytes = new Uint8Array(20); | |
| 132 | + for (let i = 0; i < 20; i++) { | |
| 133 | + shaBytes[i] = parseInt(entry.sha.substring(i * 2, i * 2 + 2), 16); | |
| 134 | + } | |
| 135 | + const entryBuf = new Uint8Array(modeAndName.length + 20); | |
| 136 | + entryBuf.set(modeAndName, 0); | |
| 137 | + entryBuf.set(shaBytes, modeAndName.length); | |
| 138 | + parts.push(entryBuf); | |
| 139 | + } | |
| 140 | + | |
| 141 | + const totalLen = parts.reduce((sum, p) => sum + p.length, 0); | |
| 142 | + const result = new Uint8Array(totalLen); | |
| 143 | + let offset = 0; | |
| 144 | + for (const part of parts) { | |
| 145 | + result.set(part, offset); | |
| 146 | + offset += part.length; | |
| 147 | + } | |
| 148 | + return result; | |
| 149 | +} | |
| 150 | + | |
| 151 | +// --- Commit parsing --- | |
| 152 | + | |
| 153 | +export interface ParsedCommit { | |
| 154 | + tree: string; | |
| 155 | + parents: string[]; | |
| 156 | + author: string; | |
| 157 | + committer: string; | |
| 158 | + message: string; | |
| 159 | +} | |
| 160 | + | |
| 161 | +/** Parse a commit object's content. */ | |
| 162 | +export function parseCommit(content: Uint8Array): ParsedCommit { | |
| 163 | + const text = decoder.decode(content); | |
| 164 | + const lines = text.split('\n'); | |
| 165 | + const result: ParsedCommit = { | |
| 166 | + tree: '', | |
| 167 | + parents: [], | |
| 168 | + author: '', | |
| 169 | + committer: '', | |
| 170 | + message: '', | |
| 171 | + }; | |
| 172 | + | |
| 173 | + let i = 0; | |
| 174 | + // Parse header lines | |
| 175 | + for (; i < lines.length; i++) { | |
| 176 | + const line = lines[i]; | |
| 177 | + if (line === '') { | |
| 178 | + // Empty line separates headers from message | |
| 179 | + i++; | |
| 180 | + break; | |
| 181 | + } | |
| 182 | + if (line.startsWith('tree ')) { | |
| 183 | + result.tree = line.slice(5); | |
| 184 | + } else if (line.startsWith('parent ')) { | |
| 185 | + result.parents.push(line.slice(7)); | |
| 186 | + } else if (line.startsWith('author ')) { | |
| 187 | + result.author = line.slice(7); | |
| 188 | + } else if (line.startsWith('committer ')) { | |
| 189 | + result.committer = line.slice(10); | |
| 190 | + } | |
| 191 | + } | |
| 192 | + | |
| 193 | + // Remaining lines are the commit message | |
| 194 | + result.message = lines.slice(i).join('\n'); | |
| 195 | + | |
| 196 | + return result; | |
| 197 | +} | |
| 198 | + | |
A packages/shared/src/git/pack-generate.ts
| @@ -1,0 +1,100 @@ | ||
| 1 | +/** | |
| 2 | + * Git pack file generator. | |
| 3 | + * | |
| 4 | + * Generates a pack file (v2) from a set of git objects. | |
| 5 | + * Used by git-upload-pack to serve clones and fetches. | |
| 6 | + * | |
| 7 | + * Pack format: | |
| 8 | + * - Header: "PACK" + version 2 (4 bytes) + object count (4 bytes) | |
| 9 | + * - Objects: repeated { type+size header + zlib-compressed content } | |
| 10 | + * - Trailer: 20-byte SHA-1 of the entire pack | |
| 11 | + */ | |
| 12 | + | |
| 13 | +import { type GitObjectType, stringToPackType } from './object.js'; | |
| 14 | +import { deflate } from './zlib.js'; | |
| 15 | +import { sha1, hexDecode } from './sha1.js'; | |
| 16 | + | |
| 17 | +const encoder = new TextEncoder(); | |
| 18 | + | |
| 19 | +export interface PackInput { | |
| 20 | + type: GitObjectType; | |
| 21 | + content: Uint8Array; | |
| 22 | +} | |
| 23 | + | |
| 24 | +/** Write a 4-byte big-endian unsigned integer. */ | |
| 25 | +function writeUint32BE(value: number): Uint8Array { | |
| 26 | + const buf = new Uint8Array(4); | |
| 27 | + buf[0] = (value >>> 24) & 0xff; | |
| 28 | + buf[1] = (value >>> 16) & 0xff; | |
| 29 | + buf[2] = (value >>> 8) & 0xff; | |
| 30 | + buf[3] = value & 0xff; | |
| 31 | + return buf; | |
| 32 | +} | |
| 33 | + | |
| 34 | +/** | |
| 35 | + * Encode a pack object header (type + size) in variable-length format. | |
| 36 | + * First byte: bits 6-4 = type, bits 3-0 = size (low 4 bits). | |
| 37 | + * Subsequent bytes: 7 bits of size each, high bit = continuation. | |
| 38 | + */ | |
| 39 | +function encodePackObjectHeader(type: number, size: number): Uint8Array { | |
| 40 | + const bytes: number[] = []; | |
| 41 | + let byte = (type << 4) | (size & 0x0f); | |
| 42 | + size >>= 4; | |
| 43 | + | |
| 44 | + if (size > 0) { | |
| 45 | + byte |= 0x80; | |
| 46 | + } | |
| 47 | + bytes.push(byte); | |
| 48 | + | |
| 49 | + while (size > 0) { | |
| 50 | + byte = size & 0x7f; | |
| 51 | + size >>= 7; | |
| 52 | + if (size > 0) byte |= 0x80; | |
| 53 | + bytes.push(byte); | |
| 54 | + } | |
| 55 | + | |
| 56 | + return new Uint8Array(bytes); | |
| 57 | +} | |
| 58 | + | |
| 59 | +/** | |
| 60 | + * Generate a pack file from a list of git objects. | |
| 61 | + * Returns the complete pack file as a Uint8Array. | |
| 62 | + */ | |
| 63 | +export async function generatePack(objects: PackInput[]): Promise<Uint8Array> { | |
| 64 | + const parts: Uint8Array[] = []; | |
| 65 | + | |
| 66 | + // Header | |
| 67 | + parts.push(encoder.encode('PACK')); | |
| 68 | + parts.push(writeUint32BE(2)); // version 2 | |
| 69 | + parts.push(writeUint32BE(objects.length)); | |
| 70 | + | |
| 71 | + // Objects | |
| 72 | + for (const obj of objects) { | |
| 73 | + const typeNum = stringToPackType(obj.type); | |
| 74 | + const header = encodePackObjectHeader(typeNum, obj.content.length); | |
| 75 | + const compressed = await deflate(obj.content); | |
| 76 | + parts.push(header); | |
| 77 | + parts.push(compressed); | |
| 78 | + } | |
| 79 | + | |
| 80 | + // Compute total size for concatenation (without trailer) | |
| 81 | + const totalLen = parts.reduce((sum, p) => sum + p.length, 0); | |
| 82 | + const pack = new Uint8Array(totalLen); | |
| 83 | + let offset = 0; | |
| 84 | + for (const part of parts) { | |
| 85 | + pack.set(part, offset); | |
| 86 | + offset += part.length; | |
| 87 | + } | |
| 88 | + | |
| 89 | + // Trailer: SHA-1 of everything so far | |
| 90 | + const checksum = await sha1(pack); | |
| 91 | + const checksumBytes = hexDecode(checksum); | |
| 92 | + | |
| 93 | + // Final pack = data + 20-byte checksum | |
| 94 | + const result = new Uint8Array(pack.length + 20); | |
| 95 | + result.set(pack, 0); | |
| 96 | + result.set(checksumBytes, pack.length); | |
| 97 | + | |
| 98 | + return result; | |
| 99 | +} | |
| 100 | + | |
A packages/shared/src/git/pack-parse.ts
| @@ -1,0 +1,182 @@ | ||
| 1 | +/** | |
| 2 | + * Git pack file parser. | |
| 3 | + * | |
| 4 | + * Pack format (v2): | |
| 5 | + * - Header: "PACK" + version (4 bytes) + object count (4 bytes) | |
| 6 | + * - Objects: repeated { type+size (variable-length) + compressed data } | |
| 7 | + * - Trailer: 20-byte SHA-1 checksum of the entire pack | |
| 8 | + * | |
| 9 | + * Used by git-receive-pack to parse incoming pushes. | |
| 10 | + */ | |
| 11 | + | |
| 12 | +import { PACK_OBJECT_TYPE, packTypeToString, type GitObjectType } from './object.js'; | |
| 13 | +import { inflateFromBuffer } from './zlib.js'; | |
| 14 | +import { gitObjectHash } from './sha1.js'; | |
| 15 | +import { applyDelta, readOfsOffset } from './delta.js'; | |
| 16 | + | |
| 17 | +const decoder = new TextDecoder(); | |
| 18 | + | |
| 19 | +/** A parsed object from a pack file. */ | |
| 20 | +export interface PackObject { | |
| 21 | + type: GitObjectType; | |
| 22 | + content: Uint8Array; | |
| 23 | + sha: string; | |
| 24 | +} | |
| 25 | + | |
| 26 | +/** Read a 4-byte big-endian unsigned integer. */ | |
| 27 | +function readUint32BE(buf: Uint8Array, offset: number): number { | |
| 28 | + return ( | |
| 29 | + (buf[offset] << 24) | | |
| 30 | + (buf[offset + 1] << 16) | | |
| 31 | + (buf[offset + 2] << 8) | | |
| 32 | + buf[offset + 3] | |
| 33 | + ) >>> 0; | |
| 34 | +} | |
| 35 | + | |
| 36 | +/** | |
| 37 | + * Read the variable-length object header from a pack entry. | |
| 38 | + * Encoding: first byte has type in bits 6-4, size in bits 3-0. | |
| 39 | + * Subsequent bytes contribute 7 bits each to the size. | |
| 40 | + */ | |
| 41 | +function readPackObjectHeader( | |
| 42 | + buf: Uint8Array, | |
| 43 | + offset: number | |
| 44 | +): { type: number; size: number; bytesRead: number } { | |
| 45 | + let byte = buf[offset]; | |
| 46 | + const type = (byte >> 4) & 0x07; | |
| 47 | + let size = byte & 0x0f; | |
| 48 | + let shift = 4; | |
| 49 | + let bytesRead = 1; | |
| 50 | + | |
| 51 | + while (byte & 0x80) { | |
| 52 | + byte = buf[offset + bytesRead]; | |
| 53 | + bytesRead++; | |
| 54 | + size |= (byte & 0x7f) << shift; | |
| 55 | + shift += 7; | |
| 56 | + } | |
| 57 | + | |
| 58 | + return { type, size, bytesRead }; | |
| 59 | +} | |
| 60 | + | |
| 61 | +/** | |
| 62 | + * Parse a complete pack file buffer into individual git objects. | |
| 63 | + * | |
| 64 | + * Delta objects (OFS_DELTA, REF_DELTA) are resolved against their base | |
| 65 | + * objects. OFS_DELTA bases must appear earlier in the pack. REF_DELTA | |
| 66 | + * bases must be provided via the `existingObjects` callback for objects | |
| 67 | + * not in the current pack. | |
| 68 | + */ | |
| 69 | +export async function parsePack( | |
| 70 | + packData: Uint8Array, | |
| 71 | + existingObjects?: (sha: string) => Promise<{ type: GitObjectType; content: Uint8Array } | null> | |
| 72 | +): Promise<PackObject[]> { | |
| 73 | + // Validate header | |
| 74 | + const sig = decoder.decode(packData.slice(0, 4)); | |
| 75 | + if (sig !== 'PACK') { | |
| 76 | + throw new Error(`Invalid pack signature: ${sig}`); | |
| 77 | + } | |
| 78 | + | |
| 79 | + const version = readUint32BE(packData, 4); | |
| 80 | + if (version !== 2 && version !== 3) { | |
| 81 | + throw new Error(`Unsupported pack version: ${version}`); | |
| 82 | + } | |
| 83 | + | |
| 84 | + const objectCount = readUint32BE(packData, 8); | |
| 85 | + let offset = 12; // Past header | |
| 86 | + | |
| 87 | + // Store parsed objects with their pack offsets for OFS_DELTA resolution | |
| 88 | + const objects: PackObject[] = []; | |
| 89 | + const objectsByOffset = new Map<number, PackObject>(); | |
| 90 | + const objectsBySha = new Map<string, PackObject>(); | |
| 91 | + | |
| 92 | + for (let i = 0; i < objectCount; i++) { | |
| 93 | + const entryOffset = offset; | |
| 94 | + const header = readPackObjectHeader(packData, offset); | |
| 95 | + offset += header.bytesRead; | |
| 96 | + | |
| 97 | + if ( | |
| 98 | + header.type === PACK_OBJECT_TYPE.COMMIT || | |
| 99 | + header.type === PACK_OBJECT_TYPE.TREE || | |
| 100 | + header.type === PACK_OBJECT_TYPE.BLOB || | |
| 101 | + header.type === PACK_OBJECT_TYPE.TAG | |
| 102 | + ) { | |
| 103 | + // Regular object: decompress the data | |
| 104 | + const { result, bytesConsumed } = await inflateFromBuffer(packData, offset, header.size); | |
| 105 | + offset += bytesConsumed; | |
| 106 | + | |
| 107 | + const type = packTypeToString(header.type); | |
| 108 | + const sha = await gitObjectHash(type, result); | |
| 109 | + | |
| 110 | + const obj: PackObject = { type, content: result, sha }; | |
| 111 | + objects.push(obj); | |
| 112 | + objectsByOffset.set(entryOffset, obj); | |
| 113 | + objectsBySha.set(sha, obj); | |
| 114 | + | |
| 115 | + } else if (header.type === PACK_OBJECT_TYPE.OFS_DELTA) { | |
| 116 | + // OFS_DELTA: base is at a negative offset in this pack | |
| 117 | + const { value: negOffset, bytesRead: ofsBytes } = readOfsOffset(packData, offset); | |
| 118 | + offset += ofsBytes; | |
| 119 | + | |
| 120 | + const { result: deltaData, bytesConsumed } = await inflateFromBuffer(packData, offset, header.size); | |
| 121 | + offset += bytesConsumed; | |
| 122 | + | |
| 123 | + const baseOffset = entryOffset - negOffset; | |
| 124 | + const baseObj = objectsByOffset.get(baseOffset); | |
| 125 | + if (!baseObj) { | |
| 126 | + throw new Error(`OFS_DELTA base not found at offset ${baseOffset}`); | |
| 127 | + } | |
| 128 | + | |
| 129 | + const content = applyDelta(baseObj.content, deltaData); | |
| 130 | + const sha = await gitObjectHash(baseObj.type, content); | |
| 131 | + | |
| 132 | + const obj: PackObject = { type: baseObj.type, content, sha }; | |
| 133 | + objects.push(obj); | |
| 134 | + objectsByOffset.set(entryOffset, obj); | |
| 135 | + objectsBySha.set(sha, obj); | |
| 136 | + | |
| 137 | + } else if (header.type === PACK_OBJECT_TYPE.REF_DELTA) { | |
| 138 | + // REF_DELTA: base is referenced by SHA-1 (20 bytes) | |
| 139 | + const baseShaBytes = packData.slice(offset, offset + 20); | |
| 140 | + offset += 20; | |
| 141 | + | |
| 142 | + let baseSha = ''; | |
| 143 | + for (let j = 0; j < 20; j++) { | |
| 144 | + baseSha += baseShaBytes[j].toString(16).padStart(2, '0'); | |
| 145 | + } | |
| 146 | + | |
| 147 | + const { result: deltaData, bytesConsumed } = await inflateFromBuffer(packData, offset, header.size); | |
| 148 | + offset += bytesConsumed; | |
| 149 | + | |
| 150 | + // Look for base in already-parsed objects | |
| 151 | + let baseObj = objectsBySha.get(baseSha); | |
| 152 | + | |
| 153 | + // If not found in pack, try external lookup | |
| 154 | + if (!baseObj && existingObjects) { | |
| 155 | + const external = await existingObjects(baseSha); | |
| 156 | + if (external) { | |
| 157 | + const sha = await gitObjectHash(external.type, external.content); | |
| 158 | + baseObj = { type: external.type, content: external.content, sha }; | |
| 159 | + } | |
| 160 | + } | |
| 161 | + | |
| 162 | + if (!baseObj) { | |
| 163 | + throw new Error(`REF_DELTA base not found: ${baseSha}`); | |
| 164 | + } | |
| 165 | + | |
| 166 | + const content = applyDelta(baseObj.content, deltaData); | |
| 167 | + const sha = await gitObjectHash(baseObj.type, content); | |
| 168 | + | |
| 169 | + const obj: PackObject = { type: baseObj.type, content, sha }; | |
| 170 | + objects.push(obj); | |
| 171 | + objectsByOffset.set(entryOffset, obj); | |
| 172 | + objectsBySha.set(sha, obj); | |
| 173 | + | |
| 174 | + } else { | |
| 175 | + throw new Error(`Unknown pack object type: ${header.type}`); | |
| 176 | + } | |
| 177 | + } | |
| 178 | + | |
| 179 | + return objects; | |
| 180 | +} | |
| 181 | + | |
| 182 | + | |
A packages/shared/src/git/pkt-line.ts
| @@ -1,0 +1,175 @@ | ||
| 1 | +/** | |
| 2 | + * Git pkt-line format encoding/decoding. | |
| 3 | + * See: https://git-scm.com/docs/protocol-common#_pkt_line_format | |
| 4 | + * | |
| 5 | + * Each pkt-line is: 4-hex-digit length prefix + payload. | |
| 6 | + * Length includes the 4 prefix bytes. Special lines: | |
| 7 | + * "0000" = flush packet | |
| 8 | + * "0001" = delimiter packet | |
| 9 | + * "0002" = response-end packet | |
| 10 | + */ | |
| 11 | + | |
| 12 | +const FLUSH_PKT = '0000'; | |
| 13 | +const DELIM_PKT = '0001'; | |
| 14 | +const RESPONSE_END_PKT = '0002'; | |
| 15 | + | |
| 16 | +const encoder = new TextEncoder(); | |
| 17 | +const decoder = new TextDecoder(); | |
| 18 | + | |
| 19 | +/** Encode a string as a pkt-line (includes trailing newline if not present). */ | |
| 20 | +export function pktLineEncode(data: string): Uint8Array { | |
| 21 | + const payload = encoder.encode(data); | |
| 22 | + const len = payload.length + 4; | |
| 23 | + const hex = len.toString(16).padStart(4, '0'); | |
| 24 | + const result = new Uint8Array(len); | |
| 25 | + result.set(encoder.encode(hex), 0); | |
| 26 | + result.set(payload, 4); | |
| 27 | + return result; | |
| 28 | +} | |
| 29 | + | |
| 30 | +/** Encode raw bytes as a pkt-line. */ | |
| 31 | +export function pktLineEncodeBytes(data: Uint8Array): Uint8Array { | |
| 32 | + const len = data.length + 4; | |
| 33 | + const hex = len.toString(16).padStart(4, '0'); | |
| 34 | + const result = new Uint8Array(len); | |
| 35 | + result.set(encoder.encode(hex), 0); | |
| 36 | + result.set(data, 4); | |
| 37 | + return result; | |
| 38 | +} | |
| 39 | + | |
| 40 | +/** Return a flush packet ("0000"). */ | |
| 41 | +export function pktFlush(): Uint8Array { | |
| 42 | + return encoder.encode(FLUSH_PKT); | |
| 43 | +} | |
| 44 | + | |
| 45 | +/** Return a delimiter packet ("0001"). */ | |
| 46 | +export function pktDelim(): Uint8Array { | |
| 47 | + return encoder.encode(DELIM_PKT); | |
| 48 | +} | |
| 49 | + | |
| 50 | +/** Concatenate multiple pkt-line segments into a single Uint8Array. */ | |
| 51 | +export function pktConcat(...parts: Uint8Array[]): Uint8Array { | |
| 52 | + const totalLen = parts.reduce((sum, p) => sum + p.length, 0); | |
| 53 | + const result = new Uint8Array(totalLen); | |
| 54 | + let offset = 0; | |
| 55 | + for (const part of parts) { | |
| 56 | + result.set(part, offset); | |
| 57 | + offset += part.length; | |
| 58 | + } | |
| 59 | + return result; | |
| 60 | +} | |
| 61 | + | |
| 62 | +/** Parsed pkt-line: either a data line, flush, delimiter, or response-end. */ | |
| 63 | +export type PktLine = | |
| 64 | + | { type: 'data'; data: Uint8Array } | |
| 65 | + | { type: 'flush' } | |
| 66 | + | { type: 'delim' } | |
| 67 | + | { type: 'response-end' }; | |
| 68 | + | |
| 69 | +/** | |
| 70 | + * Parse all pkt-lines from a buffer. | |
| 71 | + * Returns the parsed lines and any remaining bytes that weren't a complete line. | |
| 72 | + */ | |
| 73 | +export function pktLineParse(buf: Uint8Array): { lines: PktLine[]; remaining: Uint8Array } { | |
| 74 | + const lines: PktLine[] = []; | |
| 75 | + let offset = 0; | |
| 76 | + | |
| 77 | + while (offset + 4 <= buf.length) { | |
| 78 | + const hexStr = decoder.decode(buf.slice(offset, offset + 4)); | |
| 79 | + const len = parseInt(hexStr, 16); | |
| 80 | + | |
| 81 | + if (isNaN(len)) { | |
| 82 | + break; | |
| 83 | + } | |
| 84 | + | |
| 85 | + if (len === 0) { | |
| 86 | + lines.push({ type: 'flush' }); | |
| 87 | + offset += 4; | |
| 88 | + continue; | |
| 89 | + } | |
| 90 | + | |
| 91 | + if (len === 1) { | |
| 92 | + lines.push({ type: 'delim' }); | |
| 93 | + offset += 4; | |
| 94 | + continue; | |
| 95 | + } | |
| 96 | + | |
| 97 | + if (len === 2) { | |
| 98 | + lines.push({ type: 'response-end' }); | |
| 99 | + offset += 4; | |
| 100 | + continue; | |
| 101 | + } | |
| 102 | + | |
| 103 | + if (offset + len > buf.length) { | |
| 104 | + // Incomplete packet | |
| 105 | + break; | |
| 106 | + } | |
| 107 | + | |
| 108 | + const data = buf.slice(offset + 4, offset + len); | |
| 109 | + lines.push({ type: 'data', data }); | |
| 110 | + offset += len; | |
| 111 | + } | |
| 112 | + | |
| 113 | + return { lines, remaining: buf.slice(offset) }; | |
| 114 | +} | |
| 115 | + | |
| 116 | +/** Parse a pkt-line data payload as a UTF-8 string, trimming trailing newline. */ | |
| 117 | +export function pktLineDataToString(line: PktLine): string | null { | |
| 118 | + if (line.type !== 'data') return null; | |
| 119 | + let str = decoder.decode(line.data); | |
| 120 | + if (str.endsWith('\n')) str = str.slice(0, -1); | |
| 121 | + return str; | |
| 122 | +} | |
| 123 | + | |
| 124 | +/** | |
| 125 | + * Build a service advertisement response (used by info/refs). | |
| 126 | + * Format: pkt-line "# service={service}\n" + flush + ref lines + flush | |
| 127 | + */ | |
| 128 | +export function buildServiceAdvertisement( | |
| 129 | + service: string, | |
| 130 | + refs: Array<{ sha: string; name: string }>, | |
| 131 | + capabilities: string[] | |
| 132 | +): Uint8Array { | |
| 133 | + const parts: Uint8Array[] = []; | |
| 134 | + | |
| 135 | + // Service announcement | |
| 136 | + parts.push(pktLineEncode(`# service=${service}\n`)); | |
| 137 | + parts.push(pktFlush()); | |
| 138 | + | |
| 139 | + if (refs.length === 0) { | |
| 140 | + // Empty repo: advertise capabilities on a zero-id line | |
| 141 | + const zeroSha = '0'.repeat(40); | |
| 142 | + const capsStr = capabilities.join(' '); | |
| 143 | + parts.push(pktLineEncode(`${zeroSha} capabilities^{}\0${capsStr}\n`)); | |
| 144 | + } else { | |
| 145 | + for (let i = 0; i < refs.length; i++) { | |
| 146 | + const ref = refs[i]; | |
| 147 | + if (i === 0) { | |
| 148 | + // First ref includes capabilities after NUL | |
| 149 | + const capsStr = capabilities.join(' '); | |
| 150 | + parts.push(pktLineEncode(`${ref.sha} ${ref.name}\0${capsStr}\n`)); | |
| 151 | + } else { | |
| 152 | + parts.push(pktLineEncode(`${ref.sha} ${ref.name}\n`)); | |
| 153 | + } | |
| 154 | + } | |
| 155 | + } | |
| 156 | + | |
| 157 | + parts.push(pktFlush()); | |
| 158 | + return pktConcat(...parts); | |
| 159 | +} | |
| 160 | + | |
| 161 | +/** Side-band-64k channel IDs. */ | |
| 162 | +export const SIDE_BAND = { | |
| 163 | + DATA: 1, | |
| 164 | + PROGRESS: 2, | |
| 165 | + ERROR: 3, | |
| 166 | +} as const; | |
| 167 | + | |
| 168 | +/** Wrap data in a side-band-64k pkt-line. */ | |
| 169 | +export function pktSideBandEncode(channel: number, data: Uint8Array): Uint8Array { | |
| 170 | + const payload = new Uint8Array(1 + data.length); | |
| 171 | + payload[0] = channel; | |
| 172 | + payload.set(data, 1); | |
| 173 | + return pktLineEncodeBytes(payload); | |
| 174 | +} | |
| 175 | + | |
A packages/shared/src/git/sha1.ts
| @@ -1,0 +1,52 @@ | ||
| 1 | +/** | |
| 2 | + * SHA-1 hashing using the Web Crypto API. | |
| 3 | + * Used for computing git object IDs. | |
| 4 | + */ | |
| 5 | + | |
| 6 | +const encoder = new TextEncoder(); | |
| 7 | + | |
| 8 | +/** Compute SHA-1 hash of data, returning a 40-character hex string. */ | |
| 9 | +export async function sha1(data: Uint8Array): Promise<string> { | |
| 10 | + const hashBuffer = await crypto.subtle.digest('SHA-1', data); | |
| 11 | + return hexEncode(new Uint8Array(hashBuffer)); | |
| 12 | +} | |
| 13 | + | |
| 14 | +/** Compute SHA-256 hash of data, returning a 64-character hex string. */ | |
| 15 | +export async function sha256(data: Uint8Array): Promise<string> { | |
| 16 | + const hashBuffer = await crypto.subtle.digest('SHA-256', data); | |
| 17 | + return hexEncode(new Uint8Array(hashBuffer)); | |
| 18 | +} | |
| 19 | + | |
| 20 | +/** Encode a Uint8Array as a hex string. */ | |
| 21 | +export function hexEncode(bytes: Uint8Array): string { | |
| 22 | + let hex = ''; | |
| 23 | + for (let i = 0; i < bytes.length; i++) { | |
| 24 | + hex += bytes[i].toString(16).padStart(2, '0'); | |
| 25 | + } | |
| 26 | + return hex; | |
| 27 | +} | |
| 28 | + | |
| 29 | +/** Decode a hex string to Uint8Array. */ | |
| 30 | +export function hexDecode(hex: string): Uint8Array { | |
| 31 | + const bytes = new Uint8Array(hex.length / 2); | |
| 32 | + for (let i = 0; i < hex.length; i += 2) { | |
| 33 | + bytes[i / 2] = parseInt(hex.substring(i, i + 2), 16); | |
| 34 | + } | |
| 35 | + return bytes; | |
| 36 | +} | |
| 37 | + | |
| 38 | +/** | |
| 39 | + * Compute the SHA-1 hash of a git object. | |
| 40 | + * Git objects are hashed as: "{type} {size}\0{content}" | |
| 41 | + */ | |
| 42 | +export async function gitObjectHash( | |
| 43 | + type: string, | |
| 44 | + content: Uint8Array | |
| 45 | +): Promise<string> { | |
| 46 | + const header = encoder.encode(`${type} ${content.length}\0`); | |
| 47 | + const full = new Uint8Array(header.length + content.length); | |
| 48 | + full.set(header, 0); | |
| 49 | + full.set(content, header.length); | |
| 50 | + return sha1(full); | |
| 51 | +} | |
| 52 | + | |
A packages/shared/src/git/zlib.ts
| @@ -1,0 +1,86 @@ | ||
| 1 | +/** | |
| 2 | + * Zlib compression/decompression. | |
| 3 | + * | |
| 4 | + * Uses Node.js zlib module via nodejs_compat for reliable pack file parsing. | |
| 5 | + * The Web Streams DecompressionStream doesn't handle trailing data well in workerd, | |
| 6 | + * which is critical for parsing concatenated zlib streams in git pack files. | |
| 7 | + */ | |
| 8 | + | |
| 9 | +import { inflateSync, deflateSync, inflateRawSync } from 'node:zlib'; | |
| 10 | + | |
| 11 | +/** Deflate (compress) data using zlib format. */ | |
| 12 | +export async function deflate(data: Uint8Array): Promise<Uint8Array> { | |
| 13 | + return new Uint8Array(deflateSync(data)); | |
| 14 | +} | |
| 15 | + | |
| 16 | +/** Inflate (decompress) zlib-compressed data. */ | |
| 17 | +export async function inflate(data: Uint8Array): Promise<Uint8Array> { | |
| 18 | + return new Uint8Array(inflateSync(data)); | |
| 19 | +} | |
| 20 | + | |
| 21 | +/** | |
| 22 | + * Inflate a zlib-compressed entry from a pack file buffer. | |
| 23 | + * | |
| 24 | + * Pack entries are concatenated zlib streams. Node.js inflateSync gracefully | |
| 25 | + * stops at the end of the zlib stream, but we need to know how many compressed | |
| 26 | + * bytes were consumed to advance the offset to the next entry. | |
| 27 | + * | |
| 28 | + * Strategy: use inflateRawSync to decompress, then compute consumed bytes | |
| 29 | + * from the zlib structure (2-byte header + raw deflate + 4-byte adler32). | |
| 30 | + */ | |
| 31 | +export async function inflateFromBuffer( | |
| 32 | + buf: Uint8Array, | |
| 33 | + offset: number, | |
| 34 | + expectedSize: number | |
| 35 | +): Promise<{ result: Uint8Array; bytesConsumed: number }> { | |
| 36 | + const data = buf.slice(offset); | |
| 37 | + | |
| 38 | + // Use Node.js inflateSync which handles trailing data gracefully | |
| 39 | + const result = new Uint8Array(inflateSync(data)); | |
| 40 | + | |
| 41 | + if (result.length !== expectedSize) { | |
| 42 | + throw new Error( | |
| 43 | + `Inflated size mismatch: expected ${expectedSize}, got ${result.length}` | |
| 44 | + ); | |
| 45 | + } | |
| 46 | + | |
| 47 | + // Now we need to find how many compressed bytes were consumed. | |
| 48 | + // The zlib format is: [2-byte header][raw deflate][4-byte adler32] | |
| 49 | + // Use binary search on raw deflate to find the exact boundary. | |
| 50 | + const rawStart = 2; // skip CMF + FLG bytes | |
| 51 | + | |
| 52 | + let lo = 1; | |
| 53 | + let hi = data.length - rawStart; | |
| 54 | + | |
| 55 | + // First verify the full raw data works | |
| 56 | + try { | |
| 57 | + const fullTest = new Uint8Array(inflateRawSync(data.slice(rawStart))); | |
| 58 | + if (fullTest.length !== expectedSize) { | |
| 59 | + // Something is off — just use the full remaining length minus trailer | |
| 60 | + return { result, bytesConsumed: data.length }; | |
| 61 | + } | |
| 62 | + } catch { | |
| 63 | + return { result, bytesConsumed: data.length }; | |
| 64 | + } | |
| 65 | + | |
| 66 | + // Binary search for the minimum raw bytes needed | |
| 67 | + while (lo < hi) { | |
| 68 | + const mid = Math.floor((lo + hi) / 2); | |
| 69 | + try { | |
| 70 | + const test = new Uint8Array(inflateRawSync(data.slice(rawStart, rawStart + mid))); | |
| 71 | + if (test.length === expectedSize) { | |
| 72 | + hi = mid; | |
| 73 | + } else { | |
| 74 | + lo = mid + 1; | |
| 75 | + } | |
| 76 | + } catch { | |
| 77 | + lo = mid + 1; | |
| 78 | + } | |
| 79 | + } | |
| 80 | + | |
| 81 | + // Total consumed = 2 (zlib header) + raw bytes + 4 (adler32 checksum) | |
| 82 | + const bytesConsumed = rawStart + lo + 4; | |
| 83 | + | |
| 84 | + return { result, bytesConsumed }; | |
| 85 | +} | |
| 86 | + | |
A packages/shared/src/index.ts
| @@ -1,0 +1,10 @@ | ||
| 1 | +export * from './git/pkt-line.js'; | |
| 2 | +export * from './git/sha1.js'; | |
| 3 | +export * from './git/zlib.js'; | |
| 4 | +export * from './git/object.js'; | |
| 5 | +export * from './git/pack-parse.js'; | |
| 6 | +export * from './git/pack-generate.js'; | |
| 7 | +export * from './git/delta.js'; | |
| 8 | +export * from './git/diff.js'; | |
| 9 | +export type * from './types/index.js'; | |
| 10 | + | |
A packages/shared/src/types/index.ts
| @@ -1,0 +1,136 @@ | ||
| 1 | +/** Database row types matching D1 schema. */ | |
| 2 | + | |
| 3 | +export interface DbUser { | |
| 4 | + id: string; | |
| 5 | + username: string; | |
| 6 | + email: string; | |
| 7 | + password_hash: string; | |
| 8 | + display_name: string | null; | |
| 9 | + bio: string | null; | |
| 10 | + avatar_url: string | null; | |
| 11 | + is_admin: number; | |
| 12 | + created_at: string; | |
| 13 | + updated_at: string; | |
| 14 | +} | |
| 15 | + | |
| 16 | +export interface DbAccessToken { | |
| 17 | + id: string; | |
| 18 | + user_id: string; | |
| 19 | + name: string; | |
| 20 | + token_hash: string; | |
| 21 | + token_prefix: string; | |
| 22 | + scopes: string; | |
| 23 | + expires_at: string | null; | |
| 24 | + last_used_at: string | null; | |
| 25 | + created_at: string; | |
| 26 | +} | |
| 27 | + | |
| 28 | +export interface DbSession { | |
| 29 | + id: string; | |
| 30 | + user_id: string; | |
| 31 | + expires_at: string; | |
| 32 | + created_at: string; | |
| 33 | +} | |
| 34 | + | |
| 35 | +export interface DbRepository { | |
| 36 | + id: string; | |
| 37 | + owner_id: string; | |
| 38 | + name: string; | |
| 39 | + description: string | null; | |
| 40 | + default_branch: string; | |
| 41 | + is_private: number; | |
| 42 | + fork_of: string | null; | |
| 43 | + object_count: number; | |
| 44 | + size_bytes: number; | |
| 45 | + created_at: string; | |
| 46 | + updated_at: string; | |
| 47 | +} | |
| 48 | + | |
| 49 | +export interface DbRef { | |
| 50 | + id: string; | |
| 51 | + repo_id: string; | |
| 52 | + name: string; | |
| 53 | + sha: string; | |
| 54 | + is_symbolic: number; | |
| 55 | + target_ref: string | null; | |
| 56 | + updated_at: string; | |
| 57 | +} | |
| 58 | + | |
| 59 | +export interface DbCollaborator { | |
| 60 | + repo_id: string; | |
| 61 | + user_id: string; | |
| 62 | + permission: 'read' | 'write' | 'admin'; | |
| 63 | + created_at: string; | |
| 64 | +} | |
| 65 | + | |
| 66 | +export interface DbMergeRequest { | |
| 67 | + id: string; | |
| 68 | + repo_id: string; | |
| 69 | + number: number; | |
| 70 | + title: string; | |
| 71 | + description: string | null; | |
| 72 | + author_id: string; | |
| 73 | + state: 'open' | 'closed' | 'merged'; | |
| 74 | + source_branch: string; | |
| 75 | + target_branch: string; | |
| 76 | + source_sha: string | null; | |
| 77 | + merged_sha: string | null; | |
| 78 | + merged_by: string | null; | |
| 79 | + created_at: string; | |
| 80 | + updated_at: string; | |
| 81 | +} | |
| 82 | + | |
| 83 | +export interface DbMrComment { | |
| 84 | + id: string; | |
| 85 | + mr_id: string; | |
| 86 | + author_id: string; | |
| 87 | + body: string; | |
| 88 | + file_path: string | null; | |
| 89 | + line_number: number | null; | |
| 90 | + diff_side: 'old' | 'new' | null; | |
| 91 | + commit_sha: string | null; | |
| 92 | + parent_id: string | null; | |
| 93 | + created_at: string; | |
| 94 | + updated_at: string; | |
| 95 | +} | |
| 96 | + | |
| 97 | +export interface DbMrReview { | |
| 98 | + id: string; | |
| 99 | + mr_id: string; | |
| 100 | + reviewer_id: string; | |
| 101 | + state: 'approved' | 'changes_requested' | 'commented'; | |
| 102 | + body: string | null; | |
| 103 | + created_at: string; | |
| 104 | +} | |
| 105 | + | |
| 106 | +export interface DbWebhook { | |
| 107 | + id: string; | |
| 108 | + repo_id: string; | |
| 109 | + url: string; | |
| 110 | + secret: string | null; | |
| 111 | + events: string; | |
| 112 | + is_active: number; | |
| 113 | + created_at: string; | |
| 114 | +} | |
| 115 | + | |
| 116 | +export interface DbActivityLog { | |
| 117 | + id: string; | |
| 118 | + repo_id: string | null; | |
| 119 | + user_id: string | null; | |
| 120 | + action: string; | |
| 121 | + details: string | null; | |
| 122 | + created_at: string; | |
| 123 | +} | |
| 124 | + | |
| 125 | +/** API-level types for owner-joined repository data */ | |
| 126 | +export interface RepoWithOwner extends DbRepository { | |
| 127 | + owner_username: string; | |
| 128 | +} | |
| 129 | + | |
| 130 | +/** Ref update command from a push. */ | |
| 131 | +export interface RefUpdateCommand { | |
| 132 | + oldSha: string; | |
| 133 | + newSha: string; | |
| 134 | + refName: string; | |
| 135 | +} | |
| 136 | + | |
A packages/shared/src/utils/auth.ts
| @@ -1,0 +1,115 @@ | ||
| 1 | +/** | |
| 2 | + * Authentication utilities: password hashing and token generation. | |
| 3 | + * Uses Web Crypto API (available in Workers runtime). | |
| 4 | + */ | |
| 5 | + | |
| 6 | +const encoder = new TextEncoder(); | |
| 7 | + | |
| 8 | +const PBKDF2_ITERATIONS = 100_000; | |
| 9 | +const SALT_LENGTH = 16; | |
| 10 | +const HASH_LENGTH = 32; | |
| 11 | + | |
| 12 | +/** Hash a password using PBKDF2-SHA256. Returns "salt:hash" in hex. */ | |
| 13 | +export async function hashPassword(password: string): Promise<string> { | |
| 14 | + const salt = crypto.getRandomValues(new Uint8Array(SALT_LENGTH)); | |
| 15 | + const keyMaterial = await crypto.subtle.importKey( | |
| 16 | + 'raw', | |
| 17 | + encoder.encode(password), | |
| 18 | + 'PBKDF2', | |
| 19 | + false, | |
| 20 | + ['deriveBits'] | |
| 21 | + ); | |
| 22 | + | |
| 23 | + const hashBits = await crypto.subtle.deriveBits( | |
| 24 | + { | |
| 25 | + name: 'PBKDF2', | |
| 26 | + salt, | |
| 27 | + iterations: PBKDF2_ITERATIONS, | |
| 28 | + hash: 'SHA-256', | |
| 29 | + }, | |
| 30 | + keyMaterial, | |
| 31 | + HASH_LENGTH * 8 | |
| 32 | + ); | |
| 33 | + | |
| 34 | + const saltHex = hexEncode(salt); | |
| 35 | + const hashHex = hexEncode(new Uint8Array(hashBits)); | |
| 36 | + return `${saltHex}:${hashHex}`; | |
| 37 | +} | |
| 38 | + | |
| 39 | +/** Verify a password against a stored "salt:hash" string. */ | |
| 40 | +export async function verifyPassword(password: string, stored: string): Promise<boolean> { | |
| 41 | + const [saltHex, expectedHashHex] = stored.split(':'); | |
| 42 | + const salt = hexDecode(saltHex); | |
| 43 | + | |
| 44 | + const keyMaterial = await crypto.subtle.importKey( | |
| 45 | + 'raw', | |
| 46 | + encoder.encode(password), | |
| 47 | + 'PBKDF2', | |
| 48 | + false, | |
| 49 | + ['deriveBits'] | |
| 50 | + ); | |
| 51 | + | |
| 52 | + const hashBits = await crypto.subtle.deriveBits( | |
| 53 | + { | |
| 54 | + name: 'PBKDF2', | |
| 55 | + salt, | |
| 56 | + iterations: PBKDF2_ITERATIONS, | |
| 57 | + hash: 'SHA-256', | |
| 58 | + }, | |
| 59 | + keyMaterial, | |
| 60 | + HASH_LENGTH * 8 | |
| 61 | + ); | |
| 62 | + | |
| 63 | + const actualHashHex = hexEncode(new Uint8Array(hashBits)); | |
| 64 | + return timingSafeEqual(expectedHashHex, actualHashHex); | |
| 65 | +} | |
| 66 | + | |
| 67 | +/** Generate a random personal access token. Returns the plaintext token. */ | |
| 68 | +export function generateToken(): string { | |
| 69 | + const bytes = crypto.getRandomValues(new Uint8Array(32)); | |
| 70 | + return 'gf_' + base62Encode(bytes); | |
| 71 | +} | |
| 72 | + | |
| 73 | +/** Get the display prefix of a token (first 8 chars after "gf_"). */ | |
| 74 | +export function tokenPrefix(token: string): string { | |
| 75 | + return token.slice(0, 11); // "gf_" + 8 chars | |
| 76 | +} | |
| 77 | + | |
| 78 | +// --- Helpers --- | |
| 79 | + | |
| 80 | +const BASE62_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; | |
| 81 | + | |
| 82 | +function base62Encode(bytes: Uint8Array): string { | |
| 83 | + let result = ''; | |
| 84 | + for (const byte of bytes) { | |
| 85 | + result += BASE62_CHARS[byte % 62]; | |
| 86 | + } | |
| 87 | + return result; | |
| 88 | +} | |
| 89 | + | |
| 90 | +function hexEncode(bytes: Uint8Array): string { | |
| 91 | + let hex = ''; | |
| 92 | + for (let i = 0; i < bytes.length; i++) { | |
| 93 | + hex += bytes[i].toString(16).padStart(2, '0'); | |
| 94 | + } | |
| 95 | + return hex; | |
| 96 | +} | |
| 97 | + | |
| 98 | +function hexDecode(hex: string): Uint8Array { | |
| 99 | + const bytes = new Uint8Array(hex.length / 2); | |
| 100 | + for (let i = 0; i < hex.length; i += 2) { | |
| 101 | + bytes[i / 2] = parseInt(hex.substring(i, i + 2), 16); | |
| 102 | + } | |
| 103 | + return bytes; | |
| 104 | +} | |
| 105 | + | |
| 106 | +/** Timing-safe string comparison to prevent timing attacks. */ | |
| 107 | +function timingSafeEqual(a: string, b: string): boolean { | |
| 108 | + if (a.length !== b.length) return false; | |
| 109 | + let result = 0; | |
| 110 | + for (let i = 0; i < a.length; i++) { | |
| 111 | + result |= a.charCodeAt(i) ^ b.charCodeAt(i); | |
| 112 | + } | |
| 113 | + return result === 0; | |
| 114 | +} | |
| 115 | + | |
A packages/shared/src/utils/errors.ts
| @@ -1,0 +1,48 @@ | ||
| 1 | +/** Application error types. */ | |
| 2 | + | |
| 3 | +export class AppError extends Error { | |
| 4 | + constructor( | |
| 5 | + message: string, | |
| 6 | + public readonly statusCode: number = 500, | |
| 7 | + public readonly code: string = 'INTERNAL_ERROR' | |
| 8 | + ) { | |
| 9 | + super(message); | |
| 10 | + this.name = 'AppError'; | |
| 11 | + } | |
| 12 | +} | |
| 13 | + | |
| 14 | +export class NotFoundError extends AppError { | |
| 15 | + constructor(message = 'Not found') { | |
| 16 | + super(message, 404, 'NOT_FOUND'); | |
| 17 | + this.name = 'NotFoundError'; | |
| 18 | + } | |
| 19 | +} | |
| 20 | + | |
| 21 | +export class UnauthorizedError extends AppError { | |
| 22 | + constructor(message = 'Unauthorized') { | |
| 23 | + super(message, 401, 'UNAUTHORIZED'); | |
| 24 | + this.name = 'UnauthorizedError'; | |
| 25 | + } | |
| 26 | +} | |
| 27 | + | |
| 28 | +export class ForbiddenError extends AppError { | |
| 29 | + constructor(message = 'Forbidden') { | |
| 30 | + super(message, 403, 'FORBIDDEN'); | |
| 31 | + this.name = 'ForbiddenError'; | |
| 32 | + } | |
| 33 | +} | |
| 34 | + | |
| 35 | +export class ConflictError extends AppError { | |
| 36 | + constructor(message = 'Conflict') { | |
| 37 | + super(message, 409, 'CONFLICT'); | |
| 38 | + this.name = 'ConflictError'; | |
| 39 | + } | |
| 40 | +} | |
| 41 | + | |
| 42 | +export class ValidationError extends AppError { | |
| 43 | + constructor(message: string) { | |
| 44 | + super(message, 400, 'VALIDATION_ERROR'); | |
| 45 | + this.name = 'ValidationError'; | |
| 46 | + } | |
| 47 | +} | |
| 48 | + | |
A packages/shared/tsconfig.json
| @@ -1,0 +1,10 @@ | ||
| 1 | +{ | |
| 2 | + "extends": "../../tsconfig.base.json", | |
| 3 | + "compilerOptions": { | |
| 4 | + "outDir": "./dist", | |
| 5 | + "rootDir": "./src", | |
| 6 | + "types": ["@cloudflare/workers-types", "node"] | |
| 7 | + }, | |
| 8 | + "include": ["src/**/*.ts"] | |
| 9 | +} | |
| 10 | + | |
A packages/shared/vitest.config.ts
| @@ -1,0 +1,8 @@ | ||
| 1 | +import { defineConfig } from 'vitest/config'; | |
| 2 | + | |
| 3 | +export default defineConfig({ | |
| 4 | + test: { | |
| 5 | + globals: true, | |
| 6 | + }, | |
| 7 | +}); | |
| 8 | + | |
A packages/ui/astro.config.mjs
| @@ -1,0 +1,10 @@ | ||
| 1 | +import { defineConfig } from 'astro/config'; | |
| 2 | +import cloudflare from '@astrojs/cloudflare'; | |
| 3 | +import preact from '@astrojs/preact'; | |
| 4 | + | |
| 5 | +export default defineConfig({ | |
| 6 | + output: 'server', | |
| 7 | + adapter: cloudflare(), | |
| 8 | + integrations: [preact()], | |
| 9 | +}); | |
| 10 | + | |
A packages/ui/package.json
| @@ -1,0 +1,18 @@ | ||
| 1 | +{ | |
| 2 | + "name": "@gitfastr/ui", | |
| 3 | + "version": "0.0.1", | |
| 4 | + "private": true, | |
| 5 | + "type": "module", | |
| 6 | + "scripts": { | |
| 7 | + "dev": "astro dev", | |
| 8 | + "build": "astro build", | |
| 9 | + "preview": "astro preview" | |
| 10 | + }, | |
| 11 | + "dependencies": { | |
| 12 | + "astro": "^5.5.0", | |
| 13 | + "@astrojs/cloudflare": "^12.3.0", | |
| 14 | + "preact": "^10.25.0", | |
| 15 | + "@astrojs/preact": "^4.0.0" | |
| 16 | + } | |
| 17 | +} | |
| 18 | + | |
A packages/ui/src/layouts/Base.astro
| @@ -1,0 +1,283 @@ | ||
| 1 | +--- | |
| 2 | +interface Props { | |
| 3 | + title: string; | |
| 4 | +} | |
| 5 | + | |
| 6 | +const { title } = Astro.props; | |
| 7 | +--- | |
| 8 | +<!DOCTYPE html> | |
| 9 | +<html lang="en"> | |
| 10 | +<head> | |
| 11 | + <meta charset="UTF-8" /> | |
| 12 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| 13 | + <title>{title} - gitfastr</title> | |
| 14 | + <script is:inline> | |
| 15 | + (function(){var t=localStorage.getItem('theme');if(t)document.documentElement.setAttribute('data-theme',t)})(); | |
| 16 | + </script> | |
| 17 | + <style is:global> | |
| 18 | + :root, [data-theme="dark"] { | |
| 19 | + /* Surfaces — deep navy-slate with subtle blue undertone */ | |
| 20 | + --bg: #0c0e14; | |
| 21 | + --bg-secondary: #13151e; | |
| 22 | + --bg-tertiary: #1c1f2b; | |
| 23 | + --border: #2a2d3a; | |
| 24 | + | |
| 25 | + /* Text */ | |
| 26 | + --text: #e2e4ed; | |
| 27 | + --text-muted: #7c8097; | |
| 28 | + --text-link: #818cf8; | |
| 29 | + | |
| 30 | + /* Actions */ | |
| 31 | + --accent: #6366f1; | |
| 32 | + --accent-hover: #818cf8; | |
| 33 | + --danger: #f43f5e; | |
| 34 | + | |
| 35 | + /* Diff */ | |
| 36 | + --diff-add-bg: rgba(52, 211, 153, 0.1); | |
| 37 | + --diff-add-text: #6ee7b7; | |
| 38 | + --diff-add-badge-bg: rgba(52, 211, 153, 0.2); | |
| 39 | + --diff-del-bg: rgba(244, 63, 94, 0.1); | |
| 40 | + --diff-del-text: #fda4af; | |
| 41 | + --diff-del-badge-bg: rgba(244, 63, 94, 0.2); | |
| 42 | + --diff-mod-text: #fbbf24; | |
| 43 | + --diff-mod-badge-bg: rgba(251, 191, 36, 0.2); | |
| 44 | + --diff-hunk-bg: rgba(129, 140, 248, 0.08); | |
| 45 | + --diff-hunk-text: #818cf8; | |
| 46 | + | |
| 47 | + /* State badges */ | |
| 48 | + --state-open: #6366f1; | |
| 49 | + --state-merged: #a78bfa; | |
| 50 | + --state-closed: #f43f5e; | |
| 51 | + | |
| 52 | + /* Misc */ | |
| 53 | + --focus-ring: rgba(99, 102, 241, 0.4); | |
| 54 | + --flash-error-bg: rgba(244, 63, 94, 0.08); | |
| 55 | + --flash-error-text: #fb7185; | |
| 56 | + --success-bg: rgba(52, 211, 153, 0.08); | |
| 57 | + --success-border: #34d399; | |
| 58 | + --success-text: #6ee7b7; | |
| 59 | + | |
| 60 | + /* Shared */ | |
| 61 | + --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace; | |
| 62 | + --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | |
| 63 | + --radius: 8px; | |
| 64 | + } | |
| 65 | + | |
| 66 | + [data-theme="light"] { | |
| 67 | + /* Surfaces — warm off-white with subtle warmth */ | |
| 68 | + --bg: #fafaf9; | |
| 69 | + --bg-secondary: #f3f2f0; | |
| 70 | + --bg-tertiary: #eae8e4; | |
| 71 | + --border: #d6d3ce; | |
| 72 | + | |
| 73 | + /* Text */ | |
| 74 | + --text: #1c1917; | |
| 75 | + --text-muted: #78716c; | |
| 76 | + --text-link: #4f46e5; | |
| 77 | + | |
| 78 | + /* Actions */ | |
| 79 | + --accent: #4f46e5; | |
| 80 | + --accent-hover: #6366f1; | |
| 81 | + --danger: #e11d48; | |
| 82 | + | |
| 83 | + /* Diff */ | |
| 84 | + --diff-add-bg: rgba(22, 163, 74, 0.08); | |
| 85 | + --diff-add-text: #15803d; | |
| 86 | + --diff-add-badge-bg: rgba(22, 163, 74, 0.12); | |
| 87 | + --diff-del-bg: rgba(225, 29, 72, 0.06); | |
| 88 | + --diff-del-text: #be123c; | |
| 89 | + --diff-del-badge-bg: rgba(225, 29, 72, 0.1); | |
| 90 | + --diff-mod-text: #a16207; | |
| 91 | + --diff-mod-badge-bg: rgba(161, 98, 7, 0.1); | |
| 92 | + --diff-hunk-bg: rgba(79, 70, 229, 0.05); | |
| 93 | + --diff-hunk-text: #4f46e5; | |
| 94 | + | |
| 95 | + /* State badges */ | |
| 96 | + --state-open: #4f46e5; | |
| 97 | + --state-merged: #7c3aed; | |
| 98 | + --state-closed: #e11d48; | |
| 99 | + | |
| 100 | + /* Misc */ | |
| 101 | + --focus-ring: rgba(79, 70, 229, 0.3); | |
| 102 | + --flash-error-bg: rgba(225, 29, 72, 0.06); | |
| 103 | + --flash-error-text: #be123c; | |
| 104 | + --success-bg: rgba(22, 163, 74, 0.06); | |
| 105 | + --success-border: #16a34a; | |
| 106 | + --success-text: #15803d; | |
| 107 | + } | |
| 108 | + | |
| 109 | + * { margin: 0; padding: 0; box-sizing: border-box; } | |
| 110 | + | |
| 111 | + body { | |
| 112 | + font-family: var(--font-sans); | |
| 113 | + background: var(--bg); | |
| 114 | + color: var(--text); | |
| 115 | + line-height: 1.5; | |
| 116 | + } | |
| 117 | + | |
| 118 | + a { color: var(--text-link); text-decoration: none; } | |
| 119 | + a:hover { text-decoration: underline; } | |
| 120 | + | |
| 121 | + code, pre { | |
| 122 | + font-family: var(--font-mono); | |
| 123 | + font-size: 0.875rem; | |
| 124 | + } | |
| 125 | + | |
| 126 | + .container { | |
| 127 | + max-width: 1012px; | |
| 128 | + margin: 0 auto; | |
| 129 | + padding: 0 16px; | |
| 130 | + } | |
| 131 | + | |
| 132 | + /* Navigation */ | |
| 133 | + nav.top-nav { | |
| 134 | + background: var(--bg-secondary); | |
| 135 | + border-bottom: 1px solid var(--border); | |
| 136 | + padding: 12px 0; | |
| 137 | + } | |
| 138 | + | |
| 139 | + nav.top-nav .nav-inner { | |
| 140 | + display: flex; | |
| 141 | + align-items: center; | |
| 142 | + justify-content: space-between; | |
| 143 | + } | |
| 144 | + | |
| 145 | + nav.top-nav .brand { | |
| 146 | + font-size: 1.25rem; | |
| 147 | + font-weight: 600; | |
| 148 | + color: var(--text); | |
| 149 | + } | |
| 150 | + | |
| 151 | + nav.top-nav .brand:hover { text-decoration: none; } | |
| 152 | + | |
| 153 | + nav.top-nav .nav-links { | |
| 154 | + display: flex; | |
| 155 | + gap: 16px; | |
| 156 | + align-items: center; | |
| 157 | + } | |
| 158 | + | |
| 159 | + /* Buttons */ | |
| 160 | + .btn { | |
| 161 | + display: inline-flex; | |
| 162 | + align-items: center; | |
| 163 | + padding: 5px 16px; | |
| 164 | + font-size: 0.875rem; | |
| 165 | + font-weight: 500; | |
| 166 | + border-radius: var(--radius); | |
| 167 | + border: 1px solid var(--border); | |
| 168 | + background: var(--bg-tertiary); | |
| 169 | + color: var(--text); | |
| 170 | + cursor: pointer; | |
| 171 | + text-decoration: none; | |
| 172 | + } | |
| 173 | + | |
| 174 | + .btn:hover { | |
| 175 | + background: var(--border); | |
| 176 | + text-decoration: none; | |
| 177 | + } | |
| 178 | + | |
| 179 | + .btn-primary { | |
| 180 | + background: var(--accent); | |
| 181 | + border-color: var(--accent); | |
| 182 | + color: #fff; | |
| 183 | + } | |
| 184 | + | |
| 185 | + .btn-primary:hover { | |
| 186 | + background: var(--accent-hover); | |
| 187 | + } | |
| 188 | + | |
| 189 | + /* Forms */ | |
| 190 | + .form-group { | |
| 191 | + margin-bottom: 16px; | |
| 192 | + } | |
| 193 | + | |
| 194 | + .form-group label { | |
| 195 | + display: block; | |
| 196 | + font-size: 0.875rem; | |
| 197 | + font-weight: 600; | |
| 198 | + margin-bottom: 4px; | |
| 199 | + } | |
| 200 | + | |
| 201 | + .form-group input[type="text"], | |
| 202 | + .form-group input[type="email"], | |
| 203 | + .form-group input[type="password"], | |
| 204 | + .form-group textarea { | |
| 205 | + width: 100%; | |
| 206 | + padding: 8px 12px; | |
| 207 | + background: var(--bg); | |
| 208 | + border: 1px solid var(--border); | |
| 209 | + border-radius: var(--radius); | |
| 210 | + color: var(--text); | |
| 211 | + font-size: 0.875rem; | |
| 212 | + } | |
| 213 | + | |
| 214 | + .form-group input:focus, | |
| 215 | + .form-group textarea:focus { | |
| 216 | + outline: none; | |
| 217 | + border-color: var(--accent); | |
| 218 | + box-shadow: 0 0 0 3px var(--focus-ring); | |
| 219 | + } | |
| 220 | + | |
| 221 | + /* Cards */ | |
| 222 | + .card { | |
| 223 | + background: var(--bg-secondary); | |
| 224 | + border: 1px solid var(--border); | |
| 225 | + border-radius: var(--radius); | |
| 226 | + padding: 16px; | |
| 227 | + } | |
| 228 | + | |
| 229 | + /* Flash messages */ | |
| 230 | + .flash-error { | |
| 231 | + background: var(--flash-error-bg); | |
| 232 | + border: 1px solid var(--danger); | |
| 233 | + color: var(--flash-error-text); | |
| 234 | + padding: 12px; | |
| 235 | + border-radius: var(--radius); | |
| 236 | + margin-bottom: 16px; | |
| 237 | + font-size: 0.875rem; | |
| 238 | + } | |
| 239 | + </style> | |
| 240 | +</head> | |
| 241 | +<body> | |
| 242 | + <nav class="top-nav"> | |
| 243 | + <div class="container nav-inner"> | |
| 244 | + <a href="/" class="brand">gitfastr</a> | |
| 245 | + <div class="nav-links"> | |
| 246 | + <button id="theme-toggle" class="btn" style="padding: 5px 10px; font-size: 1rem; line-height: 1;" aria-label="Toggle theme"></button> | |
| 247 | + <a href="/login" class="btn">Sign in</a> | |
| 248 | + <a href="/register" class="btn btn-primary">Sign up</a> | |
| 249 | + </div> | |
| 250 | + </div> | |
| 251 | + </nav> | |
| 252 | + <main> | |
| 253 | + <slot /> | |
| 254 | + </main> | |
| 255 | + <script is:inline> | |
| 256 | + (function() { | |
| 257 | + var saved = localStorage.getItem('theme'); | |
| 258 | + var theme = saved || 'dark'; | |
| 259 | + document.documentElement.setAttribute('data-theme', theme); | |
| 260 | + | |
| 261 | + function updateButton() { | |
| 262 | + var btn = document.getElementById('theme-toggle'); | |
| 263 | + if (!btn) return; | |
| 264 | + var current = document.documentElement.getAttribute('data-theme') || 'dark'; | |
| 265 | + btn.textContent = current === 'dark' ? '\u2600\uFE0F' : '\uD83C\uDF19'; | |
| 266 | + } | |
| 267 | + | |
| 268 | + updateButton(); | |
| 269 | + | |
| 270 | + document.addEventListener('click', function(e) { | |
| 271 | + if (e.target && e.target.id === 'theme-toggle') { | |
| 272 | + var current = document.documentElement.getAttribute('data-theme') || 'dark'; | |
| 273 | + var next = current === 'dark' ? 'light' : 'dark'; | |
| 274 | + document.documentElement.setAttribute('data-theme', next); | |
| 275 | + localStorage.setItem('theme', next); | |
| 276 | + updateButton(); | |
| 277 | + } | |
| 278 | + }); | |
| 279 | + })(); | |
| 280 | + </script> | |
| 281 | +</body> | |
| 282 | +</html> | |
| 283 | + | |
A packages/ui/src/layouts/Repo.astro
| @@ -1,0 +1,62 @@ | ||
| 1 | +--- | |
| 2 | +import Base from './Base.astro'; | |
| 3 | + | |
| 4 | +interface Props { | |
| 5 | + owner: string; | |
| 6 | + repo: string; | |
| 7 | + activeTab?: 'code' | 'commits' | 'branches' | 'merge-requests' | 'settings'; | |
| 8 | + ref?: string; | |
| 9 | +} | |
| 10 | + | |
| 11 | +const { owner, repo, activeTab = 'code', ref } = Astro.props; | |
| 12 | +const repoPath = `/${owner}/${repo}`; | |
| 13 | + | |
| 14 | +const tabs = [ | |
| 15 | + { id: 'code', label: 'Code', href: repoPath }, | |
| 16 | + { id: 'merge-requests', label: 'Merge Requests', href: `${repoPath}/merge-requests` }, | |
| 17 | + { id: 'commits', label: 'Commits', href: `${repoPath}/commits${ref ? `/${ref}` : ''}` }, | |
| 18 | + { id: 'branches', label: 'Branches', href: `${repoPath}/branches` }, | |
| 19 | + { id: 'settings', label: 'Settings', href: `${repoPath}/settings` }, | |
| 20 | +]; | |
| 21 | +--- | |
| 22 | + | |
| 23 | +<Base title={`${owner}/${repo}`}> | |
| 24 | + <div class="repo-header" style="background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 16px 0 0;"> | |
| 25 | + <div class="container"> | |
| 26 | + <h1 style="font-size: 1.25rem; margin-bottom: 12px;"> | |
| 27 | + <a href={`/${owner}`} style="color: var(--text-link);">{owner}</a> | |
| 28 | + <span style="color: var(--text-muted); padding: 0 4px;">/</span> | |
| 29 | + <a href={repoPath} style="color: var(--text-link); font-weight: 600;">{repo}</a> | |
| 30 | + </h1> | |
| 31 | + | |
| 32 | + <div style="display: flex; gap: 0; border-bottom: none; margin-bottom: -1px;"> | |
| 33 | + {tabs.map((tab) => ( | |
| 34 | + <a | |
| 35 | + href={tab.href} | |
| 36 | + style={` | |
| 37 | + padding: 8px 16px; | |
| 38 | + font-size: 0.875rem; | |
| 39 | + color: ${activeTab === tab.id ? 'var(--text)' : 'var(--text-muted)'}; | |
| 40 | + font-weight: ${activeTab === tab.id ? '600' : '400'}; | |
| 41 | + border-bottom: 2px solid ${activeTab === tab.id ? '#f78166' : 'transparent'}; | |
| 42 | + text-decoration: none; | |
| 43 | + `} | |
| 44 | + > | |
| 45 | + {tab.label} | |
| 46 | + </a> | |
| 47 | + ))} | |
| 48 | + </div> | |
| 49 | + </div> | |
| 50 | + </div> | |
| 51 | + | |
| 52 | + <div class="container" style="padding-top: 20px;"> | |
| 53 | + <slot /> | |
| 54 | + </div> | |
| 55 | +</Base> | |
| 56 | + | |
| 57 | +<style> | |
| 58 | + .repo-header a:hover { | |
| 59 | + text-decoration: none !important; | |
| 60 | + } | |
| 61 | +</style> | |
| 62 | + | |
A packages/ui/src/lib/api.ts
| @@ -1,0 +1,48 @@ | ||
| 1 | +/** | |
| 2 | + * API client for the gitfastr Worker. | |
| 3 | + * In production, the Worker and Pages share the same domain or use a configured API URL. | |
| 4 | + * In dev, the Worker runs on a different port. | |
| 5 | + */ | |
| 6 | + | |
| 7 | +const API_BASE = import.meta.env.PUBLIC_API_URL || 'http://localhost:8321'; | |
| 8 | + | |
| 9 | +interface FetchOptions { | |
| 10 | + method?: string; | |
| 11 | + body?: any; | |
| 12 | + cookie?: string; | |
| 13 | +} | |
| 14 | + | |
| 15 | +async function apiFetch(path: string, opts: FetchOptions = {}) { | |
| 16 | + const headers: Record<string, string> = {}; | |
| 17 | + | |
| 18 | + if (opts.body) { | |
| 19 | + headers['Content-Type'] = 'application/json'; | |
| 20 | + } | |
| 21 | + if (opts.cookie) { | |
| 22 | + headers['Cookie'] = opts.cookie; | |
| 23 | + } | |
| 24 | + | |
| 25 | + const response = await fetch(`${API_BASE}${path}`, { | |
| 26 | + method: opts.method || 'GET', | |
| 27 | + headers, | |
| 28 | + body: opts.body ? JSON.stringify(opts.body) : undefined, | |
| 29 | + }); | |
| 30 | + | |
| 31 | + if (!response.ok) { | |
| 32 | + const error = await response.json().catch(() => ({ error: response.statusText })); | |
| 33 | + throw new Error((error as any).error || `API error: ${response.status}`); | |
| 34 | + } | |
| 35 | + | |
| 36 | + return response; | |
| 37 | +} | |
| 38 | + | |
| 39 | +export async function apiGet(path: string, cookie?: string) { | |
| 40 | + const res = await apiFetch(path, { cookie }); | |
| 41 | + return res.json(); | |
| 42 | +} | |
| 43 | + | |
| 44 | +export async function apiPost(path: string, body: any, cookie?: string) { | |
| 45 | + const res = await apiFetch(path, { method: 'POST', body, cookie }); | |
| 46 | + return { data: await res.json(), headers: res.headers }; | |
| 47 | +} | |
| 48 | + | |
A packages/ui/src/pages/[owner]/[repo]/blob/[ref]/[...path].astro
| @@ -1,0 +1,119 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet } from '../../../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo, ref, path } = Astro.params; | |
| 6 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 7 | + | |
| 8 | +let blob: any = null; | |
| 9 | +let error = ''; | |
| 10 | + | |
| 11 | +try { | |
| 12 | + blob = await apiGet(`/api/repos/${owner}/${repo}/blob/${ref}/${path}`, cookie); | |
| 13 | +} catch (e: any) { | |
| 14 | + error = e.message; | |
| 15 | +} | |
| 16 | + | |
| 17 | +// Build breadcrumb segments | |
| 18 | +const pathSegments = (path || '').split('/').filter(Boolean); | |
| 19 | +const fileName = pathSegments[pathSegments.length - 1] || ''; | |
| 20 | +const dirPath = pathSegments.slice(0, -1).join('/'); | |
| 21 | + | |
| 22 | +const breadcrumbs = pathSegments.map((seg, i) => ({ | |
| 23 | + name: seg, | |
| 24 | + href: i < pathSegments.length - 1 | |
| 25 | + ? `/${owner}/${repo}/tree/${ref}/${pathSegments.slice(0, i + 1).join('/')}` | |
| 26 | + : `/${owner}/${repo}/blob/${ref}/${pathSegments.slice(0, i + 1).join('/')}`, | |
| 27 | + isLast: i === pathSegments.length - 1, | |
| 28 | +})); | |
| 29 | + | |
| 30 | +// Determine language for basic syntax hint | |
| 31 | +const ext = fileName.split('.').pop()?.toLowerCase() || ''; | |
| 32 | +const lines = blob?.content?.split('\n') || []; | |
| 33 | +const isBinary = blob?.encoding === 'base64'; | |
| 34 | + | |
| 35 | +function formatSize(bytes: number): string { | |
| 36 | + if (bytes < 1024) return `${bytes} B`; | |
| 37 | + if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`; | |
| 38 | + return `${(bytes / (1024 * 1024)).toFixed(1)} MB`; | |
| 39 | +} | |
| 40 | +--- | |
| 41 | + | |
| 42 | +<Repo owner={owner!} repo={repo!} activeTab="code" ref={ref}> | |
| 43 | + {error && <div class="flash-error">{error}</div>} | |
| 44 | + | |
| 45 | + {/* Breadcrumb */} | |
| 46 | + <nav style="margin-bottom: 16px; font-size: 0.875rem;"> | |
| 47 | + <a href={`/${owner}/${repo}`}>{repo}</a> | |
| 48 | + {breadcrumbs.map((bc) => ( | |
| 49 | + <> | |
| 50 | + <span style="color: var(--text-muted);"> / </span> | |
| 51 | + {bc.isLast ? ( | |
| 52 | + <strong>{bc.name}</strong> | |
| 53 | + ) : ( | |
| 54 | + <a href={bc.href}>{bc.name}</a> | |
| 55 | + )} | |
| 56 | + </> | |
| 57 | + ))} | |
| 58 | + </nav> | |
| 59 | + | |
| 60 | + {blob && ( | |
| 61 | + <div class="card" style="padding: 0; overflow: hidden;"> | |
| 62 | + {/* File header */} | |
| 63 | + <div style="padding: 8px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center;"> | |
| 64 | + <span style="font-size: 0.8125rem; color: var(--text-muted);"> | |
| 65 | + {lines.length} lines · {formatSize(blob.size)} | |
| 66 | + </span> | |
| 67 | + <a | |
| 68 | + href={`/api/repos/${owner}/${repo}/blob/${ref}/${path}`} | |
| 69 | + class="btn" | |
| 70 | + style="font-size: 0.75rem; padding: 2px 10px;" | |
| 71 | + > | |
| 72 | + Raw | |
| 73 | + </a> | |
| 74 | + </div> | |
| 75 | + | |
| 76 | + {isBinary ? ( | |
| 77 | + <div style="padding: 32px; text-align: center; color: var(--text-muted);"> | |
| 78 | + Binary file ({formatSize(blob.size)}) | |
| 79 | + </div> | |
| 80 | + ) : ( | |
| 81 | + <div style="overflow-x: auto;"> | |
| 82 | + <table style="border-collapse: collapse; width: 100%;"> | |
| 83 | + <tbody> | |
| 84 | + {lines.map((line: string, i: number) => ( | |
| 85 | + <tr> | |
| 86 | + <td style=" | |
| 87 | + padding: 0 12px; | |
| 88 | + text-align: right; | |
| 89 | + color: var(--text-muted); | |
| 90 | + user-select: none; | |
| 91 | + white-space: nowrap; | |
| 92 | + font-family: var(--font-mono); | |
| 93 | + font-size: 0.8125rem; | |
| 94 | + line-height: 1.5; | |
| 95 | + vertical-align: top; | |
| 96 | + border-right: 1px solid var(--border); | |
| 97 | + min-width: 50px; | |
| 98 | + "> | |
| 99 | + {i + 1} | |
| 100 | + </td> | |
| 101 | + <td style=" | |
| 102 | + padding: 0 12px; | |
| 103 | + white-space: pre; | |
| 104 | + font-family: var(--font-mono); | |
| 105 | + font-size: 0.8125rem; | |
| 106 | + line-height: 1.5; | |
| 107 | + "> | |
| 108 | + {line} | |
| 109 | + </td> | |
| 110 | + </tr> | |
| 111 | + ))} | |
| 112 | + </tbody> | |
| 113 | + </table> | |
| 114 | + </div> | |
| 115 | + )} | |
| 116 | + </div> | |
| 117 | + )} | |
| 118 | +</Repo> | |
| 119 | + | |
A packages/ui/src/pages/[owner]/[repo]/branches.astro
| @@ -1,0 +1,58 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet } from '../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo } = Astro.params; | |
| 6 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 7 | + | |
| 8 | +let branches: any[] = []; | |
| 9 | +let defaultBranch = 'main'; | |
| 10 | +let error = ''; | |
| 11 | + | |
| 12 | +try { | |
| 13 | + const data = await apiGet(`/api/repos/${owner}/${repo}/branches`, cookie); | |
| 14 | + branches = data.branches || []; | |
| 15 | + defaultBranch = data.default_branch || 'main'; | |
| 16 | +} catch (e: any) { | |
| 17 | + error = e.message; | |
| 18 | +} | |
| 19 | +--- | |
| 20 | + | |
| 21 | +<Repo owner={owner!} repo={repo!} activeTab="branches"> | |
| 22 | + {error && <div class="flash-error">{error}</div>} | |
| 23 | + | |
| 24 | + <h2 style="font-size: 1rem; margin-bottom: 16px;">Branches</h2> | |
| 25 | + | |
| 26 | + <div class="card" style="padding: 0; overflow: hidden;"> | |
| 27 | + {branches.map((branch: any) => ( | |
| 28 | + <div style=" | |
| 29 | + display: flex; | |
| 30 | + justify-content: space-between; | |
| 31 | + align-items: center; | |
| 32 | + padding: 12px 16px; | |
| 33 | + border-bottom: 1px solid var(--border); | |
| 34 | + font-size: 0.875rem; | |
| 35 | + "> | |
| 36 | + <div style="display: flex; align-items: center; gap: 8px;"> | |
| 37 | + <a href={`/${owner}/${repo}/tree/${branch.name}`} style="font-weight: 500;"> | |
| 38 | + {branch.name} | |
| 39 | + </a> | |
| 40 | + {branch.isDefault && ( | |
| 41 | + <span style="font-size: 0.75rem; border: 1px solid var(--accent); color: var(--accent); border-radius: 12px; padding: 0 8px;"> | |
| 42 | + default | |
| 43 | + </span> | |
| 44 | + )} | |
| 45 | + </div> | |
| 46 | + <code style="color: var(--text-muted); font-size: 0.75rem;"> | |
| 47 | + {branch.sha.slice(0, 7)} | |
| 48 | + </code> | |
| 49 | + </div> | |
| 50 | + ))} | |
| 51 | + {branches.length === 0 && ( | |
| 52 | + <div style="padding: 32px; text-align: center; color: var(--text-muted);"> | |
| 53 | + No branches yet. Push some code to create the first branch. | |
| 54 | + </div> | |
| 55 | + )} | |
| 56 | + </div> | |
| 57 | +</Repo> | |
| 58 | + | |
A packages/ui/src/pages/[owner]/[repo]/commit/[sha].astro
| @@ -1,0 +1,133 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet } from '../../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo, sha } = Astro.params; | |
| 6 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 7 | + | |
| 8 | +let commit: any = null; | |
| 9 | +let diff: any[] = []; | |
| 10 | +let error = ''; | |
| 11 | + | |
| 12 | +try { | |
| 13 | + [commit, diff] = await Promise.all([ | |
| 14 | + apiGet(`/api/repos/${owner}/${repo}/commit/${sha}`, cookie), | |
| 15 | + apiGet(`/api/repos/${owner}/${repo}/commit/${sha}/diff`, cookie), | |
| 16 | + ]); | |
| 17 | +} catch (e: any) { | |
| 18 | + error = e.message; | |
| 19 | +} | |
| 20 | + | |
| 21 | +function parseAuthor(author: string) { | |
| 22 | + const match = author?.match(/^(.+?) <(.+?)> (\d+) ([+-]\d{4})$/); | |
| 23 | + if (!match) return { name: author || 'unknown', email: '', date: '' }; | |
| 24 | + const date = new Date(parseInt(match[3]) * 1000); | |
| 25 | + return { | |
| 26 | + name: match[1], | |
| 27 | + email: match[2], | |
| 28 | + date: date.toLocaleDateString('en-US', { | |
| 29 | + year: 'numeric', month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit', | |
| 30 | + }), | |
| 31 | + }; | |
| 32 | +} | |
| 33 | + | |
| 34 | +const stats = diff.reduce((acc: any, f: any) => { | |
| 35 | + const adds = f.hunks?.reduce((s: number, h: any) => s + h.lines.filter((l: any) => l.type === 'add').length, 0) ?? 0; | |
| 36 | + const dels = f.hunks?.reduce((s: number, h: any) => s + h.lines.filter((l: any) => l.type === 'delete').length, 0) ?? 0; | |
| 37 | + return { adds: acc.adds + adds, dels: acc.dels + dels }; | |
| 38 | +}, { adds: 0, dels: 0 }); | |
| 39 | +--- | |
| 40 | + | |
| 41 | +<Repo owner={owner!} repo={repo!} activeTab="commits"> | |
| 42 | + {error && <div class="flash-error">{error}</div>} | |
| 43 | + | |
| 44 | + {commit && (() => { | |
| 45 | + const { name, email, date } = parseAuthor(commit.author); | |
| 46 | + const firstLine = commit.message.split('\n')[0]; | |
| 47 | + const rest = commit.message.split('\n').slice(1).join('\n').trim(); | |
| 48 | + return ( | |
| 49 | + <div> | |
| 50 | + <div class="card" style="margin-bottom: 20px;"> | |
| 51 | + <h2 style="font-size: 1.125rem; margin-bottom: 4px;">{firstLine}</h2> | |
| 52 | + {rest && ( | |
| 53 | + <pre style="color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 8px; white-space: pre-wrap; font-family: var(--font-sans);">{rest}</pre> | |
| 54 | + )} | |
| 55 | + <div style="font-size: 0.8125rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 8px; display: flex; justify-content: space-between;"> | |
| 56 | + <span><strong style="color: var(--text);">{name}</strong> committed on {date}</span> | |
| 57 | + <code>{commit.sha.slice(0, 10)}</code> | |
| 58 | + </div> | |
| 59 | + {commit.parents.length > 0 && ( | |
| 60 | + <div style="font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px;"> | |
| 61 | + {commit.parents.length === 1 ? 'Parent: ' : 'Parents: '} | |
| 62 | + {commit.parents.map((p: string, i: number) => ( | |
| 63 | + <>{i > 0 && ', '}<a href={`/${owner}/${repo}/commit/${p}`}><code>{p.slice(0, 7)}</code></a></> | |
| 64 | + ))} | |
| 65 | + </div> | |
| 66 | + )} | |
| 67 | + </div> | |
| 68 | + | |
| 69 | + {/* Diff stats */} | |
| 70 | + <div style="margin-bottom: 12px; font-size: 0.875rem; color: var(--text-muted);"> | |
| 71 | + Showing <strong style="color: var(--text);">{diff.length}</strong> changed file{diff.length !== 1 ? 's' : ''} with | |
| 72 | + <strong style="color: var(--diff-add-text);"> {stats.adds} addition{stats.adds !== 1 ? 's' : ''}</strong> and | |
| 73 | + <strong style="color: var(--diff-del-text);"> {stats.dels} deletion{stats.dels !== 1 ? 's' : ''}</strong> | |
| 74 | + </div> | |
| 75 | + | |
| 76 | + {/* File diffs */} | |
| 77 | + {diff.map((file: any) => ( | |
| 78 | + <div class="card" style="margin-bottom: 8px; padding: 0; overflow: hidden;"> | |
| 79 | + <div style="padding: 8px 16px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border); font-size: 0.8125rem; display: flex; gap: 8px; align-items: center;"> | |
| 80 | + <span style={`padding: 0 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; ${ | |
| 81 | + file.status === 'added' ? 'background: var(--diff-add-badge-bg); color: var(--diff-add-text);' | |
| 82 | + : file.status === 'deleted' ? 'background: var(--diff-del-badge-bg); color: var(--diff-del-text);' | |
| 83 | + : 'background: var(--diff-mod-badge-bg); color: var(--diff-mod-text);' | |
| 84 | + }`}> | |
| 85 | + {file.status === 'added' ? 'A' : file.status === 'deleted' ? 'D' : 'M'} | |
| 86 | + </span> | |
| 87 | + <span style="font-family: var(--font-mono);">{file.path}</span> | |
| 88 | + </div> | |
| 89 | + {file.isBinary ? ( | |
| 90 | + <div style="padding: 16px; text-align: center; color: var(--text-muted);">Binary file</div> | |
| 91 | + ) : ( | |
| 92 | + <div style="overflow-x: auto;"> | |
| 93 | + {file.hunks?.map((hunk: any) => ( | |
| 94 | + <table style="width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.8125rem;"> | |
| 95 | + <tbody> | |
| 96 | + <tr> | |
| 97 | + <td colspan="3" style="padding: 4px 12px; background: var(--diff-hunk-bg); color: var(--diff-hunk-text); font-size: 0.75rem;"> | |
| 98 | + @@ -{hunk.oldStart},{hunk.oldCount} +{hunk.newStart},{hunk.newCount} @@ | |
| 99 | + </td> | |
| 100 | + </tr> | |
| 101 | + {hunk.lines.map((line: any) => ( | |
| 102 | + <tr style={ | |
| 103 | + line.type === 'add' ? 'background: var(--diff-add-bg);' | |
| 104 | + : line.type === 'delete' ? 'background: var(--diff-del-bg);' | |
| 105 | + : '' | |
| 106 | + }> | |
| 107 | + <td style="padding: 0 8px; text-align: right; color: var(--text-muted); user-select: none; width: 1%; white-space: nowrap; border-right: 1px solid var(--border);"> | |
| 108 | + {line.oldLineNo ?? ''} | |
| 109 | + </td> | |
| 110 | + <td style="padding: 0 8px; text-align: right; color: var(--text-muted); user-select: none; width: 1%; white-space: nowrap; border-right: 1px solid var(--border);"> | |
| 111 | + {line.newLineNo ?? ''} | |
| 112 | + </td> | |
| 113 | + <td style="padding: 0 12px; white-space: pre;"> | |
| 114 | + <span style={ | |
| 115 | + line.type === 'add' ? 'color: var(--diff-add-text);' | |
| 116 | + : line.type === 'delete' ? 'color: var(--diff-del-text);' | |
| 117 | + : '' | |
| 118 | + }>{line.type === 'add' ? '+' : line.type === 'delete' ? '-' : ' '}{line.content}</span> | |
| 119 | + </td> | |
| 120 | + </tr> | |
| 121 | + ))} | |
| 122 | + </tbody> | |
| 123 | + </table> | |
| 124 | + ))} | |
| 125 | + </div> | |
| 126 | + )} | |
| 127 | + </div> | |
| 128 | + ))} | |
| 129 | + </div> | |
| 130 | + ); | |
| 131 | + })()} | |
| 132 | +</Repo> | |
| 133 | + | |
A packages/ui/src/pages/[owner]/[repo]/commits/[...ref].astro
| @@ -1,0 +1,92 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet } from '../../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo, ref: refParam } = Astro.params; | |
| 6 | +const ref = refParam || 'main'; | |
| 7 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 8 | + | |
| 9 | +let commits: any[] = []; | |
| 10 | +let error = ''; | |
| 11 | + | |
| 12 | +try { | |
| 13 | + const data = await apiGet(`/api/repos/${owner}/${repo}/commits/${ref}`, cookie); | |
| 14 | + commits = data.commits || []; | |
| 15 | +} catch (e: any) { | |
| 16 | + error = e.message; | |
| 17 | +} | |
| 18 | + | |
| 19 | +function parseAuthor(author: string) { | |
| 20 | + const match = author.match(/^(.+?) <(.+?)> (\d+) ([+-]\d{4})$/); | |
| 21 | + if (!match) return { name: author, date: '' }; | |
| 22 | + const timestamp = parseInt(match[3]) * 1000; | |
| 23 | + const date = new Date(timestamp); | |
| 24 | + return { | |
| 25 | + name: match[1], | |
| 26 | + date: date.toLocaleDateString('en-US', { | |
| 27 | + year: 'numeric', | |
| 28 | + month: 'short', | |
| 29 | + day: 'numeric', | |
| 30 | + }), | |
| 31 | + }; | |
| 32 | +} | |
| 33 | +--- | |
| 34 | + | |
| 35 | +<Repo owner={owner!} repo={repo!} activeTab="commits" ref={ref}> | |
| 36 | + {error && <div class="flash-error">{error}</div>} | |
| 37 | + | |
| 38 | + <h2 style="font-size: 1rem; margin-bottom: 16px; color: var(--text-muted);"> | |
| 39 | + Commits on <strong style="color: var(--text);">{ref}</strong> | |
| 40 | + </h2> | |
| 41 | + | |
| 42 | + <div class="commit-list"> | |
| 43 | + {commits.map((commit: any) => { | |
| 44 | + const { name, date } = parseAuthor(commit.author); | |
| 45 | + const shortSha = commit.sha.slice(0, 7); | |
| 46 | + const firstLine = commit.message.split('\n')[0]; | |
| 47 | + return ( | |
| 48 | + <div style=" | |
| 49 | + display: flex; | |
| 50 | + justify-content: space-between; | |
| 51 | + align-items: center; | |
| 52 | + padding: 12px 16px; | |
| 53 | + border: 1px solid var(--border); | |
| 54 | + border-bottom: none; | |
| 55 | + background: var(--bg-secondary); | |
| 56 | + font-size: 0.875rem; | |
| 57 | + " class="commit-row"> | |
| 58 | + <div style="min-width: 0; flex: 1;"> | |
| 59 | + <div style="font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> | |
| 60 | + <a href={`/${owner}/${repo}/commit/${commit.sha}`} style="color: var(--text);"> | |
| 61 | + {firstLine} | |
| 62 | + </a> | |
| 63 | + </div> | |
| 64 | + <div style="color: var(--text-muted); font-size: 0.8125rem; margin-top: 2px;"> | |
| 65 | + {name} committed on {date} | |
| 66 | + </div> | |
| 67 | + </div> | |
| 68 | + <div style="flex-shrink: 0; margin-left: 16px;"> | |
| 69 | + <a | |
| 70 | + href={`/${owner}/${repo}/commit/${commit.sha}`} | |
| 71 | + class="btn" | |
| 72 | + style="font-family: var(--font-mono); font-size: 0.75rem; padding: 2px 10px;" | |
| 73 | + > | |
| 74 | + {shortSha} | |
| 75 | + </a> | |
| 76 | + </div> | |
| 77 | + </div> | |
| 78 | + ); | |
| 79 | + })} | |
| 80 | + </div> | |
| 81 | +</Repo> | |
| 82 | + | |
| 83 | +<style> | |
| 84 | + .commit-row:first-child { | |
| 85 | + border-radius: var(--radius) var(--radius) 0 0; | |
| 86 | + } | |
| 87 | + .commit-row:last-child { | |
| 88 | + border-bottom: 1px solid var(--border) !important; | |
| 89 | + border-radius: 0 0 var(--radius) var(--radius); | |
| 90 | + } | |
| 91 | +</style> | |
| 92 | + | |
A packages/ui/src/pages/[owner]/[repo]/index.astro
| @@ -1,0 +1,125 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet } from '../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo } = Astro.params; | |
| 6 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 7 | + | |
| 8 | +let repoData: any = null; | |
| 9 | +let tree: any = null; | |
| 10 | +let readme: any = null; | |
| 11 | +let branches: any = null; | |
| 12 | +let activity: any[] = []; | |
| 13 | +let error = ''; | |
| 14 | + | |
| 15 | +try { | |
| 16 | + repoData = await apiGet(`/api/repos/${owner}/${repo}`, cookie); | |
| 17 | + branches = await apiGet(`/api/repos/${owner}/${repo}/branches`, cookie); | |
| 18 | + tree = await apiGet(`/api/repos/${owner}/${repo}/tree/${repoData.default_branch || 'main'}`, cookie); | |
| 19 | + | |
| 20 | + // Try to find and load README | |
| 21 | + const readmeEntry = tree.entries?.find((e: any) => | |
| 22 | + /^readme(\.(md|txt|rst))?$/i.test(e.name) && e.type === 'file' | |
| 23 | + ); | |
| 24 | + if (readmeEntry) { | |
| 25 | + readme = await apiGet( | |
| 26 | + `/api/repos/${owner}/${repo}/blob/${repoData.default_branch || 'main'}/${readmeEntry.name}`, | |
| 27 | + cookie | |
| 28 | + ); | |
| 29 | + } | |
| 30 | + | |
| 31 | + activity = await apiGet(`/api/repos/${owner}/${repo}/activity`, cookie); | |
| 32 | +} catch (e: any) { | |
| 33 | + error = e.message; | |
| 34 | +} | |
| 35 | + | |
| 36 | +const ref = repoData?.default_branch || 'main'; | |
| 37 | +const cloneUrl = `${new URL(Astro.request.url).origin}/${owner}/${repo}.git`; | |
| 38 | +--- | |
| 39 | + | |
| 40 | +<Repo owner={owner!} repo={repo!} activeTab="code" ref={ref}> | |
| 41 | + {error && <div class="flash-error">{error}</div>} | |
| 42 | + | |
| 43 | + {repoData && ( | |
| 44 | + <> | |
| 45 | + {/* Clone URL */} | |
| 46 | + <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"> | |
| 47 | + <div style="display: flex; align-items: center; gap: 8px;"> | |
| 48 | + <span style="font-size: 0.875rem; color: var(--text-muted);">Branch:</span> | |
| 49 | + <span class="btn" style="font-size: 0.8125rem;">{ref}</span> | |
| 50 | + </div> | |
| 51 | + <div style="display: flex; align-items: center; gap: 8px;"> | |
| 52 | + <code style="background: var(--bg-tertiary); padding: 4px 12px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-muted);"> | |
| 53 | + git clone {cloneUrl} | |
| 54 | + </code> | |
| 55 | + </div> | |
| 56 | + </div> | |
| 57 | + | |
| 58 | + {/* File listing */} | |
| 59 | + {tree && ( | |
| 60 | + <div class="card" style="padding: 0; overflow: hidden;"> | |
| 61 | + <table style="width: 100%; border-collapse: collapse;"> | |
| 62 | + <tbody> | |
| 63 | + {tree.entries.map((entry: any) => ( | |
| 64 | + <tr style="border-bottom: 1px solid var(--border);"> | |
| 65 | + <td style="padding: 8px 16px; font-size: 0.875rem;"> | |
| 66 | + <span style="color: var(--text-muted); margin-right: 8px;"> | |
| 67 | + {entry.type === 'dir' ? '📁' : '📄'} | |
| 68 | + </span> | |
| 69 | + {entry.type === 'dir' ? ( | |
| 70 | + <a href={`/${owner}/${repo}/tree/${ref}/${entry.name}`}>{entry.name}</a> | |
| 71 | + ) : ( | |
| 72 | + <a href={`/${owner}/${repo}/blob/${ref}/${entry.name}`}>{entry.name}</a> | |
| 73 | + )} | |
| 74 | + </td> | |
| 75 | + </tr> | |
| 76 | + ))} | |
| 77 | + </tbody> | |
| 78 | + </table> | |
| 79 | + </div> | |
| 80 | + )} | |
| 81 | + | |
| 82 | + {/* README */} | |
| 83 | + {readme && ( | |
| 84 | + <div class="card" style="margin-top: 16px;"> | |
| 85 | + <div style="padding: 8px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px;"> | |
| 86 | + <strong style="font-size: 0.875rem;">{readme.path}</strong> | |
| 87 | + </div> | |
| 88 | + <div style="font-size: 0.875rem; line-height: 1.6;"> | |
| 89 | + <pre style="white-space: pre-wrap; font-family: var(--font-sans);">{readme.content}</pre> | |
| 90 | + </div> | |
| 91 | + </div> | |
| 92 | + )} | |
| 93 | + | |
| 94 | + {/* Activity feed */} | |
| 95 | + {activity.length > 0 && ( | |
| 96 | + <div style="margin-top: 20px;"> | |
| 97 | + <h3 style="font-size: 1rem; margin-bottom: 12px; color: var(--text-muted);">Recent activity</h3> | |
| 98 | + <div class="card" style="padding: 0;"> | |
| 99 | + {activity.slice(0, 10).map((event: any) => ( | |
| 100 | + <div style="padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: 0.8125rem; display: flex; justify-content: space-between; align-items: center;"> | |
| 101 | + <div> | |
| 102 | + <strong style="color: var(--text);">{event.username || 'unknown'}</strong> | |
| 103 | + {event.action === 'push' && ( | |
| 104 | + <span style="color: var(--text-muted);"> pushed to <code style="background: var(--bg-tertiary); padding: 1px 4px; border-radius: 3px;">{event.details?.ref}</code></span> | |
| 105 | + )} | |
| 106 | + {event.action === 'create_mr' && ( | |
| 107 | + <span style="color: var(--text-muted);"> opened MR <a href={`/${owner}/${repo}/merge-requests/${event.details?.mr_number}`}>#{event.details?.mr_number}</a> {event.details?.mr_title}</span> | |
| 108 | + )} | |
| 109 | + {event.action === 'merge_mr' && ( | |
| 110 | + <span style="color: var(--text-muted);"> merged MR <a href={`/${owner}/${repo}/merge-requests/${event.details?.mr_number}`}>#{event.details?.mr_number}</a> {event.details?.mr_title}</span> | |
| 111 | + )} | |
| 112 | + {event.action === 'create_repo' && ( | |
| 113 | + <span style="color: var(--text-muted);"> created this repository</span> | |
| 114 | + )} | |
| 115 | + </div> | |
| 116 | + <span style="color: var(--text-muted); font-size: 0.75rem; white-space: nowrap;">{event.created_at}</span> | |
| 117 | + </div> | |
| 118 | + ))} | |
| 119 | + </div> | |
| 120 | + </div> | |
| 121 | + )} | |
| 122 | + </> | |
| 123 | + )} | |
| 124 | +</Repo> | |
| 125 | + | |
A packages/ui/src/pages/[owner]/[repo]/merge-requests/[number].astro
| @@ -1,0 +1,199 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet, apiPost } from '../../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo, number } = Astro.params; | |
| 6 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 7 | + | |
| 8 | +let mr: any = null; | |
| 9 | +let error = ''; | |
| 10 | + | |
| 11 | +// Handle POST actions (comment or merge) | |
| 12 | +if (Astro.request.method === 'POST') { | |
| 13 | + try { | |
| 14 | + const formData = await Astro.request.formData(); | |
| 15 | + const action = formData.get('action'); | |
| 16 | + | |
| 17 | + if (action === 'comment') { | |
| 18 | + const body = formData.get('body') as string; | |
| 19 | + await apiPost( | |
| 20 | + `/api/repos/${owner}/${repo}/merge-requests/${number}/comments`, | |
| 21 | + { body }, | |
| 22 | + cookie | |
| 23 | + ); | |
| 24 | + } else if (action === 'merge') { | |
| 25 | + await apiPost( | |
| 26 | + `/api/repos/${owner}/${repo}/merge-requests/${number}/merge`, | |
| 27 | + {}, | |
| 28 | + cookie | |
| 29 | + ); | |
| 30 | + } | |
| 31 | + | |
| 32 | + return Astro.redirect(`/${owner}/${repo}/merge-requests/${number}`); | |
| 33 | + } catch (e: any) { | |
| 34 | + error = e.message; | |
| 35 | + } | |
| 36 | +} | |
| 37 | + | |
| 38 | +try { | |
| 39 | + mr = await apiGet(`/api/repos/${owner}/${repo}/merge-requests/${number}`, cookie); | |
| 40 | +} catch (e: any) { | |
| 41 | + error = e.message; | |
| 42 | +} | |
| 43 | + | |
| 44 | +function parseAuthor(author: string) { | |
| 45 | + const match = author?.match(/^(.+?) <(.+?)> (\d+)/); | |
| 46 | + if (!match) return { name: author || 'unknown', date: '' }; | |
| 47 | + const date = new Date(parseInt(match[3]) * 1000); | |
| 48 | + return { | |
| 49 | + name: match[1], | |
| 50 | + date: date.toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' }), | |
| 51 | + }; | |
| 52 | +} | |
| 53 | +--- | |
| 54 | + | |
| 55 | +<Repo owner={owner!} repo={repo!}> | |
| 56 | + {error && <div class="flash-error">{error}</div>} | |
| 57 | + | |
| 58 | + {mr && ( | |
| 59 | + <div> | |
| 60 | + {/* Header */} | |
| 61 | + <div style="margin-bottom: 20px;"> | |
| 62 | + <h2 style="font-size: 1.5rem; margin-bottom: 4px;"> | |
| 63 | + {mr.title} | |
| 64 | + <span style="color: var(--text-muted); font-weight: normal;"> #{mr.number}</span> | |
| 65 | + </h2> | |
| 66 | + <div style="display: flex; gap: 8px; align-items: center;"> | |
| 67 | + <span style={`font-size: 0.75rem; padding: 2px 10px; border-radius: 12px; color: #fff; ${ | |
| 68 | + mr.state === 'open' ? 'background: var(--state-open);' | |
| 69 | + : mr.state === 'merged' ? 'background: var(--state-merged);' | |
| 70 | + : 'background: var(--state-closed);' | |
| 71 | + }`}> | |
| 72 | + {mr.state} | |
| 73 | + </span> | |
| 74 | + <span style="font-size: 0.875rem; color: var(--text-muted);"> | |
| 75 | + {mr.author_username} wants to merge | |
| 76 | + <code style="background: var(--bg-tertiary); padding: 1px 6px; border-radius: 4px;">{mr.source_branch}</code> | |
| 77 | + into | |
| 78 | + <code style="background: var(--bg-tertiary); padding: 1px 6px; border-radius: 4px;">{mr.target_branch}</code> | |
| 79 | + </span> | |
| 80 | + </div> | |
| 81 | + </div> | |
| 82 | + | |
| 83 | + {/* Description */} | |
| 84 | + {mr.description && ( | |
| 85 | + <div class="card" style="margin-bottom: 20px;"> | |
| 86 | + <pre style="white-space: pre-wrap; font-family: var(--font-sans); font-size: 0.875rem;">{mr.description}</pre> | |
| 87 | + </div> | |
| 88 | + )} | |
| 89 | + | |
| 90 | + {/* Diff */} | |
| 91 | + {mr.diff && mr.diff.length > 0 && ( | |
| 92 | + <div style="margin-bottom: 20px;"> | |
| 93 | + <h3 style="font-size: 1rem; margin-bottom: 12px;"> | |
| 94 | + Files changed ({mr.diff.length}) | |
| 95 | + </h3> | |
| 96 | + {mr.diff.map((file: any) => ( | |
| 97 | + <div class="card" style="margin-bottom: 8px; padding: 0; overflow: hidden;"> | |
| 98 | + <div style="padding: 8px 16px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border); font-size: 0.8125rem; display: flex; gap: 8px; align-items: center;"> | |
| 99 | + <span style={`padding: 0 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; ${ | |
| 100 | + file.status === 'added' ? 'background: var(--diff-add-badge-bg); color: var(--diff-add-text);' | |
| 101 | + : file.status === 'deleted' ? 'background: var(--diff-del-badge-bg); color: var(--diff-del-text);' | |
| 102 | + : 'background: var(--diff-mod-badge-bg); color: var(--diff-mod-text);' | |
| 103 | + }`}> | |
| 104 | + {file.status === 'added' ? 'A' : file.status === 'deleted' ? 'D' : 'M'} | |
| 105 | + </span> | |
| 106 | + <span style="font-family: var(--font-mono);">{file.path}</span> | |
| 107 | + </div> | |
| 108 | + {file.isBinary ? ( | |
| 109 | + <div style="padding: 16px; text-align: center; color: var(--text-muted); font-size: 0.875rem;"> | |
| 110 | + Binary file | |
| 111 | + </div> | |
| 112 | + ) : ( | |
| 113 | + <div style="overflow-x: auto;"> | |
| 114 | + {file.hunks.map((hunk: any) => ( | |
| 115 | + <table style="width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.8125rem;"> | |
| 116 | + <tbody> | |
| 117 | + <tr> | |
| 118 | + <td colspan="3" style="padding: 4px 12px; background: var(--diff-hunk-bg); color: var(--diff-hunk-text); font-size: 0.75rem;"> | |
| 119 | + @@ -{hunk.oldStart},{hunk.oldCount} +{hunk.newStart},{hunk.newCount} @@ | |
| 120 | + </td> | |
| 121 | + </tr> | |
| 122 | + {hunk.lines.map((line: any) => ( | |
| 123 | + <tr style={ | |
| 124 | + line.type === 'add' ? 'background: var(--diff-add-bg);' | |
| 125 | + : line.type === 'delete' ? 'background: var(--diff-del-bg);' | |
| 126 | + : '' | |
| 127 | + }> | |
| 128 | + <td style="padding: 0 8px; text-align: right; color: var(--text-muted); user-select: none; width: 1%; white-space: nowrap; border-right: 1px solid var(--border);"> | |
| 129 | + {line.oldLineNo ?? ''} | |
| 130 | + </td> | |
| 131 | + <td style="padding: 0 8px; text-align: right; color: var(--text-muted); user-select: none; width: 1%; white-space: nowrap; border-right: 1px solid var(--border);"> | |
| 132 | + {line.newLineNo ?? ''} | |
| 133 | + </td> | |
| 134 | + <td style="padding: 0 12px; white-space: pre;"> | |
| 135 | + <span style={ | |
| 136 | + line.type === 'add' ? 'color: var(--diff-add-text);' | |
| 137 | + : line.type === 'delete' ? 'color: var(--diff-del-text);' | |
| 138 | + : '' | |
| 139 | + }> | |
| 140 | + {line.type === 'add' ? '+' : line.type === 'delete' ? '-' : ' '}{line.content} | |
| 141 | + </span> | |
| 142 | + </td> | |
| 143 | + </tr> | |
| 144 | + ))} | |
| 145 | + </tbody> | |
| 146 | + </table> | |
| 147 | + ))} | |
| 148 | + </div> | |
| 149 | + )} | |
| 150 | + </div> | |
| 151 | + ))} | |
| 152 | + </div> | |
| 153 | + )} | |
| 154 | + | |
| 155 | + {/* Comments */} | |
| 156 | + <h3 style="font-size: 1rem; margin-bottom: 12px;">Discussion</h3> | |
| 157 | + | |
| 158 | + {mr.comments?.map((comment: any) => ( | |
| 159 | + <div class="card" style="margin-bottom: 8px;"> | |
| 160 | + <div style="display: flex; justify-content: space-between; margin-bottom: 8px;"> | |
| 161 | + <strong style="font-size: 0.875rem;">{comment.author_username}</strong> | |
| 162 | + <span style="font-size: 0.75rem; color: var(--text-muted);">{comment.created_at}</span> | |
| 163 | + </div> | |
| 164 | + {comment.file_path && ( | |
| 165 | + <div style="font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; font-family: var(--font-mono);"> | |
| 166 | + {comment.file_path}:{comment.line_number} | |
| 167 | + </div> | |
| 168 | + )} | |
| 169 | + <div style="font-size: 0.875rem;">{comment.body}</div> | |
| 170 | + </div> | |
| 171 | + ))} | |
| 172 | + | |
| 173 | + {/* Comment form */} | |
| 174 | + {mr.state === 'open' && ( | |
| 175 | + <form method="POST" style="margin-top: 16px;"> | |
| 176 | + <input type="hidden" name="action" value="comment" /> | |
| 177 | + <div class="form-group"> | |
| 178 | + <textarea name="body" rows="4" required placeholder="Leave a comment..." | |
| 179 | + style="font-family: var(--font-sans);"></textarea> | |
| 180 | + </div> | |
| 181 | + <div style="display: flex; gap: 8px; justify-content: flex-end;"> | |
| 182 | + <button type="submit" class="btn btn-primary">Comment</button> | |
| 183 | + </div> | |
| 184 | + </form> | |
| 185 | + )} | |
| 186 | + | |
| 187 | + {/* Merge button */} | |
| 188 | + {mr.state === 'open' && ( | |
| 189 | + <form method="POST" style="margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);"> | |
| 190 | + <input type="hidden" name="action" value="merge" /> | |
| 191 | + <button type="submit" class="btn btn-primary" style="background: var(--state-merged); border-color: var(--state-merged);"> | |
| 192 | + Merge merge request | |
| 193 | + </button> | |
| 194 | + </form> | |
| 195 | + )} | |
| 196 | + </div> | |
| 197 | + )} | |
| 198 | +</Repo> | |
| 199 | + | |
A packages/ui/src/pages/[owner]/[repo]/merge-requests/index.astro
| @@ -1,0 +1,78 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet } from '../../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo } = Astro.params; | |
| 6 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 7 | +const url = new URL(Astro.request.url); | |
| 8 | +const state = url.searchParams.get('state') || 'open'; | |
| 9 | + | |
| 10 | +let mrs: any[] = []; | |
| 11 | +let error = ''; | |
| 12 | + | |
| 13 | +try { | |
| 14 | + mrs = await apiGet(`/api/repos/${owner}/${repo}/merge-requests?state=${state}`, cookie); | |
| 15 | +} catch (e: any) { | |
| 16 | + error = e.message; | |
| 17 | +} | |
| 18 | +--- | |
| 19 | + | |
| 20 | +<Repo owner={owner!} repo={repo!}> | |
| 21 | + <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"> | |
| 22 | + <div style="display: flex; gap: 8px;"> | |
| 23 | + <a href={`/${owner}/${repo}/merge-requests?state=open`} | |
| 24 | + class="btn" style={state === 'open' ? 'background: var(--accent); border-color: var(--accent); color: #fff;' : ''}> | |
| 25 | + Open | |
| 26 | + </a> | |
| 27 | + <a href={`/${owner}/${repo}/merge-requests?state=merged`} | |
| 28 | + class="btn" style={state === 'merged' ? 'background: var(--accent); border-color: var(--accent); color: #fff;' : ''}> | |
| 29 | + Merged | |
| 30 | + </a> | |
| 31 | + <a href={`/${owner}/${repo}/merge-requests?state=closed`} | |
| 32 | + class="btn" style={state === 'closed' ? 'background: var(--accent); border-color: var(--accent); color: #fff;' : ''}> | |
| 33 | + Closed | |
| 34 | + </a> | |
| 35 | + </div> | |
| 36 | + <a href={`/${owner}/${repo}/merge-requests/new`} class="btn btn-primary">New merge request</a> | |
| 37 | + </div> | |
| 38 | + | |
| 39 | + {error && <div class="flash-error">{error}</div>} | |
| 40 | + | |
| 41 | + <div> | |
| 42 | + {mrs.length === 0 && ( | |
| 43 | + <p style="text-align: center; padding: 48px 0; color: var(--text-muted);"> | |
| 44 | + No {state} merge requests. | |
| 45 | + </p> | |
| 46 | + )} | |
| 47 | + {mrs.map((mr: any) => ( | |
| 48 | + <a href={`/${owner}/${repo}/merge-requests/${mr.number}`} | |
| 49 | + style="display: block; padding: 12px 16px; border: 1px solid var(--border); border-bottom: none; background: var(--bg-secondary); text-decoration: none; font-size: 0.875rem;" | |
| 50 | + class="mr-row"> | |
| 51 | + <div style="display: flex; justify-content: space-between; align-items: center;"> | |
| 52 | + <div> | |
| 53 | + <span style="font-weight: 600; color: var(--text);">{mr.title}</span> | |
| 54 | + <span style="color: var(--text-muted);"> #{mr.number}</span> | |
| 55 | + </div> | |
| 56 | + <span style={`font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; border: 1px solid; ${ | |
| 57 | + mr.state === 'open' ? 'color: var(--state-open); border-color: var(--state-open);' | |
| 58 | + : mr.state === 'merged' ? 'color: var(--state-merged); border-color: var(--state-merged);' | |
| 59 | + : 'color: var(--state-closed); border-color: var(--state-closed);' | |
| 60 | + }`}> | |
| 61 | + {mr.state} | |
| 62 | + </span> | |
| 63 | + </div> | |
| 64 | + <div style="color: var(--text-muted); font-size: 0.8125rem; margin-top: 4px;"> | |
| 65 | + opened by {mr.author_username} · {mr.source_branch} → {mr.target_branch} | |
| 66 | + </div> | |
| 67 | + </a> | |
| 68 | + ))} | |
| 69 | + </div> | |
| 70 | +</Repo> | |
| 71 | + | |
| 72 | +<style> | |
| 73 | + .mr-row:first-of-type { border-radius: var(--radius) var(--radius) 0 0; } | |
| 74 | + .mr-row:last-of-type { border-bottom: 1px solid var(--border) !important; border-radius: 0 0 var(--radius) var(--radius); } | |
| 75 | + .mr-row:only-of-type { border-radius: var(--radius); border-bottom: 1px solid var(--border) !important; } | |
| 76 | + .mr-row:hover { background: var(--bg-tertiary) !important; } | |
| 77 | +</style> | |
| 78 | + | |
A packages/ui/src/pages/[owner]/[repo]/merge-requests/new.astro
| @@ -1,0 +1,88 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet, apiPost } from '../../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo } = Astro.params; | |
| 6 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 7 | + | |
| 8 | +let branches: any[] = []; | |
| 9 | +let defaultBranch = 'main'; | |
| 10 | +let error = ''; | |
| 11 | + | |
| 12 | +try { | |
| 13 | + const data = await apiGet(`/api/repos/${owner}/${repo}/branches`, cookie); | |
| 14 | + branches = data.branches || []; | |
| 15 | + defaultBranch = data.default_branch || 'main'; | |
| 16 | +} catch (e: any) { | |
| 17 | + error = e.message; | |
| 18 | +} | |
| 19 | + | |
| 20 | +if (Astro.request.method === 'POST') { | |
| 21 | + try { | |
| 22 | + const formData = await Astro.request.formData(); | |
| 23 | + const title = formData.get('title') as string; | |
| 24 | + const description = formData.get('description') as string; | |
| 25 | + const source_branch = formData.get('source_branch') as string; | |
| 26 | + const target_branch = formData.get('target_branch') as string; | |
| 27 | + | |
| 28 | + const { data } = await apiPost( | |
| 29 | + `/api/repos/${owner}/${repo}/merge-requests`, | |
| 30 | + { title, description, source_branch, target_branch }, | |
| 31 | + cookie | |
| 32 | + ); | |
| 33 | + | |
| 34 | + return Astro.redirect(`/${owner}/${repo}/merge-requests/${data.number}`); | |
| 35 | + } catch (e: any) { | |
| 36 | + error = e.message; | |
| 37 | + } | |
| 38 | +} | |
| 39 | + | |
| 40 | +const nonDefaultBranches = branches.filter((b: any) => !b.isDefault); | |
| 41 | +--- | |
| 42 | + | |
| 43 | +<Repo owner={owner!} repo={repo!}> | |
| 44 | + <h2 style="font-size: 1.25rem; margin-bottom: 20px;">New merge request</h2> | |
| 45 | + | |
| 46 | + {error && <div class="flash-error">{error}</div>} | |
| 47 | + | |
| 48 | + <form method="POST" class="card"> | |
| 49 | + <div style="display: flex; gap: 16px; margin-bottom: 20px; align-items: center;"> | |
| 50 | + <div class="form-group" style="margin-bottom: 0; flex: 1;"> | |
| 51 | + <label for="source_branch">Source branch</label> | |
| 52 | + <select id="source_branch" name="source_branch" required | |
| 53 | + style="width: 100%; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.875rem;"> | |
| 54 | + {nonDefaultBranches.map((b: any) => ( | |
| 55 | + <option value={b.name}>{b.name}</option> | |
| 56 | + ))} | |
| 57 | + {branches.filter((b: any) => b.isDefault).map((b: any) => ( | |
| 58 | + <option value={b.name}>{b.name}</option> | |
| 59 | + ))} | |
| 60 | + </select> | |
| 61 | + </div> | |
| 62 | + <span style="color: var(--text-muted); font-size: 1.25rem; padding-top: 20px;">→</span> | |
| 63 | + <div class="form-group" style="margin-bottom: 0; flex: 1;"> | |
| 64 | + <label for="target_branch">Target branch</label> | |
| 65 | + <select id="target_branch" name="target_branch" required | |
| 66 | + style="width: 100%; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.875rem;"> | |
| 67 | + {branches.map((b: any) => ( | |
| 68 | + <option value={b.name} selected={b.isDefault}>{b.name}</option> | |
| 69 | + ))} | |
| 70 | + </select> | |
| 71 | + </div> | |
| 72 | + </div> | |
| 73 | + | |
| 74 | + <div class="form-group"> | |
| 75 | + <label for="title">Title</label> | |
| 76 | + <input type="text" id="title" name="title" required placeholder="What does this merge request do?" /> | |
| 77 | + </div> | |
| 78 | + | |
| 79 | + <div class="form-group"> | |
| 80 | + <label for="description">Description <span style="color: var(--text-muted); font-weight: normal;">(optional)</span></label> | |
| 81 | + <textarea id="description" name="description" rows="6" placeholder="Describe your changes..." | |
| 82 | + style="font-family: var(--font-sans);"></textarea> | |
| 83 | + </div> | |
| 84 | + | |
| 85 | + <button type="submit" class="btn btn-primary">Create merge request</button> | |
| 86 | + </form> | |
| 87 | +</Repo> | |
| 88 | + | |
A packages/ui/src/pages/[owner]/[repo]/settings.astro
| @@ -1,0 +1,153 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet, apiPost } from '../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo } = Astro.params; | |
| 6 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 7 | + | |
| 8 | +let repoData: any = null; | |
| 9 | +let webhooks: any[] = []; | |
| 10 | +let error = ''; | |
| 11 | +let success = ''; | |
| 12 | + | |
| 13 | +try { | |
| 14 | + repoData = await apiGet(`/api/repos/${owner}/${repo}`, cookie); | |
| 15 | + try { | |
| 16 | + webhooks = await apiGet(`/api/repos/${owner}/${repo}/webhooks`, cookie); | |
| 17 | + } catch { /* may not have access */ } | |
| 18 | +} catch (e: any) { | |
| 19 | + error = e.message; | |
| 20 | +} | |
| 21 | + | |
| 22 | +if (Astro.request.method === 'POST') { | |
| 23 | + try { | |
| 24 | + const formData = await Astro.request.formData(); | |
| 25 | + const action = formData.get('action'); | |
| 26 | + | |
| 27 | + if (action === 'update') { | |
| 28 | + const description = formData.get('description') as string; | |
| 29 | + const isPrivate = formData.get('visibility') === 'private'; | |
| 30 | + | |
| 31 | + const res = await fetch( | |
| 32 | + `${import.meta.env.PUBLIC_API_URL || 'http://localhost:8321'}/api/repos/${owner}/${repo}/settings`, | |
| 33 | + { | |
| 34 | + method: 'PUT', | |
| 35 | + headers: { 'Content-Type': 'application/json', Cookie: cookie }, | |
| 36 | + body: JSON.stringify({ description, is_private: isPrivate }), | |
| 37 | + } | |
| 38 | + ); | |
| 39 | + if (!res.ok) throw new Error('Failed to update'); | |
| 40 | + success = 'Settings updated.'; | |
| 41 | + repoData = await res.json(); | |
| 42 | + } else if (action === 'add_webhook') { | |
| 43 | + const url = formData.get('webhook_url') as string; | |
| 44 | + const secret = formData.get('webhook_secret') as string; | |
| 45 | + const events = formData.get('webhook_events') as string || 'push'; | |
| 46 | + await apiPost(`/api/repos/${owner}/${repo}/webhooks`, { url, secret, events }, cookie); | |
| 47 | + success = 'Webhook added.'; | |
| 48 | + webhooks = await apiGet(`/api/repos/${owner}/${repo}/webhooks`, cookie); | |
| 49 | + } | |
| 50 | + | |
| 51 | + return Astro.redirect(`/${owner}/${repo}/settings`); | |
| 52 | + } catch (e: any) { | |
| 53 | + error = e.message; | |
| 54 | + } | |
| 55 | +} | |
| 56 | +--- | |
| 57 | + | |
| 58 | +<Repo owner={owner!} repo={repo!} activeTab="settings"> | |
| 59 | + {error && <div class="flash-error">{error}</div>} | |
| 60 | + {success && <div style="background: var(--success-bg); border: 1px solid var(--success-border); padding: 12px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.875rem; color: var(--success-text);">{success}</div>} | |
| 61 | + | |
| 62 | + {repoData && ( | |
| 63 | + <> | |
| 64 | + {/* General settings */} | |
| 65 | + <div class="card" style="margin-bottom: 24px;"> | |
| 66 | + <h2 style="font-size: 1.125rem; margin-bottom: 16px;">General</h2> | |
| 67 | + <form method="POST"> | |
| 68 | + <input type="hidden" name="action" value="update" /> | |
| 69 | + <div class="form-group"> | |
| 70 | + <label for="description">Description</label> | |
| 71 | + <input type="text" id="description" name="description" value={repoData.description || ''} /> | |
| 72 | + </div> | |
| 73 | + <div class="form-group"> | |
| 74 | + <label>Visibility</label> | |
| 75 | + <div style="display: flex; gap: 16px; margin-top: 4px;"> | |
| 76 | + <label style="display: flex; align-items: center; gap: 6px; font-weight: normal; cursor: pointer;"> | |
| 77 | + <input type="radio" name="visibility" value="public" checked={!repoData.is_private} /> Public | |
| 78 | + </label> | |
| 79 | + <label style="display: flex; align-items: center; gap: 6px; font-weight: normal; cursor: pointer;"> | |
| 80 | + <input type="radio" name="visibility" value="private" checked={!!repoData.is_private} /> Private | |
| 81 | + </label> | |
| 82 | + </div> | |
| 83 | + </div> | |
| 84 | + <button type="submit" class="btn btn-primary">Save changes</button> | |
| 85 | + </form> | |
| 86 | + </div> | |
| 87 | + | |
| 88 | + {/* Clone info */} | |
| 89 | + <div class="card" style="margin-bottom: 24px;"> | |
| 90 | + <h2 style="font-size: 1.125rem; margin-bottom: 12px;">Clone URL</h2> | |
| 91 | + <code style="display: block; background: var(--bg); padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 0.8125rem;"> | |
| 92 | + git clone {new URL(Astro.request.url).origin}/{owner}/{repo}.git | |
| 93 | + </code> | |
| 94 | + </div> | |
| 95 | + | |
| 96 | + {/* Webhooks */} | |
| 97 | + <div class="card" style="margin-bottom: 24px;"> | |
| 98 | + <h2 style="font-size: 1.125rem; margin-bottom: 12px;">Webhooks</h2> | |
| 99 | + | |
| 100 | + {webhooks.length > 0 && ( | |
| 101 | + <div style="margin-bottom: 16px;"> | |
| 102 | + {webhooks.map((wh: any) => ( | |
| 103 | + <div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.875rem;"> | |
| 104 | + <div> | |
| 105 | + <code>{wh.url}</code> | |
| 106 | + <span style="color: var(--text-muted); margin-left: 8px; font-size: 0.75rem;"> | |
| 107 | + Events: {wh.events} | |
| 108 | + </span> | |
| 109 | + </div> | |
| 110 | + <span style={`font-size: 0.75rem; ${wh.is_active ? 'color: var(--accent);' : 'color: var(--danger);'}`}> | |
| 111 | + {wh.is_active ? 'active' : 'inactive'} | |
| 112 | + </span> | |
| 113 | + </div> | |
| 114 | + ))} | |
| 115 | + </div> | |
| 116 | + )} | |
| 117 | + | |
| 118 | + <form method="POST"> | |
| 119 | + <input type="hidden" name="action" value="add_webhook" /> | |
| 120 | + <div class="form-group"> | |
| 121 | + <label for="webhook_url">Payload URL</label> | |
| 122 | + <input type="text" id="webhook_url" name="webhook_url" required placeholder="https://example.com/webhook" /> | |
| 123 | + </div> | |
| 124 | + <div style="display: flex; gap: 8px;"> | |
| 125 | + <div class="form-group" style="flex: 1;"> | |
| 126 | + <label for="webhook_secret">Secret <span style="color: var(--text-muted); font-weight: normal;">(optional)</span></label> | |
| 127 | + <input type="text" id="webhook_secret" name="webhook_secret" placeholder="HMAC signing secret" /> | |
| 128 | + </div> | |
| 129 | + <div class="form-group" style="flex: 1;"> | |
| 130 | + <label for="webhook_events">Events</label> | |
| 131 | + <input type="text" id="webhook_events" name="webhook_events" value="push,merge_request" /> | |
| 132 | + </div> | |
| 133 | + </div> | |
| 134 | + <button type="submit" class="btn btn-primary">Add webhook</button> | |
| 135 | + </form> | |
| 136 | + </div> | |
| 137 | + | |
| 138 | + {/* Danger zone */} | |
| 139 | + <div style="border: 1px solid var(--danger); border-radius: var(--radius); padding: 16px;"> | |
| 140 | + <h2 style="font-size: 1.125rem; color: var(--danger); margin-bottom: 8px;">Danger Zone</h2> | |
| 141 | + <p style="font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 12px;"> | |
| 142 | + Once you delete a repository, there is no going back. | |
| 143 | + </p> | |
| 144 | + <button class="btn" style="border-color: var(--danger); color: var(--danger);" | |
| 145 | + onclick="if(confirm('Are you sure? This cannot be undone.')) { fetch(this.dataset.url, {method:'DELETE',credentials:'include'}).then(()=>location.href='/') }" | |
| 146 | + data-url={`${import.meta.env.PUBLIC_API_URL || 'http://localhost:8321'}/api/repos/${owner}/${repo}`}> | |
| 147 | + Delete this repository | |
| 148 | + </button> | |
| 149 | + </div> | |
| 150 | + </> | |
| 151 | + )} | |
| 152 | +</Repo> | |
| 153 | + | |
A packages/ui/src/pages/[owner]/[repo]/tree/[ref]/[...path].astro
| @@ -1,0 +1,77 @@ | ||
| 1 | +--- | |
| 2 | +import Repo from '../../../../../layouts/Repo.astro'; | |
| 3 | +import { apiGet } from '../../../../../lib/api'; | |
| 4 | + | |
| 5 | +const { owner, repo, ref, path } = Astro.params; | |
| 6 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 7 | + | |
| 8 | +let tree: any = null; | |
| 9 | +let error = ''; | |
| 10 | + | |
| 11 | +try { | |
| 12 | + const pathStr = path || ''; | |
| 13 | + tree = await apiGet(`/api/repos/${owner}/${repo}/tree/${ref}/${pathStr}`, cookie); | |
| 14 | +} catch (e: any) { | |
| 15 | + error = e.message; | |
| 16 | +} | |
| 17 | + | |
| 18 | +// Build breadcrumb segments | |
| 19 | +const pathSegments = (path || '').split('/').filter(Boolean); | |
| 20 | +const breadcrumbs = pathSegments.map((seg, i) => ({ | |
| 21 | + name: seg, | |
| 22 | + href: `/${owner}/${repo}/tree/${ref}/${pathSegments.slice(0, i + 1).join('/')}`, | |
| 23 | +})); | |
| 24 | +--- | |
| 25 | + | |
| 26 | +<Repo owner={owner!} repo={repo!} activeTab="code" ref={ref}> | |
| 27 | + {error && <div class="flash-error">{error}</div>} | |
| 28 | + | |
| 29 | + {/* Breadcrumb */} | |
| 30 | + <nav style="margin-bottom: 16px; font-size: 0.875rem;"> | |
| 31 | + <a href={`/${owner}/${repo}`}>{repo}</a> | |
| 32 | + {breadcrumbs.map((bc) => ( | |
| 33 | + <> | |
| 34 | + <span style="color: var(--text-muted);"> / </span> | |
| 35 | + <a href={bc.href}>{bc.name}</a> | |
| 36 | + </> | |
| 37 | + ))} | |
| 38 | + </nav> | |
| 39 | + | |
| 40 | + {tree && ( | |
| 41 | + <div class="card" style="padding: 0; overflow: hidden;"> | |
| 42 | + <table style="width: 100%; border-collapse: collapse;"> | |
| 43 | + <tbody> | |
| 44 | + {/* ".." entry to go up */} | |
| 45 | + {pathSegments.length > 0 && ( | |
| 46 | + <tr style="border-bottom: 1px solid var(--border);"> | |
| 47 | + <td style="padding: 8px 16px; font-size: 0.875rem;"> | |
| 48 | + <a href={pathSegments.length === 1 | |
| 49 | + ? `/${owner}/${repo}` | |
| 50 | + : `/${owner}/${repo}/tree/${ref}/${pathSegments.slice(0, -1).join('/')}` | |
| 51 | + }>..</a> | |
| 52 | + </td> | |
| 53 | + </tr> | |
| 54 | + )} | |
| 55 | + {tree.entries.map((entry: any) => { | |
| 56 | + const fullPath = path ? `${path}/${entry.name}` : entry.name; | |
| 57 | + return ( | |
| 58 | + <tr style="border-bottom: 1px solid var(--border);"> | |
| 59 | + <td style="padding: 8px 16px; font-size: 0.875rem;"> | |
| 60 | + <span style="color: var(--text-muted); margin-right: 8px;"> | |
| 61 | + {entry.type === 'dir' ? '📁' : '📄'} | |
| 62 | + </span> | |
| 63 | + {entry.type === 'dir' ? ( | |
| 64 | + <a href={`/${owner}/${repo}/tree/${ref}/${fullPath}`}>{entry.name}</a> | |
| 65 | + ) : ( | |
| 66 | + <a href={`/${owner}/${repo}/blob/${ref}/${fullPath}`}>{entry.name}</a> | |
| 67 | + )} | |
| 68 | + </td> | |
| 69 | + </tr> | |
| 70 | + ); | |
| 71 | + })} | |
| 72 | + </tbody> | |
| 73 | + </table> | |
| 74 | + </div> | |
| 75 | + )} | |
| 76 | +</Repo> | |
| 77 | + | |
A packages/ui/src/pages/index.astro
| @@ -1,0 +1,45 @@ | ||
| 1 | +--- | |
| 2 | +import Base from '../layouts/Base.astro'; | |
| 3 | +import { apiGet } from '../lib/api'; | |
| 4 | + | |
| 5 | +let repos: any[] = []; | |
| 6 | +let error = ''; | |
| 7 | +try { | |
| 8 | + repos = await apiGet('/api/repos'); | |
| 9 | +} catch (e: any) { | |
| 10 | + error = e.message; | |
| 11 | +} | |
| 12 | +--- | |
| 13 | + | |
| 14 | +<Base title="Explore"> | |
| 15 | + <div class="container" style="padding-top: 24px;"> | |
| 16 | + <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;"> | |
| 17 | + <h1 style="font-size: 1.5rem;">Explore repositories</h1> | |
| 18 | + <a href="/new" class="btn btn-primary">New repository</a> | |
| 19 | + </div> | |
| 20 | + | |
| 21 | + {error && <div class="flash-error">{error}</div>} | |
| 22 | + | |
| 23 | + <div class="repo-list"> | |
| 24 | + {repos.length === 0 && !error && ( | |
| 25 | + <p style="color: var(--text-muted); text-align: center; padding: 48px 0;"> | |
| 26 | + No repositories yet. Create one to get started. | |
| 27 | + </p> | |
| 28 | + )} | |
| 29 | + {repos.map((repo: any) => ( | |
| 30 | + <a href={`/${repo.owner_username}/${repo.name}`} class="repo-card card" style="display: block; margin-bottom: 8px;"> | |
| 31 | + <div style="display: flex; align-items: baseline; gap: 8px;"> | |
| 32 | + <span style="font-weight: 600; color: var(--text-link);">{repo.owner_username}/{repo.name}</span> | |
| 33 | + {repo.is_private ? ( | |
| 34 | + <span style="font-size: 0.75rem; border: 1px solid var(--border); border-radius: 12px; padding: 0 8px; color: var(--text-muted);">Private</span> | |
| 35 | + ) : null} | |
| 36 | + </div> | |
| 37 | + {repo.description && ( | |
| 38 | + <p style="color: var(--text-muted); font-size: 0.875rem; margin-top: 4px;">{repo.description}</p> | |
| 39 | + )} | |
| 40 | + </a> | |
| 41 | + ))} | |
| 42 | + </div> | |
| 43 | + </div> | |
| 44 | +</Base> | |
| 45 | + | |
A packages/ui/src/pages/login.astro
| @@ -1,0 +1,58 @@ | ||
| 1 | +--- | |
| 2 | +import Base from '../layouts/Base.astro'; | |
| 3 | +import { apiPost } from '../lib/api'; | |
| 4 | + | |
| 5 | +let error = ''; | |
| 6 | + | |
| 7 | +if (Astro.request.method === 'POST') { | |
| 8 | + try { | |
| 9 | + const formData = await Astro.request.formData(); | |
| 10 | + const username = formData.get('username') as string; | |
| 11 | + const password = formData.get('password') as string; | |
| 12 | + | |
| 13 | + const { data, headers } = await apiPost('/api/login', { username, password }); | |
| 14 | + | |
| 15 | + // Forward the Set-Cookie from the API | |
| 16 | + const setCookie = headers.get('set-cookie'); | |
| 17 | + if (setCookie) { | |
| 18 | + Astro.cookies.set('session', setCookie.match(/session=([^;]+)/)?.[1] || '', { | |
| 19 | + path: '/', | |
| 20 | + httpOnly: true, | |
| 21 | + secure: true, | |
| 22 | + sameSite: 'strict', | |
| 23 | + maxAge: 7 * 24 * 60 * 60, | |
| 24 | + }); | |
| 25 | + } | |
| 26 | + | |
| 27 | + return Astro.redirect('/'); | |
| 28 | + } catch (e: any) { | |
| 29 | + error = e.message; | |
| 30 | + } | |
| 31 | +} | |
| 32 | +--- | |
| 33 | + | |
| 34 | +<Base title="Sign in"> | |
| 35 | + <div class="container" style="max-width: 400px; padding-top: 48px;"> | |
| 36 | + <div class="card"> | |
| 37 | + <h1 style="font-size: 1.25rem; margin-bottom: 20px; text-align: center;">Sign in to gitfastr</h1> | |
| 38 | + | |
| 39 | + {error && <div class="flash-error">{error}</div>} | |
| 40 | + | |
| 41 | + <form method="POST"> | |
| 42 | + <div class="form-group"> | |
| 43 | + <label for="username">Username</label> | |
| 44 | + <input type="text" id="username" name="username" required autocomplete="username" /> | |
| 45 | + </div> | |
| 46 | + <div class="form-group"> | |
| 47 | + <label for="password">Password</label> | |
| 48 | + <input type="password" id="password" name="password" required autocomplete="current-password" /> | |
| 49 | + </div> | |
| 50 | + <button type="submit" class="btn btn-primary" style="width: 100%;">Sign in</button> | |
| 51 | + </form> | |
| 52 | + </div> | |
| 53 | + <p style="text-align: center; margin-top: 16px; font-size: 0.875rem; color: var(--text-muted);"> | |
| 54 | + Don't have an account? <a href="/register">Sign up</a> | |
| 55 | + </p> | |
| 56 | + </div> | |
| 57 | +</Base> | |
| 58 | + | |
A packages/ui/src/pages/new.astro
| @@ -1,0 +1,56 @@ | ||
| 1 | +--- | |
| 2 | +import Base from '../layouts/Base.astro'; | |
| 3 | +import { apiPost } from '../lib/api'; | |
| 4 | + | |
| 5 | +let error = ''; | |
| 6 | + | |
| 7 | +if (Astro.request.method === 'POST') { | |
| 8 | + try { | |
| 9 | + const formData = await Astro.request.formData(); | |
| 10 | + const name = formData.get('name') as string; | |
| 11 | + const description = formData.get('description') as string; | |
| 12 | + const isPrivate = formData.get('visibility') === 'private'; | |
| 13 | + | |
| 14 | + const cookie = Astro.request.headers.get('cookie') || ''; | |
| 15 | + const { data } = await apiPost('/api/repos', { name, description, is_private: isPrivate }, cookie); | |
| 16 | + | |
| 17 | + // We need the owner username — for now redirect to home | |
| 18 | + return Astro.redirect('/'); | |
| 19 | + } catch (e: any) { | |
| 20 | + error = e.message; | |
| 21 | + } | |
| 22 | +} | |
| 23 | +--- | |
| 24 | + | |
| 25 | +<Base title="New repository"> | |
| 26 | + <div class="container" style="max-width: 600px; padding-top: 24px;"> | |
| 27 | + <h1 style="font-size: 1.5rem; margin-bottom: 20px;">Create a new repository</h1> | |
| 28 | + | |
| 29 | + {error && <div class="flash-error">{error}</div>} | |
| 30 | + | |
| 31 | + <form method="POST" class="card"> | |
| 32 | + <div class="form-group"> | |
| 33 | + <label for="name">Repository name</label> | |
| 34 | + <input type="text" id="name" name="name" required pattern="[a-zA-Z0-9._-]{1,64}" | |
| 35 | + placeholder="my-awesome-project" /> | |
| 36 | + </div> | |
| 37 | + <div class="form-group"> | |
| 38 | + <label for="description">Description <span style="color: var(--text-muted); font-weight: normal;">(optional)</span></label> | |
| 39 | + <input type="text" id="description" name="description" placeholder="Short description of your repository" /> | |
| 40 | + </div> | |
| 41 | + <div class="form-group"> | |
| 42 | + <label>Visibility</label> | |
| 43 | + <div style="display: flex; gap: 16px; margin-top: 4px;"> | |
| 44 | + <label style="display: flex; align-items: center; gap: 6px; font-weight: normal; cursor: pointer;"> | |
| 45 | + <input type="radio" name="visibility" value="public" checked /> Public | |
| 46 | + </label> | |
| 47 | + <label style="display: flex; align-items: center; gap: 6px; font-weight: normal; cursor: pointer;"> | |
| 48 | + <input type="radio" name="visibility" value="private" /> Private | |
| 49 | + </label> | |
| 50 | + </div> | |
| 51 | + </div> | |
| 52 | + <button type="submit" class="btn btn-primary">Create repository</button> | |
| 53 | + </form> | |
| 54 | + </div> | |
| 55 | +</Base> | |
| 56 | + | |
A packages/ui/src/pages/register.astro
| @@ -1,0 +1,64 @@ | ||
| 1 | +--- | |
| 2 | +import Base from '../layouts/Base.astro'; | |
| 3 | +import { apiPost } from '../lib/api'; | |
| 4 | + | |
| 5 | +let error = ''; | |
| 6 | + | |
| 7 | +if (Astro.request.method === 'POST') { | |
| 8 | + try { | |
| 9 | + const formData = await Astro.request.formData(); | |
| 10 | + const username = formData.get('username') as string; | |
| 11 | + const email = formData.get('email') as string; | |
| 12 | + const password = formData.get('password') as string; | |
| 13 | + | |
| 14 | + await apiPost('/api/register', { username, email, password }); | |
| 15 | + | |
| 16 | + // Auto-login after registration | |
| 17 | + const { data, headers } = await apiPost('/api/login', { username, password }); | |
| 18 | + const setCookie = headers.get('set-cookie'); | |
| 19 | + if (setCookie) { | |
| 20 | + Astro.cookies.set('session', setCookie.match(/session=([^;]+)/)?.[1] || '', { | |
| 21 | + path: '/', | |
| 22 | + httpOnly: true, | |
| 23 | + secure: true, | |
| 24 | + sameSite: 'strict', | |
| 25 | + maxAge: 7 * 24 * 60 * 60, | |
| 26 | + }); | |
| 27 | + } | |
| 28 | + | |
| 29 | + return Astro.redirect('/'); | |
| 30 | + } catch (e: any) { | |
| 31 | + error = e.message; | |
| 32 | + } | |
| 33 | +} | |
| 34 | +--- | |
| 35 | + | |
| 36 | +<Base title="Sign up"> | |
| 37 | + <div class="container" style="max-width: 400px; padding-top: 48px;"> | |
| 38 | + <div class="card"> | |
| 39 | + <h1 style="font-size: 1.25rem; margin-bottom: 20px; text-align: center;">Create your account</h1> | |
| 40 | + | |
| 41 | + {error && <div class="flash-error">{error}</div>} | |
| 42 | + | |
| 43 | + <form method="POST"> | |
| 44 | + <div class="form-group"> | |
| 45 | + <label for="username">Username</label> | |
| 46 | + <input type="text" id="username" name="username" required pattern="[a-zA-Z0-9_-]{2,32}" /> | |
| 47 | + </div> | |
| 48 | + <div class="form-group"> | |
| 49 | + <label for="email">Email</label> | |
| 50 | + <input type="email" id="email" name="email" required /> | |
| 51 | + </div> | |
| 52 | + <div class="form-group"> | |
| 53 | + <label for="password">Password</label> | |
| 54 | + <input type="password" id="password" name="password" required minlength="8" autocomplete="new-password" /> | |
| 55 | + </div> | |
| 56 | + <button type="submit" class="btn btn-primary" style="width: 100%;">Create account</button> | |
| 57 | + </form> | |
| 58 | + </div> | |
| 59 | + <p style="text-align: center; margin-top: 16px; font-size: 0.875rem; color: var(--text-muted);"> | |
| 60 | + Already have an account? <a href="/login">Sign in</a> | |
| 61 | + </p> | |
| 62 | + </div> | |
| 63 | +</Base> | |
| 64 | + | |
A packages/ui/src/pages/settings.astro
| @@ -1,0 +1,113 @@ | ||
| 1 | +--- | |
| 2 | +import Base from '../layouts/Base.astro'; | |
| 3 | +import { apiGet, apiPost } from '../lib/api'; | |
| 4 | + | |
| 5 | +const cookie = Astro.request.headers.get('cookie') || ''; | |
| 6 | + | |
| 7 | +let user: any = null; | |
| 8 | +let tokens: any[] = []; | |
| 9 | +let error = ''; | |
| 10 | +let newToken = ''; | |
| 11 | + | |
| 12 | +try { | |
| 13 | + [user, tokens] = await Promise.all([ | |
| 14 | + apiGet('/api/user', cookie), | |
| 15 | + apiGet('/api/user/tokens', cookie), | |
| 16 | + ]); | |
| 17 | +} catch (e: any) { | |
| 18 | + error = e.message; | |
| 19 | +} | |
| 20 | + | |
| 21 | +if (Astro.request.method === 'POST') { | |
| 22 | + try { | |
| 23 | + const formData = await Astro.request.formData(); | |
| 24 | + const action = formData.get('action'); | |
| 25 | + | |
| 26 | + if (action === 'create_token') { | |
| 27 | + const name = formData.get('name') as string; | |
| 28 | + const { data } = await apiPost('/api/tokens', { name }, cookie); | |
| 29 | + newToken = data.token; | |
| 30 | + // Refresh token list | |
| 31 | + tokens = await apiGet('/api/user/tokens', cookie); | |
| 32 | + } | |
| 33 | + } catch (e: any) { | |
| 34 | + error = e.message; | |
| 35 | + } | |
| 36 | +} | |
| 37 | +--- | |
| 38 | + | |
| 39 | +<Base title="Settings"> | |
| 40 | + <div class="container" style="max-width: 700px; padding-top: 24px;"> | |
| 41 | + <h1 style="font-size: 1.5rem; margin-bottom: 24px;">Settings</h1> | |
| 42 | + | |
| 43 | + {error && <div class="flash-error">{error}</div>} | |
| 44 | + | |
| 45 | + {user && ( | |
| 46 | + <> | |
| 47 | + {/* Profile */} | |
| 48 | + <div class="card" style="margin-bottom: 24px;"> | |
| 49 | + <h2 style="font-size: 1.125rem; margin-bottom: 12px;">Profile</h2> | |
| 50 | + <div style="font-size: 0.875rem; display: grid; grid-template-columns: 120px 1fr; gap: 8px;"> | |
| 51 | + <span style="color: var(--text-muted);">Username</span> | |
| 52 | + <span>{user.username}</span> | |
| 53 | + <span style="color: var(--text-muted);">Email</span> | |
| 54 | + <span>{user.email}</span> | |
| 55 | + <span style="color: var(--text-muted);">Member since</span> | |
| 56 | + <span>{user.created_at}</span> | |
| 57 | + </div> | |
| 58 | + </div> | |
| 59 | + | |
| 60 | + {/* Personal Access Tokens */} | |
| 61 | + <div class="card" style="margin-bottom: 24px;"> | |
| 62 | + <h2 style="font-size: 1.125rem; margin-bottom: 12px;">Personal Access Tokens</h2> | |
| 63 | + <p style="font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 16px;"> | |
| 64 | + Tokens are used for git push/pull authentication. Use them as the password in git credential helpers. | |
| 65 | + </p> | |
| 66 | + | |
| 67 | + {newToken && ( | |
| 68 | + <div style="background: var(--success-bg); border: 1px solid var(--success-border); padding: 12px; border-radius: var(--radius); margin-bottom: 16px;"> | |
| 69 | + <div style="font-size: 0.8125rem; font-weight: 600; margin-bottom: 4px;">New token created — copy it now, it won't be shown again:</div> | |
| 70 | + <code style="background: var(--bg); padding: 4px 8px; border-radius: 4px; font-size: 0.875rem; word-break: break-all;">{newToken}</code> | |
| 71 | + </div> | |
| 72 | + )} | |
| 73 | + | |
| 74 | + {/* Token list */} | |
| 75 | + {tokens.length > 0 && ( | |
| 76 | + <div style="margin-bottom: 16px;"> | |
| 77 | + {tokens.map((token: any) => ( | |
| 78 | + <div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.875rem;"> | |
| 79 | + <div> | |
| 80 | + <strong>{token.name}</strong> | |
| 81 | + <span style="color: var(--text-muted); margin-left: 8px;"> | |
| 82 | + <code>{token.token_prefix}...</code> | |
| 83 | + </span> | |
| 84 | + {token.last_used_at && ( | |
| 85 | + <span style="color: var(--text-muted); font-size: 0.75rem; margin-left: 8px;"> | |
| 86 | + Last used: {token.last_used_at} | |
| 87 | + </span> | |
| 88 | + )} | |
| 89 | + </div> | |
| 90 | + </div> | |
| 91 | + ))} | |
| 92 | + </div> | |
| 93 | + )} | |
| 94 | + | |
| 95 | + {/* Create token form */} | |
| 96 | + <form method="POST" style="display: flex; gap: 8px; align-items: end;"> | |
| 97 | + <input type="hidden" name="action" value="create_token" /> | |
| 98 | + <div class="form-group" style="margin-bottom: 0; flex: 1;"> | |
| 99 | + <label for="token_name" style="font-size: 0.8125rem;">Token name</label> | |
| 100 | + <input type="text" id="token_name" name="name" required placeholder="e.g., laptop" /> | |
| 101 | + </div> | |
| 102 | + <button type="submit" class="btn btn-primary" style="white-space: nowrap;">Create token</button> | |
| 103 | + </form> | |
| 104 | + </div> | |
| 105 | + </> | |
| 106 | + )} | |
| 107 | + | |
| 108 | + {!user && !error && ( | |
| 109 | + <p style="color: var(--text-muted);">Please <a href="/login">sign in</a> to access settings.</p> | |
| 110 | + )} | |
| 111 | + </div> | |
| 112 | +</Base> | |
| 113 | + | |
A packages/ui/tsconfig.json
| @@ -1,0 +1,10 @@ | ||
| 1 | +{ | |
| 2 | + "extends": "../../tsconfig.base.json", | |
| 3 | + "compilerOptions": { | |
| 4 | + "jsx": "react-jsx", | |
| 5 | + "jsxImportSource": "preact", | |
| 6 | + "noEmit": true | |
| 7 | + }, | |
| 8 | + "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.astro"] | |
| 9 | +} | |
| 10 | + | |
A packages/ui/wrangler.toml
| @@ -1,0 +1,8 @@ | ||
| 1 | +name = "gitfastr" | |
| 2 | +account_id = "5ec6229ce6a04f3b5c5e9938e965150e" | |
| 3 | +compatibility_date = "2025-03-01" | |
| 4 | +pages_build_output_dir = "./dist" | |
| 5 | + | |
| 6 | +[vars] | |
| 7 | +PUBLIC_API_URL = "https://gitfastr-api.operations-dev.workers.dev" | |
| 8 | + | |
A packages/worker/db/migrations/0001_initial.sql
| @@ -1,0 +1,155 @@ | ||
| 1 | +-- gitfastr initial schema | |
| 2 | + | |
| 3 | +-- Users | |
| 4 | +CREATE TABLE users ( | |
| 5 | + id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))), | |
| 6 | + username TEXT NOT NULL UNIQUE, | |
| 7 | + email TEXT NOT NULL UNIQUE, | |
| 8 | + password_hash TEXT NOT NULL, | |
| 9 | + display_name TEXT, | |
| 10 | + bio TEXT, | |
| 11 | + avatar_url TEXT, | |
| 12 | + is_admin INTEGER NOT NULL DEFAULT 0, | |
| 13 | + created_at TEXT NOT NULL DEFAULT (datetime('now')), | |
| 14 | + updated_at TEXT NOT NULL DEFAULT (datetime('now')) | |
| 15 | +); | |
| 16 | +CREATE INDEX idx_users_username ON users(username); | |
| 17 | + | |
| 18 | +-- Personal Access Tokens | |
| 19 | +CREATE TABLE access_tokens ( | |
| 20 | + id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))), | |
| 21 | + user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE, | |
| 22 | + name TEXT NOT NULL, | |
| 23 | + token_hash TEXT NOT NULL UNIQUE, | |
| 24 | + token_prefix TEXT NOT NULL, | |
| 25 | + scopes TEXT NOT NULL DEFAULT 'repo', | |
| 26 | + expires_at TEXT, | |
| 27 | + last_used_at TEXT, | |
| 28 | + created_at TEXT NOT NULL DEFAULT (datetime('now')) | |
| 29 | +); | |
| 30 | +CREATE INDEX idx_access_tokens_user ON access_tokens(user_id); | |
| 31 | +CREATE INDEX idx_access_tokens_hash ON access_tokens(token_hash); | |
| 32 | + | |
| 33 | +-- Sessions (web UI) | |
| 34 | +CREATE TABLE sessions ( | |
| 35 | + id TEXT PRIMARY KEY, | |
| 36 | + user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE, | |
| 37 | + expires_at TEXT NOT NULL, | |
| 38 | + created_at TEXT NOT NULL DEFAULT (datetime('now')) | |
| 39 | +); | |
| 40 | +CREATE INDEX idx_sessions_user ON sessions(user_id); | |
| 41 | + | |
| 42 | +-- Repositories | |
| 43 | +CREATE TABLE repositories ( | |
| 44 | + id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))), | |
| 45 | + owner_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE, | |
| 46 | + name TEXT NOT NULL, | |
| 47 | + description TEXT, | |
| 48 | + default_branch TEXT NOT NULL DEFAULT 'main', | |
| 49 | + is_private INTEGER NOT NULL DEFAULT 0, | |
| 50 | + fork_of TEXT REFERENCES repositories(id) ON DELETE SET NULL, | |
| 51 | + object_count INTEGER NOT NULL DEFAULT 0, | |
| 52 | + size_bytes INTEGER NOT NULL DEFAULT 0, | |
| 53 | + created_at TEXT NOT NULL DEFAULT (datetime('now')), | |
| 54 | + updated_at TEXT NOT NULL DEFAULT (datetime('now')), | |
| 55 | + UNIQUE(owner_id, name) | |
| 56 | +); | |
| 57 | +CREATE INDEX idx_repos_owner ON repositories(owner_id); | |
| 58 | + | |
| 59 | +-- Refs (branches + tags) | |
| 60 | +CREATE TABLE refs ( | |
| 61 | + id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))), | |
| 62 | + repo_id TEXT NOT NULL REFERENCES repositories(id) ON DELETE CASCADE, | |
| 63 | + name TEXT NOT NULL, | |
| 64 | + sha TEXT NOT NULL, | |
| 65 | + is_symbolic INTEGER NOT NULL DEFAULT 0, | |
| 66 | + target_ref TEXT, | |
| 67 | + updated_at TEXT NOT NULL DEFAULT (datetime('now')), | |
| 68 | + UNIQUE(repo_id, name) | |
| 69 | +); | |
| 70 | +CREATE INDEX idx_refs_repo ON refs(repo_id); | |
| 71 | +CREATE INDEX idx_refs_repo_name ON refs(repo_id, name); | |
| 72 | + | |
| 73 | +-- Repository collaborators | |
| 74 | +CREATE TABLE collaborators ( | |
| 75 | + repo_id TEXT NOT NULL REFERENCES repositories(id) ON DELETE CASCADE, | |
| 76 | + user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE, | |
| 77 | + permission TEXT NOT NULL DEFAULT 'read', | |
| 78 | + created_at TEXT NOT NULL DEFAULT (datetime('now')), | |
| 79 | + PRIMARY KEY (repo_id, user_id) | |
| 80 | +); | |
| 81 | + | |
| 82 | +-- Merge Requests | |
| 83 | +CREATE TABLE merge_requests ( | |
| 84 | + id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))), | |
| 85 | + repo_id TEXT NOT NULL REFERENCES repositories(id) ON DELETE CASCADE, | |
| 86 | + number INTEGER NOT NULL, | |
| 87 | + title TEXT NOT NULL, | |
| 88 | + description TEXT, | |
| 89 | + author_id TEXT NOT NULL REFERENCES users(id), | |
| 90 | + state TEXT NOT NULL DEFAULT 'open', | |
| 91 | + source_branch TEXT NOT NULL, | |
| 92 | + target_branch TEXT NOT NULL, | |
| 93 | + source_sha TEXT, | |
| 94 | + merged_sha TEXT, | |
| 95 | + merged_by TEXT REFERENCES users(id), | |
| 96 | + created_at TEXT NOT NULL DEFAULT (datetime('now')), | |
| 97 | + updated_at TEXT NOT NULL DEFAULT (datetime('now')), | |
| 98 | + UNIQUE(repo_id, number) | |
| 99 | +); | |
| 100 | +CREATE INDEX idx_mr_repo ON merge_requests(repo_id); | |
| 101 | +CREATE INDEX idx_mr_author ON merge_requests(author_id); | |
| 102 | +CREATE INDEX idx_mr_state ON merge_requests(repo_id, state); | |
| 103 | + | |
| 104 | +-- MR Comments | |
| 105 | +CREATE TABLE mr_comments ( | |
| 106 | + id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))), | |
| 107 | + mr_id TEXT NOT NULL REFERENCES merge_requests(id) ON DELETE CASCADE, | |
| 108 | + author_id TEXT NOT NULL REFERENCES users(id), | |
| 109 | + body TEXT NOT NULL, | |
| 110 | + file_path TEXT, | |
| 111 | + line_number INTEGER, | |
| 112 | + diff_side TEXT, | |
| 113 | + commit_sha TEXT, | |
| 114 | + parent_id TEXT REFERENCES mr_comments(id) ON DELETE CASCADE, | |
| 115 | + created_at TEXT NOT NULL DEFAULT (datetime('now')), | |
| 116 | + updated_at TEXT NOT NULL DEFAULT (datetime('now')) | |
| 117 | +); | |
| 118 | +CREATE INDEX idx_comments_mr ON mr_comments(mr_id); | |
| 119 | + | |
| 120 | +-- MR Reviews | |
| 121 | +CREATE TABLE mr_reviews ( | |
| 122 | + id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))), | |
| 123 | + mr_id TEXT NOT NULL REFERENCES merge_requests(id) ON DELETE CASCADE, | |
| 124 | + reviewer_id TEXT NOT NULL REFERENCES users(id), | |
| 125 | + state TEXT NOT NULL, | |
| 126 | + body TEXT, | |
| 127 | + created_at TEXT NOT NULL DEFAULT (datetime('now')) | |
| 128 | +); | |
| 129 | +CREATE INDEX idx_reviews_mr ON mr_reviews(mr_id); | |
| 130 | + | |
| 131 | +-- Webhooks | |
| 132 | +CREATE TABLE webhooks ( | |
| 133 | + id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))), | |
| 134 | + repo_id TEXT NOT NULL REFERENCES repositories(id) ON DELETE CASCADE, | |
| 135 | + url TEXT NOT NULL, | |
| 136 | + secret TEXT, | |
| 137 | + events TEXT NOT NULL DEFAULT 'push', | |
| 138 | + is_active INTEGER NOT NULL DEFAULT 1, | |
| 139 | + created_at TEXT NOT NULL DEFAULT (datetime('now')) | |
| 140 | +); | |
| 141 | +CREATE INDEX idx_webhooks_repo ON webhooks(repo_id); | |
| 142 | + | |
| 143 | +-- Activity log | |
| 144 | +CREATE TABLE activity_log ( | |
| 145 | + id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))), | |
| 146 | + repo_id TEXT REFERENCES repositories(id) ON DELETE CASCADE, | |
| 147 | + user_id TEXT REFERENCES users(id) ON DELETE SET NULL, | |
| 148 | + action TEXT NOT NULL, | |
| 149 | + details TEXT, | |
| 150 | + created_at TEXT NOT NULL DEFAULT (datetime('now')) | |
| 151 | +); | |
| 152 | +CREATE INDEX idx_activity_repo ON activity_log(repo_id); | |
| 153 | +CREATE INDEX idx_activity_user ON activity_log(user_id); | |
| 154 | +CREATE INDEX idx_activity_time ON activity_log(created_at); | |
| 155 | + | |
A packages/worker/package.json
| @@ -1,0 +1,21 @@ | ||
| 1 | +{ | |
| 2 | + "name": "@gitfastr/worker", | |
| 3 | + "version": "0.0.1", | |
| 4 | + "private": true, | |
| 5 | + "type": "module", | |
| 6 | + "scripts": { | |
| 7 | + "dev": "wrangler dev", | |
| 8 | + "build": "wrangler deploy --dry-run --outdir=dist", | |
| 9 | + "deploy": "wrangler deploy", | |
| 10 | + "test": "vitest run" | |
| 11 | + }, | |
| 12 | + "dependencies": { | |
| 13 | + "@gitfastr/shared": "workspace:*" | |
| 14 | + }, | |
| 15 | + "devDependencies": { | |
| 16 | + "@cloudflare/workers-types": "^4.20250310.0", | |
| 17 | + "wrangler": "^4.0.0", | |
| 18 | + "vitest": "^3.0.0" | |
| 19 | + } | |
| 20 | +} | |
| 21 | + | |
A packages/worker/src/handlers/api/activity.ts
| @@ -1,0 +1,51 @@ | ||
| 1 | +/** | |
| 2 | + * REST API: Activity feed endpoints. | |
| 3 | + */ | |
| 4 | + | |
| 5 | +import { authenticate } from '../../middleware/auth.js'; | |
| 6 | +import { RepoService } from '../../services/repo-service.js'; | |
| 7 | +import { ActivityService } from '../../services/activity-service.js'; | |
| 8 | +import type { HandlerContext } from '../../router.js'; | |
| 9 | + | |
| 10 | +/** GET /api/repos/:owner/:repo/activity — Repo activity feed */ | |
| 11 | +export async function handleApiRepoActivity( | |
| 12 | + request: Request, | |
| 13 | + hctx: HandlerContext | |
| 14 | +): Promise<Response> { | |
| 15 | + const { owner, repo: repoName } = hctx.params; | |
| 16 | + const repoService = new RepoService(hctx.env.DB); | |
| 17 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 18 | + | |
| 19 | + const userId = await authenticate(request, hctx.env.DB); | |
| 20 | + const hasAccess = await repoService.hasReadAccess(repo, userId); | |
| 21 | + if (!hasAccess) return Response.json({ error: 'Not found' }, { status: 404 }); | |
| 22 | + | |
| 23 | + const activityService = new ActivityService(hctx.env.DB); | |
| 24 | + const activity = await activityService.getRepoActivity(repo.id); | |
| 25 | + | |
| 26 | + return Response.json(activity); | |
| 27 | +} | |
| 28 | + | |
| 29 | +/** GET /api/repos/:owner/:repo/commit/:sha/diff — Commit diff */ | |
| 30 | +export async function handleApiCommitDiff( | |
| 31 | + request: Request, | |
| 32 | + hctx: HandlerContext | |
| 33 | +): Promise<Response> { | |
| 34 | + const { owner, repo: repoName, sha } = hctx.params; | |
| 35 | + const repoService = new RepoService(hctx.env.DB); | |
| 36 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 37 | + | |
| 38 | + const userId = await authenticate(request, hctx.env.DB); | |
| 39 | + const hasAccess = await repoService.hasReadAccess(repo, userId); | |
| 40 | + if (!hasAccess) return Response.json({ error: 'Not found' }, { status: 404 }); | |
| 41 | + | |
| 42 | + const { ObjectStore } = await import('../../services/object-store.js'); | |
| 43 | + const { DiffService } = await import('../../services/diff-service.js'); | |
| 44 | + | |
| 45 | + const objectStore = new ObjectStore(hctx.env.OBJECTS, owner, repoName); | |
| 46 | + const diffService = new DiffService(objectStore); | |
| 47 | + const diff = await diffService.diffCommitAgainstParent(sha); | |
| 48 | + | |
| 49 | + return Response.json(diff); | |
| 50 | +} | |
| 51 | + | |
A packages/worker/src/handlers/api/auth.ts
| @@ -1,0 +1,139 @@ | ||
| 1 | +/** | |
| 2 | + * REST API: Authentication endpoints. | |
| 3 | + * Register, login, and create personal access tokens. | |
| 4 | + */ | |
| 5 | + | |
| 6 | +import { hashPassword, verifyPassword, generateToken, tokenPrefix } from '@gitfastr/shared/utils/auth.js'; | |
| 7 | +import { sha256 } from '@gitfastr/shared/git/sha1.js'; | |
| 8 | +import { ValidationError, UnauthorizedError } from '@gitfastr/shared/utils/errors.js'; | |
| 9 | +import { requireAuth } from '../../middleware/auth.js'; | |
| 10 | +import type { HandlerContext } from '../../router.js'; | |
| 11 | +import type { DbUser } from '@gitfastr/shared'; | |
| 12 | + | |
| 13 | +const encoder = new TextEncoder(); | |
| 14 | + | |
| 15 | +export async function handleApiRegister( | |
| 16 | + request: Request, | |
| 17 | + hctx: HandlerContext | |
| 18 | +): Promise<Response> { | |
| 19 | + const body = await request.json<{ | |
| 20 | + username: string; | |
| 21 | + email: string; | |
| 22 | + password: string; | |
| 23 | + display_name?: string; | |
| 24 | + }>(); | |
| 25 | + | |
| 26 | + if (!body.username || !body.email || !body.password) { | |
| 27 | + throw new ValidationError('username, email, and password are required'); | |
| 28 | + } | |
| 29 | + | |
| 30 | + if (!/^[a-zA-Z0-9_-]{2,32}$/.test(body.username)) { | |
| 31 | + throw new ValidationError( | |
| 32 | + 'Username must be 2-32 characters, alphanumeric, hyphens, or underscores' | |
| 33 | + ); | |
| 34 | + } | |
| 35 | + | |
| 36 | + if (body.password.length < 8) { | |
| 37 | + throw new ValidationError('Password must be at least 8 characters'); | |
| 38 | + } | |
| 39 | + | |
| 40 | + const passwordHash = await hashPassword(body.password); | |
| 41 | + | |
| 42 | + try { | |
| 43 | + const result = await hctx.env.DB.prepare( | |
| 44 | + `INSERT INTO users (username, email, password_hash, display_name) | |
| 45 | + VALUES (?, ?, ?, ?) | |
| 46 | + RETURNING id, username, email, display_name, created_at` | |
| 47 | + ) | |
| 48 | + .bind(body.username, body.email, passwordHash, body.display_name ?? null) | |
| 49 | + .first<Pick<DbUser, 'id' | 'username' | 'email' | 'display_name' | 'created_at'>>(); | |
| 50 | + | |
| 51 | + return Response.json(result, { status: 201 }); | |
| 52 | + } catch (error: any) { | |
| 53 | + if (error.message?.includes('UNIQUE constraint')) { | |
| 54 | + throw new ValidationError('Username or email already taken'); | |
| 55 | + } | |
| 56 | + throw error; | |
| 57 | + } | |
| 58 | +} | |
| 59 | + | |
| 60 | +export async function handleApiLogin( | |
| 61 | + request: Request, | |
| 62 | + hctx: HandlerContext | |
| 63 | +): Promise<Response> { | |
| 64 | + const body = await request.json<{ | |
| 65 | + username: string; | |
| 66 | + password: string; | |
| 67 | + }>(); | |
| 68 | + | |
| 69 | + if (!body.username || !body.password) { | |
| 70 | + throw new ValidationError('username and password are required'); | |
| 71 | + } | |
| 72 | + | |
| 73 | + const user = await hctx.env.DB.prepare( | |
| 74 | + 'SELECT id, password_hash FROM users WHERE username = ?' | |
| 75 | + ) | |
| 76 | + .bind(body.username) | |
| 77 | + .first<Pick<DbUser, 'id' | 'password_hash'>>(); | |
| 78 | + | |
| 79 | + if (!user) { | |
| 80 | + throw new UnauthorizedError('Invalid username or password'); | |
| 81 | + } | |
| 82 | + | |
| 83 | + const valid = await verifyPassword(body.password, user.password_hash); | |
| 84 | + if (!valid) { | |
| 85 | + throw new UnauthorizedError('Invalid username or password'); | |
| 86 | + } | |
| 87 | + | |
| 88 | + // Create session | |
| 89 | + const sessionId = crypto.randomUUID(); | |
| 90 | + const expiresAt = new Date(Date.now() + 7 * 24 * 60 * 60 * 1000); // 7 days | |
| 91 | + | |
| 92 | + await hctx.env.DB.prepare( | |
| 93 | + 'INSERT INTO sessions (id, user_id, expires_at) VALUES (?, ?, ?)' | |
| 94 | + ) | |
| 95 | + .bind(sessionId, user.id, expiresAt.toISOString()) | |
| 96 | + .run(); | |
| 97 | + | |
| 98 | + const response = Response.json({ user_id: user.id }); | |
| 99 | + | |
| 100 | + // Set session cookie | |
| 101 | + const headers = new Headers(response.headers); | |
| 102 | + headers.set( | |
| 103 | + 'Set-Cookie', | |
| 104 | + `session=${sessionId}; Path=/; HttpOnly; Secure; SameSite=Strict; Expires=${expiresAt.toUTCString()}` | |
| 105 | + ); | |
| 106 | + | |
| 107 | + return new Response(response.body, { status: 200, headers }); | |
| 108 | +} | |
| 109 | + | |
| 110 | +export async function handleApiCreateToken( | |
| 111 | + request: Request, | |
| 112 | + hctx: HandlerContext | |
| 113 | +): Promise<Response> { | |
| 114 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 115 | + | |
| 116 | + const body = await request.json<{ | |
| 117 | + name: string; | |
| 118 | + scopes?: string; | |
| 119 | + }>(); | |
| 120 | + | |
| 121 | + if (!body.name) { | |
| 122 | + throw new ValidationError('Token name is required'); | |
| 123 | + } | |
| 124 | + | |
| 125 | + const token = generateToken(); | |
| 126 | + const prefix = tokenPrefix(token); | |
| 127 | + const hash = await sha256(encoder.encode(token)); | |
| 128 | + | |
| 129 | + await hctx.env.DB.prepare( | |
| 130 | + `INSERT INTO access_tokens (user_id, name, token_hash, token_prefix, scopes) | |
| 131 | + VALUES (?, ?, ?, ?, ?)` | |
| 132 | + ) | |
| 133 | + .bind(userId, body.name, hash, prefix, body.scopes ?? 'repo') | |
| 134 | + .run(); | |
| 135 | + | |
| 136 | + // Return the plaintext token — this is the only time it's shown | |
| 137 | + return Response.json({ token, prefix, name: body.name }, { status: 201 }); | |
| 138 | +} | |
| 139 | + | |
A packages/worker/src/handlers/api/browse.ts
| @@ -1,0 +1,152 @@ | ||
| 1 | +/** | |
| 2 | + * REST API: Repository browsing endpoints. | |
| 3 | + * Tree listing, blob content, commit log. | |
| 4 | + */ | |
| 5 | + | |
| 6 | +import { authenticate } from '../../middleware/auth.js'; | |
| 7 | +import { RepoService } from '../../services/repo-service.js'; | |
| 8 | +import { ObjectStore } from '../../services/object-store.js'; | |
| 9 | +import { RefStore } from '../../services/ref-store.js'; | |
| 10 | +import { BrowseService } from '../../services/browse-service.js'; | |
| 11 | +import type { HandlerContext } from '../../router.js'; | |
| 12 | + | |
| 13 | +const decoder = new TextDecoder(); | |
| 14 | + | |
| 15 | +/** Helper to set up browse context for a repo. */ | |
| 16 | +async function getBrowseContext(request: Request, hctx: HandlerContext) { | |
| 17 | + const { owner, repo: repoName } = hctx.params; | |
| 18 | + const repoService = new RepoService(hctx.env.DB); | |
| 19 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 20 | + | |
| 21 | + const userId = await authenticate(request, hctx.env.DB); | |
| 22 | + const hasAccess = await repoService.hasReadAccess(repo, userId); | |
| 23 | + if (!hasAccess) { | |
| 24 | + return null; | |
| 25 | + } | |
| 26 | + | |
| 27 | + const objectStore = new ObjectStore(hctx.env.OBJECTS, owner, repoName); | |
| 28 | + const refStore = new RefStore(hctx.env.DB, repo.id); | |
| 29 | + const browseService = new BrowseService(objectStore, refStore); | |
| 30 | + | |
| 31 | + return { repo, browseService, refStore }; | |
| 32 | +} | |
| 33 | + | |
| 34 | +/** GET /api/repos/:owner/:repo/tree/:ref/:path* */ | |
| 35 | +export async function handleApiTree( | |
| 36 | + request: Request, | |
| 37 | + hctx: HandlerContext | |
| 38 | +): Promise<Response> { | |
| 39 | + const ctx = await getBrowseContext(request, hctx); | |
| 40 | + if (!ctx) return Response.json({ error: 'Not found' }, { status: 404 }); | |
| 41 | + | |
| 42 | + const { ref, path } = hctx.params; | |
| 43 | + const commitSha = await ctx.browseService.resolveRef(ref || ctx.repo.default_branch); | |
| 44 | + const entries = await ctx.browseService.listTree(commitSha, path || ''); | |
| 45 | + | |
| 46 | + return Response.json({ ref, commit: commitSha, path: path || '', entries }); | |
| 47 | +} | |
| 48 | + | |
| 49 | +/** GET /api/repos/:owner/:repo/blob/:ref/:path* */ | |
| 50 | +export async function handleApiBlob( | |
| 51 | + request: Request, | |
| 52 | + hctx: HandlerContext | |
| 53 | +): Promise<Response> { | |
| 54 | + const ctx = await getBrowseContext(request, hctx); | |
| 55 | + if (!ctx) return Response.json({ error: 'Not found' }, { status: 404 }); | |
| 56 | + | |
| 57 | + const { ref, path } = hctx.params; | |
| 58 | + if (!path) return Response.json({ error: 'Path required' }, { status: 400 }); | |
| 59 | + | |
| 60 | + const commitSha = await ctx.browseService.resolveRef(ref || ctx.repo.default_branch); | |
| 61 | + const { content, sha } = await ctx.browseService.getBlob(commitSha, path); | |
| 62 | + | |
| 63 | + // Check if content is likely text | |
| 64 | + const isText = isTextContent(content); | |
| 65 | + | |
| 66 | + if (isText) { | |
| 67 | + const text = decoder.decode(content); | |
| 68 | + return Response.json({ | |
| 69 | + ref, | |
| 70 | + commit: commitSha, | |
| 71 | + path, | |
| 72 | + sha, | |
| 73 | + size: content.length, | |
| 74 | + content: text, | |
| 75 | + encoding: 'utf-8', | |
| 76 | + }); | |
| 77 | + } else { | |
| 78 | + // Binary file — return base64 | |
| 79 | + const base64 = btoa(String.fromCharCode(...content)); | |
| 80 | + return Response.json({ | |
| 81 | + ref, | |
| 82 | + commit: commitSha, | |
| 83 | + path, | |
| 84 | + sha, | |
| 85 | + size: content.length, | |
| 86 | + content: base64, | |
| 87 | + encoding: 'base64', | |
| 88 | + }); | |
| 89 | + } | |
| 90 | +} | |
| 91 | + | |
| 92 | +/** GET /api/repos/:owner/:repo/commits/:ref */ | |
| 93 | +export async function handleApiCommits( | |
| 94 | + request: Request, | |
| 95 | + hctx: HandlerContext | |
| 96 | +): Promise<Response> { | |
| 97 | + const ctx = await getBrowseContext(request, hctx); | |
| 98 | + if (!ctx) return Response.json({ error: 'Not found' }, { status: 404 }); | |
| 99 | + | |
| 100 | + const { ref } = hctx.params; | |
| 101 | + const url = new URL(request.url); | |
| 102 | + const limit = Math.min(parseInt(url.searchParams.get('limit') || '20'), 100); | |
| 103 | + | |
| 104 | + const commitSha = await ctx.browseService.resolveRef(ref || ctx.repo.default_branch); | |
| 105 | + const commits = await ctx.browseService.getCommitLog(commitSha, limit); | |
| 106 | + | |
| 107 | + return Response.json({ ref, commits }); | |
| 108 | +} | |
| 109 | + | |
| 110 | +/** GET /api/repos/:owner/:repo/commit/:sha */ | |
| 111 | +export async function handleApiCommitDetail( | |
| 112 | + request: Request, | |
| 113 | + hctx: HandlerContext | |
| 114 | +): Promise<Response> { | |
| 115 | + const ctx = await getBrowseContext(request, hctx); | |
| 116 | + if (!ctx) return Response.json({ error: 'Not found' }, { status: 404 }); | |
| 117 | + | |
| 118 | + const { sha } = hctx.params; | |
| 119 | + const commit = await ctx.browseService.getCommit(sha); | |
| 120 | + | |
| 121 | + return Response.json(commit); | |
| 122 | +} | |
| 123 | + | |
| 124 | +/** GET /api/repos/:owner/:repo/branches */ | |
| 125 | +export async function handleApiBranches( | |
| 126 | + request: Request, | |
| 127 | + hctx: HandlerContext | |
| 128 | +): Promise<Response> { | |
| 129 | + const ctx = await getBrowseContext(request, hctx); | |
| 130 | + if (!ctx) return Response.json({ error: 'Not found' }, { status: 404 }); | |
| 131 | + | |
| 132 | + const allRefs = await ctx.refStore.getAll(); | |
| 133 | + const branches = allRefs | |
| 134 | + .filter((r) => r.name.startsWith('refs/heads/')) | |
| 135 | + .map((r) => ({ | |
| 136 | + name: r.name.replace('refs/heads/', ''), | |
| 137 | + sha: r.sha, | |
| 138 | + isDefault: r.name === `refs/heads/${ctx.repo.default_branch}`, | |
| 139 | + })); | |
| 140 | + | |
| 141 | + return Response.json({ branches, default_branch: ctx.repo.default_branch }); | |
| 142 | +} | |
| 143 | + | |
| 144 | +/** Heuristic: check if content is text by scanning for NUL bytes. */ | |
| 145 | +function isTextContent(content: Uint8Array): boolean { | |
| 146 | + const checkLen = Math.min(content.length, 8000); | |
| 147 | + for (let i = 0; i < checkLen; i++) { | |
| 148 | + if (content[i] === 0) return false; | |
| 149 | + } | |
| 150 | + return true; | |
| 151 | +} | |
| 152 | + | |
A packages/worker/src/handlers/api/merge-requests.ts
| @@ -1,0 +1,341 @@ | ||
| 1 | +/** | |
| 2 | + * REST API: Merge Request endpoints. | |
| 3 | + */ | |
| 4 | + | |
| 5 | +import { authenticate, requireAuth } from '../../middleware/auth.js'; | |
| 6 | +import { RepoService } from '../../services/repo-service.js'; | |
| 7 | +import { ObjectStore } from '../../services/object-store.js'; | |
| 8 | +import { RefStore } from '../../services/ref-store.js'; | |
| 9 | +import { BrowseService } from '../../services/browse-service.js'; | |
| 10 | +import { DiffService } from '../../services/diff-service.js'; | |
| 11 | +import { ValidationError, NotFoundError, ConflictError } from '@gitfastr/shared/utils/errors.js'; | |
| 12 | +import { ActivityService } from '../../services/activity-service.js'; | |
| 13 | +import { WebhookService } from '../../services/webhook-service.js'; | |
| 14 | +import { parseCommit, serializeGitObject } from '@gitfastr/shared'; | |
| 15 | +import { gitObjectHash } from '@gitfastr/shared/git/sha1.js'; | |
| 16 | +import type { HandlerContext } from '../../router.js'; | |
| 17 | +import type { DbMergeRequest } from '@gitfastr/shared'; | |
| 18 | + | |
| 19 | +const encoder = new TextEncoder(); | |
| 20 | + | |
| 21 | +/** Helper: resolve repo + check access. */ | |
| 22 | +async function getRepoContext(request: Request, hctx: HandlerContext) { | |
| 23 | + const { owner, repo: repoName } = hctx.params; | |
| 24 | + const repoService = new RepoService(hctx.env.DB); | |
| 25 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 26 | + return { repo, repoService, owner, repoName }; | |
| 27 | +} | |
| 28 | + | |
| 29 | +/** POST /api/repos/:owner/:repo/merge-requests — Create MR */ | |
| 30 | +export async function handleApiCreateMR( | |
| 31 | + request: Request, | |
| 32 | + hctx: HandlerContext | |
| 33 | +): Promise<Response> { | |
| 34 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 35 | + const { repo } = await getRepoContext(request, hctx); | |
| 36 | + | |
| 37 | + const body = await request.json<{ | |
| 38 | + title: string; | |
| 39 | + description?: string; | |
| 40 | + source_branch: string; | |
| 41 | + target_branch: string; | |
| 42 | + }>(); | |
| 43 | + | |
| 44 | + if (!body.title || !body.source_branch || !body.target_branch) { | |
| 45 | + throw new ValidationError('title, source_branch, and target_branch are required'); | |
| 46 | + } | |
| 47 | + | |
| 48 | + if (body.source_branch === body.target_branch) { | |
| 49 | + throw new ValidationError('Source and target branches must be different'); | |
| 50 | + } | |
| 51 | + | |
| 52 | + // Verify branches exist | |
| 53 | + const refStore = new RefStore(hctx.env.DB, repo.id); | |
| 54 | + const sourceRef = await refStore.get(`refs/heads/${body.source_branch}`); | |
| 55 | + const targetRef = await refStore.get(`refs/heads/${body.target_branch}`); | |
| 56 | + | |
| 57 | + if (!sourceRef) throw new NotFoundError(`Branch not found: ${body.source_branch}`); | |
| 58 | + if (!targetRef) throw new NotFoundError(`Branch not found: ${body.target_branch}`); | |
| 59 | + | |
| 60 | + // Get next MR number | |
| 61 | + const maxNum = await hctx.env.DB | |
| 62 | + .prepare('SELECT COALESCE(MAX(number), 0) as max_num FROM merge_requests WHERE repo_id = ?') | |
| 63 | + .bind(repo.id) | |
| 64 | + .first<{ max_num: number }>(); | |
| 65 | + const number = (maxNum?.max_num ?? 0) + 1; | |
| 66 | + | |
| 67 | + const result = await hctx.env.DB.prepare( | |
| 68 | + `INSERT INTO merge_requests (repo_id, number, title, description, author_id, source_branch, target_branch, source_sha) | |
| 69 | + VALUES (?, ?, ?, ?, ?, ?, ?, ?) | |
| 70 | + RETURNING *` | |
| 71 | + ) | |
| 72 | + .bind( | |
| 73 | + repo.id, number, body.title, body.description ?? null, | |
| 74 | + userId, body.source_branch, body.target_branch, sourceRef.sha | |
| 75 | + ) | |
| 76 | + .first<DbMergeRequest>(); | |
| 77 | + | |
| 78 | + // Log activity | |
| 79 | + const activityService = new ActivityService(hctx.env.DB); | |
| 80 | + hctx.ctx.waitUntil( | |
| 81 | + activityService.log(repo.id, userId, 'create_mr', { mr_number: number, mr_title: body.title }) | |
| 82 | + ); | |
| 83 | + | |
| 84 | + return Response.json(result, { status: 201 }); | |
| 85 | +} | |
| 86 | + | |
| 87 | +/** GET /api/repos/:owner/:repo/merge-requests — List MRs */ | |
| 88 | +export async function handleApiListMRs( | |
| 89 | + request: Request, | |
| 90 | + hctx: HandlerContext | |
| 91 | +): Promise<Response> { | |
| 92 | + const { repo } = await getRepoContext(request, hctx); | |
| 93 | + | |
| 94 | + const url = new URL(request.url); | |
| 95 | + const state = url.searchParams.get('state') || 'open'; | |
| 96 | + | |
| 97 | + const result = await hctx.env.DB.prepare( | |
| 98 | + `SELECT mr.*, u.username as author_username | |
| 99 | + FROM merge_requests mr | |
| 100 | + JOIN users u ON mr.author_id = u.id | |
| 101 | + WHERE mr.repo_id = ? AND mr.state = ? | |
| 102 | + ORDER BY mr.created_at DESC | |
| 103 | + LIMIT 50` | |
| 104 | + ) | |
| 105 | + .bind(repo.id, state) | |
| 106 | + .all(); | |
| 107 | + | |
| 108 | + return Response.json(result.results); | |
| 109 | +} | |
| 110 | + | |
| 111 | +/** GET /api/repos/:owner/:repo/merge-requests/:number — MR detail with diff */ | |
| 112 | +export async function handleApiGetMR( | |
| 113 | + request: Request, | |
| 114 | + hctx: HandlerContext | |
| 115 | +): Promise<Response> { | |
| 116 | + const { repo, owner, repoName } = await getRepoContext(request, hctx); | |
| 117 | + const mrNumber = parseInt(hctx.params.number); | |
| 118 | + | |
| 119 | + const mr = await hctx.env.DB.prepare( | |
| 120 | + `SELECT mr.*, u.username as author_username | |
| 121 | + FROM merge_requests mr | |
| 122 | + JOIN users u ON mr.author_id = u.id | |
| 123 | + WHERE mr.repo_id = ? AND mr.number = ?` | |
| 124 | + ) | |
| 125 | + .bind(repo.id, mrNumber) | |
| 126 | + .first(); | |
| 127 | + | |
| 128 | + if (!mr) throw new NotFoundError(`Merge request #${mrNumber} not found`); | |
| 129 | + | |
| 130 | + // Get current branch tips | |
| 131 | + const refStore = new RefStore(hctx.env.DB, repo.id); | |
| 132 | + const sourceRef = await refStore.get(`refs/heads/${(mr as any).source_branch}`); | |
| 133 | + const targetRef = await refStore.get(`refs/heads/${(mr as any).target_branch}`); | |
| 134 | + | |
| 135 | + // Compute diff | |
| 136 | + let diff: any[] = []; | |
| 137 | + if (sourceRef && targetRef) { | |
| 138 | + const objectStore = new ObjectStore(hctx.env.OBJECTS, owner, repoName); | |
| 139 | + const diffService = new DiffService(objectStore); | |
| 140 | + diff = await diffService.diffCommits(targetRef.sha, sourceRef.sha); | |
| 141 | + } | |
| 142 | + | |
| 143 | + // Get comments | |
| 144 | + const comments = await hctx.env.DB.prepare( | |
| 145 | + `SELECT c.*, u.username as author_username | |
| 146 | + FROM mr_comments c | |
| 147 | + JOIN users u ON c.author_id = u.id | |
| 148 | + WHERE c.mr_id = ? | |
| 149 | + ORDER BY c.created_at ASC` | |
| 150 | + ) | |
| 151 | + .bind((mr as any).id) | |
| 152 | + .all(); | |
| 153 | + | |
| 154 | + return Response.json({ | |
| 155 | + ...mr, | |
| 156 | + source_sha: sourceRef?.sha, | |
| 157 | + target_sha: targetRef?.sha, | |
| 158 | + diff, | |
| 159 | + comments: comments.results, | |
| 160 | + }); | |
| 161 | +} | |
| 162 | + | |
| 163 | +/** POST /api/repos/:owner/:repo/merge-requests/:number/comments — Add comment */ | |
| 164 | +export async function handleApiAddMRComment( | |
| 165 | + request: Request, | |
| 166 | + hctx: HandlerContext | |
| 167 | +): Promise<Response> { | |
| 168 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 169 | + const { repo } = await getRepoContext(request, hctx); | |
| 170 | + const mrNumber = parseInt(hctx.params.number); | |
| 171 | + | |
| 172 | + const mr = await hctx.env.DB.prepare( | |
| 173 | + 'SELECT id FROM merge_requests WHERE repo_id = ? AND number = ?' | |
| 174 | + ) | |
| 175 | + .bind(repo.id, mrNumber) | |
| 176 | + .first<{ id: string }>(); | |
| 177 | + | |
| 178 | + if (!mr) throw new NotFoundError(`Merge request #${mrNumber} not found`); | |
| 179 | + | |
| 180 | + const body = await request.json<{ | |
| 181 | + body: string; | |
| 182 | + file_path?: string; | |
| 183 | + line_number?: number; | |
| 184 | + diff_side?: 'old' | 'new'; | |
| 185 | + }>(); | |
| 186 | + | |
| 187 | + if (!body.body) throw new ValidationError('Comment body is required'); | |
| 188 | + | |
| 189 | + const result = await hctx.env.DB.prepare( | |
| 190 | + `INSERT INTO mr_comments (mr_id, author_id, body, file_path, line_number, diff_side) | |
| 191 | + VALUES (?, ?, ?, ?, ?, ?) | |
| 192 | + RETURNING *` | |
| 193 | + ) | |
| 194 | + .bind( | |
| 195 | + mr.id, userId, body.body, | |
| 196 | + body.file_path ?? null, body.line_number ?? null, body.diff_side ?? null | |
| 197 | + ) | |
| 198 | + .first(); | |
| 199 | + | |
| 200 | + return Response.json(result, { status: 201 }); | |
| 201 | +} | |
| 202 | + | |
| 203 | +/** POST /api/repos/:owner/:repo/merge-requests/:number/merge — Merge */ | |
| 204 | +export async function handleApiMergeMR( | |
| 205 | + request: Request, | |
| 206 | + hctx: HandlerContext | |
| 207 | +): Promise<Response> { | |
| 208 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 209 | + const { repo, repoService, owner, repoName } = await getRepoContext(request, hctx); | |
| 210 | + | |
| 211 | + // Check write access | |
| 212 | + const hasAccess = await repoService.hasWriteAccess(repo.id, userId); | |
| 213 | + if (!hasAccess) { | |
| 214 | + throw new ValidationError('You do not have write access to this repository'); | |
| 215 | + } | |
| 216 | + | |
| 217 | + const mrNumber = parseInt(hctx.params.number); | |
| 218 | + | |
| 219 | + const mr = await hctx.env.DB.prepare( | |
| 220 | + 'SELECT * FROM merge_requests WHERE repo_id = ? AND number = ?' | |
| 221 | + ) | |
| 222 | + .bind(repo.id, mrNumber) | |
| 223 | + .first<DbMergeRequest>(); | |
| 224 | + | |
| 225 | + if (!mr) throw new NotFoundError(`Merge request #${mrNumber} not found`); | |
| 226 | + if (mr.state !== 'open') throw new ConflictError('Merge request is not open'); | |
| 227 | + | |
| 228 | + const refStore = new RefStore(hctx.env.DB, repo.id); | |
| 229 | + const sourceRef = await refStore.get(`refs/heads/${mr.source_branch}`); | |
| 230 | + const targetRef = await refStore.get(`refs/heads/${mr.target_branch}`); | |
| 231 | + | |
| 232 | + if (!sourceRef) throw new NotFoundError(`Source branch not found: ${mr.source_branch}`); | |
| 233 | + if (!targetRef) throw new NotFoundError(`Target branch not found: ${mr.target_branch}`); | |
| 234 | + | |
| 235 | + const objectStore = new ObjectStore(hctx.env.OBJECTS, owner, repoName); | |
| 236 | + const browseService = new BrowseService(objectStore, refStore); | |
| 237 | + | |
| 238 | + // Check if target is an ancestor of source (fast-forward possible) | |
| 239 | + const canFF = await isAncestor(objectStore, targetRef.sha, sourceRef.sha); | |
| 240 | + | |
| 241 | + let mergedSha: string; | |
| 242 | + | |
| 243 | + if (canFF) { | |
| 244 | + // Fast-forward: just update the target ref to source tip | |
| 245 | + mergedSha = sourceRef.sha; | |
| 246 | + } else { | |
| 247 | + // Create a merge commit | |
| 248 | + const user = await hctx.env.DB | |
| 249 | + .prepare('SELECT username, email FROM users WHERE id = ?') | |
| 250 | + .bind(userId) | |
| 251 | + .first<{ username: string; email: string }>(); | |
| 252 | + | |
| 253 | + const timestamp = Math.floor(Date.now() / 1000); | |
| 254 | + const authorLine = `${user?.username || 'unknown'} <${user?.email || 'unknown'}> ${timestamp} +0000`; | |
| 255 | + | |
| 256 | + const sourceCommit = await browseService.getCommit(sourceRef.sha); | |
| 257 | + const commitContent = encoder.encode( | |
| 258 | + `tree ${sourceCommit.tree}\n` + | |
| 259 | + `parent ${targetRef.sha}\n` + | |
| 260 | + `parent ${sourceRef.sha}\n` + | |
| 261 | + `author ${authorLine}\n` + | |
| 262 | + `committer ${authorLine}\n` + | |
| 263 | + `\n` + | |
| 264 | + `Merge branch '${mr.source_branch}' into ${mr.target_branch}\n` | |
| 265 | + ); | |
| 266 | + | |
| 267 | + mergedSha = await gitObjectHash('commit', commitContent); | |
| 268 | + await objectStore.put(mergedSha, 'commit', commitContent); | |
| 269 | + } | |
| 270 | + | |
| 271 | + // Update target branch ref | |
| 272 | + await refStore.applyUpdates([{ | |
| 273 | + oldSha: targetRef.sha, | |
| 274 | + newSha: mergedSha, | |
| 275 | + refName: `refs/heads/${mr.target_branch}`, | |
| 276 | + }]); | |
| 277 | + | |
| 278 | + // Update MR state | |
| 279 | + await hctx.env.DB.prepare( | |
| 280 | + `UPDATE merge_requests SET state = 'merged', merged_sha = ?, merged_by = ?, updated_at = datetime('now') | |
| 281 | + WHERE id = ?` | |
| 282 | + ) | |
| 283 | + .bind(mergedSha, userId, mr.id) | |
| 284 | + .run(); | |
| 285 | + | |
| 286 | + // Log activity + fire webhooks | |
| 287 | + const activityService = new ActivityService(hctx.env.DB); | |
| 288 | + hctx.ctx.waitUntil( | |
| 289 | + activityService.log(repo.id, userId, 'merge_mr', { | |
| 290 | + mr_number: mr.number, | |
| 291 | + mr_title: mr.title, | |
| 292 | + merged_sha: mergedSha, | |
| 293 | + }) | |
| 294 | + ); | |
| 295 | + | |
| 296 | + const webhookService = new WebhookService(hctx.env.DB); | |
| 297 | + const deliveries = webhookService.fireWebhooks(repo.id, 'merge_request', { | |
| 298 | + event: 'merge_request', | |
| 299 | + action: 'merged', | |
| 300 | + repository: { owner, name: repoName, full_name: `${owner}/${repoName}` }, | |
| 301 | + sender: { username: owner }, | |
| 302 | + merge_request: { number: mr.number, title: mr.title, state: 'merged' }, | |
| 303 | + }); | |
| 304 | + deliveries.then((promises) => promises.forEach((p) => hctx.ctx.waitUntil(p))); | |
| 305 | + | |
| 306 | + return Response.json({ | |
| 307 | + merged: true, | |
| 308 | + sha: mergedSha, | |
| 309 | + strategy: canFF ? 'fast-forward' : 'merge-commit', | |
| 310 | + }); | |
| 311 | +} | |
| 312 | + | |
| 313 | +/** | |
| 314 | + * Check if `ancestor` is an ancestor of `descendant` by walking parent chain. | |
| 315 | + */ | |
| 316 | +async function isAncestor( | |
| 317 | + objectStore: ObjectStore, | |
| 318 | + ancestorSha: string, | |
| 319 | + descendantSha: string | |
| 320 | +): Promise<boolean> { | |
| 321 | + const visited = new Set<string>(); | |
| 322 | + const queue = [descendantSha]; | |
| 323 | + | |
| 324 | + while (queue.length > 0) { | |
| 325 | + const sha = queue.shift()!; | |
| 326 | + if (sha === ancestorSha) return true; | |
| 327 | + if (visited.has(sha)) continue; | |
| 328 | + visited.add(sha); | |
| 329 | + | |
| 330 | + const obj = await objectStore.get(sha); | |
| 331 | + if (!obj || obj.type !== 'commit') continue; | |
| 332 | + | |
| 333 | + const commit = parseCommit(obj.content); | |
| 334 | + for (const parent of commit.parents) { | |
| 335 | + queue.push(parent); | |
| 336 | + } | |
| 337 | + } | |
| 338 | + | |
| 339 | + return false; | |
| 340 | +} | |
| 341 | + | |
A packages/worker/src/handlers/api/repos.ts
| @@ -1,0 +1,116 @@ | ||
| 1 | +/** | |
| 2 | + * REST API: Repository endpoints. | |
| 3 | + */ | |
| 4 | + | |
| 5 | +import { requireAuth, authenticate } from '../../middleware/auth.js'; | |
| 6 | +import { ValidationError } from '@gitfastr/shared/utils/errors.js'; | |
| 7 | +import { RepoService } from '../../services/repo-service.js'; | |
| 8 | +import type { HandlerContext } from '../../router.js'; | |
| 9 | +import type { DbRepository } from '@gitfastr/shared'; | |
| 10 | + | |
| 11 | +export async function handleApiRepos( | |
| 12 | + request: Request, | |
| 13 | + hctx: HandlerContext | |
| 14 | +): Promise<Response> { | |
| 15 | + // List repos — public repos for anonymous, all accessible repos for authenticated users | |
| 16 | + const userId = await authenticate(request, hctx.env.DB); | |
| 17 | + | |
| 18 | + let repos: DbRepository[]; | |
| 19 | + | |
| 20 | + if (userId) { | |
| 21 | + // User's own repos + repos they collaborate on + public repos | |
| 22 | + const result = await hctx.env.DB.prepare( | |
| 23 | + `SELECT DISTINCT r.*, u.username as owner_username | |
| 24 | + FROM repositories r | |
| 25 | + JOIN users u ON r.owner_id = u.id | |
| 26 | + WHERE r.is_private = 0 | |
| 27 | + OR r.owner_id = ? | |
| 28 | + OR EXISTS (SELECT 1 FROM collaborators c WHERE c.repo_id = r.id AND c.user_id = ?) | |
| 29 | + ORDER BY r.updated_at DESC | |
| 30 | + LIMIT 50` | |
| 31 | + ) | |
| 32 | + .bind(userId, userId) | |
| 33 | + .all(); | |
| 34 | + | |
| 35 | + repos = result.results as any; | |
| 36 | + } else { | |
| 37 | + const result = await hctx.env.DB.prepare( | |
| 38 | + `SELECT r.*, u.username as owner_username | |
| 39 | + FROM repositories r | |
| 40 | + JOIN users u ON r.owner_id = u.id | |
| 41 | + WHERE r.is_private = 0 | |
| 42 | + ORDER BY r.updated_at DESC | |
| 43 | + LIMIT 50` | |
| 44 | + ).all(); | |
| 45 | + | |
| 46 | + repos = result.results as any; | |
| 47 | + } | |
| 48 | + | |
| 49 | + return Response.json(repos); | |
| 50 | +} | |
| 51 | + | |
| 52 | +export async function handleApiCreateRepo( | |
| 53 | + request: Request, | |
| 54 | + hctx: HandlerContext | |
| 55 | +): Promise<Response> { | |
| 56 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 57 | + | |
| 58 | + const body = await request.json<{ | |
| 59 | + name: string; | |
| 60 | + description?: string; | |
| 61 | + is_private?: boolean; | |
| 62 | + default_branch?: string; | |
| 63 | + }>(); | |
| 64 | + | |
| 65 | + if (!body.name) { | |
| 66 | + throw new ValidationError('Repository name is required'); | |
| 67 | + } | |
| 68 | + | |
| 69 | + if (!/^[a-zA-Z0-9._-]{1,64}$/.test(body.name)) { | |
| 70 | + throw new ValidationError( | |
| 71 | + 'Repository name must be 1-64 characters, alphanumeric, dots, hyphens, or underscores' | |
| 72 | + ); | |
| 73 | + } | |
| 74 | + | |
| 75 | + try { | |
| 76 | + const result = await hctx.env.DB.prepare( | |
| 77 | + `INSERT INTO repositories (owner_id, name, description, is_private, default_branch) | |
| 78 | + VALUES (?, ?, ?, ?, ?) | |
| 79 | + RETURNING *` | |
| 80 | + ) | |
| 81 | + .bind( | |
| 82 | + userId, | |
| 83 | + body.name, | |
| 84 | + body.description ?? null, | |
| 85 | + body.is_private ? 1 : 0, | |
| 86 | + body.default_branch ?? 'main' | |
| 87 | + ) | |
| 88 | + .first<DbRepository>(); | |
| 89 | + | |
| 90 | + return Response.json(result, { status: 201 }); | |
| 91 | + } catch (error: any) { | |
| 92 | + if (error.message?.includes('UNIQUE constraint')) { | |
| 93 | + throw new ValidationError('Repository name already exists'); | |
| 94 | + } | |
| 95 | + throw error; | |
| 96 | + } | |
| 97 | +} | |
| 98 | + | |
| 99 | +export async function handleApiRepoDetail( | |
| 100 | + request: Request, | |
| 101 | + hctx: HandlerContext | |
| 102 | +): Promise<Response> { | |
| 103 | + const { owner, repo: repoName } = hctx.params; | |
| 104 | + const repoService = new RepoService(hctx.env.DB); | |
| 105 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 106 | + | |
| 107 | + // Check read access | |
| 108 | + const userId = await authenticate(request, hctx.env.DB); | |
| 109 | + const hasAccess = await repoService.hasReadAccess(repo, userId); | |
| 110 | + if (!hasAccess) { | |
| 111 | + return Response.json({ error: 'Not found' }, { status: 404 }); | |
| 112 | + } | |
| 113 | + | |
| 114 | + return Response.json({ ...repo, owner_username: owner }); | |
| 115 | +} | |
| 116 | + | |
A packages/worker/src/handlers/api/settings.ts
| @@ -1,0 +1,134 @@ | ||
| 1 | +/** | |
| 2 | + * REST API: User settings and token management endpoints. | |
| 3 | + */ | |
| 4 | + | |
| 5 | +import { requireAuth } from '../../middleware/auth.js'; | |
| 6 | +import { RepoService } from '../../services/repo-service.js'; | |
| 7 | +import { ValidationError } from '@gitfastr/shared/utils/errors.js'; | |
| 8 | +import type { HandlerContext } from '../../router.js'; | |
| 9 | + | |
| 10 | +/** GET /api/user — Current user profile */ | |
| 11 | +export async function handleApiGetUser( | |
| 12 | + request: Request, | |
| 13 | + hctx: HandlerContext | |
| 14 | +): Promise<Response> { | |
| 15 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 16 | + | |
| 17 | + const user = await hctx.env.DB | |
| 18 | + .prepare('SELECT id, username, email, display_name, bio, is_admin, created_at FROM users WHERE id = ?') | |
| 19 | + .bind(userId) | |
| 20 | + .first(); | |
| 21 | + | |
| 22 | + return Response.json(user); | |
| 23 | +} | |
| 24 | + | |
| 25 | +/** GET /api/user/tokens — List user's PATs */ | |
| 26 | +export async function handleApiListTokens( | |
| 27 | + request: Request, | |
| 28 | + hctx: HandlerContext | |
| 29 | +): Promise<Response> { | |
| 30 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 31 | + | |
| 32 | + const result = await hctx.env.DB | |
| 33 | + .prepare( | |
| 34 | + 'SELECT id, name, token_prefix, scopes, expires_at, last_used_at, created_at FROM access_tokens WHERE user_id = ? ORDER BY created_at DESC' | |
| 35 | + ) | |
| 36 | + .bind(userId) | |
| 37 | + .all(); | |
| 38 | + | |
| 39 | + return Response.json(result.results); | |
| 40 | +} | |
| 41 | + | |
| 42 | +/** DELETE /api/user/tokens/:id — Revoke a PAT */ | |
| 43 | +export async function handleApiRevokeToken( | |
| 44 | + request: Request, | |
| 45 | + hctx: HandlerContext | |
| 46 | +): Promise<Response> { | |
| 47 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 48 | + | |
| 49 | + await hctx.env.DB | |
| 50 | + .prepare('DELETE FROM access_tokens WHERE id = ? AND user_id = ?') | |
| 51 | + .bind(hctx.params.tokenId, userId) | |
| 52 | + .run(); | |
| 53 | + | |
| 54 | + return new Response(null, { status: 204 }); | |
| 55 | +} | |
| 56 | + | |
| 57 | +/** PUT /api/repos/:owner/:repo/settings — Update repo settings */ | |
| 58 | +export async function handleApiUpdateRepo( | |
| 59 | + request: Request, | |
| 60 | + hctx: HandlerContext | |
| 61 | +): Promise<Response> { | |
| 62 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 63 | + const { owner, repo: repoName } = hctx.params; | |
| 64 | + | |
| 65 | + const repoService = new RepoService(hctx.env.DB); | |
| 66 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 67 | + | |
| 68 | + const hasAccess = await repoService.hasWriteAccess(repo.id, userId); | |
| 69 | + if (!hasAccess) throw new ValidationError('Write access required'); | |
| 70 | + | |
| 71 | + const body = await request.json<{ | |
| 72 | + description?: string; | |
| 73 | + is_private?: boolean; | |
| 74 | + default_branch?: string; | |
| 75 | + }>(); | |
| 76 | + | |
| 77 | + const updates: string[] = []; | |
| 78 | + const values: any[] = []; | |
| 79 | + | |
| 80 | + if (body.description !== undefined) { | |
| 81 | + updates.push('description = ?'); | |
| 82 | + values.push(body.description); | |
| 83 | + } | |
| 84 | + if (body.is_private !== undefined) { | |
| 85 | + updates.push('is_private = ?'); | |
| 86 | + values.push(body.is_private ? 1 : 0); | |
| 87 | + } | |
| 88 | + if (body.default_branch !== undefined) { | |
| 89 | + updates.push('default_branch = ?'); | |
| 90 | + values.push(body.default_branch); | |
| 91 | + } | |
| 92 | + | |
| 93 | + if (updates.length === 0) { | |
| 94 | + return Response.json(repo); | |
| 95 | + } | |
| 96 | + | |
| 97 | + updates.push("updated_at = datetime('now')"); | |
| 98 | + values.push(repo.id); | |
| 99 | + | |
| 100 | + const result = await hctx.env.DB | |
| 101 | + .prepare(`UPDATE repositories SET ${updates.join(', ')} WHERE id = ? RETURNING *`) | |
| 102 | + .bind(...values) | |
| 103 | + .first(); | |
| 104 | + | |
| 105 | + return Response.json(result); | |
| 106 | +} | |
| 107 | + | |
| 108 | +/** DELETE /api/repos/:owner/:repo — Delete repo */ | |
| 109 | +export async function handleApiDeleteRepo( | |
| 110 | + request: Request, | |
| 111 | + hctx: HandlerContext | |
| 112 | +): Promise<Response> { | |
| 113 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 114 | + const { owner, repo: repoName } = hctx.params; | |
| 115 | + | |
| 116 | + const repoService = new RepoService(hctx.env.DB); | |
| 117 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 118 | + | |
| 119 | + // Only the owner can delete | |
| 120 | + if (repo.owner_id !== userId) { | |
| 121 | + throw new ValidationError('Only the repository owner can delete it'); | |
| 122 | + } | |
| 123 | + | |
| 124 | + // Delete from D1 (cascade will remove refs, MRs, etc.) | |
| 125 | + await hctx.env.DB | |
| 126 | + .prepare('DELETE FROM repositories WHERE id = ?') | |
| 127 | + .bind(repo.id) | |
| 128 | + .run(); | |
| 129 | + | |
| 130 | + // Note: R2 objects are not cleaned up here. A separate cleanup job could handle that. | |
| 131 | + | |
| 132 | + return new Response(null, { status: 204 }); | |
| 133 | +} | |
| 134 | + | |
A packages/worker/src/handlers/api/webhooks.ts
| @@ -1,0 +1,86 @@ | ||
| 1 | +/** | |
| 2 | + * REST API: Webhook management endpoints. | |
| 3 | + */ | |
| 4 | + | |
| 5 | +import { requireAuth } from '../../middleware/auth.js'; | |
| 6 | +import { RepoService } from '../../services/repo-service.js'; | |
| 7 | +import { ValidationError, NotFoundError } from '@gitfastr/shared/utils/errors.js'; | |
| 8 | +import type { HandlerContext } from '../../router.js'; | |
| 9 | + | |
| 10 | +/** POST /api/repos/:owner/:repo/webhooks — Create webhook */ | |
| 11 | +export async function handleApiCreateWebhook( | |
| 12 | + request: Request, | |
| 13 | + hctx: HandlerContext | |
| 14 | +): Promise<Response> { | |
| 15 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 16 | + const { owner, repo: repoName } = hctx.params; | |
| 17 | + | |
| 18 | + const repoService = new RepoService(hctx.env.DB); | |
| 19 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 20 | + | |
| 21 | + const hasAccess = await repoService.hasWriteAccess(repo.id, userId); | |
| 22 | + if (!hasAccess) throw new ValidationError('Write access required'); | |
| 23 | + | |
| 24 | + const body = await request.json<{ | |
| 25 | + url: string; | |
| 26 | + secret?: string; | |
| 27 | + events?: string; | |
| 28 | + }>(); | |
| 29 | + | |
| 30 | + if (!body.url) throw new ValidationError('URL is required'); | |
| 31 | + | |
| 32 | + const result = await hctx.env.DB.prepare( | |
| 33 | + `INSERT INTO webhooks (repo_id, url, secret, events) | |
| 34 | + VALUES (?, ?, ?, ?) | |
| 35 | + RETURNING id, repo_id, url, events, is_active, created_at` | |
| 36 | + ) | |
| 37 | + .bind(repo.id, body.url, body.secret ?? null, body.events ?? 'push') | |
| 38 | + .first(); | |
| 39 | + | |
| 40 | + return Response.json(result, { status: 201 }); | |
| 41 | +} | |
| 42 | + | |
| 43 | +/** GET /api/repos/:owner/:repo/webhooks — List webhooks */ | |
| 44 | +export async function handleApiListWebhooks( | |
| 45 | + request: Request, | |
| 46 | + hctx: HandlerContext | |
| 47 | +): Promise<Response> { | |
| 48 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 49 | + const { owner, repo: repoName } = hctx.params; | |
| 50 | + | |
| 51 | + const repoService = new RepoService(hctx.env.DB); | |
| 52 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 53 | + | |
| 54 | + const hasAccess = await repoService.hasWriteAccess(repo.id, userId); | |
| 55 | + if (!hasAccess) throw new ValidationError('Write access required'); | |
| 56 | + | |
| 57 | + const result = await hctx.env.DB.prepare( | |
| 58 | + 'SELECT id, repo_id, url, events, is_active, created_at FROM webhooks WHERE repo_id = ?' | |
| 59 | + ) | |
| 60 | + .bind(repo.id) | |
| 61 | + .all(); | |
| 62 | + | |
| 63 | + return Response.json(result.results); | |
| 64 | +} | |
| 65 | + | |
| 66 | +/** DELETE /api/repos/:owner/:repo/webhooks/:id — Delete webhook */ | |
| 67 | +export async function handleApiDeleteWebhook( | |
| 68 | + request: Request, | |
| 69 | + hctx: HandlerContext | |
| 70 | +): Promise<Response> { | |
| 71 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 72 | + const { owner, repo: repoName } = hctx.params; | |
| 73 | + | |
| 74 | + const repoService = new RepoService(hctx.env.DB); | |
| 75 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 76 | + | |
| 77 | + const hasAccess = await repoService.hasWriteAccess(repo.id, userId); | |
| 78 | + if (!hasAccess) throw new ValidationError('Write access required'); | |
| 79 | + | |
| 80 | + await hctx.env.DB.prepare('DELETE FROM webhooks WHERE id = ? AND repo_id = ?') | |
| 81 | + .bind(hctx.params.webhookId, repo.id) | |
| 82 | + .run(); | |
| 83 | + | |
| 84 | + return new Response(null, { status: 204 }); | |
| 85 | +} | |
| 86 | + | |
A packages/worker/src/handlers/git/info-refs.ts
| @@ -1,0 +1,112 @@ | ||
| 1 | +/** | |
| 2 | + * GET /:owner/:repo.git/info/refs?service=git-upload-pack|git-receive-pack | |
| 3 | + * | |
| 4 | + * Reference discovery endpoint. Advertises refs and capabilities. | |
| 5 | + */ | |
| 6 | + | |
| 7 | +import { buildServiceAdvertisement } from '@gitfastr/shared'; | |
| 8 | +import { authenticate } from '../../middleware/auth.js'; | |
| 9 | +import { RepoService } from '../../services/repo-service.js'; | |
| 10 | +import { RefStore } from '../../services/ref-store.js'; | |
| 11 | +import { ForbiddenError } from '@gitfastr/shared/utils/errors.js'; | |
| 12 | +import type { HandlerContext } from '../../router.js'; | |
| 13 | + | |
| 14 | +const UPLOAD_PACK_CAPS = [ | |
| 15 | + 'multi_ack_detailed', | |
| 16 | + 'thin-pack', | |
| 17 | + 'no-progress', | |
| 18 | + 'ofs-delta', | |
| 19 | + 'side-band-64k', | |
| 20 | + 'allow-reachable-sha1-in-want', | |
| 21 | +]; | |
| 22 | + | |
| 23 | +const RECEIVE_PACK_CAPS = [ | |
| 24 | + 'report-status', | |
| 25 | + 'ofs-delta', | |
| 26 | + 'side-band-64k', | |
| 27 | + 'delete-refs', | |
| 28 | +]; | |
| 29 | + | |
| 30 | +export async function handleInfoRefs( | |
| 31 | + request: Request, | |
| 32 | + hctx: HandlerContext | |
| 33 | +): Promise<Response> { | |
| 34 | + const url = new URL(request.url); | |
| 35 | + const service = url.searchParams.get('service'); | |
| 36 | + | |
| 37 | + if (service !== 'git-upload-pack' && service !== 'git-receive-pack') { | |
| 38 | + return new Response('Invalid service', { status: 400 }); | |
| 39 | + } | |
| 40 | + | |
| 41 | + const { owner, repo: repoName } = hctx.params; | |
| 42 | + const repoService = new RepoService(hctx.env.DB); | |
| 43 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 44 | + | |
| 45 | + // Auth check | |
| 46 | + const userId = await authenticate(request, hctx.env.DB); | |
| 47 | + | |
| 48 | + if (service === 'git-receive-pack') { | |
| 49 | + // Push requires write access | |
| 50 | + const hasAccess = await repoService.hasWriteAccess(repo.id, userId); | |
| 51 | + if (!hasAccess) { | |
| 52 | + return new Response('', { | |
| 53 | + status: 401, | |
| 54 | + headers: { 'WWW-Authenticate': 'Basic realm="gitfastr"' }, | |
| 55 | + }); | |
| 56 | + } | |
| 57 | + } else { | |
| 58 | + // Fetch requires read access | |
| 59 | + const hasAccess = await repoService.hasReadAccess(repo, userId); | |
| 60 | + if (!hasAccess) { | |
| 61 | + return new Response('', { | |
| 62 | + status: 401, | |
| 63 | + headers: { 'WWW-Authenticate': 'Basic realm="gitfastr"' }, | |
| 64 | + }); | |
| 65 | + } | |
| 66 | + } | |
| 67 | + | |
| 68 | + const refStore = new RefStore(hctx.env.DB, repo.id); | |
| 69 | + const refs = await refStore.getAll(); | |
| 70 | + | |
| 71 | + // Find the default branch ref for HEAD resolution | |
| 72 | + const defaultBranchRef = refs.find( | |
| 73 | + (r) => r.name === `refs/heads/${repo.default_branch}` | |
| 74 | + ); | |
| 75 | + | |
| 76 | + const baseCaps = | |
| 77 | + service === 'git-upload-pack' ? [...UPLOAD_PACK_CAPS] : [...RECEIVE_PACK_CAPS]; | |
| 78 | + | |
| 79 | + // Add symref capability so clients know HEAD -> default branch | |
| 80 | + if (defaultBranchRef) { | |
| 81 | + baseCaps.push(`symref=HEAD:refs/heads/${repo.default_branch}`); | |
| 82 | + } | |
| 83 | + const capabilities = baseCaps; | |
| 84 | + | |
| 85 | + // Map DB refs to the format buildServiceAdvertisement expects | |
| 86 | + const refList = refs | |
| 87 | + .filter((r) => !r.is_symbolic) | |
| 88 | + .map((r) => ({ sha: r.sha, name: r.name })); | |
| 89 | + | |
| 90 | + // Add HEAD pointing to the default branch if it exists | |
| 91 | + if (defaultBranchRef) { | |
| 92 | + refList.unshift({ sha: defaultBranchRef.sha, name: 'HEAD' }); | |
| 93 | + } | |
| 94 | + | |
| 95 | + // Sort HEAD first, then alphabetically | |
| 96 | + refList.sort((a, b) => { | |
| 97 | + if (a.name === 'HEAD') return -1; | |
| 98 | + if (b.name === 'HEAD') return 1; | |
| 99 | + return a.name.localeCompare(b.name); | |
| 100 | + }); | |
| 101 | + | |
| 102 | + const body = buildServiceAdvertisement(service, refList, capabilities); | |
| 103 | + | |
| 104 | + return new Response(body, { | |
| 105 | + status: 200, | |
| 106 | + headers: { | |
| 107 | + 'Content-Type': `application/x-${service}-advertisement`, | |
| 108 | + 'Cache-Control': 'no-cache', | |
| 109 | + }, | |
| 110 | + }); | |
| 111 | +} | |
| 112 | + | |
A packages/worker/src/handlers/git/receive-pack.ts
| @@ -1,0 +1,187 @@ | ||
| 1 | +/** | |
| 2 | + * POST /:owner/:repo.git/git-receive-pack | |
| 3 | + * | |
| 4 | + * Handles git push. Parses the incoming pack file, stores objects in R2, | |
| 5 | + * and updates refs in D1. | |
| 6 | + */ | |
| 7 | + | |
| 8 | +import { pktLineParse, pktLineEncode, pktFlush, pktConcat, pktSideBandEncode, SIDE_BAND } from '@gitfastr/shared'; | |
| 9 | +import { parsePack } from '@gitfastr/shared/git/pack-parse.js'; | |
| 10 | +import { requireAuth } from '../../middleware/auth.js'; | |
| 11 | +import { RepoService } from '../../services/repo-service.js'; | |
| 12 | +import { ObjectStore } from '../../services/object-store.js'; | |
| 13 | +import { RefStore } from '../../services/ref-store.js'; | |
| 14 | +import { ForbiddenError } from '@gitfastr/shared/utils/errors.js'; | |
| 15 | +import { WebhookService } from '../../services/webhook-service.js'; | |
| 16 | +import { ActivityService } from '../../services/activity-service.js'; | |
| 17 | +import type { HandlerContext } from '../../router.js'; | |
| 18 | +import type { RefUpdateCommand } from '@gitfastr/shared'; | |
| 19 | + | |
| 20 | +const encoder = new TextEncoder(); | |
| 21 | +const decoder = new TextDecoder(); | |
| 22 | +const ZERO_SHA = '0'.repeat(40); | |
| 23 | + | |
| 24 | +export async function handleReceivePack( | |
| 25 | + request: Request, | |
| 26 | + hctx: HandlerContext | |
| 27 | +): Promise<Response> { | |
| 28 | + const userId = await requireAuth(request, hctx.env.DB); | |
| 29 | + | |
| 30 | + const { owner, repo: repoName } = hctx.params; | |
| 31 | + const repoService = new RepoService(hctx.env.DB); | |
| 32 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 33 | + | |
| 34 | + // Check write access | |
| 35 | + const hasAccess = await repoService.hasWriteAccess(repo.id, userId); | |
| 36 | + if (!hasAccess) { | |
| 37 | + throw new ForbiddenError('No write access to this repository'); | |
| 38 | + } | |
| 39 | + | |
| 40 | + // Read the entire request body | |
| 41 | + const body = new Uint8Array(await request.arrayBuffer()); | |
| 42 | + | |
| 43 | + // Parse pkt-lines to extract ref update commands | |
| 44 | + const { lines } = pktLineParse(body); | |
| 45 | + | |
| 46 | + const commands: RefUpdateCommand[] = []; | |
| 47 | + let packStart = 0; | |
| 48 | + let capsLine = true; | |
| 49 | + | |
| 50 | + for (const line of lines) { | |
| 51 | + if (line.type === 'flush') { | |
| 52 | + break; | |
| 53 | + } | |
| 54 | + if (line.type !== 'data') continue; | |
| 55 | + | |
| 56 | + let lineStr = decoder.decode(line.data); | |
| 57 | + | |
| 58 | + // First data line may include capabilities after NUL | |
| 59 | + if (capsLine) { | |
| 60 | + const nulIdx = lineStr.indexOf('\0'); | |
| 61 | + if (nulIdx !== -1) { | |
| 62 | + lineStr = lineStr.slice(0, nulIdx); | |
| 63 | + } | |
| 64 | + capsLine = false; | |
| 65 | + } | |
| 66 | + | |
| 67 | + // Trim trailing newline | |
| 68 | + if (lineStr.endsWith('\n')) lineStr = lineStr.slice(0, -1); | |
| 69 | + | |
| 70 | + // Parse: "old-sha new-sha refname" | |
| 71 | + const parts = lineStr.split(' '); | |
| 72 | + if (parts.length >= 3) { | |
| 73 | + commands.push({ | |
| 74 | + oldSha: parts[0], | |
| 75 | + newSha: parts[1], | |
| 76 | + refName: parts[2], | |
| 77 | + }); | |
| 78 | + } | |
| 79 | + } | |
| 80 | + | |
| 81 | + // Find where the PACK data starts (after the flush following commands) | |
| 82 | + // Look for "PACK" signature in the body | |
| 83 | + const packSig = encoder.encode('PACK'); | |
| 84 | + for (let i = 0; i < body.length - 4; i++) { | |
| 85 | + if ( | |
| 86 | + body[i] === packSig[0] && | |
| 87 | + body[i + 1] === packSig[1] && | |
| 88 | + body[i + 2] === packSig[2] && | |
| 89 | + body[i + 3] === packSig[3] | |
| 90 | + ) { | |
| 91 | + packStart = i; | |
| 92 | + break; | |
| 93 | + } | |
| 94 | + } | |
| 95 | + | |
| 96 | + const objectStore = new ObjectStore(hctx.env.OBJECTS, owner, repoName); | |
| 97 | + const refStore = new RefStore(hctx.env.DB, repo.id); | |
| 98 | + | |
| 99 | + // Parse and store objects from the pack | |
| 100 | + if (packStart > 0) { | |
| 101 | + const packData = body.slice(packStart); | |
| 102 | + | |
| 103 | + const objects = await parsePack(packData, async (sha: string) => { | |
| 104 | + return objectStore.get(sha); | |
| 105 | + }); | |
| 106 | + | |
| 107 | + // Store all objects in R2 | |
| 108 | + for (const obj of objects) { | |
| 109 | + await objectStore.put(obj.sha, obj.type, obj.content); | |
| 110 | + } | |
| 111 | + } | |
| 112 | + | |
| 113 | + // Apply ref updates | |
| 114 | + try { | |
| 115 | + await refStore.applyUpdates(commands); | |
| 116 | + } catch (error) { | |
| 117 | + // Report error via side-band | |
| 118 | + const errMsg = error instanceof Error ? error.message : 'Unknown error'; | |
| 119 | + const errorReport = pktConcat( | |
| 120 | + pktSideBandEncode( | |
| 121 | + SIDE_BAND.ERROR, | |
| 122 | + encoder.encode(`error: ${errMsg}\n`) | |
| 123 | + ), | |
| 124 | + pktFlush() | |
| 125 | + ); | |
| 126 | + return new Response(errorReport, { | |
| 127 | + status: 200, | |
| 128 | + headers: { 'Content-Type': 'application/x-git-receive-pack-result' }, | |
| 129 | + }); | |
| 130 | + } | |
| 131 | + | |
| 132 | + // Fire webhooks and log activity (non-blocking) | |
| 133 | + const webhookService = new WebhookService(hctx.env.DB); | |
| 134 | + const activityService = new ActivityService(hctx.env.DB); | |
| 135 | + | |
| 136 | + for (const cmd of commands) { | |
| 137 | + if (cmd.newSha !== ZERO_SHA) { | |
| 138 | + const refName = cmd.refName.replace('refs/heads/', '').replace('refs/tags/', ''); | |
| 139 | + const payload = { | |
| 140 | + event: 'push' as const, | |
| 141 | + repository: { owner, name: repoName, full_name: `${owner}/${repoName}` }, | |
| 142 | + sender: { username: owner }, | |
| 143 | + ref: cmd.refName, | |
| 144 | + before: cmd.oldSha, | |
| 145 | + after: cmd.newSha, | |
| 146 | + }; | |
| 147 | + | |
| 148 | + const deliveries = webhookService.fireWebhooks(repo.id, 'push', payload); | |
| 149 | + deliveries.then((promises) => promises.forEach((p) => hctx.ctx.waitUntil(p))); | |
| 150 | + | |
| 151 | + hctx.ctx.waitUntil( | |
| 152 | + activityService.log(repo.id, userId, 'push', { ref: refName, new_sha: cmd.newSha }) | |
| 153 | + ); | |
| 154 | + } | |
| 155 | + } | |
| 156 | + | |
| 157 | + // Build success response with report-status | |
| 158 | + const reportLines: Uint8Array[] = []; | |
| 159 | + | |
| 160 | + // Unpack status | |
| 161 | + reportLines.push( | |
| 162 | + pktSideBandEncode(SIDE_BAND.DATA, pktLineEncode('unpack ok\n')) | |
| 163 | + ); | |
| 164 | + | |
| 165 | + // Per-ref status | |
| 166 | + for (const cmd of commands) { | |
| 167 | + reportLines.push( | |
| 168 | + pktSideBandEncode( | |
| 169 | + SIDE_BAND.DATA, | |
| 170 | + pktLineEncode(`ok ${cmd.refName}\n`) | |
| 171 | + ) | |
| 172 | + ); | |
| 173 | + } | |
| 174 | + | |
| 175 | + reportLines.push( | |
| 176 | + pktSideBandEncode(SIDE_BAND.DATA, pktFlush()) | |
| 177 | + ); | |
| 178 | + reportLines.push(pktFlush()); | |
| 179 | + | |
| 180 | + const responseBody = pktConcat(...reportLines); | |
| 181 | + | |
| 182 | + return new Response(responseBody, { | |
| 183 | + status: 200, | |
| 184 | + headers: { 'Content-Type': 'application/x-git-receive-pack-result' }, | |
| 185 | + }); | |
| 186 | +} | |
| 187 | + | |
A packages/worker/src/handlers/git/upload-pack.ts
| @@ -1,0 +1,139 @@ | ||
| 1 | +/** | |
| 2 | + * POST /:owner/:repo.git/git-upload-pack | |
| 3 | + * | |
| 4 | + * Handles git fetch/clone. Negotiates which objects the client needs, | |
| 5 | + * then generates and streams a pack file. | |
| 6 | + */ | |
| 7 | + | |
| 8 | +import { | |
| 9 | + pktLineParse, | |
| 10 | + pktLineEncode, | |
| 11 | + pktFlush, | |
| 12 | + pktConcat, | |
| 13 | + pktSideBandEncode, | |
| 14 | + pktLineDataToString, | |
| 15 | + SIDE_BAND, | |
| 16 | +} from '@gitfastr/shared'; | |
| 17 | +import { parseCommit, type GitObjectType } from '@gitfastr/shared/git/object.js'; | |
| 18 | +import { generatePack, type PackInput } from '@gitfastr/shared/git/pack-generate.js'; | |
| 19 | +import { authenticate } from '../../middleware/auth.js'; | |
| 20 | +import { RepoService } from '../../services/repo-service.js'; | |
| 21 | +import { ObjectStore } from '../../services/object-store.js'; | |
| 22 | +import type { HandlerContext } from '../../router.js'; | |
| 23 | + | |
| 24 | +const encoder = new TextEncoder(); | |
| 25 | + | |
| 26 | +export async function handleUploadPack( | |
| 27 | + request: Request, | |
| 28 | + hctx: HandlerContext | |
| 29 | +): Promise<Response> { | |
| 30 | + const { owner, repo: repoName } = hctx.params; | |
| 31 | + const repoService = new RepoService(hctx.env.DB); | |
| 32 | + const { repo } = await repoService.getByOwnerAndName(owner, repoName); | |
| 33 | + | |
| 34 | + // Auth check for private repos | |
| 35 | + const userId = await authenticate(request, hctx.env.DB); | |
| 36 | + const hasAccess = await repoService.hasReadAccess(repo, userId); | |
| 37 | + if (!hasAccess) { | |
| 38 | + return new Response('', { | |
| 39 | + status: 401, | |
| 40 | + headers: { 'WWW-Authenticate': 'Basic realm="gitfastr"' }, | |
| 41 | + }); | |
| 42 | + } | |
| 43 | + | |
| 44 | + // Parse request body | |
| 45 | + const body = new Uint8Array(await request.arrayBuffer()); | |
| 46 | + const { lines } = pktLineParse(body); | |
| 47 | + | |
| 48 | + const wants = new Set<string>(); | |
| 49 | + const haves = new Set<string>(); | |
| 50 | + let done = false; | |
| 51 | + | |
| 52 | + for (const line of lines) { | |
| 53 | + const str = pktLineDataToString(line); | |
| 54 | + if (!str) continue; | |
| 55 | + | |
| 56 | + if (str.startsWith('want ')) { | |
| 57 | + // "want <sha> [capabilities]" | |
| 58 | + const sha = str.split(' ')[1]; | |
| 59 | + wants.add(sha); | |
| 60 | + } else if (str.startsWith('have ')) { | |
| 61 | + haves.add(str.split(' ')[1]); | |
| 62 | + } else if (str === 'done') { | |
| 63 | + done = true; | |
| 64 | + } | |
| 65 | + } | |
| 66 | + | |
| 67 | + if (wants.size === 0) { | |
| 68 | + return new Response(pktConcat(pktLineEncode('NAK\n'), pktFlush()), { | |
| 69 | + status: 200, | |
| 70 | + headers: { 'Content-Type': 'application/x-git-upload-pack-result' }, | |
| 71 | + }); | |
| 72 | + } | |
| 73 | + | |
| 74 | + const objectStore = new ObjectStore(hctx.env.OBJECTS, owner, repoName); | |
| 75 | + | |
| 76 | + // Walk the commit graph from wanted SHAs to collect needed objects | |
| 77 | + const needed = new Set<string>(); | |
| 78 | + const visited = new Set<string>(); | |
| 79 | + const queue = [...wants]; | |
| 80 | + | |
| 81 | + while (queue.length > 0) { | |
| 82 | + const sha = queue.pop()!; | |
| 83 | + if (visited.has(sha) || haves.has(sha)) continue; | |
| 84 | + visited.add(sha); | |
| 85 | + needed.add(sha); | |
| 86 | + | |
| 87 | + const obj = await objectStore.get(sha); | |
| 88 | + if (!obj) continue; | |
| 89 | + | |
| 90 | + if (obj.type === 'commit') { | |
| 91 | + const commit = parseCommit(obj.content); | |
| 92 | + // Add tree | |
| 93 | + queue.push(commit.tree); | |
| 94 | + // Add parent commits | |
| 95 | + for (const parent of commit.parents) { | |
| 96 | + queue.push(parent); | |
| 97 | + } | |
| 98 | + } else if (obj.type === 'tree') { | |
| 99 | + // Walk tree entries to find sub-trees and blobs | |
| 100 | + const { parseTree } = await import('@gitfastr/shared/git/object.js'); | |
| 101 | + const entries = parseTree(obj.content); | |
| 102 | + for (const entry of entries) { | |
| 103 | + queue.push(entry.sha); | |
| 104 | + } | |
| 105 | + } | |
| 106 | + // Blobs and tags are leaf objects — no children to walk | |
| 107 | + } | |
| 108 | + | |
| 109 | + // Fetch all needed objects for pack generation | |
| 110 | + const packInputs: PackInput[] = []; | |
| 111 | + for (const sha of needed) { | |
| 112 | + const obj = await objectStore.get(sha); | |
| 113 | + if (obj) { | |
| 114 | + packInputs.push({ type: obj.type, content: obj.content }); | |
| 115 | + } | |
| 116 | + } | |
| 117 | + | |
| 118 | + // Generate pack file | |
| 119 | + const packData = await generatePack(packInputs); | |
| 120 | + | |
| 121 | + // Build response: NAK + side-band pack data + flush | |
| 122 | + const parts: Uint8Array[] = []; | |
| 123 | + parts.push(pktLineEncode('NAK\n')); | |
| 124 | + | |
| 125 | + // Send pack data in chunks via side-band-64k (max 65519 bytes per packet) | |
| 126 | + const MAX_DATA_PER_PACKET = 65519 - 1; // minus 1 for channel byte | |
| 127 | + for (let i = 0; i < packData.length; i += MAX_DATA_PER_PACKET) { | |
| 128 | + const chunk = packData.slice(i, i + MAX_DATA_PER_PACKET); | |
| 129 | + parts.push(pktSideBandEncode(SIDE_BAND.DATA, chunk)); | |
| 130 | + } | |
| 131 | + | |
| 132 | + parts.push(pktFlush()); | |
| 133 | + | |
| 134 | + return new Response(pktConcat(...parts), { | |
| 135 | + status: 200, | |
| 136 | + headers: { 'Content-Type': 'application/x-git-upload-pack-result' }, | |
| 137 | + }); | |
| 138 | +} | |
| 139 | + | |
A packages/worker/src/index.ts
| @@ -1,0 +1,23 @@ | ||
| 1 | +/** | |
| 2 | + * gitfastr Worker entrypoint. | |
| 3 | + * Routes requests to git protocol handlers or REST API handlers. | |
| 4 | + */ | |
| 5 | + | |
| 6 | +import { router } from './router.js'; | |
| 7 | +import { handleError } from './middleware/error-handler.js'; | |
| 8 | + | |
| 9 | +export interface Env { | |
| 10 | + DB: D1Database; | |
| 11 | + OBJECTS: R2Bucket; | |
| 12 | +} | |
| 13 | + | |
| 14 | +export default { | |
| 15 | + async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> { | |
| 16 | + try { | |
| 17 | + return await router(request, env, ctx); | |
| 18 | + } catch (error) { | |
| 19 | + return handleError(error); | |
| 20 | + } | |
| 21 | + }, | |
| 22 | +} satisfies ExportedHandler<Env>; | |
| 23 | + | |
A packages/worker/src/middleware/auth.ts
| @@ -1,0 +1,121 @@ | ||
| 1 | +/** | |
| 2 | + * Authentication middleware. | |
| 3 | + * | |
| 4 | + * Supports two modes: | |
| 5 | + * - HTTP Basic Auth with PAT (for git operations) | |
| 6 | + * - Session cookie (for web UI API calls) | |
| 7 | + */ | |
| 8 | + | |
| 9 | +import { sha256 } from '@gitfastr/shared/git/sha1.js'; | |
| 10 | +import { UnauthorizedError } from '@gitfastr/shared/utils/errors.js'; | |
| 11 | +import type { Env } from '../index.js'; | |
| 12 | +import type { DbAccessToken, DbSession, DbUser } from '@gitfastr/shared'; | |
| 13 | + | |
| 14 | +const encoder = new TextEncoder(); | |
| 15 | + | |
| 16 | +/** | |
| 17 | + * Authenticate a request. Returns the user ID if authenticated, null otherwise. | |
| 18 | + * Does not throw — callers decide whether auth is required. | |
| 19 | + */ | |
| 20 | +export async function authenticate( | |
| 21 | + request: Request, | |
| 22 | + db: D1Database | |
| 23 | +): Promise<string | null> { | |
| 24 | + // Try Basic Auth first (git clients) | |
| 25 | + const authHeader = request.headers.get('Authorization'); | |
| 26 | + if (authHeader?.startsWith('Basic ')) { | |
| 27 | + return authenticateBasic(authHeader, db); | |
| 28 | + } | |
| 29 | + | |
| 30 | + // Try session cookie | |
| 31 | + const cookie = request.headers.get('Cookie'); | |
| 32 | + if (cookie) { | |
| 33 | + return authenticateSession(cookie, db); | |
| 34 | + } | |
| 35 | + | |
| 36 | + return null; | |
| 37 | +} | |
| 38 | + | |
| 39 | +/** | |
| 40 | + * Require authentication — throws UnauthorizedError if not authenticated. | |
| 41 | + */ | |
| 42 | +export async function requireAuth( | |
| 43 | + request: Request, | |
| 44 | + db: D1Database | |
| 45 | +): Promise<string> { | |
| 46 | + const userId = await authenticate(request, db); | |
| 47 | + if (!userId) { | |
| 48 | + throw new UnauthorizedError(); | |
| 49 | + } | |
| 50 | + return userId; | |
| 51 | +} | |
| 52 | + | |
| 53 | +/** Authenticate via HTTP Basic Auth with a PAT as the password. */ | |
| 54 | +async function authenticateBasic( | |
| 55 | + authHeader: string, | |
| 56 | + db: D1Database | |
| 57 | +): Promise<string | null> { | |
| 58 | + const encoded = authHeader.slice(6); // Remove "Basic " | |
| 59 | + const decoded = atob(encoded); | |
| 60 | + const colonIdx = decoded.indexOf(':'); | |
| 61 | + if (colonIdx === -1) return null; | |
| 62 | + | |
| 63 | + const password = decoded.slice(colonIdx + 1); // The PAT | |
| 64 | + | |
| 65 | + // Hash the token to look it up | |
| 66 | + const tokenHash = await sha256(encoder.encode(password)); | |
| 67 | + | |
| 68 | + const result = await db | |
| 69 | + .prepare( | |
| 70 | + `SELECT at.user_id, at.expires_at | |
| 71 | + FROM access_tokens at | |
| 72 | + WHERE at.token_hash = ?` | |
| 73 | + ) | |
| 74 | + .bind(tokenHash) | |
| 75 | + .first<Pick<DbAccessToken, 'user_id' | 'expires_at'>>(); | |
| 76 | + | |
| 77 | + if (!result) return null; | |
| 78 | + | |
| 79 | + // Check expiration | |
| 80 | + if (result.expires_at && new Date(result.expires_at) < new Date()) { | |
| 81 | + return null; | |
| 82 | + } | |
| 83 | + | |
| 84 | + // Update last_used_at (fire and forget) | |
| 85 | + db.prepare('UPDATE access_tokens SET last_used_at = datetime(\'now\') WHERE token_hash = ?') | |
| 86 | + .bind(tokenHash) | |
| 87 | + .run(); | |
| 88 | + | |
| 89 | + return result.user_id; | |
| 90 | +} | |
| 91 | + | |
| 92 | +/** Authenticate via session cookie. */ | |
| 93 | +async function authenticateSession( | |
| 94 | + cookie: string, | |
| 95 | + db: D1Database | |
| 96 | +): Promise<string | null> { | |
| 97 | + // Parse session ID from cookie | |
| 98 | + const match = cookie.match(/(?:^|;\s*)session=([^;]+)/); | |
| 99 | + if (!match) return null; | |
| 100 | + | |
| 101 | + const sessionId = match[1]; | |
| 102 | + | |
| 103 | + const result = await db | |
| 104 | + .prepare( | |
| 105 | + `SELECT user_id, expires_at FROM sessions WHERE id = ?` | |
| 106 | + ) | |
| 107 | + .bind(sessionId) | |
| 108 | + .first<Pick<DbSession, 'user_id' | 'expires_at'>>(); | |
| 109 | + | |
| 110 | + if (!result) return null; | |
| 111 | + | |
| 112 | + // Check expiration | |
| 113 | + if (new Date(result.expires_at) < new Date()) { | |
| 114 | + // Clean up expired session | |
| 115 | + db.prepare('DELETE FROM sessions WHERE id = ?').bind(sessionId).run(); | |
| 116 | + return null; | |
| 117 | + } | |
| 118 | + | |
| 119 | + return result.user_id; | |
| 120 | +} | |
| 121 | + | |
A packages/worker/src/middleware/cors.ts
| @@ -1,0 +1,11 @@ | ||
| 1 | +/** CORS headers for cross-origin requests from the Pages UI. */ | |
| 2 | + | |
| 3 | +export function corsHeaders(): Record<string, string> { | |
| 4 | + return { | |
| 5 | + 'Access-Control-Allow-Origin': '*', | |
| 6 | + 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS', | |
| 7 | + 'Access-Control-Allow-Headers': 'Content-Type, Authorization', | |
| 8 | + 'Access-Control-Max-Age': '86400', | |
| 9 | + }; | |
| 10 | +} | |
| 11 | + | |
A packages/worker/src/middleware/error-handler.ts
| @@ -1,0 +1,25 @@ | ||
| 1 | +import { AppError } from '@gitfastr/shared/utils/errors.js'; | |
| 2 | + | |
| 3 | +/** Global error handler: converts errors to JSON responses. */ | |
| 4 | +export function handleError(error: unknown): Response { | |
| 5 | + if (error instanceof AppError) { | |
| 6 | + return new Response( | |
| 7 | + JSON.stringify({ error: error.message, code: error.code }), | |
| 8 | + { | |
| 9 | + status: error.statusCode, | |
| 10 | + headers: { 'Content-Type': 'application/json' }, | |
| 11 | + } | |
| 12 | + ); | |
| 13 | + } | |
| 14 | + | |
| 15 | + console.error('Unhandled error:', error); | |
| 16 | + | |
| 17 | + return new Response( | |
| 18 | + JSON.stringify({ error: 'Internal server error', code: 'INTERNAL_ERROR' }), | |
| 19 | + { | |
| 20 | + status: 500, | |
| 21 | + headers: { 'Content-Type': 'application/json' }, | |
| 22 | + } | |
| 23 | + ); | |
| 24 | +} | |
| 25 | + | |
A packages/worker/src/router.ts
| @@ -1,0 +1,274 @@ | ||
| 1 | +/** | |
| 2 | + * Request router. | |
| 3 | + * Matches URLs to handler functions for git protocol and REST API endpoints. | |
| 4 | + */ | |
| 5 | + | |
| 6 | +import type { Env } from './index.js'; | |
| 7 | +import { handleInfoRefs } from './handlers/git/info-refs.js'; | |
| 8 | +import { handleReceivePack } from './handlers/git/receive-pack.js'; | |
| 9 | +import { handleUploadPack } from './handlers/git/upload-pack.js'; | |
| 10 | +import { handleApiRepos, handleApiRepoDetail, handleApiCreateRepo } from './handlers/api/repos.js'; | |
| 11 | +import { handleApiRegister, handleApiLogin, handleApiCreateToken } from './handlers/api/auth.js'; | |
| 12 | +import { handleApiTree, handleApiBlob, handleApiCommits, handleApiCommitDetail, handleApiBranches } from './handlers/api/browse.js'; | |
| 13 | +import { handleApiCreateMR, handleApiListMRs, handleApiGetMR, handleApiAddMRComment, handleApiMergeMR } from './handlers/api/merge-requests.js'; | |
| 14 | +import { handleApiCreateWebhook, handleApiListWebhooks, handleApiDeleteWebhook } from './handlers/api/webhooks.js'; | |
| 15 | +import { handleApiRepoActivity, handleApiCommitDiff } from './handlers/api/activity.js'; | |
| 16 | +import { handleApiGetUser, handleApiListTokens, handleApiRevokeToken, handleApiUpdateRepo, handleApiDeleteRepo } from './handlers/api/settings.js'; | |
| 17 | +import { corsHeaders } from './middleware/cors.js'; | |
| 18 | + | |
| 19 | +export type HandlerContext = { | |
| 20 | + env: Env; | |
| 21 | + ctx: ExecutionContext; | |
| 22 | + params: Record<string, string>; | |
| 23 | + userId?: string; | |
| 24 | +}; | |
| 25 | + | |
| 26 | +type Handler = (request: Request, hctx: HandlerContext) => Promise<Response>; | |
| 27 | + | |
| 28 | +interface Route { | |
| 29 | + method: string; | |
| 30 | + pattern: RegExp; | |
| 31 | + paramNames: string[]; | |
| 32 | + handler: Handler; | |
| 33 | +} | |
| 34 | + | |
| 35 | +const routes: Route[] = [ | |
| 36 | + // Git Smart HTTP Protocol | |
| 37 | + { | |
| 38 | + method: 'GET', | |
| 39 | + pattern: /^\/([^/]+)\/([^/]+?)(?:\.git)?\/info\/refs$/, | |
| 40 | + paramNames: ['owner', 'repo'], | |
| 41 | + handler: handleInfoRefs, | |
| 42 | + }, | |
| 43 | + { | |
| 44 | + method: 'POST', | |
| 45 | + pattern: /^\/([^/]+)\/([^/]+?)(?:\.git)?\/git-receive-pack$/, | |
| 46 | + paramNames: ['owner', 'repo'], | |
| 47 | + handler: handleReceivePack, | |
| 48 | + }, | |
| 49 | + { | |
| 50 | + method: 'POST', | |
| 51 | + pattern: /^\/([^/]+)\/([^/]+?)(?:\.git)?\/git-upload-pack$/, | |
| 52 | + paramNames: ['owner', 'repo'], | |
| 53 | + handler: handleUploadPack, | |
| 54 | + }, | |
| 55 | + | |
| 56 | + // REST API - Auth | |
| 57 | + { | |
| 58 | + method: 'POST', | |
| 59 | + pattern: /^\/api\/register$/, | |
| 60 | + paramNames: [], | |
| 61 | + handler: handleApiRegister, | |
| 62 | + }, | |
| 63 | + { | |
| 64 | + method: 'POST', | |
| 65 | + pattern: /^\/api\/login$/, | |
| 66 | + paramNames: [], | |
| 67 | + handler: handleApiLogin, | |
| 68 | + }, | |
| 69 | + { | |
| 70 | + method: 'POST', | |
| 71 | + pattern: /^\/api\/tokens$/, | |
| 72 | + paramNames: [], | |
| 73 | + handler: handleApiCreateToken, | |
| 74 | + }, | |
| 75 | + | |
| 76 | + // REST API - Repos | |
| 77 | + { | |
| 78 | + method: 'GET', | |
| 79 | + pattern: /^\/api\/repos$/, | |
| 80 | + paramNames: [], | |
| 81 | + handler: handleApiRepos, | |
| 82 | + }, | |
| 83 | + { | |
| 84 | + method: 'POST', | |
| 85 | + pattern: /^\/api\/repos$/, | |
| 86 | + paramNames: [], | |
| 87 | + handler: handleApiCreateRepo, | |
| 88 | + }, | |
| 89 | + { | |
| 90 | + method: 'GET', | |
| 91 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)$/, | |
| 92 | + paramNames: ['owner', 'repo'], | |
| 93 | + handler: handleApiRepoDetail, | |
| 94 | + }, | |
| 95 | + | |
| 96 | + // REST API - Browsing | |
| 97 | + { | |
| 98 | + method: 'GET', | |
| 99 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/tree\/([^/]+)(?:\/(.+))?$/, | |
| 100 | + paramNames: ['owner', 'repo', 'ref', 'path'], | |
| 101 | + handler: handleApiTree, | |
| 102 | + }, | |
| 103 | + { | |
| 104 | + method: 'GET', | |
| 105 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/blob\/([^/]+)\/(.+)$/, | |
| 106 | + paramNames: ['owner', 'repo', 'ref', 'path'], | |
| 107 | + handler: handleApiBlob, | |
| 108 | + }, | |
| 109 | + { | |
| 110 | + method: 'GET', | |
| 111 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/commits\/([^/]+)$/, | |
| 112 | + paramNames: ['owner', 'repo', 'ref'], | |
| 113 | + handler: handleApiCommits, | |
| 114 | + }, | |
| 115 | + { | |
| 116 | + method: 'GET', | |
| 117 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/commit\/([0-9a-f]+)$/, | |
| 118 | + paramNames: ['owner', 'repo', 'sha'], | |
| 119 | + handler: handleApiCommitDetail, | |
| 120 | + }, | |
| 121 | + { | |
| 122 | + method: 'GET', | |
| 123 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/branches$/, | |
| 124 | + paramNames: ['owner', 'repo'], | |
| 125 | + handler: handleApiBranches, | |
| 126 | + }, | |
| 127 | + | |
| 128 | + // REST API - Merge Requests | |
| 129 | + { | |
| 130 | + method: 'POST', | |
| 131 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/merge-requests$/, | |
| 132 | + paramNames: ['owner', 'repo'], | |
| 133 | + handler: handleApiCreateMR, | |
| 134 | + }, | |
| 135 | + { | |
| 136 | + method: 'GET', | |
| 137 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/merge-requests$/, | |
| 138 | + paramNames: ['owner', 'repo'], | |
| 139 | + handler: handleApiListMRs, | |
| 140 | + }, | |
| 141 | + { | |
| 142 | + method: 'GET', | |
| 143 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/merge-requests\/(\d+)$/, | |
| 144 | + paramNames: ['owner', 'repo', 'number'], | |
| 145 | + handler: handleApiGetMR, | |
| 146 | + }, | |
| 147 | + { | |
| 148 | + method: 'POST', | |
| 149 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/merge-requests\/(\d+)\/comments$/, | |
| 150 | + paramNames: ['owner', 'repo', 'number'], | |
| 151 | + handler: handleApiAddMRComment, | |
| 152 | + }, | |
| 153 | + { | |
| 154 | + method: 'POST', | |
| 155 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/merge-requests\/(\d+)\/merge$/, | |
| 156 | + paramNames: ['owner', 'repo', 'number'], | |
| 157 | + handler: handleApiMergeMR, | |
| 158 | + }, | |
| 159 | + | |
| 160 | + // REST API - Webhooks | |
| 161 | + { | |
| 162 | + method: 'POST', | |
| 163 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/webhooks$/, | |
| 164 | + paramNames: ['owner', 'repo'], | |
| 165 | + handler: handleApiCreateWebhook, | |
| 166 | + }, | |
| 167 | + { | |
| 168 | + method: 'GET', | |
| 169 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/webhooks$/, | |
| 170 | + paramNames: ['owner', 'repo'], | |
| 171 | + handler: handleApiListWebhooks, | |
| 172 | + }, | |
| 173 | + { | |
| 174 | + method: 'DELETE', | |
| 175 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/webhooks\/([^/]+)$/, | |
| 176 | + paramNames: ['owner', 'repo', 'webhookId'], | |
| 177 | + handler: handleApiDeleteWebhook, | |
| 178 | + }, | |
| 179 | + | |
| 180 | + // REST API - Activity & Commit Diff | |
| 181 | + { | |
| 182 | + method: 'GET', | |
| 183 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/activity$/, | |
| 184 | + paramNames: ['owner', 'repo'], | |
| 185 | + handler: handleApiRepoActivity, | |
| 186 | + }, | |
| 187 | + { | |
| 188 | + method: 'GET', | |
| 189 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/commit\/([0-9a-f]+)\/diff$/, | |
| 190 | + paramNames: ['owner', 'repo', 'sha'], | |
| 191 | + handler: handleApiCommitDiff, | |
| 192 | + }, | |
| 193 | + | |
| 194 | + // REST API - User Settings | |
| 195 | + { | |
| 196 | + method: 'GET', | |
| 197 | + pattern: /^\/api\/user$/, | |
| 198 | + paramNames: [], | |
| 199 | + handler: handleApiGetUser, | |
| 200 | + }, | |
| 201 | + { | |
| 202 | + method: 'GET', | |
| 203 | + pattern: /^\/api\/user\/tokens$/, | |
| 204 | + paramNames: [], | |
| 205 | + handler: handleApiListTokens, | |
| 206 | + }, | |
| 207 | + { | |
| 208 | + method: 'DELETE', | |
| 209 | + pattern: /^\/api\/user\/tokens\/([^/]+)$/, | |
| 210 | + paramNames: ['tokenId'], | |
| 211 | + handler: handleApiRevokeToken, | |
| 212 | + }, | |
| 213 | + | |
| 214 | + // REST API - Repo Settings | |
| 215 | + { | |
| 216 | + method: 'PUT', | |
| 217 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)\/settings$/, | |
| 218 | + paramNames: ['owner', 'repo'], | |
| 219 | + handler: handleApiUpdateRepo, | |
| 220 | + }, | |
| 221 | + { | |
| 222 | + method: 'DELETE', | |
| 223 | + pattern: /^\/api\/repos\/([^/]+)\/([^/]+)$/, | |
| 224 | + paramNames: ['owner', 'repo'], | |
| 225 | + handler: handleApiDeleteRepo, | |
| 226 | + }, | |
| 227 | +]; | |
| 228 | + | |
| 229 | +export async function router( | |
| 230 | + request: Request, | |
| 231 | + env: Env, | |
| 232 | + ctx: ExecutionContext | |
| 233 | +): Promise<Response> { | |
| 234 | + // Handle CORS preflight | |
| 235 | + if (request.method === 'OPTIONS') { | |
| 236 | + return new Response(null, { status: 204, headers: corsHeaders() }); | |
| 237 | + } | |
| 238 | + | |
| 239 | + const url = new URL(request.url); | |
| 240 | + const path = url.pathname; | |
| 241 | + | |
| 242 | + for (const route of routes) { | |
| 243 | + if (request.method !== route.method) continue; | |
| 244 | + | |
| 245 | + const match = path.match(route.pattern); | |
| 246 | + if (!match) continue; | |
| 247 | + | |
| 248 | + const params: Record<string, string> = {}; | |
| 249 | + for (let i = 0; i < route.paramNames.length; i++) { | |
| 250 | + params[route.paramNames[i]] = match[i + 1]; | |
| 251 | + } | |
| 252 | + | |
| 253 | + const hctx: HandlerContext = { env, ctx, params }; | |
| 254 | + const response = await route.handler(request, hctx); | |
| 255 | + | |
| 256 | + // Add CORS headers to all responses | |
| 257 | + const headers = new Headers(response.headers); | |
| 258 | + for (const [key, value] of Object.entries(corsHeaders())) { | |
| 259 | + headers.set(key, value); | |
| 260 | + } | |
| 261 | + | |
| 262 | + return new Response(response.body, { | |
| 263 | + status: response.status, | |
| 264 | + statusText: response.statusText, | |
| 265 | + headers, | |
| 266 | + }); | |
| 267 | + } | |
| 268 | + | |
| 269 | + return new Response(JSON.stringify({ error: 'Not found' }), { | |
| 270 | + status: 404, | |
| 271 | + headers: { 'Content-Type': 'application/json', ...corsHeaders() }, | |
| 272 | + }); | |
| 273 | +} | |
| 274 | + | |
A packages/worker/src/services/activity-service.ts
| @@ -1,0 +1,76 @@ | ||
| 1 | +/** | |
| 2 | + * Activity logging service. | |
| 3 | + * Records events for the activity feed. | |
| 4 | + */ | |
| 5 | + | |
| 6 | +export type ActivityAction = 'push' | 'create_repo' | 'create_mr' | 'merge_mr' | 'close_mr' | 'comment'; | |
| 7 | + | |
| 8 | +export interface ActivityDetails { | |
| 9 | + ref?: string; | |
| 10 | + commits?: number; | |
| 11 | + mr_number?: number; | |
| 12 | + mr_title?: string; | |
| 13 | + [key: string]: any; | |
| 14 | +} | |
| 15 | + | |
| 16 | +export class ActivityService { | |
| 17 | + constructor(private db: D1Database) {} | |
| 18 | + | |
| 19 | + /** Log an activity event. */ | |
| 20 | + async log( | |
| 21 | + repoId: string | null, | |
| 22 | + userId: string | null, | |
| 23 | + action: ActivityAction, | |
| 24 | + details?: ActivityDetails | |
| 25 | + ): Promise<void> { | |
| 26 | + await this.db | |
| 27 | + .prepare( | |
| 28 | + `INSERT INTO activity_log (repo_id, user_id, action, details) | |
| 29 | + VALUES (?, ?, ?, ?)` | |
| 30 | + ) | |
| 31 | + .bind(repoId, userId, action, details ? JSON.stringify(details) : null) | |
| 32 | + .run(); | |
| 33 | + } | |
| 34 | + | |
| 35 | + /** Get activity feed for a repo. */ | |
| 36 | + async getRepoActivity(repoId: string, limit: number = 20): Promise<any[]> { | |
| 37 | + const result = await this.db | |
| 38 | + .prepare( | |
| 39 | + `SELECT al.*, u.username | |
| 40 | + FROM activity_log al | |
| 41 | + LEFT JOIN users u ON al.user_id = u.id | |
| 42 | + WHERE al.repo_id = ? | |
| 43 | + ORDER BY al.created_at DESC | |
| 44 | + LIMIT ?` | |
| 45 | + ) | |
| 46 | + .bind(repoId, limit) | |
| 47 | + .all(); | |
| 48 | + | |
| 49 | + return result.results.map((row: any) => ({ | |
| 50 | + ...row, | |
| 51 | + details: row.details ? JSON.parse(row.details) : null, | |
| 52 | + })); | |
| 53 | + } | |
| 54 | + | |
| 55 | + /** Get global activity feed (across all repos). */ | |
| 56 | + async getGlobalActivity(limit: number = 20): Promise<any[]> { | |
| 57 | + const result = await this.db | |
| 58 | + .prepare( | |
| 59 | + `SELECT al.*, u.username, r.name as repo_name, | |
| 60 | + (SELECT username FROM users WHERE id = r.owner_id) as repo_owner | |
| 61 | + FROM activity_log al | |
| 62 | + LEFT JOIN users u ON al.user_id = u.id | |
| 63 | + LEFT JOIN repositories r ON al.repo_id = r.id | |
| 64 | + ORDER BY al.created_at DESC | |
| 65 | + LIMIT ?` | |
| 66 | + ) | |
| 67 | + .bind(limit) | |
| 68 | + .all(); | |
| 69 | + | |
| 70 | + return result.results.map((row: any) => ({ | |
| 71 | + ...row, | |
| 72 | + details: row.details ? JSON.parse(row.details) : null, | |
| 73 | + })); | |
| 74 | + } | |
| 75 | +} | |
| 76 | + | |
A packages/worker/src/services/browse-service.ts
| @@ -1,0 +1,197 @@ | ||
| 1 | +/** | |
| 2 | + * Repository browsing service. | |
| 3 | + * Walks git objects in R2 to support tree/blob/commit viewing. | |
| 4 | + */ | |
| 5 | + | |
| 6 | +import { parseCommit, parseTree, type ParsedCommit, type TreeEntry } from '@gitfastr/shared'; | |
| 7 | +import { ObjectStore } from './object-store.js'; | |
| 8 | +import { RefStore } from './ref-store.js'; | |
| 9 | +import { NotFoundError } from '@gitfastr/shared/utils/errors.js'; | |
| 10 | + | |
| 11 | +export interface FileEntry { | |
| 12 | + name: string; | |
| 13 | + type: 'file' | 'dir' | 'symlink'; | |
| 14 | + mode: string; | |
| 15 | + sha: string; | |
| 16 | +} | |
| 17 | + | |
| 18 | +export interface CommitInfo { | |
| 19 | + sha: string; | |
| 20 | + message: string; | |
| 21 | + author: string; | |
| 22 | + committer: string; | |
| 23 | + parents: string[]; | |
| 24 | + tree: string; | |
| 25 | +} | |
| 26 | + | |
| 27 | +export class BrowseService { | |
| 28 | + constructor( | |
| 29 | + private objectStore: ObjectStore, | |
| 30 | + private refStore: RefStore | |
| 31 | + ) {} | |
| 32 | + | |
| 33 | + /** Resolve a ref name (branch/tag) or raw SHA to a commit SHA. */ | |
| 34 | + async resolveRef(ref: string): Promise<string> { | |
| 35 | + // If it looks like a full SHA, use it directly | |
| 36 | + if (/^[0-9a-f]{40}$/.test(ref)) { | |
| 37 | + return ref; | |
| 38 | + } | |
| 39 | + | |
| 40 | + // Try as a branch | |
| 41 | + const branchRef = await this.refStore.get(`refs/heads/${ref}`); | |
| 42 | + if (branchRef) return branchRef.sha; | |
| 43 | + | |
| 44 | + // Try as a tag | |
| 45 | + const tagRef = await this.refStore.get(`refs/tags/${ref}`); | |
| 46 | + if (tagRef) return tagRef.sha; | |
| 47 | + | |
| 48 | + throw new NotFoundError(`Ref not found: ${ref}`); | |
| 49 | + } | |
| 50 | + | |
| 51 | + /** Get a parsed commit object. */ | |
| 52 | + async getCommit(sha: string): Promise<CommitInfo> { | |
| 53 | + const obj = await this.objectStore.get(sha); | |
| 54 | + if (!obj || obj.type !== 'commit') { | |
| 55 | + throw new NotFoundError(`Commit not found: ${sha}`); | |
| 56 | + } | |
| 57 | + const parsed = parseCommit(obj.content); | |
| 58 | + return { | |
| 59 | + sha, | |
| 60 | + message: parsed.message, | |
| 61 | + author: parsed.author, | |
| 62 | + committer: parsed.committer, | |
| 63 | + parents: parsed.parents, | |
| 64 | + tree: parsed.tree, | |
| 65 | + }; | |
| 66 | + } | |
| 67 | + | |
| 68 | + /** List files/dirs at a path within a commit's tree. */ | |
| 69 | + async listTree(commitSha: string, path: string): Promise<FileEntry[]> { | |
| 70 | + const commit = await this.getCommit(commitSha); | |
| 71 | + const treeSha = await this.resolveTreePath(commit.tree, path); | |
| 72 | + | |
| 73 | + const obj = await this.objectStore.get(treeSha); | |
| 74 | + if (!obj || obj.type !== 'tree') { | |
| 75 | + throw new NotFoundError(`Tree not found at path: ${path}`); | |
| 76 | + } | |
| 77 | + | |
| 78 | + const entries = parseTree(obj.content); | |
| 79 | + return entries.map((e) => ({ | |
| 80 | + name: e.name, | |
| 81 | + type: (e.mode === '040000' || e.mode === '40000' ? 'dir' | |
| 82 | + : e.mode === '120000' ? 'symlink' | |
| 83 | + : 'file') as 'file' | 'dir' | 'symlink', | |
| 84 | + mode: e.mode, | |
| 85 | + sha: e.sha, | |
| 86 | + })).sort((a, b) => { | |
| 87 | + // Directories first, then files | |
| 88 | + if (a.type === 'dir' && b.type !== 'dir') return -1; | |
| 89 | + if (a.type !== 'dir' && b.type === 'dir') return 1; | |
| 90 | + return a.name.localeCompare(b.name); | |
| 91 | + }); | |
| 92 | + } | |
| 93 | + | |
| 94 | + /** Get a blob's content at a path within a commit's tree. */ | |
| 95 | + async getBlob(commitSha: string, path: string): Promise<{ content: Uint8Array; sha: string }> { | |
| 96 | + const commit = await this.getCommit(commitSha); | |
| 97 | + const blobSha = await this.resolveBlobPath(commit.tree, path); | |
| 98 | + | |
| 99 | + const obj = await this.objectStore.get(blobSha); | |
| 100 | + if (!obj || obj.type !== 'blob') { | |
| 101 | + throw new NotFoundError(`Blob not found at path: ${path}`); | |
| 102 | + } | |
| 103 | + | |
| 104 | + return { content: obj.content, sha: blobSha }; | |
| 105 | + } | |
| 106 | + | |
| 107 | + /** Get commit log starting from a SHA, walking parents. */ | |
| 108 | + async getCommitLog(startSha: string, limit: number = 20): Promise<CommitInfo[]> { | |
| 109 | + const commits: CommitInfo[] = []; | |
| 110 | + const visited = new Set<string>(); | |
| 111 | + const queue = [startSha]; | |
| 112 | + | |
| 113 | + while (queue.length > 0 && commits.length < limit) { | |
| 114 | + const sha = queue.shift()!; | |
| 115 | + if (visited.has(sha)) continue; | |
| 116 | + visited.add(sha); | |
| 117 | + | |
| 118 | + try { | |
| 119 | + const commit = await this.getCommit(sha); | |
| 120 | + commits.push(commit); | |
| 121 | + // Add parents to queue (BFS for chronological-ish order) | |
| 122 | + for (const parent of commit.parents) { | |
| 123 | + if (!visited.has(parent)) { | |
| 124 | + queue.push(parent); | |
| 125 | + } | |
| 126 | + } | |
| 127 | + } catch { | |
| 128 | + // Missing commit — stop walking this branch | |
| 129 | + } | |
| 130 | + } | |
| 131 | + | |
| 132 | + return commits; | |
| 133 | + } | |
| 134 | + | |
| 135 | + /** | |
| 136 | + * Resolve a path within a tree to a sub-tree SHA. | |
| 137 | + * Path segments like "src/components" walk through nested trees. | |
| 138 | + */ | |
| 139 | + private async resolveTreePath(rootTreeSha: string, path: string): Promise<string> { | |
| 140 | + if (!path || path === '' || path === '/') { | |
| 141 | + return rootTreeSha; | |
| 142 | + } | |
| 143 | + | |
| 144 | + const segments = path.split('/').filter(Boolean); | |
| 145 | + let currentSha = rootTreeSha; | |
| 146 | + | |
| 147 | + for (const segment of segments) { | |
| 148 | + const obj = await this.objectStore.get(currentSha); | |
| 149 | + if (!obj || obj.type !== 'tree') { | |
| 150 | + throw new NotFoundError(`Path not found: ${path}`); | |
| 151 | + } | |
| 152 | + | |
| 153 | + const entries = parseTree(obj.content); | |
| 154 | + const entry = entries.find((e) => e.name === segment); | |
| 155 | + if (!entry) { | |
| 156 | + throw new NotFoundError(`Path not found: ${path}`); | |
| 157 | + } | |
| 158 | + | |
| 159 | + currentSha = entry.sha; | |
| 160 | + } | |
| 161 | + | |
| 162 | + return currentSha; | |
| 163 | + } | |
| 164 | + | |
| 165 | + /** | |
| 166 | + * Resolve a file path to a blob SHA. | |
| 167 | + * Walks the tree to the parent directory, then finds the file entry. | |
| 168 | + */ | |
| 169 | + private async resolveBlobPath(rootTreeSha: string, path: string): Promise<string> { | |
| 170 | + const segments = path.split('/').filter(Boolean); | |
| 171 | + if (segments.length === 0) { | |
| 172 | + throw new NotFoundError('Empty path'); | |
| 173 | + } | |
| 174 | + | |
| 175 | + // Walk to the parent directory | |
| 176 | + const dirSegments = segments.slice(0, -1); | |
| 177 | + const fileName = segments[segments.length - 1]; | |
| 178 | + | |
| 179 | + const dirSha = dirSegments.length > 0 | |
| 180 | + ? await this.resolveTreePath(rootTreeSha, dirSegments.join('/')) | |
| 181 | + : rootTreeSha; | |
| 182 | + | |
| 183 | + const obj = await this.objectStore.get(dirSha); | |
| 184 | + if (!obj || obj.type !== 'tree') { | |
| 185 | + throw new NotFoundError(`Directory not found for path: ${path}`); | |
| 186 | + } | |
| 187 | + | |
| 188 | + const entries = parseTree(obj.content); | |
| 189 | + const entry = entries.find((e) => e.name === fileName); | |
| 190 | + if (!entry) { | |
| 191 | + throw new NotFoundError(`File not found: ${path}`); | |
| 192 | + } | |
| 193 | + | |
| 194 | + return entry.sha; | |
| 195 | + } | |
| 196 | +} | |
| 197 | + | |
A packages/worker/src/services/diff-service.ts
| @@ -1,0 +1,180 @@ | ||
| 1 | +/** | |
| 2 | + * Diff service: compute file-level and line-level diffs between commits. | |
| 3 | + */ | |
| 4 | + | |
| 5 | +import { parseTree, parseCommit, type TreeEntry } from '@gitfastr/shared'; | |
| 6 | +import { computeDiff, type DiffHunk } from '@gitfastr/shared/git/diff.js'; | |
| 7 | +import { ObjectStore } from './object-store.js'; | |
| 8 | + | |
| 9 | +const decoder = new TextDecoder(); | |
| 10 | + | |
| 11 | +export type FileChangeStatus = 'added' | 'deleted' | 'modified'; | |
| 12 | + | |
| 13 | +export interface FileDiff { | |
| 14 | + path: string; | |
| 15 | + status: FileChangeStatus; | |
| 16 | + oldSha: string | null; | |
| 17 | + newSha: string | null; | |
| 18 | + hunks: DiffHunk[]; | |
| 19 | + isBinary: boolean; | |
| 20 | +} | |
| 21 | + | |
| 22 | +export class DiffService { | |
| 23 | + constructor(private objectStore: ObjectStore) {} | |
| 24 | + | |
| 25 | + /** | |
| 26 | + * Compute diffs between two commits. | |
| 27 | + * Returns a list of changed files with their line-level diffs. | |
| 28 | + */ | |
| 29 | + async diffCommits(oldCommitSha: string, newCommitSha: string): Promise<FileDiff[]> { | |
| 30 | + const [oldCommit, newCommit] = await Promise.all([ | |
| 31 | + this.getCommitTree(oldCommitSha), | |
| 32 | + this.getCommitTree(newCommitSha), | |
| 33 | + ]); | |
| 34 | + | |
| 35 | + return this.diffTrees(oldCommit, newCommit, ''); | |
| 36 | + } | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * Compute diff for a single commit against its first parent. | |
| 40 | + * For root commits, diff against empty tree. | |
| 41 | + */ | |
| 42 | + async diffCommitAgainstParent(commitSha: string): Promise<FileDiff[]> { | |
| 43 | + const obj = await this.objectStore.get(commitSha); | |
| 44 | + if (!obj || obj.type !== 'commit') return []; | |
| 45 | + | |
| 46 | + const commit = parseCommit(obj.content); | |
| 47 | + const newTreeSha = commit.tree; | |
| 48 | + | |
| 49 | + if (commit.parents.length === 0) { | |
| 50 | + // Root commit — diff against empty tree | |
| 51 | + return this.diffTrees(new Map(), await this.flattenTree(newTreeSha, ''), ''); | |
| 52 | + } | |
| 53 | + | |
| 54 | + const parentObj = await this.objectStore.get(commit.parents[0]); | |
| 55 | + if (!parentObj || parentObj.type !== 'commit') return []; | |
| 56 | + const parentCommit = parseCommit(parentObj.content); | |
| 57 | + | |
| 58 | + const [oldTree, newTree] = await Promise.all([ | |
| 59 | + this.flattenTree(parentCommit.tree, ''), | |
| 60 | + this.flattenTree(newTreeSha, ''), | |
| 61 | + ]); | |
| 62 | + | |
| 63 | + return this.diffTrees(oldTree, newTree, ''); | |
| 64 | + } | |
| 65 | + | |
| 66 | + private async getCommitTree(commitSha: string): Promise<Map<string, { sha: string; mode: string }>> { | |
| 67 | + const obj = await this.objectStore.get(commitSha); | |
| 68 | + if (!obj || obj.type !== 'commit') return new Map(); | |
| 69 | + const commit = parseCommit(obj.content); | |
| 70 | + return this.flattenTree(commit.tree, ''); | |
| 71 | + } | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * Flatten a tree into a map of path -> {sha, mode}. | |
| 75 | + * Recursively walks subtrees. | |
| 76 | + */ | |
| 77 | + private async flattenTree( | |
| 78 | + treeSha: string, | |
| 79 | + prefix: string | |
| 80 | + ): Promise<Map<string, { sha: string; mode: string }>> { | |
| 81 | + const result = new Map<string, { sha: string; mode: string }>(); | |
| 82 | + const obj = await this.objectStore.get(treeSha); | |
| 83 | + if (!obj || obj.type !== 'tree') return result; | |
| 84 | + | |
| 85 | + const entries = parseTree(obj.content); | |
| 86 | + for (const entry of entries) { | |
| 87 | + const fullPath = prefix ? `${prefix}/${entry.name}` : entry.name; | |
| 88 | + if (entry.mode === '40000' || entry.mode === '040000') { | |
| 89 | + // Recurse into subtree | |
| 90 | + const subTree = await this.flattenTree(entry.sha, fullPath); | |
| 91 | + for (const [path, info] of subTree) { | |
| 92 | + result.set(path, info); | |
| 93 | + } | |
| 94 | + } else { | |
| 95 | + result.set(fullPath, { sha: entry.sha, mode: entry.mode }); | |
| 96 | + } | |
| 97 | + } | |
| 98 | + | |
| 99 | + return result; | |
| 100 | + } | |
| 101 | + | |
| 102 | + /** | |
| 103 | + * Compare two flattened trees and produce file diffs. | |
| 104 | + */ | |
| 105 | + private async diffTrees( | |
| 106 | + oldTree: Map<string, { sha: string; mode: string }>, | |
| 107 | + newTree: Map<string, { sha: string; mode: string }>, | |
| 108 | + _prefix: string | |
| 109 | + ): Promise<FileDiff[]> { | |
| 110 | + const allPaths = new Set([...oldTree.keys(), ...newTree.keys()]); | |
| 111 | + const diffs: FileDiff[] = []; | |
| 112 | + | |
| 113 | + for (const path of [...allPaths].sort()) { | |
| 114 | + const oldEntry = oldTree.get(path); | |
| 115 | + const newEntry = newTree.get(path); | |
| 116 | + | |
| 117 | + if (!oldEntry && newEntry) { | |
| 118 | + // Added | |
| 119 | + const diff = await this.makeFileDiff(path, 'added', null, newEntry.sha); | |
| 120 | + diffs.push(diff); | |
| 121 | + } else if (oldEntry && !newEntry) { | |
| 122 | + // Deleted | |
| 123 | + const diff = await this.makeFileDiff(path, 'deleted', oldEntry.sha, null); | |
| 124 | + diffs.push(diff); | |
| 125 | + } else if (oldEntry && newEntry && oldEntry.sha !== newEntry.sha) { | |
| 126 | + // Modified | |
| 127 | + const diff = await this.makeFileDiff(path, 'modified', oldEntry.sha, newEntry.sha); | |
| 128 | + diffs.push(diff); | |
| 129 | + } | |
| 130 | + } | |
| 131 | + | |
| 132 | + return diffs; | |
| 133 | + } | |
| 134 | + | |
| 135 | + private async makeFileDiff( | |
| 136 | + path: string, | |
| 137 | + status: FileChangeStatus, | |
| 138 | + oldSha: string | null, | |
| 139 | + newSha: string | null | |
| 140 | + ): Promise<FileDiff> { | |
| 141 | + let oldContent = ''; | |
| 142 | + let newContent = ''; | |
| 143 | + let isBinary = false; | |
| 144 | + | |
| 145 | + if (oldSha) { | |
| 146 | + const obj = await this.objectStore.get(oldSha); | |
| 147 | + if (obj && obj.type === 'blob') { | |
| 148 | + if (this.isBinaryContent(obj.content)) { | |
| 149 | + isBinary = true; | |
| 150 | + } else { | |
| 151 | + oldContent = decoder.decode(obj.content); | |
| 152 | + } | |
| 153 | + } | |
| 154 | + } | |
| 155 | + | |
| 156 | + if (newSha) { | |
| 157 | + const obj = await this.objectStore.get(newSha); | |
| 158 | + if (obj && obj.type === 'blob') { | |
| 159 | + if (this.isBinaryContent(obj.content)) { | |
| 160 | + isBinary = true; | |
| 161 | + } else { | |
| 162 | + newContent = decoder.decode(obj.content); | |
| 163 | + } | |
| 164 | + } | |
| 165 | + } | |
| 166 | + | |
| 167 | + const hunks = isBinary ? [] : computeDiff(oldContent, newContent); | |
| 168 | + | |
| 169 | + return { path, status, oldSha, newSha, hunks, isBinary }; | |
| 170 | + } | |
| 171 | + | |
| 172 | + private isBinaryContent(content: Uint8Array): boolean { | |
| 173 | + const checkLen = Math.min(content.length, 8000); | |
| 174 | + for (let i = 0; i < checkLen; i++) { | |
| 175 | + if (content[i] === 0) return true; | |
| 176 | + } | |
| 177 | + return false; | |
| 178 | + } | |
| 179 | +} | |
| 180 | + | |
A packages/worker/src/services/object-store.ts
| @@ -1,0 +1,76 @@ | ||
| 1 | +/** | |
| 2 | + * Git object storage service backed by R2. | |
| 3 | + * | |
| 4 | + * Objects are stored as zlib-deflated loose objects at: | |
| 5 | + * {owner}/{repo}/objects/{sha[0:2]}/{sha[2:]} | |
| 6 | + */ | |
| 7 | + | |
| 8 | +import { serializeGitObject, type GitObjectType, parseRawGitObject } from '@gitfastr/shared'; | |
| 9 | +import { deflate, inflate } from '@gitfastr/shared/git/zlib.js'; | |
| 10 | + | |
| 11 | +export class ObjectStore { | |
| 12 | + constructor( | |
| 13 | + private bucket: R2Bucket, | |
| 14 | + private owner: string, | |
| 15 | + private repo: string | |
| 16 | + ) {} | |
| 17 | + | |
| 18 | + private objectKey(sha: string): string { | |
| 19 | + return `${this.owner}/${this.repo}/objects/${sha.slice(0, 2)}/${sha.slice(2)}`; | |
| 20 | + } | |
| 21 | + | |
| 22 | + /** Store a git object. Returns the R2 key. */ | |
| 23 | + async put(sha: string, type: GitObjectType, content: Uint8Array): Promise<string> { | |
| 24 | + const raw = serializeGitObject(type, content); | |
| 25 | + const compressed = await deflate(raw); | |
| 26 | + const key = this.objectKey(sha); | |
| 27 | + await this.bucket.put(key, compressed); | |
| 28 | + return key; | |
| 29 | + } | |
| 30 | + | |
| 31 | + /** Retrieve a git object by SHA. Returns null if not found. */ | |
| 32 | + async get(sha: string): Promise<{ type: GitObjectType; content: Uint8Array } | null> { | |
| 33 | + const key = this.objectKey(sha); | |
| 34 | + const obj = await this.bucket.get(key); | |
| 35 | + if (!obj) return null; | |
| 36 | + | |
| 37 | + const compressed = new Uint8Array(await obj.arrayBuffer()); | |
| 38 | + const raw = await inflate(compressed); | |
| 39 | + return parseRawGitObject(raw); | |
| 40 | + } | |
| 41 | + | |
| 42 | + /** Check if an object exists. */ | |
| 43 | + async exists(sha: string): Promise<boolean> { | |
| 44 | + const key = this.objectKey(sha); | |
| 45 | + const head = await this.bucket.head(key); | |
| 46 | + return head !== null; | |
| 47 | + } | |
| 48 | + | |
| 49 | + /** Delete an object. */ | |
| 50 | + async delete(sha: string): Promise<void> { | |
| 51 | + const key = this.objectKey(sha); | |
| 52 | + await this.bucket.delete(key); | |
| 53 | + } | |
| 54 | + | |
| 55 | + /** List all object SHAs in the repo (for pack generation). */ | |
| 56 | + async listAll(): Promise<string[]> { | |
| 57 | + const prefix = `${this.owner}/${this.repo}/objects/`; | |
| 58 | + const shas: string[] = []; | |
| 59 | + let cursor: string | undefined; | |
| 60 | + | |
| 61 | + do { | |
| 62 | + const listed = await this.bucket.list({ prefix, cursor }); | |
| 63 | + for (const obj of listed.objects) { | |
| 64 | + // Key format: owner/repo/objects/ab/cdef... | |
| 65 | + const parts = obj.key.slice(prefix.length).split('/'); | |
| 66 | + if (parts.length === 2) { | |
| 67 | + shas.push(parts[0] + parts[1]); | |
| 68 | + } | |
| 69 | + } | |
| 70 | + cursor = listed.truncated ? listed.cursor : undefined; | |
| 71 | + } while (cursor); | |
| 72 | + | |
| 73 | + return shas; | |
| 74 | + } | |
| 75 | +} | |
| 76 | + | |
A packages/worker/src/services/ref-store.ts
| @@ -1,0 +1,92 @@ | ||
| 1 | +/** | |
| 2 | + * Git ref storage service backed by D1. | |
| 3 | + * Handles branches and tags with atomic updates. | |
| 4 | + */ | |
| 5 | + | |
| 6 | +import { ConflictError } from '@gitfastr/shared/utils/errors.js'; | |
| 7 | +import type { DbRef, RefUpdateCommand } from '@gitfastr/shared'; | |
| 8 | + | |
| 9 | +const ZERO_SHA = '0'.repeat(40); | |
| 10 | + | |
| 11 | +export class RefStore { | |
| 12 | + constructor( | |
| 13 | + private db: D1Database, | |
| 14 | + private repoId: string | |
| 15 | + ) {} | |
| 16 | + | |
| 17 | + /** Get all refs for the repo. */ | |
| 18 | + async getAll(): Promise<DbRef[]> { | |
| 19 | + const result = await this.db | |
| 20 | + .prepare('SELECT * FROM refs WHERE repo_id = ? ORDER BY name') | |
| 21 | + .bind(this.repoId) | |
| 22 | + .all<DbRef>(); | |
| 23 | + return result.results; | |
| 24 | + } | |
| 25 | + | |
| 26 | + /** Get a single ref by name. */ | |
| 27 | + async get(name: string): Promise<DbRef | null> { | |
| 28 | + return this.db | |
| 29 | + .prepare('SELECT * FROM refs WHERE repo_id = ? AND name = ?') | |
| 30 | + .bind(this.repoId, name) | |
| 31 | + .first<DbRef>(); | |
| 32 | + } | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * Apply a batch of ref updates atomically. | |
| 36 | + * Validates old SHAs match (compare-and-swap). | |
| 37 | + */ | |
| 38 | + async applyUpdates(commands: RefUpdateCommand[]): Promise<void> { | |
| 39 | + const stmts: D1PreparedStatement[] = []; | |
| 40 | + | |
| 41 | + for (const cmd of commands) { | |
| 42 | + if (cmd.newSha === ZERO_SHA) { | |
| 43 | + // Delete ref | |
| 44 | + if (cmd.oldSha !== ZERO_SHA) { | |
| 45 | + // Verify current SHA matches | |
| 46 | + const current = await this.get(cmd.refName); | |
| 47 | + if (!current || current.sha !== cmd.oldSha) { | |
| 48 | + throw new ConflictError( | |
| 49 | + `Ref ${cmd.refName}: expected ${cmd.oldSha}, got ${current?.sha ?? 'none'}` | |
| 50 | + ); | |
| 51 | + } | |
| 52 | + } | |
| 53 | + stmts.push( | |
| 54 | + this.db | |
| 55 | + .prepare('DELETE FROM refs WHERE repo_id = ? AND name = ?') | |
| 56 | + .bind(this.repoId, cmd.refName) | |
| 57 | + ); | |
| 58 | + } else if (cmd.oldSha === ZERO_SHA) { | |
| 59 | + // Create new ref | |
| 60 | + stmts.push( | |
| 61 | + this.db | |
| 62 | + .prepare( | |
| 63 | + `INSERT INTO refs (repo_id, name, sha) | |
| 64 | + VALUES (?, ?, ?)` | |
| 65 | + ) | |
| 66 | + .bind(this.repoId, cmd.refName, cmd.newSha) | |
| 67 | + ); | |
| 68 | + } else { | |
| 69 | + // Update existing ref (compare-and-swap) | |
| 70 | + const current = await this.get(cmd.refName); | |
| 71 | + if (!current || current.sha !== cmd.oldSha) { | |
| 72 | + throw new ConflictError( | |
| 73 | + `Ref ${cmd.refName}: expected ${cmd.oldSha}, got ${current?.sha ?? 'none'}` | |
| 74 | + ); | |
| 75 | + } | |
| 76 | + stmts.push( | |
| 77 | + this.db | |
| 78 | + .prepare( | |
| 79 | + `UPDATE refs SET sha = ?, updated_at = datetime('now') | |
| 80 | + WHERE repo_id = ? AND name = ?` | |
| 81 | + ) | |
| 82 | + .bind(cmd.newSha, this.repoId, cmd.refName) | |
| 83 | + ); | |
| 84 | + } | |
| 85 | + } | |
| 86 | + | |
| 87 | + if (stmts.length > 0) { | |
| 88 | + await this.db.batch(stmts); | |
| 89 | + } | |
| 90 | + } | |
| 91 | +} | |
| 92 | + | |
A packages/worker/src/services/repo-service.ts
| @@ -1,0 +1,82 @@ | ||
| 1 | +/** | |
| 2 | + * Repository service: lookup and management. | |
| 3 | + */ | |
| 4 | + | |
| 5 | +import { NotFoundError, ForbiddenError } from '@gitfastr/shared/utils/errors.js'; | |
| 6 | +import type { DbRepository, DbUser } from '@gitfastr/shared'; | |
| 7 | + | |
| 8 | +export class RepoService { | |
| 9 | + constructor(private db: D1Database) {} | |
| 10 | + | |
| 11 | + /** Look up a repo by owner username and repo name. */ | |
| 12 | + async getByOwnerAndName( | |
| 13 | + ownerUsername: string, | |
| 14 | + repoName: string | |
| 15 | + ): Promise<{ repo: DbRepository; owner: DbUser }> { | |
| 16 | + const row = await this.db | |
| 17 | + .prepare( | |
| 18 | + `SELECT r.*, u.username as owner_username, u.id as uid | |
| 19 | + FROM repositories r | |
| 20 | + JOIN users u ON r.owner_id = u.id | |
| 21 | + WHERE u.username = ? AND r.name = ?` | |
| 22 | + ) | |
| 23 | + .bind(ownerUsername, repoName) | |
| 24 | + .first<DbRepository & { owner_username: string; uid: string }>(); | |
| 25 | + | |
| 26 | + if (!row) { | |
| 27 | + throw new NotFoundError(`Repository ${ownerUsername}/${repoName} not found`); | |
| 28 | + } | |
| 29 | + | |
| 30 | + const repo: DbRepository = { ...row }; | |
| 31 | + const owner: DbUser = { | |
| 32 | + id: row.uid, | |
| 33 | + username: row.owner_username, | |
| 34 | + } as DbUser; | |
| 35 | + | |
| 36 | + return { repo, owner }; | |
| 37 | + } | |
| 38 | + | |
| 39 | + /** Check if a user has write access to a repo. */ | |
| 40 | + async hasWriteAccess(repoId: string, userId: string | null | undefined): Promise<boolean> { | |
| 41 | + if (!userId) return false; | |
| 42 | + | |
| 43 | + // Check if user is the owner | |
| 44 | + const repo = await this.db | |
| 45 | + .prepare('SELECT owner_id FROM repositories WHERE id = ?') | |
| 46 | + .bind(repoId) | |
| 47 | + .first<Pick<DbRepository, 'owner_id'>>(); | |
| 48 | + | |
| 49 | + if (repo?.owner_id === userId) return true; | |
| 50 | + | |
| 51 | + // Check collaborators | |
| 52 | + const collab = await this.db | |
| 53 | + .prepare( | |
| 54 | + `SELECT permission FROM collaborators | |
| 55 | + WHERE repo_id = ? AND user_id = ?` | |
| 56 | + ) | |
| 57 | + .bind(repoId, userId) | |
| 58 | + .first<{ permission: string }>(); | |
| 59 | + | |
| 60 | + return collab?.permission === 'write' || collab?.permission === 'admin'; | |
| 61 | + } | |
| 62 | + | |
| 63 | + /** Check if a user can read a repo. */ | |
| 64 | + async hasReadAccess( | |
| 65 | + repo: DbRepository, | |
| 66 | + userId: string | null | undefined | |
| 67 | + ): Promise<boolean> { | |
| 68 | + if (!repo.is_private) return true; | |
| 69 | + if (!userId) return false; | |
| 70 | + if (repo.owner_id === userId) return true; | |
| 71 | + | |
| 72 | + const collab = await this.db | |
| 73 | + .prepare( | |
| 74 | + 'SELECT 1 FROM collaborators WHERE repo_id = ? AND user_id = ?' | |
| 75 | + ) | |
| 76 | + .bind(repo.id, userId) | |
| 77 | + .first(); | |
| 78 | + | |
| 79 | + return collab !== null; | |
| 80 | + } | |
| 81 | +} | |
| 82 | + | |
A packages/worker/src/services/webhook-service.ts
| @@ -1,0 +1,122 @@ | ||
| 1 | +/** | |
| 2 | + * Webhook delivery service. | |
| 3 | + * Fires webhooks for push, MR, and comment events. | |
| 4 | + * Payloads are signed with HMAC-SHA256. | |
| 5 | + */ | |
| 6 | + | |
| 7 | +import type { DbWebhook } from '@gitfastr/shared'; | |
| 8 | + | |
| 9 | +const encoder = new TextEncoder(); | |
| 10 | + | |
| 11 | +export type WebhookEvent = 'push' | 'merge_request' | 'comment'; | |
| 12 | + | |
| 13 | +export interface WebhookPayload { | |
| 14 | + event: WebhookEvent; | |
| 15 | + repository: { | |
| 16 | + owner: string; | |
| 17 | + name: string; | |
| 18 | + full_name: string; | |
| 19 | + }; | |
| 20 | + sender: { | |
| 21 | + username: string; | |
| 22 | + }; | |
| 23 | + [key: string]: any; | |
| 24 | +} | |
| 25 | + | |
| 26 | +export class WebhookService { | |
| 27 | + constructor(private db: D1Database) {} | |
| 28 | + | |
| 29 | + /** Get all active webhooks for a repo that match the given event. */ | |
| 30 | + async getWebhooksForEvent(repoId: string, event: WebhookEvent): Promise<DbWebhook[]> { | |
| 31 | + const result = await this.db | |
| 32 | + .prepare('SELECT * FROM webhooks WHERE repo_id = ? AND is_active = 1') | |
| 33 | + .bind(repoId) | |
| 34 | + .all<DbWebhook>(); | |
| 35 | + | |
| 36 | + return result.results.filter((wh) => { | |
| 37 | + const events = wh.events.split(',').map((e) => e.trim()); | |
| 38 | + return events.includes(event) || events.includes('*'); | |
| 39 | + }); | |
| 40 | + } | |
| 41 | + | |
| 42 | + /** | |
| 43 | + * Fire webhooks for an event. Returns promises that can be passed to ctx.waitUntil(). | |
| 44 | + * Each webhook is delivered independently — failures don't block others. | |
| 45 | + */ | |
| 46 | + async fireWebhooks( | |
| 47 | + repoId: string, | |
| 48 | + event: WebhookEvent, | |
| 49 | + payload: WebhookPayload | |
| 50 | + ): Promise<Promise<void>[]> { | |
| 51 | + const webhooks = await this.getWebhooksForEvent(repoId, event); | |
| 52 | + if (webhooks.length === 0) return []; | |
| 53 | + | |
| 54 | + const body = JSON.stringify(payload); | |
| 55 | + | |
| 56 | + return webhooks.map((wh) => this.deliverWebhook(wh, event, body)); | |
| 57 | + } | |
| 58 | + | |
| 59 | + /** Deliver a single webhook with HMAC signing and retry. */ | |
| 60 | + private async deliverWebhook( | |
| 61 | + webhook: DbWebhook, | |
| 62 | + event: WebhookEvent, | |
| 63 | + body: string | |
| 64 | + ): Promise<void> { | |
| 65 | + const headers: Record<string, string> = { | |
| 66 | + 'Content-Type': 'application/json', | |
| 67 | + 'User-Agent': 'gitfastr-webhook/1.0', | |
| 68 | + 'X-Gitfastr-Event': event, | |
| 69 | + 'X-Gitfastr-Delivery': crypto.randomUUID(), | |
| 70 | + }; | |
| 71 | + | |
| 72 | + // Sign payload if webhook has a secret | |
| 73 | + if (webhook.secret) { | |
| 74 | + const signature = await signPayload(body, webhook.secret); | |
| 75 | + headers['X-Gitfastr-Signature-256'] = `sha256=${signature}`; | |
| 76 | + } | |
| 77 | + | |
| 78 | + // Attempt delivery with one retry | |
| 79 | + for (let attempt = 0; attempt < 2; attempt++) { | |
| 80 | + try { | |
| 81 | + const response = await fetch(webhook.url, { | |
| 82 | + method: 'POST', | |
| 83 | + headers, | |
| 84 | + body, | |
| 85 | + }); | |
| 86 | + | |
| 87 | + if (response.ok) return; | |
| 88 | + | |
| 89 | + // Log failure but don't throw on last attempt | |
| 90 | + if (attempt === 0) { | |
| 91 | + console.error( | |
| 92 | + `Webhook delivery failed (attempt ${attempt + 1}): ${webhook.url} returned ${response.status}` | |
| 93 | + ); | |
| 94 | + } | |
| 95 | + } catch (error) { | |
| 96 | + if (attempt === 0) { | |
| 97 | + console.error(`Webhook delivery error (attempt ${attempt + 1}): ${webhook.url}`, error); | |
| 98 | + } | |
| 99 | + } | |
| 100 | + } | |
| 101 | + } | |
| 102 | +} | |
| 103 | + | |
| 104 | +/** HMAC-SHA256 sign a payload string with a secret. Returns hex string. */ | |
| 105 | +async function signPayload(payload: string, secret: string): Promise<string> { | |
| 106 | + const key = await crypto.subtle.importKey( | |
| 107 | + 'raw', | |
| 108 | + encoder.encode(secret), | |
| 109 | + { name: 'HMAC', hash: 'SHA-256' }, | |
| 110 | + false, | |
| 111 | + ['sign'] | |
| 112 | + ); | |
| 113 | + | |
| 114 | + const signature = await crypto.subtle.sign('HMAC', key, encoder.encode(payload)); | |
| 115 | + const bytes = new Uint8Array(signature); | |
| 116 | + let hex = ''; | |
| 117 | + for (let i = 0; i < bytes.length; i++) { | |
| 118 | + hex += bytes[i].toString(16).padStart(2, '0'); | |
| 119 | + } | |
| 120 | + return hex; | |
| 121 | +} | |
| 122 | + | |
A packages/worker/tsconfig.json
| @@ -1,0 +1,11 @@ | ||
| 1 | +{ | |
| 2 | + "extends": "../../tsconfig.base.json", | |
| 3 | + "compilerOptions": { | |
| 4 | + "outDir": "./dist", | |
| 5 | + "rootDir": "./src", | |
| 6 | + "types": ["@cloudflare/workers-types"], | |
| 7 | + "noEmit": true | |
| 8 | + }, | |
| 9 | + "include": ["src/**/*.ts"] | |
| 10 | +} | |
| 11 | + | |
A packages/worker/wrangler.toml
| @@ -1,0 +1,18 @@ | ||
| 1 | +name = "gitfastr-api" | |
| 2 | +account_id = "5ec6229ce6a04f3b5c5e9938e965150e" | |
| 3 | +main = "src/index.ts" | |
| 4 | +compatibility_date = "2025-03-01" | |
| 5 | +compatibility_flags = ["nodejs_compat"] | |
| 6 | + | |
| 7 | +# D1 Database | |
| 8 | +[[d1_databases]] | |
| 9 | +binding = "DB" | |
| 10 | +database_name = "gitfastr-db" | |
| 11 | +database_id = "e22bf369-a89d-45f2-9d98-627253db7283" | |
| 12 | +migrations_dir = "db/migrations" | |
| 13 | + | |
| 14 | +# R2 Bucket | |
| 15 | +[[r2_buckets]] | |
| 16 | +binding = "OBJECTS" | |
| 17 | +bucket_name = "gitfastr-objects" | |
| 18 | + | |
A pnpm-lock.yaml
| @@ -1,0 +1,5374 @@ | ||
| 1 | +lockfileVersion: '9.0' | |
| 2 | + | |
| 3 | +settings: | |
| 4 | + autoInstallPeers: true | |
| 5 | + excludeLinksFromLockfile: false | |
| 6 | + | |
| 7 | +importers: | |
| 8 | + | |
| 9 | + .: | |
| 10 | + devDependencies: | |
| 11 | + turbo: | |
| 12 | + specifier: ^2.4.0 | |
| 13 | + version: 2.8.20 | |
| 14 | + typescript: | |
| 15 | + specifier: ^5.7.0 | |
| 16 | + version: 5.9.3 | |
| 17 | + | |
| 18 | + packages/shared: | |
| 19 | + devDependencies: | |
| 20 | + '@cloudflare/workers-types': | |
| 21 | + specifier: ^4.20250310.0 | |
| 22 | + version: 4.20260317.1 | |
| 23 | + '@types/node': | |
| 24 | + specifier: ^25.5.0 | |
| 25 | + version: 25.5.0 | |
| 26 | + vitest: | |
| 27 | + specifier: ^3.0.0 | |
| 28 | + version: 3.2.4(@types/debug@4.1.13)(@types/node@25.5.0) | |
| 29 | + | |
| 30 | + packages/ui: | |
| 31 | + dependencies: | |
| 32 | + '@astrojs/cloudflare': | |
| 33 | + specifier: ^12.3.0 | |
| 34 | + version: 12.6.13(@types/node@25.5.0)(astro@5.18.1(@types/node@25.5.0)(rollup@4.60.0)(typescript@5.9.3)) | |
| 35 | + '@astrojs/preact': | |
| 36 | + specifier: ^4.0.0 | |
| 37 | + version: 4.1.3(@babel/core@7.29.0)(@types/node@25.5.0)(preact@10.29.0)(rollup@4.60.0) | |
| 38 | + astro: | |
| 39 | + specifier: ^5.5.0 | |
| 40 | + version: 5.18.1(@types/node@25.5.0)(rollup@4.60.0)(typescript@5.9.3) | |
| 41 | + preact: | |
| 42 | + specifier: ^10.25.0 | |
| 43 | + version: 10.29.0 | |
| 44 | + | |
| 45 | + packages/worker: | |
| 46 | + dependencies: | |
| 47 | + '@gitfastr/shared': | |
| 48 | + specifier: workspace:* | |
| 49 | + version: link:../shared | |
| 50 | + devDependencies: | |
| 51 | + '@cloudflare/workers-types': | |
| 52 | + specifier: ^4.20250310.0 | |
| 53 | + version: 4.20260317.1 | |
| 54 | + vitest: | |
| 55 | + specifier: ^3.0.0 | |
| 56 | + version: 3.2.4(@types/debug@4.1.13)(@types/node@25.5.0) | |
| 57 | + wrangler: | |
| 58 | + specifier: ^4.0.0 | |
| 59 | + version: 4.77.0(@cloudflare/workers-types@4.20260317.1) | |
| 60 | + | |
| 61 | +packages: | |
| 62 | + | |
| 63 | + '@astrojs/cloudflare@12.6.13': | |
| 64 | + resolution: {integrity: sha512-oKaCyiovyQr183r9U93787Ju1zwk+rRMgPnLTwCLckHmOUK7sltA1Gp4LSGt8oNMgqQS6jR7uRdfQ/NPul37QA==} | |
| 65 | + peerDependencies: | |
| 66 | + astro: ^5.7.0 | |
| 67 | + | |
| 68 | + '@astrojs/compiler@2.13.1': | |
| 69 | + resolution: {integrity: sha512-f3FN83d2G/v32ipNClRKgYv30onQlMZX1vCeZMjPsMMPl1mDpmbl0+N5BYo4S/ofzqJyS5hvwacEo0CCVDn/Qg==} | |
| 70 | + | |
| 71 | + '@astrojs/internal-helpers@0.7.6': | |
| 72 | + resolution: {integrity: sha512-GOle7smBWKfMSP8osUIGOlB5kaHdQLV3foCsf+5Q9Wsuu+C6Fs3Ez/ttXmhjZ1HkSgsogcM1RXSjjOVieHq16Q==} | |
| 73 | + | |
| 74 | + '@astrojs/markdown-remark@6.3.11': | |
| 75 | + resolution: {integrity: sha512-hcaxX/5aC6lQgHeGh1i+aauvSwIT6cfyFjKWvExYSxUhZZBBdvCliOtu06gbQyhbe0pGJNoNmqNlQZ5zYUuIyQ==} | |
| 76 | + | |
| 77 | + '@astrojs/preact@4.1.3': | |
| 78 | + resolution: {integrity: sha512-Ph416wbgyumkmYr7erZ83l/d+LXdZethlHRRCbgoKEn8wo3Rkq13shKFp0QYXYSDYxVaA6UBdkdimeowy/lMLQ==} | |
| 79 | + engines: {node: 18.20.8 || ^20.3.0 || >=22.0.0} | |
| 80 | + peerDependencies: | |
| 81 | + preact: ^10.6.5 | |
| 82 | + | |
| 83 | + '@astrojs/prism@3.3.0': | |
| 84 | + resolution: {integrity: sha512-q8VwfU/fDZNoDOf+r7jUnMC2//H2l0TuQ6FkGJL8vD8nw/q5KiL3DS1KKBI3QhI9UQhpJ5dc7AtqfbXWuOgLCQ==} | |
| 85 | + engines: {node: 18.20.8 || ^20.3.0 || >=22.0.0} | |
| 86 | + | |
| 87 | + '@astrojs/telemetry@3.3.0': | |
| 88 | + resolution: {integrity: sha512-UFBgfeldP06qu6khs/yY+q1cDAaArM2/7AEIqQ9Cuvf7B1hNLq0xDrZkct+QoIGyjq56y8IaE2I3CTvG99mlhQ==} | |
| 89 | + engines: {node: 18.20.8 || ^20.3.0 || >=22.0.0} | |
| 90 | + | |
| 91 | + '@astrojs/underscore-redirects@1.0.0': | |
| 92 | + resolution: {integrity: sha512-qZxHwVnmb5FXuvRsaIGaqWgnftjCuMY+GSbaVZdBmE4j8AfgPqKPxYp8SUERyJcjpKCEmO4wD6ybuGH8A2kVRQ==} | |
| 93 | + | |
| 94 | + '@babel/code-frame@7.29.0': | |
| 95 | + resolution: {integrity: sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==} | |
| 96 | + engines: {node: '>=6.9.0'} | |
| 97 | + | |
| 98 | + '@babel/compat-data@7.29.0': | |
| 99 | + resolution: {integrity: sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==} | |
| 100 | + engines: {node: '>=6.9.0'} | |
| 101 | + | |
| 102 | + '@babel/core@7.29.0': | |
| 103 | + resolution: {integrity: sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==} | |
| 104 | + engines: {node: '>=6.9.0'} | |
| 105 | + | |
| 106 | + '@babel/generator@7.29.1': | |
| 107 | + resolution: {integrity: sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==} | |
| 108 | + engines: {node: '>=6.9.0'} | |
| 109 | + | |
| 110 | + '@babel/helper-annotate-as-pure@7.27.3': | |
| 111 | + resolution: {integrity: sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==} | |
| 112 | + engines: {node: '>=6.9.0'} | |
| 113 | + | |
| 114 | + '@babel/helper-compilation-targets@7.28.6': | |
| 115 | + resolution: {integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==} | |
| 116 | + engines: {node: '>=6.9.0'} | |
| 117 | + | |
| 118 | + '@babel/helper-globals@7.28.0': | |
| 119 | + resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==} | |
| 120 | + engines: {node: '>=6.9.0'} | |
| 121 | + | |
| 122 | + '@babel/helper-module-imports@7.28.6': | |
| 123 | + resolution: {integrity: sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==} | |
| 124 | + engines: {node: '>=6.9.0'} | |
| 125 | + | |
| 126 | + '@babel/helper-module-transforms@7.28.6': | |
| 127 | + resolution: {integrity: sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==} | |
| 128 | + engines: {node: '>=6.9.0'} | |
| 129 | + peerDependencies: | |
| 130 | + '@babel/core': ^7.0.0 | |
| 131 | + | |
| 132 | + '@babel/helper-plugin-utils@7.28.6': | |
| 133 | + resolution: {integrity: sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==} | |
| 134 | + engines: {node: '>=6.9.0'} | |
| 135 | + | |
| 136 | + '@babel/helper-string-parser@7.27.1': | |
| 137 | + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} | |
| 138 | + engines: {node: '>=6.9.0'} | |
| 139 | + | |
| 140 | + '@babel/helper-validator-identifier@7.28.5': | |
| 141 | + resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} | |
| 142 | + engines: {node: '>=6.9.0'} | |
| 143 | + | |
| 144 | + '@babel/helper-validator-option@7.27.1': | |
| 145 | + resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} | |
| 146 | + engines: {node: '>=6.9.0'} | |
| 147 | + | |
| 148 | + '@babel/helpers@7.29.2': | |
| 149 | + resolution: {integrity: sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==} | |
| 150 | + engines: {node: '>=6.9.0'} | |
| 151 | + | |
| 152 | + '@babel/parser@7.29.2': | |
| 153 | + resolution: {integrity: sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==} | |
| 154 | + engines: {node: '>=6.0.0'} | |
| 155 | + hasBin: true | |
| 156 | + | |
| 157 | + '@babel/plugin-syntax-jsx@7.28.6': | |
| 158 | + resolution: {integrity: sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==} | |
| 159 | + engines: {node: '>=6.9.0'} | |
| 160 | + peerDependencies: | |
| 161 | + '@babel/core': ^7.0.0-0 | |
| 162 | + | |
| 163 | + '@babel/plugin-transform-react-jsx-development@7.27.1': | |
| 164 | + resolution: {integrity: sha512-ykDdF5yI4f1WrAolLqeF3hmYU12j9ntLQl/AOG1HAS21jxyg1Q0/J/tpREuYLfatGdGmXp/3yS0ZA76kOlVq9Q==} | |
| 165 | + engines: {node: '>=6.9.0'} | |
| 166 | + peerDependencies: | |
| 167 | + '@babel/core': ^7.0.0-0 | |
| 168 | + | |
| 169 | + '@babel/plugin-transform-react-jsx@7.28.6': | |
| 170 | + resolution: {integrity: sha512-61bxqhiRfAACulXSLd/GxqmAedUSrRZIu/cbaT18T1CetkTmtDN15it7i80ru4DVqRK1WMxQhXs+Lf9kajm5Ow==} | |
| 171 | + engines: {node: '>=6.9.0'} | |
| 172 | + peerDependencies: | |
| 173 | + '@babel/core': ^7.0.0-0 | |
| 174 | + | |
| 175 | + '@babel/template@7.28.6': | |
| 176 | + resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==} | |
| 177 | + engines: {node: '>=6.9.0'} | |
| 178 | + | |
| 179 | + '@babel/traverse@7.29.0': | |
| 180 | + resolution: {integrity: sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==} | |
| 181 | + engines: {node: '>=6.9.0'} | |
| 182 | + | |
| 183 | + '@babel/types@7.29.0': | |
| 184 | + resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==} | |
| 185 | + engines: {node: '>=6.9.0'} | |
| 186 | + | |
| 187 | + '@capsizecss/unpack@4.0.0': | |
| 188 | + resolution: {integrity: sha512-VERIM64vtTP1C4mxQ5thVT9fK0apjPFobqybMtA1UdUujWka24ERHbRHFGmpbbhp73MhV+KSsHQH9C6uOTdEQA==} | |
| 189 | + engines: {node: '>=18'} | |
| 190 | + | |
| 191 | + '@cloudflare/kv-asset-handler@0.4.2': | |
| 192 | + resolution: {integrity: sha512-SIOD2DxrRRwQ+jgzlXCqoEFiKOFqaPjhnNTGKXSRLvp1HiOvapLaFG2kEr9dYQTYe8rKrd9uvDUzmAITeNyaHQ==} | |
| 193 | + engines: {node: '>=18.0.0'} | |
| 194 | + | |
| 195 | + '@cloudflare/unenv-preset@2.10.0': | |
| 196 | + resolution: {integrity: sha512-/uII4vLQXhzCAZzEVeYAjFLBNg2nqTJ1JGzd2lRF6ItYe6U2zVoYGfeKpGx/EkBF6euiU+cyBXgMdtJih+nQ6g==} | |
| 197 | + peerDependencies: | |
| 198 | + unenv: 2.0.0-rc.24 | |
| 199 | + workerd: ^1.20251221.0 | |
| 200 | + peerDependenciesMeta: | |
| 201 | + workerd: | |
| 202 | + optional: true | |
| 203 | + | |
| 204 | + '@cloudflare/unenv-preset@2.16.0': | |
| 205 | + resolution: {integrity: sha512-8ovsRpwzPoEqPUzoErAYVv8l3FMZNeBVQfJTvtzP4AgLSRGZISRfuChFxHWUQd3n6cnrwkuTGxT+2cGo8EsyYg==} | |
| 206 | + peerDependencies: | |
| 207 | + unenv: 2.0.0-rc.24 | |
| 208 | + workerd: 1.20260301.1 || ~1.20260302.1 || ~1.20260303.1 || ~1.20260304.1 || >1.20260305.0 <2.0.0-0 | |
| 209 | + peerDependenciesMeta: | |
| 210 | + workerd: | |
| 211 | + optional: true | |
| 212 | + | |
| 213 | + '@cloudflare/workerd-darwin-64@1.20260114.0': | |
| 214 | + resolution: {integrity: sha512-HNlsRkfNgardCig2P/5bp/dqDECsZ4+NU5XewqArWxMseqt3C5daSuptI620s4pn7Wr0ZKg7jVLH0PDEBkA+aA==} | |
| 215 | + engines: {node: '>=16'} | |
| 216 | + cpu: [x64] | |
| 217 | + os: [darwin] | |
| 218 | + | |
| 219 | + '@cloudflare/workerd-darwin-64@1.20260317.1': | |
| 220 | + resolution: {integrity: sha512-8hjh3sPMwY8M/zedq3/sXoA2Q4BedlGufn3KOOleIG+5a4ReQKLlUah140D7J6zlKmYZAFMJ4tWC7hCuI/s79g==} | |
| 221 | + engines: {node: '>=16'} | |
| 222 | + cpu: [x64] | |
| 223 | + os: [darwin] | |
| 224 | + | |
| 225 | + '@cloudflare/workerd-darwin-arm64@1.20260114.0': | |
| 226 | + resolution: {integrity: sha512-qyE1UdFnAlxzb+uCfN/d9c8icch7XRiH49/DjoqEa+bCDihTuRS7GL1RmhVIqHJhb3pX3DzxmKgQZBDBL83Inw==} | |
| 227 | + engines: {node: '>=16'} | |
| 228 | + cpu: [arm64] | |
| 229 | + os: [darwin] | |
| 230 | + | |
| 231 | + '@cloudflare/workerd-darwin-arm64@1.20260317.1': | |
| 232 | + resolution: {integrity: sha512-M/MnNyvO5HMgoIdr3QHjdCj2T1ki9gt0vIUnxYxBu9ISXS/jgtMl6chUVPJ7zHYBn9MyYr8ByeN6frjYxj0MGg==} | |
| 233 | + engines: {node: '>=16'} | |
| 234 | + cpu: [arm64] | |
| 235 | + os: [darwin] | |
| 236 | + | |
| 237 | + '@cloudflare/workerd-linux-64@1.20260114.0': | |
| 238 | + resolution: {integrity: sha512-Z0BLvAj/JPOabzads2ddDEfgExWTlD22pnwsuNbPwZAGTSZeQa3Y47eGUWyHk+rSGngknk++S7zHTGbKuG7RRg==} | |
| 239 | + engines: {node: '>=16'} | |
| 240 | + cpu: [x64] | |
| 241 | + os: [linux] | |
| 242 | + | |
| 243 | + '@cloudflare/workerd-linux-64@1.20260317.1': | |
| 244 | + resolution: {integrity: sha512-1ltuEjkRcS3fsVF7CxsKlWiRmzq2ZqMfqDN0qUOgbUwkpXsLVJsXmoblaLf5OP00ELlcgF0QsN0p2xPEua4Uug==} | |
| 245 | + engines: {node: '>=16'} | |
| 246 | + cpu: [x64] | |
| 247 | + os: [linux] | |
| 248 | + | |
| 249 | + '@cloudflare/workerd-linux-arm64@1.20260114.0': | |
| 250 | + resolution: {integrity: sha512-kPUmEtUxUWlr9PQ64kuhdK0qyo8idPe5IIXUgi7xCD7mDd6EOe5J7ugDpbfvfbYKEjx4DpLvN2t45izyI/Sodw==} | |
| 251 | + engines: {node: '>=16'} | |
| 252 | + cpu: [arm64] | |
| 253 | + os: [linux] | |
| 254 | + | |
| 255 | + '@cloudflare/workerd-linux-arm64@1.20260317.1': | |
| 256 | + resolution: {integrity: sha512-3QrNnPF1xlaNwkHpasvRvAMidOvQs2NhXQmALJrEfpIJ/IDL2la8g499yXp3eqhG3hVMCB07XVY149GTs42Xtw==} | |
| 257 | + engines: {node: '>=16'} | |
| 258 | + cpu: [arm64] | |
| 259 | + os: [linux] | |
| 260 | + | |
| 261 | + '@cloudflare/workerd-windows-64@1.20260114.0': | |
| 262 | + resolution: {integrity: sha512-MJnKgm6i1jZGyt2ZHQYCnRlpFTEZcK2rv9y7asS3KdVEXaDgGF8kOns5u6YL6/+eMogfZuHRjfDS+UqRTUYIFA==} | |
| 263 | + engines: {node: '>=16'} | |
| 264 | + cpu: [x64] | |
| 265 | + os: [win32] | |
| 266 | + | |
| 267 | + '@cloudflare/workerd-windows-64@1.20260317.1': | |
| 268 | + resolution: {integrity: sha512-MfZTz+7LfuIpMGTa3RLXHX8Z/pnycZLItn94WRdHr8LPVet+C5/1Nzei399w/jr3+kzT4pDKk26JF/tlI5elpQ==} | |
| 269 | + engines: {node: '>=16'} | |
| 270 | + cpu: [x64] | |
| 271 | + os: [win32] | |
| 272 | + | |
| 273 | + '@cloudflare/workers-types@4.20260317.1': | |
| 274 | + resolution: {integrity: sha512-+G4eVwyCpm8Au1ex8vQBCuA9wnwqetz4tPNRoB/53qvktERWBRMQnrtvC1k584yRE3emMThtuY0gWshvSJ++PQ==} | |
| 275 | + | |
| 276 | + '@cspotcode/source-map-support@0.8.1': | |
| 277 | + resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} | |
| 278 | + engines: {node: '>=12'} | |
| 279 | + | |
| 280 | + '@emnapi/runtime@1.9.1': | |
| 281 | + resolution: {integrity: sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==} | |
| 282 | + | |
| 283 | + '@esbuild/aix-ppc64@0.25.12': | |
| 284 | + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} | |
| 285 | + engines: {node: '>=18'} | |
| 286 | + cpu: [ppc64] | |
| 287 | + os: [aix] | |
| 288 | + | |
| 289 | + '@esbuild/aix-ppc64@0.27.0': | |
| 290 | + resolution: {integrity: sha512-KuZrd2hRjz01y5JK9mEBSD3Vj3mbCvemhT466rSuJYeE/hjuBrHfjjcjMdTm/sz7au+++sdbJZJmuBwQLuw68A==} | |
| 291 | + engines: {node: '>=18'} | |
| 292 | + cpu: [ppc64] | |
| 293 | + os: [aix] | |
| 294 | + | |
| 295 | + '@esbuild/aix-ppc64@0.27.3': | |
| 296 | + resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==} | |
| 297 | + engines: {node: '>=18'} | |
| 298 | + cpu: [ppc64] | |
| 299 | + os: [aix] | |
| 300 | + | |
| 301 | + '@esbuild/aix-ppc64@0.27.4': | |
| 302 | + resolution: {integrity: sha512-cQPwL2mp2nSmHHJlCyoXgHGhbEPMrEEU5xhkcy3Hs/O7nGZqEpZ2sUtLaL9MORLtDfRvVl2/3PAuEkYZH0Ty8Q==} | |
| 303 | + engines: {node: '>=18'} | |
| 304 | + cpu: [ppc64] | |
| 305 | + os: [aix] | |
| 306 | + | |
| 307 | + '@esbuild/android-arm64@0.25.12': | |
| 308 | + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} | |
| 309 | + engines: {node: '>=18'} | |
| 310 | + cpu: [arm64] | |
| 311 | + os: [android] | |
| 312 | + | |
| 313 | + '@esbuild/android-arm64@0.27.0': | |
| 314 | + resolution: {integrity: sha512-CC3vt4+1xZrs97/PKDkl0yN7w8edvU2vZvAFGD16n9F0Cvniy5qvzRXjfO1l94efczkkQE6g1x0i73Qf5uthOQ==} | |
| 315 | + engines: {node: '>=18'} | |
| 316 | + cpu: [arm64] | |
| 317 | + os: [android] | |
| 318 | + | |
| 319 | + '@esbuild/android-arm64@0.27.3': | |
| 320 | + resolution: {integrity: sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==} | |
| 321 | + engines: {node: '>=18'} | |
| 322 | + cpu: [arm64] | |
| 323 | + os: [android] | |
| 324 | + | |
| 325 | + '@esbuild/android-arm64@0.27.4': | |
| 326 | + resolution: {integrity: sha512-gdLscB7v75wRfu7QSm/zg6Rx29VLdy9eTr2t44sfTW7CxwAtQghZ4ZnqHk3/ogz7xao0QAgrkradbBzcqFPasw==} | |
| 327 | + engines: {node: '>=18'} | |
| 328 | + cpu: [arm64] | |
| 329 | + os: [android] | |
| 330 | + | |
| 331 | + '@esbuild/android-arm@0.25.12': | |
| 332 | + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} | |
| 333 | + engines: {node: '>=18'} | |
| 334 | + cpu: [arm] | |
| 335 | + os: [android] | |
| 336 | + | |
| 337 | + '@esbuild/android-arm@0.27.0': | |
| 338 | + resolution: {integrity: sha512-j67aezrPNYWJEOHUNLPj9maeJte7uSMM6gMoxfPC9hOg8N02JuQi/T7ewumf4tNvJadFkvLZMlAq73b9uwdMyQ==} | |
| 339 | + engines: {node: '>=18'} | |
| 340 | + cpu: [arm] | |
| 341 | + os: [android] | |
| 342 | + | |
| 343 | + '@esbuild/android-arm@0.27.3': | |
| 344 | + resolution: {integrity: sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==} | |
| 345 | + engines: {node: '>=18'} | |
| 346 | + cpu: [arm] | |
| 347 | + os: [android] | |
| 348 | + | |
| 349 | + '@esbuild/android-arm@0.27.4': | |
| 350 | + resolution: {integrity: sha512-X9bUgvxiC8CHAGKYufLIHGXPJWnr0OCdR0anD2e21vdvgCI8lIfqFbnoeOz7lBjdrAGUhqLZLcQo6MLhTO2DKQ==} | |
| 351 | + engines: {node: '>=18'} | |
| 352 | + cpu: [arm] | |
| 353 | + os: [android] | |
| 354 | + | |
| 355 | + '@esbuild/android-x64@0.25.12': | |
| 356 | + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} | |
| 357 | + engines: {node: '>=18'} | |
| 358 | + cpu: [x64] | |
| 359 | + os: [android] | |
| 360 | + | |
| 361 | + '@esbuild/android-x64@0.27.0': | |
| 362 | + resolution: {integrity: sha512-wurMkF1nmQajBO1+0CJmcN17U4BP6GqNSROP8t0X/Jiw2ltYGLHpEksp9MpoBqkrFR3kv2/te6Sha26k3+yZ9Q==} | |
| 363 | + engines: {node: '>=18'} | |
| 364 | + cpu: [x64] | |
| 365 | + os: [android] | |
| 366 | + | |
| 367 | + '@esbuild/android-x64@0.27.3': | |
| 368 | + resolution: {integrity: sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==} | |
| 369 | + engines: {node: '>=18'} | |
| 370 | + cpu: [x64] | |
| 371 | + os: [android] | |
| 372 | + | |
| 373 | + '@esbuild/android-x64@0.27.4': | |
| 374 | + resolution: {integrity: sha512-PzPFnBNVF292sfpfhiyiXCGSn9HZg5BcAz+ivBuSsl6Rk4ga1oEXAamhOXRFyMcjwr2DVtm40G65N3GLeH1Lvw==} | |
| 375 | + engines: {node: '>=18'} | |
| 376 | + cpu: [x64] | |
| 377 | + os: [android] | |
| 378 | + | |
| 379 | + '@esbuild/darwin-arm64@0.25.12': | |
| 380 | + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} | |
| 381 | + engines: {node: '>=18'} | |
| 382 | + cpu: [arm64] | |
| 383 | + os: [darwin] | |
| 384 | + | |
| 385 | + '@esbuild/darwin-arm64@0.27.0': | |
| 386 | + resolution: {integrity: sha512-uJOQKYCcHhg07DL7i8MzjvS2LaP7W7Pn/7uA0B5S1EnqAirJtbyw4yC5jQ5qcFjHK9l6o/MX9QisBg12kNkdHg==} | |
| 387 | + engines: {node: '>=18'} | |
| 388 | + cpu: [arm64] | |
| 389 | + os: [darwin] | |
| 390 | + | |
| 391 | + '@esbuild/darwin-arm64@0.27.3': | |
| 392 | + resolution: {integrity: sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==} | |
| 393 | + engines: {node: '>=18'} | |
| 394 | + cpu: [arm64] | |
| 395 | + os: [darwin] | |
| 396 | + | |
| 397 | + '@esbuild/darwin-arm64@0.27.4': | |
| 398 | + resolution: {integrity: sha512-b7xaGIwdJlht8ZFCvMkpDN6uiSmnxxK56N2GDTMYPr2/gzvfdQN8rTfBsvVKmIVY/X7EM+/hJKEIbbHs9oA4tQ==} | |
| 399 | + engines: {node: '>=18'} | |
| 400 | + cpu: [arm64] | |
| 401 | + os: [darwin] | |
| 402 | + | |
| 403 | + '@esbuild/darwin-x64@0.25.12': | |
| 404 | + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} | |
| 405 | + engines: {node: '>=18'} | |
| 406 | + cpu: [x64] | |
| 407 | + os: [darwin] | |
| 408 | + | |
| 409 | + '@esbuild/darwin-x64@0.27.0': | |
| 410 | + resolution: {integrity: sha512-8mG6arH3yB/4ZXiEnXof5MK72dE6zM9cDvUcPtxhUZsDjESl9JipZYW60C3JGreKCEP+p8P/72r69m4AZGJd5g==} | |
| 411 | + engines: {node: '>=18'} | |
| 412 | + cpu: [x64] | |
| 413 | + os: [darwin] | |
| 414 | + | |
| 415 | + '@esbuild/darwin-x64@0.27.3': | |
| 416 | + resolution: {integrity: sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==} | |
| 417 | + engines: {node: '>=18'} | |
| 418 | + cpu: [x64] | |
| 419 | + os: [darwin] | |
| 420 | + | |
| 421 | + '@esbuild/darwin-x64@0.27.4': | |
| 422 | + resolution: {integrity: sha512-sR+OiKLwd15nmCdqpXMnuJ9W2kpy0KigzqScqHI3Hqwr7IXxBp3Yva+yJwoqh7rE8V77tdoheRYataNKL4QrPw==} | |
| 423 | + engines: {node: '>=18'} | |
| 424 | + cpu: [x64] | |
| 425 | + os: [darwin] | |
| 426 | + | |
| 427 | + '@esbuild/freebsd-arm64@0.25.12': | |
| 428 | + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} | |
| 429 | + engines: {node: '>=18'} | |
| 430 | + cpu: [arm64] | |
| 431 | + os: [freebsd] | |
| 432 | + | |
| 433 | + '@esbuild/freebsd-arm64@0.27.0': | |
| 434 | + resolution: {integrity: sha512-9FHtyO988CwNMMOE3YIeci+UV+x5Zy8fI2qHNpsEtSF83YPBmE8UWmfYAQg6Ux7Gsmd4FejZqnEUZCMGaNQHQw==} | |
| 435 | + engines: {node: '>=18'} | |
| 436 | + cpu: [arm64] | |
| 437 | + os: [freebsd] | |
| 438 | + | |
| 439 | + '@esbuild/freebsd-arm64@0.27.3': | |
| 440 | + resolution: {integrity: sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==} | |
| 441 | + engines: {node: '>=18'} | |
| 442 | + cpu: [arm64] | |
| 443 | + os: [freebsd] | |
| 444 | + | |
| 445 | + '@esbuild/freebsd-arm64@0.27.4': | |
| 446 | + resolution: {integrity: sha512-jnfpKe+p79tCnm4GVav68A7tUFeKQwQyLgESwEAUzyxk/TJr4QdGog9sqWNcUbr/bZt/O/HXouspuQDd9JxFSw==} | |
| 447 | + engines: {node: '>=18'} | |
| 448 | + cpu: [arm64] | |
| 449 | + os: [freebsd] | |
| 450 | + | |
| 451 | + '@esbuild/freebsd-x64@0.25.12': | |
| 452 | + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} | |
| 453 | + engines: {node: '>=18'} | |
| 454 | + cpu: [x64] | |
| 455 | + os: [freebsd] | |
| 456 | + | |
| 457 | + '@esbuild/freebsd-x64@0.27.0': | |
| 458 | + resolution: {integrity: sha512-zCMeMXI4HS/tXvJz8vWGexpZj2YVtRAihHLk1imZj4efx1BQzN76YFeKqlDr3bUWI26wHwLWPd3rwh6pe4EV7g==} | |
| 459 | + engines: {node: '>=18'} | |
| 460 | + cpu: [x64] | |
| 461 | + os: [freebsd] | |
| 462 | + | |
| 463 | + '@esbuild/freebsd-x64@0.27.3': | |
| 464 | + resolution: {integrity: sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==} | |
| 465 | + engines: {node: '>=18'} | |
| 466 | + cpu: [x64] | |
| 467 | + os: [freebsd] | |
| 468 | + | |
| 469 | + '@esbuild/freebsd-x64@0.27.4': | |
| 470 | + resolution: {integrity: sha512-2kb4ceA/CpfUrIcTUl1wrP/9ad9Atrp5J94Lq69w7UwOMolPIGrfLSvAKJp0RTvkPPyn6CIWrNy13kyLikZRZQ==} | |
| 471 | + engines: {node: '>=18'} | |
| 472 | + cpu: [x64] | |
| 473 | + os: [freebsd] | |
| 474 | + | |
| 475 | + '@esbuild/linux-arm64@0.25.12': | |
| 476 | + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} | |
| 477 | + engines: {node: '>=18'} | |
| 478 | + cpu: [arm64] | |
| 479 | + os: [linux] | |
| 480 | + | |
| 481 | + '@esbuild/linux-arm64@0.27.0': | |
| 482 | + resolution: {integrity: sha512-AS18v0V+vZiLJyi/4LphvBE+OIX682Pu7ZYNsdUHyUKSoRwdnOsMf6FDekwoAFKej14WAkOef3zAORJgAtXnlQ==} | |
| 483 | + engines: {node: '>=18'} | |
| 484 | + cpu: [arm64] | |
| 485 | + os: [linux] | |
| 486 | + | |
| 487 | + '@esbuild/linux-arm64@0.27.3': | |
| 488 | + resolution: {integrity: sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==} | |
| 489 | + engines: {node: '>=18'} | |
| 490 | + cpu: [arm64] | |
| 491 | + os: [linux] | |
| 492 | + | |
| 493 | + '@esbuild/linux-arm64@0.27.4': | |
| 494 | + resolution: {integrity: sha512-7nQOttdzVGth1iz57kxg9uCz57dxQLHWxopL6mYuYthohPKEK0vU0C3O21CcBK6KDlkYVcnDXY099HcCDXd9dA==} | |
| 495 | + engines: {node: '>=18'} | |
| 496 | + cpu: [arm64] | |
| 497 | + os: [linux] | |
| 498 | + | |
| 499 | + '@esbuild/linux-arm@0.25.12': | |
| 500 | + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} | |
| 501 | + engines: {node: '>=18'} | |
| 502 | + cpu: [arm] | |
| 503 | + os: [linux] | |
| 504 | + | |
| 505 | + '@esbuild/linux-arm@0.27.0': | |
| 506 | + resolution: {integrity: sha512-t76XLQDpxgmq2cNXKTVEB7O7YMb42atj2Re2Haf45HkaUpjM2J0UuJZDuaGbPbamzZ7bawyGFUkodL+zcE+jvQ==} | |
| 507 | + engines: {node: '>=18'} | |
| 508 | + cpu: [arm] | |
| 509 | + os: [linux] | |
| 510 | + | |
| 511 | + '@esbuild/linux-arm@0.27.3': | |
| 512 | + resolution: {integrity: sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==} | |
| 513 | + engines: {node: '>=18'} | |
| 514 | + cpu: [arm] | |
| 515 | + os: [linux] | |
| 516 | + | |
| 517 | + '@esbuild/linux-arm@0.27.4': | |
| 518 | + resolution: {integrity: sha512-aBYgcIxX/wd5n2ys0yESGeYMGF+pv6g0DhZr3G1ZG4jMfruU9Tl1i2Z+Wnj9/KjGz1lTLCcorqE2viePZqj4Eg==} | |
| 519 | + engines: {node: '>=18'} | |
| 520 | + cpu: [arm] | |
| 521 | + os: [linux] | |
| 522 | + | |
| 523 | + '@esbuild/linux-ia32@0.25.12': | |
| 524 | + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} | |
| 525 | + engines: {node: '>=18'} | |
| 526 | + cpu: [ia32] | |
| 527 | + os: [linux] | |
| 528 | + | |
| 529 | + '@esbuild/linux-ia32@0.27.0': | |
| 530 | + resolution: {integrity: sha512-Mz1jxqm/kfgKkc/KLHC5qIujMvnnarD9ra1cEcrs7qshTUSksPihGrWHVG5+osAIQ68577Zpww7SGapmzSt4Nw==} | |
| 531 | + engines: {node: '>=18'} | |
| 532 | + cpu: [ia32] | |
| 533 | + os: [linux] | |
| 534 | + | |
| 535 | + '@esbuild/linux-ia32@0.27.3': | |
| 536 | + resolution: {integrity: sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==} | |
| 537 | + engines: {node: '>=18'} | |
| 538 | + cpu: [ia32] | |
| 539 | + os: [linux] | |
| 540 | + | |
| 541 | + '@esbuild/linux-ia32@0.27.4': | |
| 542 | + resolution: {integrity: sha512-oPtixtAIzgvzYcKBQM/qZ3R+9TEUd1aNJQu0HhGyqtx6oS7qTpvjheIWBbes4+qu1bNlo2V4cbkISr8q6gRBFA==} | |
| 543 | + engines: {node: '>=18'} | |
| 544 | + cpu: [ia32] | |
| 545 | + os: [linux] | |
| 546 | + | |
| 547 | + '@esbuild/linux-loong64@0.25.12': | |
| 548 | + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} | |
| 549 | + engines: {node: '>=18'} | |
| 550 | + cpu: [loong64] | |
| 551 | + os: [linux] | |
| 552 | + | |
| 553 | + '@esbuild/linux-loong64@0.27.0': | |
| 554 | + resolution: {integrity: sha512-QbEREjdJeIreIAbdG2hLU1yXm1uu+LTdzoq1KCo4G4pFOLlvIspBm36QrQOar9LFduavoWX2msNFAAAY9j4BDg==} | |
| 555 | + engines: {node: '>=18'} | |
| 556 | + cpu: [loong64] | |
| 557 | + os: [linux] | |
| 558 | + | |
| 559 | + '@esbuild/linux-loong64@0.27.3': | |
| 560 | + resolution: {integrity: sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==} | |
| 561 | + engines: {node: '>=18'} | |
| 562 | + cpu: [loong64] | |
| 563 | + os: [linux] | |
| 564 | + | |
| 565 | + '@esbuild/linux-loong64@0.27.4': | |
| 566 | + resolution: {integrity: sha512-8mL/vh8qeCoRcFH2nM8wm5uJP+ZcVYGGayMavi8GmRJjuI3g1v6Z7Ni0JJKAJW+m0EtUuARb6Lmp4hMjzCBWzA==} | |
| 567 | + engines: {node: '>=18'} | |
| 568 | + cpu: [loong64] | |
| 569 | + os: [linux] | |
| 570 | + | |
| 571 | + '@esbuild/linux-mips64el@0.25.12': | |
| 572 | + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} | |
| 573 | + engines: {node: '>=18'} | |
| 574 | + cpu: [mips64el] | |
| 575 | + os: [linux] | |
| 576 | + | |
| 577 | + '@esbuild/linux-mips64el@0.27.0': | |
| 578 | + resolution: {integrity: sha512-sJz3zRNe4tO2wxvDpH/HYJilb6+2YJxo/ZNbVdtFiKDufzWq4JmKAiHy9iGoLjAV7r/W32VgaHGkk35cUXlNOg==} | |
| 579 | + engines: {node: '>=18'} | |
| 580 | + cpu: [mips64el] | |
| 581 | + os: [linux] | |
| 582 | + | |
| 583 | + '@esbuild/linux-mips64el@0.27.3': | |
| 584 | + resolution: {integrity: sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==} | |
| 585 | + engines: {node: '>=18'} | |
| 586 | + cpu: [mips64el] | |
| 587 | + os: [linux] | |
| 588 | + | |
| 589 | + '@esbuild/linux-mips64el@0.27.4': | |
| 590 | + resolution: {integrity: sha512-1RdrWFFiiLIW7LQq9Q2NES+HiD4NyT8Itj9AUeCl0IVCA459WnPhREKgwrpaIfTOe+/2rdntisegiPWn/r/aAw==} | |
| 591 | + engines: {node: '>=18'} | |
| 592 | + cpu: [mips64el] | |
| 593 | + os: [linux] | |
| 594 | + | |
| 595 | + '@esbuild/linux-ppc64@0.25.12': | |
| 596 | + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} | |
| 597 | + engines: {node: '>=18'} | |
| 598 | + cpu: [ppc64] | |
| 599 | + os: [linux] | |
| 600 | + | |
| 601 | + '@esbuild/linux-ppc64@0.27.0': | |
| 602 | + resolution: {integrity: sha512-z9N10FBD0DCS2dmSABDBb5TLAyF1/ydVb+N4pi88T45efQ/w4ohr/F/QYCkxDPnkhkp6AIpIcQKQ8F0ANoA2JA==} | |
| 603 | + engines: {node: '>=18'} | |
| 604 | + cpu: [ppc64] | |
| 605 | + os: [linux] | |
| 606 | + | |
| 607 | + '@esbuild/linux-ppc64@0.27.3': | |
| 608 | + resolution: {integrity: sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==} | |
| 609 | + engines: {node: '>=18'} | |
| 610 | + cpu: [ppc64] | |
| 611 | + os: [linux] | |
| 612 | + | |
| 613 | + '@esbuild/linux-ppc64@0.27.4': | |
| 614 | + resolution: {integrity: sha512-tLCwNG47l3sd9lpfyx9LAGEGItCUeRCWeAx6x2Jmbav65nAwoPXfewtAdtbtit/pJFLUWOhpv0FpS6GQAmPrHA==} | |
| 615 | + engines: {node: '>=18'} | |
| 616 | + cpu: [ppc64] | |
| 617 | + os: [linux] | |
| 618 | + | |
| 619 | + '@esbuild/linux-riscv64@0.25.12': | |
| 620 | + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} | |
| 621 | + engines: {node: '>=18'} | |
| 622 | + cpu: [riscv64] | |
| 623 | + os: [linux] | |
| 624 | + | |
| 625 | + '@esbuild/linux-riscv64@0.27.0': | |
| 626 | + resolution: {integrity: sha512-pQdyAIZ0BWIC5GyvVFn5awDiO14TkT/19FTmFcPdDec94KJ1uZcmFs21Fo8auMXzD4Tt+diXu1LW1gHus9fhFQ==} | |
| 627 | + engines: {node: '>=18'} | |
| 628 | + cpu: [riscv64] | |
| 629 | + os: [linux] | |
| 630 | + | |
| 631 | + '@esbuild/linux-riscv64@0.27.3': | |
| 632 | + resolution: {integrity: sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==} | |
| 633 | + engines: {node: '>=18'} | |
| 634 | + cpu: [riscv64] | |
| 635 | + os: [linux] | |
| 636 | + | |
| 637 | + '@esbuild/linux-riscv64@0.27.4': | |
| 638 | + resolution: {integrity: sha512-BnASypppbUWyqjd1KIpU4AUBiIhVr6YlHx/cnPgqEkNoVOhHg+YiSVxM1RLfiy4t9cAulbRGTNCKOcqHrEQLIw==} | |
| 639 | + engines: {node: '>=18'} | |
| 640 | + cpu: [riscv64] | |
| 641 | + os: [linux] | |
| 642 | + | |
| 643 | + '@esbuild/linux-s390x@0.25.12': | |
| 644 | + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} | |
| 645 | + engines: {node: '>=18'} | |
| 646 | + cpu: [s390x] | |
| 647 | + os: [linux] | |
| 648 | + | |
| 649 | + '@esbuild/linux-s390x@0.27.0': | |
| 650 | + resolution: {integrity: sha512-hPlRWR4eIDDEci953RI1BLZitgi5uqcsjKMxwYfmi4LcwyWo2IcRP+lThVnKjNtk90pLS8nKdroXYOqW+QQH+w==} | |
| 651 | + engines: {node: '>=18'} | |
| 652 | + cpu: [s390x] | |
| 653 | + os: [linux] | |
| 654 | + | |
| 655 | + '@esbuild/linux-s390x@0.27.3': | |
| 656 | + resolution: {integrity: sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==} | |
| 657 | + engines: {node: '>=18'} | |
| 658 | + cpu: [s390x] | |
| 659 | + os: [linux] | |
| 660 | + | |
| 661 | + '@esbuild/linux-s390x@0.27.4': | |
| 662 | + resolution: {integrity: sha512-+eUqgb/Z7vxVLezG8bVB9SfBie89gMueS+I0xYh2tJdw3vqA/0ImZJ2ROeWwVJN59ihBeZ7Tu92dF/5dy5FttA==} | |
| 663 | + engines: {node: '>=18'} | |
| 664 | + cpu: [s390x] | |
| 665 | + os: [linux] | |
| 666 | + | |
| 667 | + '@esbuild/linux-x64@0.25.12': | |
| 668 | + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} | |
| 669 | + engines: {node: '>=18'} | |
| 670 | + cpu: [x64] | |
| 671 | + os: [linux] | |
| 672 | + | |
| 673 | + '@esbuild/linux-x64@0.27.0': | |
| 674 | + resolution: {integrity: sha512-1hBWx4OUJE2cab++aVZ7pObD6s+DK4mPGpemtnAORBvb5l/g5xFGk0vc0PjSkrDs0XaXj9yyob3d14XqvnQ4gw==} | |
| 675 | + engines: {node: '>=18'} | |
| 676 | + cpu: [x64] | |
| 677 | + os: [linux] | |
| 678 | + | |
| 679 | + '@esbuild/linux-x64@0.27.3': | |
| 680 | + resolution: {integrity: sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==} | |
| 681 | + engines: {node: '>=18'} | |
| 682 | + cpu: [x64] | |
| 683 | + os: [linux] | |
| 684 | + | |
| 685 | + '@esbuild/linux-x64@0.27.4': | |
| 686 | + resolution: {integrity: sha512-S5qOXrKV8BQEzJPVxAwnryi2+Iq5pB40gTEIT69BQONqR7JH1EPIcQ/Uiv9mCnn05jff9umq/5nqzxlqTOg9NA==} | |
| 687 | + engines: {node: '>=18'} | |
| 688 | + cpu: [x64] | |
| 689 | + os: [linux] | |
| 690 | + | |
| 691 | + '@esbuild/netbsd-arm64@0.25.12': | |
| 692 | + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} | |
| 693 | + engines: {node: '>=18'} | |
| 694 | + cpu: [arm64] | |
| 695 | + os: [netbsd] | |
| 696 | + | |
| 697 | + '@esbuild/netbsd-arm64@0.27.0': | |
| 698 | + resolution: {integrity: sha512-6m0sfQfxfQfy1qRuecMkJlf1cIzTOgyaeXaiVaaki8/v+WB+U4hc6ik15ZW6TAllRlg/WuQXxWj1jx6C+dfy3w==} | |
| 699 | + engines: {node: '>=18'} | |
| 700 | + cpu: [arm64] | |
| 701 | + os: [netbsd] | |
| 702 | + | |
| 703 | + '@esbuild/netbsd-arm64@0.27.3': | |
| 704 | + resolution: {integrity: sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==} | |
| 705 | + engines: {node: '>=18'} | |
| 706 | + cpu: [arm64] | |
| 707 | + os: [netbsd] | |
| 708 | + | |
| 709 | + '@esbuild/netbsd-arm64@0.27.4': | |
| 710 | + resolution: {integrity: sha512-xHT8X4sb0GS8qTqiwzHqpY00C95DPAq7nAwX35Ie/s+LO9830hrMd3oX0ZMKLvy7vsonee73x0lmcdOVXFzd6Q==} | |
| 711 | + engines: {node: '>=18'} | |
| 712 | + cpu: [arm64] | |
| 713 | + os: [netbsd] | |
| 714 | + | |
| 715 | + '@esbuild/netbsd-x64@0.25.12': | |
| 716 | + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} | |
| 717 | + engines: {node: '>=18'} | |
| 718 | + cpu: [x64] | |
| 719 | + os: [netbsd] | |
| 720 | + | |
| 721 | + '@esbuild/netbsd-x64@0.27.0': | |
| 722 | + resolution: {integrity: sha512-xbbOdfn06FtcJ9d0ShxxvSn2iUsGd/lgPIO2V3VZIPDbEaIj1/3nBBe1AwuEZKXVXkMmpr6LUAgMkLD/4D2PPA==} | |
| 723 | + engines: {node: '>=18'} | |
| 724 | + cpu: [x64] | |
| 725 | + os: [netbsd] | |
| 726 | + | |
| 727 | + '@esbuild/netbsd-x64@0.27.3': | |
| 728 | + resolution: {integrity: sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==} | |
| 729 | + engines: {node: '>=18'} | |
| 730 | + cpu: [x64] | |
| 731 | + os: [netbsd] | |
| 732 | + | |
| 733 | + '@esbuild/netbsd-x64@0.27.4': | |
| 734 | + resolution: {integrity: sha512-RugOvOdXfdyi5Tyv40kgQnI0byv66BFgAqjdgtAKqHoZTbTF2QqfQrFwa7cHEORJf6X2ht+l9ABLMP0dnKYsgg==} | |
| 735 | + engines: {node: '>=18'} | |
| 736 | + cpu: [x64] | |
| 737 | + os: [netbsd] | |
| 738 | + | |
| 739 | + '@esbuild/openbsd-arm64@0.25.12': | |
| 740 | + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} | |
| 741 | + engines: {node: '>=18'} | |
| 742 | + cpu: [arm64] | |
| 743 | + os: [openbsd] | |
| 744 | + | |
| 745 | + '@esbuild/openbsd-arm64@0.27.0': | |
| 746 | + resolution: {integrity: sha512-fWgqR8uNbCQ/GGv0yhzttj6sU/9Z5/Sv/VGU3F5OuXK6J6SlriONKrQ7tNlwBrJZXRYk5jUhuWvF7GYzGguBZQ==} | |
| 747 | + engines: {node: '>=18'} | |
| 748 | + cpu: [arm64] | |
| 749 | + os: [openbsd] | |
| 750 | + | |
| 751 | + '@esbuild/openbsd-arm64@0.27.3': | |
| 752 | + resolution: {integrity: sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==} | |
| 753 | + engines: {node: '>=18'} | |
| 754 | + cpu: [arm64] | |
| 755 | + os: [openbsd] | |
| 756 | + | |
| 757 | + '@esbuild/openbsd-arm64@0.27.4': | |
| 758 | + resolution: {integrity: sha512-2MyL3IAaTX+1/qP0O1SwskwcwCoOI4kV2IBX1xYnDDqthmq5ArrW94qSIKCAuRraMgPOmG0RDTA74mzYNQA9ow==} | |
| 759 | + engines: {node: '>=18'} | |
| 760 | + cpu: [arm64] | |
| 761 | + os: [openbsd] | |
| 762 | + | |
| 763 | + '@esbuild/openbsd-x64@0.25.12': | |
| 764 | + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} | |
| 765 | + engines: {node: '>=18'} | |
| 766 | + cpu: [x64] | |
| 767 | + os: [openbsd] | |
| 768 | + | |
| 769 | + '@esbuild/openbsd-x64@0.27.0': | |
| 770 | + resolution: {integrity: sha512-aCwlRdSNMNxkGGqQajMUza6uXzR/U0dIl1QmLjPtRbLOx3Gy3otfFu/VjATy4yQzo9yFDGTxYDo1FfAD9oRD2A==} | |
| 771 | + engines: {node: '>=18'} | |
| 772 | + cpu: [x64] | |
| 773 | + os: [openbsd] | |
| 774 | + | |
| 775 | + '@esbuild/openbsd-x64@0.27.3': | |
| 776 | + resolution: {integrity: sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==} | |
| 777 | + engines: {node: '>=18'} | |
| 778 | + cpu: [x64] | |
| 779 | + os: [openbsd] | |
| 780 | + | |
| 781 | + '@esbuild/openbsd-x64@0.27.4': | |
| 782 | + resolution: {integrity: sha512-u8fg/jQ5aQDfsnIV6+KwLOf1CmJnfu1ShpwqdwC0uA7ZPwFws55Ngc12vBdeUdnuWoQYx/SOQLGDcdlfXhYmXQ==} | |
| 783 | + engines: {node: '>=18'} | |
| 784 | + cpu: [x64] | |
| 785 | + os: [openbsd] | |
| 786 | + | |
| 787 | + '@esbuild/openharmony-arm64@0.25.12': | |
| 788 | + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} | |
| 789 | + engines: {node: '>=18'} | |
| 790 | + cpu: [arm64] | |
| 791 | + os: [openharmony] | |
| 792 | + | |
| 793 | + '@esbuild/openharmony-arm64@0.27.0': | |
| 794 | + resolution: {integrity: sha512-nyvsBccxNAsNYz2jVFYwEGuRRomqZ149A39SHWk4hV0jWxKM0hjBPm3AmdxcbHiFLbBSwG6SbpIcUbXjgyECfA==} | |
| 795 | + engines: {node: '>=18'} | |
| 796 | + cpu: [arm64] | |
| 797 | + os: [openharmony] | |
| 798 | + | |
| 799 | + '@esbuild/openharmony-arm64@0.27.3': | |
| 800 | + resolution: {integrity: sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==} | |
| 801 | + engines: {node: '>=18'} | |
| 802 | + cpu: [arm64] | |
| 803 | + os: [openharmony] | |
| 804 | + | |
| 805 | + '@esbuild/openharmony-arm64@0.27.4': | |
| 806 | + resolution: {integrity: sha512-JkTZrl6VbyO8lDQO3yv26nNr2RM2yZzNrNHEsj9bm6dOwwu9OYN28CjzZkH57bh4w0I2F7IodpQvUAEd1mbWXg==} | |
| 807 | + engines: {node: '>=18'} | |
| 808 | + cpu: [arm64] | |
| 809 | + os: [openharmony] | |
| 810 | + | |
| 811 | + '@esbuild/sunos-x64@0.25.12': | |
| 812 | + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} | |
| 813 | + engines: {node: '>=18'} | |
| 814 | + cpu: [x64] | |
| 815 | + os: [sunos] | |
| 816 | + | |
| 817 | + '@esbuild/sunos-x64@0.27.0': | |
| 818 | + resolution: {integrity: sha512-Q1KY1iJafM+UX6CFEL+F4HRTgygmEW568YMqDA5UV97AuZSm21b7SXIrRJDwXWPzr8MGr75fUZPV67FdtMHlHA==} | |
| 819 | + engines: {node: '>=18'} | |
| 820 | + cpu: [x64] | |
| 821 | + os: [sunos] | |
| 822 | + | |
| 823 | + '@esbuild/sunos-x64@0.27.3': | |
| 824 | + resolution: {integrity: sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==} | |
| 825 | + engines: {node: '>=18'} | |
| 826 | + cpu: [x64] | |
| 827 | + os: [sunos] | |
| 828 | + | |
| 829 | + '@esbuild/sunos-x64@0.27.4': | |
| 830 | + resolution: {integrity: sha512-/gOzgaewZJfeJTlsWhvUEmUG4tWEY2Spp5M20INYRg2ZKl9QPO3QEEgPeRtLjEWSW8FilRNacPOg8R1uaYkA6g==} | |
| 831 | + engines: {node: '>=18'} | |
| 832 | + cpu: [x64] | |
| 833 | + os: [sunos] | |
| 834 | + | |
| 835 | + '@esbuild/win32-arm64@0.25.12': | |
| 836 | + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} | |
| 837 | + engines: {node: '>=18'} | |
| 838 | + cpu: [arm64] | |
| 839 | + os: [win32] | |
| 840 | + | |
| 841 | + '@esbuild/win32-arm64@0.27.0': | |
| 842 | + resolution: {integrity: sha512-W1eyGNi6d+8kOmZIwi/EDjrL9nxQIQ0MiGqe/AWc6+IaHloxHSGoeRgDRKHFISThLmsewZ5nHFvGFWdBYlgKPg==} | |
| 843 | + engines: {node: '>=18'} | |
| 844 | + cpu: [arm64] | |
| 845 | + os: [win32] | |
| 846 | + | |
| 847 | + '@esbuild/win32-arm64@0.27.3': | |
| 848 | + resolution: {integrity: sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==} | |
| 849 | + engines: {node: '>=18'} | |
| 850 | + cpu: [arm64] | |
| 851 | + os: [win32] | |
| 852 | + | |
| 853 | + '@esbuild/win32-arm64@0.27.4': | |
| 854 | + resolution: {integrity: sha512-Z9SExBg2y32smoDQdf1HRwHRt6vAHLXcxD2uGgO/v2jK7Y718Ix4ndsbNMU/+1Qiem9OiOdaqitioZwxivhXYg==} | |
| 855 | + engines: {node: '>=18'} | |
| 856 | + cpu: [arm64] | |
| 857 | + os: [win32] | |
| 858 | + | |
| 859 | + '@esbuild/win32-ia32@0.25.12': | |
| 860 | + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} | |
| 861 | + engines: {node: '>=18'} | |
| 862 | + cpu: [ia32] | |
| 863 | + os: [win32] | |
| 864 | + | |
| 865 | + '@esbuild/win32-ia32@0.27.0': | |
| 866 | + resolution: {integrity: sha512-30z1aKL9h22kQhilnYkORFYt+3wp7yZsHWus+wSKAJR8JtdfI76LJ4SBdMsCopTR3z/ORqVu5L1vtnHZWVj4cQ==} | |
| 867 | + engines: {node: '>=18'} | |
| 868 | + cpu: [ia32] | |
| 869 | + os: [win32] | |
| 870 | + | |
| 871 | + '@esbuild/win32-ia32@0.27.3': | |
| 872 | + resolution: {integrity: sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==} | |
| 873 | + engines: {node: '>=18'} | |
| 874 | + cpu: [ia32] | |
| 875 | + os: [win32] | |
| 876 | + | |
| 877 | + '@esbuild/win32-ia32@0.27.4': | |
| 878 | + resolution: {integrity: sha512-DAyGLS0Jz5G5iixEbMHi5KdiApqHBWMGzTtMiJ72ZOLhbu/bzxgAe8Ue8CTS3n3HbIUHQz/L51yMdGMeoxXNJw==} | |
| 879 | + engines: {node: '>=18'} | |
| 880 | + cpu: [ia32] | |
| 881 | + os: [win32] | |
| 882 | + | |
| 883 | + '@esbuild/win32-x64@0.25.12': | |
| 884 | + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} | |
| 885 | + engines: {node: '>=18'} | |
| 886 | + cpu: [x64] | |
| 887 | + os: [win32] | |
| 888 | + | |
| 889 | + '@esbuild/win32-x64@0.27.0': | |
| 890 | + resolution: {integrity: sha512-aIitBcjQeyOhMTImhLZmtxfdOcuNRpwlPNmlFKPcHQYPhEssw75Cl1TSXJXpMkzaua9FUetx/4OQKq7eJul5Cg==} | |
| 891 | + engines: {node: '>=18'} | |
| 892 | + cpu: [x64] | |
| 893 | + os: [win32] | |
| 894 | + | |
| 895 | + '@esbuild/win32-x64@0.27.3': | |
| 896 | + resolution: {integrity: sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==} | |
| 897 | + engines: {node: '>=18'} | |
| 898 | + cpu: [x64] | |
| 899 | + os: [win32] | |
| 900 | + | |
| 901 | + '@esbuild/win32-x64@0.27.4': | |
| 902 | + resolution: {integrity: sha512-+knoa0BDoeXgkNvvV1vvbZX4+hizelrkwmGJBdT17t8FNPwG2lKemmuMZlmaNQ3ws3DKKCxpb4zRZEIp3UxFCg==} | |
| 903 | + engines: {node: '>=18'} | |
| 904 | + cpu: [x64] | |
| 905 | + os: [win32] | |
| 906 | + | |
| 907 | + '@img/colour@1.1.0': | |
| 908 | + resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} | |
| 909 | + engines: {node: '>=18'} | |
| 910 | + | |
| 911 | + '@img/sharp-darwin-arm64@0.34.5': | |
| 912 | + resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==} | |
| 913 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 914 | + cpu: [arm64] | |
| 915 | + os: [darwin] | |
| 916 | + | |
| 917 | + '@img/sharp-darwin-x64@0.34.5': | |
| 918 | + resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==} | |
| 919 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 920 | + cpu: [x64] | |
| 921 | + os: [darwin] | |
| 922 | + | |
| 923 | + '@img/sharp-libvips-darwin-arm64@1.2.4': | |
| 924 | + resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} | |
| 925 | + cpu: [arm64] | |
| 926 | + os: [darwin] | |
| 927 | + | |
| 928 | + '@img/sharp-libvips-darwin-x64@1.2.4': | |
| 929 | + resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==} | |
| 930 | + cpu: [x64] | |
| 931 | + os: [darwin] | |
| 932 | + | |
| 933 | + '@img/sharp-libvips-linux-arm64@1.2.4': | |
| 934 | + resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} | |
| 935 | + cpu: [arm64] | |
| 936 | + os: [linux] | |
| 937 | + libc: [glibc] | |
| 938 | + | |
| 939 | + '@img/sharp-libvips-linux-arm@1.2.4': | |
| 940 | + resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} | |
| 941 | + cpu: [arm] | |
| 942 | + os: [linux] | |
| 943 | + libc: [glibc] | |
| 944 | + | |
| 945 | + '@img/sharp-libvips-linux-ppc64@1.2.4': | |
| 946 | + resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} | |
| 947 | + cpu: [ppc64] | |
| 948 | + os: [linux] | |
| 949 | + libc: [glibc] | |
| 950 | + | |
| 951 | + '@img/sharp-libvips-linux-riscv64@1.2.4': | |
| 952 | + resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} | |
| 953 | + cpu: [riscv64] | |
| 954 | + os: [linux] | |
| 955 | + libc: [glibc] | |
| 956 | + | |
| 957 | + '@img/sharp-libvips-linux-s390x@1.2.4': | |
| 958 | + resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} | |
| 959 | + cpu: [s390x] | |
| 960 | + os: [linux] | |
| 961 | + libc: [glibc] | |
| 962 | + | |
| 963 | + '@img/sharp-libvips-linux-x64@1.2.4': | |
| 964 | + resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} | |
| 965 | + cpu: [x64] | |
| 966 | + os: [linux] | |
| 967 | + libc: [glibc] | |
| 968 | + | |
| 969 | + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': | |
| 970 | + resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} | |
| 971 | + cpu: [arm64] | |
| 972 | + os: [linux] | |
| 973 | + libc: [musl] | |
| 974 | + | |
| 975 | + '@img/sharp-libvips-linuxmusl-x64@1.2.4': | |
| 976 | + resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} | |
| 977 | + cpu: [x64] | |
| 978 | + os: [linux] | |
| 979 | + libc: [musl] | |
| 980 | + | |
| 981 | + '@img/sharp-linux-arm64@0.34.5': | |
| 982 | + resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} | |
| 983 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 984 | + cpu: [arm64] | |
| 985 | + os: [linux] | |
| 986 | + libc: [glibc] | |
| 987 | + | |
| 988 | + '@img/sharp-linux-arm@0.34.5': | |
| 989 | + resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} | |
| 990 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 991 | + cpu: [arm] | |
| 992 | + os: [linux] | |
| 993 | + libc: [glibc] | |
| 994 | + | |
| 995 | + '@img/sharp-linux-ppc64@0.34.5': | |
| 996 | + resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} | |
| 997 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 998 | + cpu: [ppc64] | |
| 999 | + os: [linux] | |
| 1000 | + libc: [glibc] | |
| 1001 | + | |
| 1002 | + '@img/sharp-linux-riscv64@0.34.5': | |
| 1003 | + resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} | |
| 1004 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 1005 | + cpu: [riscv64] | |
| 1006 | + os: [linux] | |
| 1007 | + libc: [glibc] | |
| 1008 | + | |
| 1009 | + '@img/sharp-linux-s390x@0.34.5': | |
| 1010 | + resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} | |
| 1011 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 1012 | + cpu: [s390x] | |
| 1013 | + os: [linux] | |
| 1014 | + libc: [glibc] | |
| 1015 | + | |
| 1016 | + '@img/sharp-linux-x64@0.34.5': | |
| 1017 | + resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} | |
| 1018 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 1019 | + cpu: [x64] | |
| 1020 | + os: [linux] | |
| 1021 | + libc: [glibc] | |
| 1022 | + | |
| 1023 | + '@img/sharp-linuxmusl-arm64@0.34.5': | |
| 1024 | + resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} | |
| 1025 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 1026 | + cpu: [arm64] | |
| 1027 | + os: [linux] | |
| 1028 | + libc: [musl] | |
| 1029 | + | |
| 1030 | + '@img/sharp-linuxmusl-x64@0.34.5': | |
| 1031 | + resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} | |
| 1032 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 1033 | + cpu: [x64] | |
| 1034 | + os: [linux] | |
| 1035 | + libc: [musl] | |
| 1036 | + | |
| 1037 | + '@img/sharp-wasm32@0.34.5': | |
| 1038 | + resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} | |
| 1039 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 1040 | + cpu: [wasm32] | |
| 1041 | + | |
| 1042 | + '@img/sharp-win32-arm64@0.34.5': | |
| 1043 | + resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==} | |
| 1044 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 1045 | + cpu: [arm64] | |
| 1046 | + os: [win32] | |
| 1047 | + | |
| 1048 | + '@img/sharp-win32-ia32@0.34.5': | |
| 1049 | + resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==} | |
| 1050 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 1051 | + cpu: [ia32] | |
| 1052 | + os: [win32] | |
| 1053 | + | |
| 1054 | + '@img/sharp-win32-x64@0.34.5': | |
| 1055 | + resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==} | |
| 1056 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 1057 | + cpu: [x64] | |
| 1058 | + os: [win32] | |
| 1059 | + | |
| 1060 | + '@jridgewell/gen-mapping@0.3.13': | |
| 1061 | + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} | |
| 1062 | + | |
| 1063 | + '@jridgewell/remapping@2.3.5': | |
| 1064 | + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} | |
| 1065 | + | |
| 1066 | + '@jridgewell/resolve-uri@3.1.2': | |
| 1067 | + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} | |
| 1068 | + engines: {node: '>=6.0.0'} | |
| 1069 | + | |
| 1070 | + '@jridgewell/sourcemap-codec@1.5.5': | |
| 1071 | + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} | |
| 1072 | + | |
| 1073 | + '@jridgewell/trace-mapping@0.3.31': | |
| 1074 | + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} | |
| 1075 | + | |
| 1076 | + '@jridgewell/trace-mapping@0.3.9': | |
| 1077 | + resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} | |
| 1078 | + | |
| 1079 | + '@oslojs/encoding@1.1.0': | |
| 1080 | + resolution: {integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==} | |
| 1081 | + | |
| 1082 | + '@poppinss/colors@4.1.6': | |
| 1083 | + resolution: {integrity: sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==} | |
| 1084 | + | |
| 1085 | + '@poppinss/dumper@0.6.5': | |
| 1086 | + resolution: {integrity: sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==} | |
| 1087 | + | |
| 1088 | + '@poppinss/exception@1.2.3': | |
| 1089 | + resolution: {integrity: sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==} | |
| 1090 | + | |
| 1091 | + '@preact/preset-vite@2.10.5': | |
| 1092 | + resolution: {integrity: sha512-p0vJpxiVO7KWWazWny3LUZ+saXyZKWv6Ju0bYMWNJRp2YveufRPgSUB1C4MTqGJfz07EehMgfN+AJNwQy+w6Iw==} | |
| 1093 | + peerDependencies: | |
| 1094 | + '@babel/core': 7.x | |
| 1095 | + vite: 2.x || 3.x || 4.x || 5.x || 6.x || 7.x || 8.x | |
| 1096 | + | |
| 1097 | + '@preact/signals-core@1.14.0': | |
| 1098 | + resolution: {integrity: sha512-AowtCcCU/33lFlh1zRFf/u+12rfrhtNakj7UpaGEsmMwUKpKWMVvcktOGcwBBNiB4lWrZWc01LhiyyzVklJyaQ==} | |
| 1099 | + | |
| 1100 | + '@preact/signals@2.8.2': | |
| 1101 | + resolution: {integrity: sha512-gym5yoa64c+0w2kL7zRAAjY548qzWXbbuOfjsK9F1nWrEqooDwyWnih5SNdonjhQSp27zUqYh7UrxIRnkCyFCA==} | |
| 1102 | + peerDependencies: | |
| 1103 | + preact: '>= 10.25.0 || >=11.0.0-0' | |
| 1104 | + | |
| 1105 | + '@prefresh/babel-plugin@0.5.3': | |
| 1106 | + resolution: {integrity: sha512-57LX2SHs4BX2s1IwCjNzTE2OJeEepRCNf1VTEpbNcUyHfMO68eeOWGDIt4ob9aYlW6PEWZ1SuwNikuoIXANDtQ==} | |
| 1107 | + | |
| 1108 | + '@prefresh/core@1.5.9': | |
| 1109 | + resolution: {integrity: sha512-IKBKCPaz34OFVC+adiQ2qaTF5qdztO2/4ZPf4KsRTgjKosWqxVXmEbxCiUydYZRY8GVie+DQlKzQr9gt6HQ+EQ==} | |
| 1110 | + peerDependencies: | |
| 1111 | + preact: ^10.0.0 || ^11.0.0-0 | |
| 1112 | + | |
| 1113 | + '@prefresh/utils@1.2.1': | |
| 1114 | + resolution: {integrity: sha512-vq/sIuN5nYfYzvyayXI4C2QkprfNaHUQ9ZX+3xLD8nL3rWyzpxOm1+K7RtMbhd+66QcaISViK7amjnheQ/4WZw==} | |
| 1115 | + | |
| 1116 | + '@prefresh/vite@2.4.12': | |
| 1117 | + resolution: {integrity: sha512-FY1fzXpUjiuosznMV0YM7XAOPZjB5FIdWS0W24+XnlxYkt9hNAwwsiKYn+cuTEoMtD/ZVazS5QVssBr9YhpCQA==} | |
| 1118 | + peerDependencies: | |
| 1119 | + preact: ^10.4.0 || ^11.0.0-0 | |
| 1120 | + vite: '>=2.0.0' | |
| 1121 | + | |
| 1122 | + '@rollup/pluginutils@4.2.1': | |
| 1123 | + resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} | |
| 1124 | + engines: {node: '>= 8.0.0'} | |
| 1125 | + | |
| 1126 | + '@rollup/pluginutils@5.3.0': | |
| 1127 | + resolution: {integrity: sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==} | |
| 1128 | + engines: {node: '>=14.0.0'} | |
| 1129 | + peerDependencies: | |
| 1130 | + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 | |
| 1131 | + peerDependenciesMeta: | |
| 1132 | + rollup: | |
| 1133 | + optional: true | |
| 1134 | + | |
| 1135 | + '@rollup/rollup-android-arm-eabi@4.60.0': | |
| 1136 | + resolution: {integrity: sha512-WOhNW9K8bR3kf4zLxbfg6Pxu2ybOUbB2AjMDHSQx86LIF4rH4Ft7vmMwNt0loO0eonglSNy4cpD3MKXXKQu0/A==} | |
| 1137 | + cpu: [arm] | |
| 1138 | + os: [android] | |
| 1139 | + | |
| 1140 | + '@rollup/rollup-android-arm64@4.60.0': | |
| 1141 | + resolution: {integrity: sha512-u6JHLll5QKRvjciE78bQXDmqRqNs5M/3GVqZeMwvmjaNODJih/WIrJlFVEihvV0MiYFmd+ZyPr9wxOVbPAG2Iw==} | |
| 1142 | + cpu: [arm64] | |
| 1143 | + os: [android] | |
| 1144 | + | |
| 1145 | + '@rollup/rollup-darwin-arm64@4.60.0': | |
| 1146 | + resolution: {integrity: sha512-qEF7CsKKzSRc20Ciu2Zw1wRrBz4g56F7r/vRwY430UPp/nt1x21Q/fpJ9N5l47WWvJlkNCPJz3QRVw008fi7yA==} | |
| 1147 | + cpu: [arm64] | |
| 1148 | + os: [darwin] | |
| 1149 | + | |
| 1150 | + '@rollup/rollup-darwin-x64@4.60.0': | |
| 1151 | + resolution: {integrity: sha512-WADYozJ4QCnXCH4wPB+3FuGmDPoFseVCUrANmA5LWwGmC6FL14BWC7pcq+FstOZv3baGX65tZ378uT6WG8ynTw==} | |
| 1152 | + cpu: [x64] | |
| 1153 | + os: [darwin] | |
| 1154 | + | |
| 1155 | + '@rollup/rollup-freebsd-arm64@4.60.0': | |
| 1156 | + resolution: {integrity: sha512-6b8wGHJlDrGeSE3aH5mGNHBjA0TTkxdoNHik5EkvPHCt351XnigA4pS7Wsj/Eo9Y8RBU6f35cjN9SYmCFBtzxw==} | |
| 1157 | + cpu: [arm64] | |
| 1158 | + os: [freebsd] | |
| 1159 | + | |
| 1160 | + '@rollup/rollup-freebsd-x64@4.60.0': | |
| 1161 | + resolution: {integrity: sha512-h25Ga0t4jaylMB8M/JKAyrvvfxGRjnPQIR8lnCayyzEjEOx2EJIlIiMbhpWxDRKGKF8jbNH01NnN663dH638mA==} | |
| 1162 | + cpu: [x64] | |
| 1163 | + os: [freebsd] | |
| 1164 | + | |
| 1165 | + '@rollup/rollup-linux-arm-gnueabihf@4.60.0': | |
| 1166 | + resolution: {integrity: sha512-RzeBwv0B3qtVBWtcuABtSuCzToo2IEAIQrcyB/b2zMvBWVbjo8bZDjACUpnaafaxhTw2W+imQbP2BD1usasK4g==} | |
| 1167 | + cpu: [arm] | |
| 1168 | + os: [linux] | |
| 1169 | + libc: [glibc] | |
| 1170 | + | |
| 1171 | + '@rollup/rollup-linux-arm-musleabihf@4.60.0': | |
| 1172 | + resolution: {integrity: sha512-Sf7zusNI2CIU1HLzuu9Tc5YGAHEZs5Lu7N1ssJG4Tkw6e0MEsN7NdjUDDfGNHy2IU+ENyWT+L2obgWiguWibWQ==} | |
| 1173 | + cpu: [arm] | |
| 1174 | + os: [linux] | |
| 1175 | + libc: [musl] | |
| 1176 | + | |
| 1177 | + '@rollup/rollup-linux-arm64-gnu@4.60.0': | |
| 1178 | + resolution: {integrity: sha512-DX2x7CMcrJzsE91q7/O02IJQ5/aLkVtYFryqCjduJhUfGKG6yJV8hxaw8pZa93lLEpPTP/ohdN4wFz7yp/ry9A==} | |
| 1179 | + cpu: [arm64] | |
| 1180 | + os: [linux] | |
| 1181 | + libc: [glibc] | |
| 1182 | + | |
| 1183 | + '@rollup/rollup-linux-arm64-musl@4.60.0': | |
| 1184 | + resolution: {integrity: sha512-09EL+yFVbJZlhcQfShpswwRZ0Rg+z/CsSELFCnPt3iK+iqwGsI4zht3secj5vLEs957QvFFXnzAT0FFPIxSrkQ==} | |
| 1185 | + cpu: [arm64] | |
| 1186 | + os: [linux] | |
| 1187 | + libc: [musl] | |
| 1188 | + | |
| 1189 | + '@rollup/rollup-linux-loong64-gnu@4.60.0': | |
| 1190 | + resolution: {integrity: sha512-i9IcCMPr3EXm8EQg5jnja0Zyc1iFxJjZWlb4wr7U2Wx/GrddOuEafxRdMPRYVaXjgbhvqalp6np07hN1w9kAKw==} | |
| 1191 | + cpu: [loong64] | |
| 1192 | + os: [linux] | |
| 1193 | + libc: [glibc] | |
| 1194 | + | |
| 1195 | + '@rollup/rollup-linux-loong64-musl@4.60.0': | |
| 1196 | + resolution: {integrity: sha512-DGzdJK9kyJ+B78MCkWeGnpXJ91tK/iKA6HwHxF4TAlPIY7GXEvMe8hBFRgdrR9Ly4qebR/7gfUs9y2IoaVEyog==} | |
| 1197 | + cpu: [loong64] | |
| 1198 | + os: [linux] | |
| 1199 | + libc: [musl] | |
| 1200 | + | |
| 1201 | + '@rollup/rollup-linux-ppc64-gnu@4.60.0': | |
| 1202 | + resolution: {integrity: sha512-RwpnLsqC8qbS8z1H1AxBA1H6qknR4YpPR9w2XX0vo2Sz10miu57PkNcnHVaZkbqyw/kUWfKMI73jhmfi9BRMUQ==} | |
| 1203 | + cpu: [ppc64] | |
| 1204 | + os: [linux] | |
| 1205 | + libc: [glibc] | |
| 1206 | + | |
| 1207 | + '@rollup/rollup-linux-ppc64-musl@4.60.0': | |
| 1208 | + resolution: {integrity: sha512-Z8pPf54Ly3aqtdWC3G4rFigZgNvd+qJlOE52fmko3KST9SoGfAdSRCwyoyG05q1HrrAblLbk1/PSIV+80/pxLg==} | |
| 1209 | + cpu: [ppc64] | |
| 1210 | + os: [linux] | |
| 1211 | + libc: [musl] | |
| 1212 | + | |
| 1213 | + '@rollup/rollup-linux-riscv64-gnu@4.60.0': | |
| 1214 | + resolution: {integrity: sha512-3a3qQustp3COCGvnP4SvrMHnPQ9d1vzCakQVRTliaz8cIp/wULGjiGpbcqrkv0WrHTEp8bQD/B3HBjzujVWLOA==} | |
| 1215 | + cpu: [riscv64] | |
| 1216 | + os: [linux] | |
| 1217 | + libc: [glibc] | |
| 1218 | + | |
| 1219 | + '@rollup/rollup-linux-riscv64-musl@4.60.0': | |
| 1220 | + resolution: {integrity: sha512-pjZDsVH/1VsghMJ2/kAaxt6dL0psT6ZexQVrijczOf+PeP2BUqTHYejk3l6TlPRydggINOeNRhvpLa0AYpCWSQ==} | |
| 1221 | + cpu: [riscv64] | |
| 1222 | + os: [linux] | |
| 1223 | + libc: [musl] | |
| 1224 | + | |
| 1225 | + '@rollup/rollup-linux-s390x-gnu@4.60.0': | |
| 1226 | + resolution: {integrity: sha512-3ObQs0BhvPgiUVZrN7gqCSvmFuMWvWvsjG5ayJ3Lraqv+2KhOsp+pUbigqbeWqueGIsnn+09HBw27rJ+gYK4VQ==} | |
| 1227 | + cpu: [s390x] | |
| 1228 | + os: [linux] | |
| 1229 | + libc: [glibc] | |
| 1230 | + | |
| 1231 | + '@rollup/rollup-linux-x64-gnu@4.60.0': | |
| 1232 | + resolution: {integrity: sha512-EtylprDtQPdS5rXvAayrNDYoJhIz1/vzN2fEubo3yLE7tfAw+948dO0g4M0vkTVFhKojnF+n6C8bDNe+gDRdTg==} | |
| 1233 | + cpu: [x64] | |
| 1234 | + os: [linux] | |
| 1235 | + libc: [glibc] | |
| 1236 | + | |
| 1237 | + '@rollup/rollup-linux-x64-musl@4.60.0': | |
| 1238 | + resolution: {integrity: sha512-k09oiRCi/bHU9UVFqD17r3eJR9bn03TyKraCrlz5ULFJGdJGi7VOmm9jl44vOJvRJ6P7WuBi/s2A97LxxHGIdw==} | |
| 1239 | + cpu: [x64] | |
| 1240 | + os: [linux] | |
| 1241 | + libc: [musl] | |
| 1242 | + | |
| 1243 | + '@rollup/rollup-openbsd-x64@4.60.0': | |
| 1244 | + resolution: {integrity: sha512-1o/0/pIhozoSaDJoDcec+IVLbnRtQmHwPV730+AOD29lHEEo4F5BEUB24H0OBdhbBBDwIOSuf7vgg0Ywxdfiiw==} | |
| 1245 | + cpu: [x64] | |
| 1246 | + os: [openbsd] | |
| 1247 | + | |
| 1248 | + '@rollup/rollup-openharmony-arm64@4.60.0': | |
| 1249 | + resolution: {integrity: sha512-pESDkos/PDzYwtyzB5p/UoNU/8fJo68vcXM9ZW2V0kjYayj1KaaUfi1NmTUTUpMn4UhU4gTuK8gIaFO4UGuMbA==} | |
| 1250 | + cpu: [arm64] | |
| 1251 | + os: [openharmony] | |
| 1252 | + | |
| 1253 | + '@rollup/rollup-win32-arm64-msvc@4.60.0': | |
| 1254 | + resolution: {integrity: sha512-hj1wFStD7B1YBeYmvY+lWXZ7ey73YGPcViMShYikqKT1GtstIKQAtfUI6yrzPjAy/O7pO0VLXGmUVWXQMaYgTQ==} | |
| 1255 | + cpu: [arm64] | |
| 1256 | + os: [win32] | |
| 1257 | + | |
| 1258 | + '@rollup/rollup-win32-ia32-msvc@4.60.0': | |
| 1259 | + resolution: {integrity: sha512-SyaIPFoxmUPlNDq5EHkTbiKzmSEmq/gOYFI/3HHJ8iS/v1mbugVa7dXUzcJGQfoytp9DJFLhHH4U3/eTy2Bq4w==} | |
| 1260 | + cpu: [ia32] | |
| 1261 | + os: [win32] | |
| 1262 | + | |
| 1263 | + '@rollup/rollup-win32-x64-gnu@4.60.0': | |
| 1264 | + resolution: {integrity: sha512-RdcryEfzZr+lAr5kRm2ucN9aVlCCa2QNq4hXelZxb8GG0NJSazq44Z3PCCc8wISRuCVnGs0lQJVX5Vp6fKA+IA==} | |
| 1265 | + cpu: [x64] | |
| 1266 | + os: [win32] | |
| 1267 | + | |
| 1268 | + '@rollup/rollup-win32-x64-msvc@4.60.0': | |
| 1269 | + resolution: {integrity: sha512-PrsWNQ8BuE00O3Xsx3ALh2Df8fAj9+cvvX9AIA6o4KpATR98c9mud4XtDWVvsEuyia5U4tVSTKygawyJkjm60w==} | |
| 1270 | + cpu: [x64] | |
| 1271 | + os: [win32] | |
| 1272 | + | |
| 1273 | + '@shikijs/core@3.23.0': | |
| 1274 | + resolution: {integrity: sha512-NSWQz0riNb67xthdm5br6lAkvpDJRTgB36fxlo37ZzM2yq0PQFFzbd8psqC2XMPgCzo1fW6cVi18+ArJ44wqgA==} | |
| 1275 | + | |
| 1276 | + '@shikijs/engine-javascript@3.23.0': | |
| 1277 | + resolution: {integrity: sha512-aHt9eiGFobmWR5uqJUViySI1bHMqrAgamWE1TYSUoftkAeCCAiGawPMwM+VCadylQtF4V3VNOZ5LmfItH5f3yA==} | |
| 1278 | + | |
| 1279 | + '@shikijs/engine-oniguruma@3.23.0': | |
| 1280 | + resolution: {integrity: sha512-1nWINwKXxKKLqPibT5f4pAFLej9oZzQTsby8942OTlsJzOBZ0MWKiwzMsd+jhzu8YPCHAswGnnN1YtQfirL35g==} | |
| 1281 | + | |
| 1282 | + '@shikijs/langs@3.23.0': | |
| 1283 | + resolution: {integrity: sha512-2Ep4W3Re5aB1/62RSYQInK9mM3HsLeB91cHqznAJMuylqjzNVAVCMnNWRHFtcNHXsoNRayP9z1qj4Sq3nMqYXg==} | |
| 1284 | + | |
| 1285 | + '@shikijs/themes@3.23.0': | |
| 1286 | + resolution: {integrity: sha512-5qySYa1ZgAT18HR/ypENL9cUSGOeI2x+4IvYJu4JgVJdizn6kG4ia5Q1jDEOi7gTbN4RbuYtmHh0W3eccOrjMA==} | |
| 1287 | + | |
| 1288 | + '@shikijs/types@3.23.0': | |
| 1289 | + resolution: {integrity: sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ==} | |
| 1290 | + | |
| 1291 | + '@shikijs/vscode-textmate@10.0.2': | |
| 1292 | + resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} | |
| 1293 | + | |
| 1294 | + '@sindresorhus/is@7.2.0': | |
| 1295 | + resolution: {integrity: sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==} | |
| 1296 | + engines: {node: '>=18'} | |
| 1297 | + | |
| 1298 | + '@speed-highlight/core@1.2.15': | |
| 1299 | + resolution: {integrity: sha512-BMq1K3DsElxDWawkX6eLg9+CKJrTVGCBAWVuHXVUV2u0s2711qiChLSId6ikYPfxhdYocLNt3wWwSvDiTvFabw==} | |
| 1300 | + | |
| 1301 | + '@turbo/darwin-64@2.8.20': | |
| 1302 | + resolution: {integrity: sha512-FQ9EX1xMU5nbwjxXxM3yU88AQQ6Sqc6S44exPRroMcx9XZHqqppl5ymJF0Ig/z3nvQNwDmz1Gsnvxubo+nXWjQ==} | |
| 1303 | + cpu: [x64] | |
| 1304 | + os: [darwin] | |
| 1305 | + | |
| 1306 | + '@turbo/darwin-arm64@2.8.20': | |
| 1307 | + resolution: {integrity: sha512-Gpyh9ATFGThD6/s9L95YWY54cizg/VRWl2B67h0yofG8BpHf67DFAh9nuJVKG7bY0+SBJDAo5cMur+wOl9YOYw==} | |
| 1308 | + cpu: [arm64] | |
| 1309 | + os: [darwin] | |
| 1310 | + | |
| 1311 | + '@turbo/linux-64@2.8.20': | |
| 1312 | + resolution: {integrity: sha512-p2QxWUYyYUgUFG0b0kR+pPi8t7c9uaVlRtjTTI1AbCvVqkpjUfCcReBn6DgG/Hu8xrWdKLuyQFaLYFzQskZbcA==} | |
| 1313 | + cpu: [x64] | |
| 1314 | + os: [linux] | |
| 1315 | + | |
| 1316 | + '@turbo/linux-arm64@2.8.20': | |
| 1317 | + resolution: {integrity: sha512-Gn5yjlZGLRZWarLWqdQzv0wMqyBNIdq1QLi48F1oY5Lo9kiohuf7BPQWtWxeNVS2NgJ1+nb/DzK1JduYC4AWOA==} | |
| 1318 | + cpu: [arm64] | |
| 1319 | + os: [linux] | |
| 1320 | + | |
| 1321 | + '@turbo/windows-64@2.8.20': | |
| 1322 | + resolution: {integrity: sha512-vyaDpYk/8T6Qz5V/X+ihKvKFEZFUoC0oxYpC1sZanK6gaESJlmV3cMRT3Qhcg4D2VxvtC2Jjs9IRkrZGL+exLw==} | |
| 1323 | + cpu: [x64] | |
| 1324 | + os: [win32] | |
| 1325 | + | |
| 1326 | + '@turbo/windows-arm64@2.8.20': | |
| 1327 | + resolution: {integrity: sha512-voicVULvUV5yaGXo0Iue13BcHGYW3u0VgqSbfQwBaHbpj1zLjYV4KIe+7fYIo6DO8FVUJzxFps3ODCQG/Wy2Qw==} | |
| 1328 | + cpu: [arm64] | |
| 1329 | + os: [win32] | |
| 1330 | + | |
| 1331 | + '@types/chai@5.2.3': | |
| 1332 | + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} | |
| 1333 | + | |
| 1334 | + '@types/debug@4.1.13': | |
| 1335 | + resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==} | |
| 1336 | + | |
| 1337 | + '@types/deep-eql@4.0.2': | |
| 1338 | + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} | |
| 1339 | + | |
| 1340 | + '@types/estree@1.0.8': | |
| 1341 | + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} | |
| 1342 | + | |
| 1343 | + '@types/hast@3.0.4': | |
| 1344 | + resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==} | |
| 1345 | + | |
| 1346 | + '@types/mdast@4.0.4': | |
| 1347 | + resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} | |
| 1348 | + | |
| 1349 | + '@types/ms@2.1.0': | |
| 1350 | + resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} | |
| 1351 | + | |
| 1352 | + '@types/nlcst@2.0.3': | |
| 1353 | + resolution: {integrity: sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA==} | |
| 1354 | + | |
| 1355 | + '@types/node@25.5.0': | |
| 1356 | + resolution: {integrity: sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==} | |
| 1357 | + | |
| 1358 | + '@types/unist@3.0.3': | |
| 1359 | + resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} | |
| 1360 | + | |
| 1361 | + '@ungap/structured-clone@1.3.0': | |
| 1362 | + resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} | |
| 1363 | + | |
| 1364 | + '@vitest/expect@3.2.4': | |
| 1365 | + resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==} | |
| 1366 | + | |
| 1367 | + '@vitest/mocker@3.2.4': | |
| 1368 | + resolution: {integrity: sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==} | |
| 1369 | + peerDependencies: | |
| 1370 | + msw: ^2.4.9 | |
| 1371 | + vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 | |
| 1372 | + peerDependenciesMeta: | |
| 1373 | + msw: | |
| 1374 | + optional: true | |
| 1375 | + vite: | |
| 1376 | + optional: true | |
| 1377 | + | |
| 1378 | + '@vitest/pretty-format@3.2.4': | |
| 1379 | + resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==} | |
| 1380 | + | |
| 1381 | + '@vitest/runner@3.2.4': | |
| 1382 | + resolution: {integrity: sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==} | |
| 1383 | + | |
| 1384 | + '@vitest/snapshot@3.2.4': | |
| 1385 | + resolution: {integrity: sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==} | |
| 1386 | + | |
| 1387 | + '@vitest/spy@3.2.4': | |
| 1388 | + resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==} | |
| 1389 | + | |
| 1390 | + '@vitest/utils@3.2.4': | |
| 1391 | + resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} | |
| 1392 | + | |
| 1393 | + acorn@8.16.0: | |
| 1394 | + resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==} | |
| 1395 | + engines: {node: '>=0.4.0'} | |
| 1396 | + hasBin: true | |
| 1397 | + | |
| 1398 | + ansi-align@3.0.1: | |
| 1399 | + resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==} | |
| 1400 | + | |
| 1401 | + ansi-regex@5.0.1: | |
| 1402 | + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} | |
| 1403 | + engines: {node: '>=8'} | |
| 1404 | + | |
| 1405 | + ansi-regex@6.2.2: | |
| 1406 | + resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==} | |
| 1407 | + engines: {node: '>=12'} | |
| 1408 | + | |
| 1409 | + ansi-styles@6.2.3: | |
| 1410 | + resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} | |
| 1411 | + engines: {node: '>=12'} | |
| 1412 | + | |
| 1413 | + anymatch@3.1.3: | |
| 1414 | + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} | |
| 1415 | + engines: {node: '>= 8'} | |
| 1416 | + | |
| 1417 | + argparse@2.0.1: | |
| 1418 | + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} | |
| 1419 | + | |
| 1420 | + aria-query@5.3.2: | |
| 1421 | + resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==} | |
| 1422 | + engines: {node: '>= 0.4'} | |
| 1423 | + | |
| 1424 | + array-iterate@2.0.1: | |
| 1425 | + resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==} | |
| 1426 | + | |
| 1427 | + assertion-error@2.0.1: | |
| 1428 | + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} | |
| 1429 | + engines: {node: '>=12'} | |
| 1430 | + | |
| 1431 | + astro@5.18.1: | |
| 1432 | + resolution: {integrity: sha512-m4VWilWZ+Xt6NPoYzC4CgGZim/zQUO7WFL0RHCH0AiEavF1153iC3+me2atDvXpf/yX4PyGUeD8wZLq1cirT3g==} | |
| 1433 | + engines: {node: 18.20.8 || ^20.3.0 || >=22.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0'} | |
| 1434 | + hasBin: true | |
| 1435 | + | |
| 1436 | + axobject-query@4.1.0: | |
| 1437 | + resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} | |
| 1438 | + engines: {node: '>= 0.4'} | |
| 1439 | + | |
| 1440 | + babel-plugin-transform-hook-names@1.0.2: | |
| 1441 | + resolution: {integrity: sha512-5gafyjyyBTTdX/tQQ0hRgu4AhNHG/hqWi0ZZmg2xvs2FgRkJXzDNKBZCyoYqgFkovfDrgM8OoKg8karoUvWeCw==} | |
| 1442 | + peerDependencies: | |
| 1443 | + '@babel/core': ^7.12.10 | |
| 1444 | + | |
| 1445 | + bail@2.0.2: | |
| 1446 | + resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==} | |
| 1447 | + | |
| 1448 | + base-64@1.0.0: | |
| 1449 | + resolution: {integrity: sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==} | |
| 1450 | + | |
| 1451 | + baseline-browser-mapping@2.10.11: | |
| 1452 | + resolution: {integrity: sha512-DAKrHphkJyiGuau/cFieRYhcTFeK/lBuD++C7cZ6KZHbMhBrisoi+EvhQ5RZrIfV5qwsW8kgQ07JIC+MDJRAhg==} | |
| 1453 | + engines: {node: '>=6.0.0'} | |
| 1454 | + hasBin: true | |
| 1455 | + | |
| 1456 | + blake3-wasm@2.1.5: | |
| 1457 | + resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} | |
| 1458 | + | |
| 1459 | + boolbase@1.0.0: | |
| 1460 | + resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} | |
| 1461 | + | |
| 1462 | + boxen@8.0.1: | |
| 1463 | + resolution: {integrity: sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw==} | |
| 1464 | + engines: {node: '>=18'} | |
| 1465 | + | |
| 1466 | + browserslist@4.28.1: | |
| 1467 | + resolution: {integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==} | |
| 1468 | + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} | |
| 1469 | + hasBin: true | |
| 1470 | + | |
| 1471 | + cac@6.7.14: | |
| 1472 | + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} | |
| 1473 | + engines: {node: '>=8'} | |
| 1474 | + | |
| 1475 | + camelcase@8.0.0: | |
| 1476 | + resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==} | |
| 1477 | + engines: {node: '>=16'} | |
| 1478 | + | |
| 1479 | + caniuse-lite@1.0.30001781: | |
| 1480 | + resolution: {integrity: sha512-RdwNCyMsNBftLjW6w01z8bKEvT6e/5tpPVEgtn22TiLGlstHOVecsX2KHFkD5e/vRnIE4EGzpuIODb3mtswtkw==} | |
| 1481 | + | |
| 1482 | + ccount@2.0.1: | |
| 1483 | + resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} | |
| 1484 | + | |
| 1485 | + chai@5.3.3: | |
| 1486 | + resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==} | |
| 1487 | + engines: {node: '>=18'} | |
| 1488 | + | |
| 1489 | + chalk@5.6.2: | |
| 1490 | + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} | |
| 1491 | + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} | |
| 1492 | + | |
| 1493 | + character-entities-html4@2.1.0: | |
| 1494 | + resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} | |
| 1495 | + | |
| 1496 | + character-entities-legacy@3.0.0: | |
| 1497 | + resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} | |
| 1498 | + | |
| 1499 | + character-entities@2.0.2: | |
| 1500 | + resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==} | |
| 1501 | + | |
| 1502 | + check-error@2.1.3: | |
| 1503 | + resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==} | |
| 1504 | + engines: {node: '>= 16'} | |
| 1505 | + | |
| 1506 | + chokidar@5.0.0: | |
| 1507 | + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} | |
| 1508 | + engines: {node: '>= 20.19.0'} | |
| 1509 | + | |
| 1510 | + ci-info@4.4.0: | |
| 1511 | + resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==} | |
| 1512 | + engines: {node: '>=8'} | |
| 1513 | + | |
| 1514 | + cli-boxes@3.0.0: | |
| 1515 | + resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==} | |
| 1516 | + engines: {node: '>=10'} | |
| 1517 | + | |
| 1518 | + clsx@2.1.1: | |
| 1519 | + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} | |
| 1520 | + engines: {node: '>=6'} | |
| 1521 | + | |
| 1522 | + comma-separated-tokens@2.0.3: | |
| 1523 | + resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} | |
| 1524 | + | |
| 1525 | + commander@11.1.0: | |
| 1526 | + resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} | |
| 1527 | + engines: {node: '>=16'} | |
| 1528 | + | |
| 1529 | + common-ancestor-path@1.0.1: | |
| 1530 | + resolution: {integrity: sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w==} | |
| 1531 | + | |
| 1532 | + convert-source-map@2.0.0: | |
| 1533 | + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} | |
| 1534 | + | |
| 1535 | + cookie-es@1.2.2: | |
| 1536 | + resolution: {integrity: sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==} | |
| 1537 | + | |
| 1538 | + cookie@1.1.1: | |
| 1539 | + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} | |
| 1540 | + engines: {node: '>=18'} | |
| 1541 | + | |
| 1542 | + crossws@0.3.5: | |
| 1543 | + resolution: {integrity: sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==} | |
| 1544 | + | |
| 1545 | + css-select@5.2.2: | |
| 1546 | + resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==} | |
| 1547 | + | |
| 1548 | + css-tree@2.2.1: | |
| 1549 | + resolution: {integrity: sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==} | |
| 1550 | + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'} | |
| 1551 | + | |
| 1552 | + css-tree@3.2.1: | |
| 1553 | + resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==} | |
| 1554 | + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} | |
| 1555 | + | |
| 1556 | + css-what@6.2.2: | |
| 1557 | + resolution: {integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==} | |
| 1558 | + engines: {node: '>= 6'} | |
| 1559 | + | |
| 1560 | + cssesc@3.0.0: | |
| 1561 | + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} | |
| 1562 | + engines: {node: '>=4'} | |
| 1563 | + hasBin: true | |
| 1564 | + | |
| 1565 | + csso@5.0.5: | |
| 1566 | + resolution: {integrity: sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==} | |
| 1567 | + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'} | |
| 1568 | + | |
| 1569 | + debug@4.4.3: | |
| 1570 | + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} | |
| 1571 | + engines: {node: '>=6.0'} | |
| 1572 | + peerDependencies: | |
| 1573 | + supports-color: '*' | |
| 1574 | + peerDependenciesMeta: | |
| 1575 | + supports-color: | |
| 1576 | + optional: true | |
| 1577 | + | |
| 1578 | + decode-named-character-reference@1.3.0: | |
| 1579 | + resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==} | |
| 1580 | + | |
| 1581 | + deep-eql@5.0.2: | |
| 1582 | + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} | |
| 1583 | + engines: {node: '>=6'} | |
| 1584 | + | |
| 1585 | + defu@6.1.4: | |
| 1586 | + resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==} | |
| 1587 | + | |
| 1588 | + dequal@2.0.3: | |
| 1589 | + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} | |
| 1590 | + engines: {node: '>=6'} | |
| 1591 | + | |
| 1592 | + destr@2.0.5: | |
| 1593 | + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} | |
| 1594 | + | |
| 1595 | + detect-libc@2.1.2: | |
| 1596 | + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} | |
| 1597 | + engines: {node: '>=8'} | |
| 1598 | + | |
| 1599 | + deterministic-object-hash@2.0.2: | |
| 1600 | + resolution: {integrity: sha512-KxektNH63SrbfUyDiwXqRb1rLwKt33AmMv+5Nhsw1kqZ13SJBRTgZHtGbE+hH3a1mVW1cz+4pqSWVPAtLVXTzQ==} | |
| 1601 | + engines: {node: '>=18'} | |
| 1602 | + | |
| 1603 | + devalue@5.6.4: | |
| 1604 | + resolution: {integrity: sha512-Gp6rDldRsFh/7XuouDbxMH3Mx8GMCcgzIb1pDTvNyn8pZGQ22u+Wa+lGV9dQCltFQ7uVw0MhRyb8XDskNFOReA==} | |
| 1605 | + | |
| 1606 | + devlop@1.1.0: | |
| 1607 | + resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} | |
| 1608 | + | |
| 1609 | + diff@8.0.4: | |
| 1610 | + resolution: {integrity: sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==} | |
| 1611 | + engines: {node: '>=0.3.1'} | |
| 1612 | + | |
| 1613 | + dlv@1.1.3: | |
| 1614 | + resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} | |
| 1615 | + | |
| 1616 | + dom-serializer@2.0.0: | |
| 1617 | + resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} | |
| 1618 | + | |
| 1619 | + domelementtype@2.3.0: | |
| 1620 | + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} | |
| 1621 | + | |
| 1622 | + domhandler@5.0.3: | |
| 1623 | + resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} | |
| 1624 | + engines: {node: '>= 4'} | |
| 1625 | + | |
| 1626 | + domutils@3.2.2: | |
| 1627 | + resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} | |
| 1628 | + | |
| 1629 | + dset@3.1.4: | |
| 1630 | + resolution: {integrity: sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==} | |
| 1631 | + engines: {node: '>=4'} | |
| 1632 | + | |
| 1633 | + electron-to-chromium@1.5.325: | |
| 1634 | + resolution: {integrity: sha512-PwfIw7WQSt3xX7yOf5OE/unLzsK9CaN2f/FvV3WjPR1Knoc1T9vePRVV4W1EM301JzzysK51K7FNKcusCr0zYA==} | |
| 1635 | + | |
| 1636 | + emoji-regex@10.6.0: | |
| 1637 | + resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} | |
| 1638 | + | |
| 1639 | + emoji-regex@8.0.0: | |
| 1640 | + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} | |
| 1641 | + | |
| 1642 | + entities@4.5.0: | |
| 1643 | + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} | |
| 1644 | + engines: {node: '>=0.12'} | |
| 1645 | + | |
| 1646 | + entities@6.0.1: | |
| 1647 | + resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} | |
| 1648 | + engines: {node: '>=0.12'} | |
| 1649 | + | |
| 1650 | + error-stack-parser-es@1.0.5: | |
| 1651 | + resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==} | |
| 1652 | + | |
| 1653 | + es-module-lexer@1.7.0: | |
| 1654 | + resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} | |
| 1655 | + | |
| 1656 | + esbuild@0.25.12: | |
| 1657 | + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} | |
| 1658 | + engines: {node: '>=18'} | |
| 1659 | + hasBin: true | |
| 1660 | + | |
| 1661 | + esbuild@0.27.0: | |
| 1662 | + resolution: {integrity: sha512-jd0f4NHbD6cALCyGElNpGAOtWxSq46l9X/sWB0Nzd5er4Kz2YTm+Vl0qKFT9KUJvD8+fiO8AvoHhFvEatfVixA==} | |
| 1663 | + engines: {node: '>=18'} | |
| 1664 | + hasBin: true | |
| 1665 | + | |
| 1666 | + esbuild@0.27.3: | |
| 1667 | + resolution: {integrity: sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==} | |
| 1668 | + engines: {node: '>=18'} | |
| 1669 | + hasBin: true | |
| 1670 | + | |
| 1671 | + esbuild@0.27.4: | |
| 1672 | + resolution: {integrity: sha512-Rq4vbHnYkK5fws5NF7MYTU68FPRE1ajX7heQ/8QXXWqNgqqJ/GkmmyxIzUnf2Sr/bakf8l54716CcMGHYhMrrQ==} | |
| 1673 | + engines: {node: '>=18'} | |
| 1674 | + hasBin: true | |
| 1675 | + | |
| 1676 | + escalade@3.2.0: | |
| 1677 | + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} | |
| 1678 | + engines: {node: '>=6'} | |
| 1679 | + | |
| 1680 | + escape-string-regexp@5.0.0: | |
| 1681 | + resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} | |
| 1682 | + engines: {node: '>=12'} | |
| 1683 | + | |
| 1684 | + estree-walker@2.0.2: | |
| 1685 | + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} | |
| 1686 | + | |
| 1687 | + estree-walker@3.0.3: | |
| 1688 | + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} | |
| 1689 | + | |
| 1690 | + eventemitter3@5.0.4: | |
| 1691 | + resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==} | |
| 1692 | + | |
| 1693 | + expect-type@1.3.0: | |
| 1694 | + resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==} | |
| 1695 | + engines: {node: '>=12.0.0'} | |
| 1696 | + | |
| 1697 | + extend@3.0.2: | |
| 1698 | + resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} | |
| 1699 | + | |
| 1700 | + fdir@6.5.0: | |
| 1701 | + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} | |
| 1702 | + engines: {node: '>=12.0.0'} | |
| 1703 | + peerDependencies: | |
| 1704 | + picomatch: ^3 || ^4 | |
| 1705 | + peerDependenciesMeta: | |
| 1706 | + picomatch: | |
| 1707 | + optional: true | |
| 1708 | + | |
| 1709 | + flattie@1.1.1: | |
| 1710 | + resolution: {integrity: sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==} | |
| 1711 | + engines: {node: '>=8'} | |
| 1712 | + | |
| 1713 | + fontace@0.4.1: | |
| 1714 | + resolution: {integrity: sha512-lDMvbAzSnHmbYMTEld5qdtvNH2/pWpICOqpean9IgC7vUbUJc3k+k5Dokp85CegamqQpFbXf0rAVkbzpyTA8aw==} | |
| 1715 | + | |
| 1716 | + fontkitten@1.0.3: | |
| 1717 | + resolution: {integrity: sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw==} | |
| 1718 | + engines: {node: '>=20'} | |
| 1719 | + | |
| 1720 | + fsevents@2.3.3: | |
| 1721 | + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} | |
| 1722 | + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} | |
| 1723 | + os: [darwin] | |
| 1724 | + | |
| 1725 | + gensync@1.0.0-beta.2: | |
| 1726 | + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} | |
| 1727 | + engines: {node: '>=6.9.0'} | |
| 1728 | + | |
| 1729 | + get-east-asian-width@1.5.0: | |
| 1730 | + resolution: {integrity: sha512-CQ+bEO+Tva/qlmw24dCejulK5pMzVnUOFOijVogd3KQs07HnRIgp8TGipvCCRT06xeYEbpbgwaCxglFyiuIcmA==} | |
| 1731 | + engines: {node: '>=18'} | |
| 1732 | + | |
| 1733 | + github-slugger@2.0.0: | |
| 1734 | + resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==} | |
| 1735 | + | |
| 1736 | + h3@1.15.10: | |
| 1737 | + resolution: {integrity: sha512-YzJeWSkDZxAhvmp8dexjRK5hxziRO7I9m0N53WhvYL5NiWfkUkzssVzY9jvGu0HBoLFW6+duYmNSn6MaZBCCtg==} | |
| 1738 | + | |
| 1739 | + hast-util-from-html@2.0.3: | |
| 1740 | + resolution: {integrity: sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==} | |
| 1741 | + | |
| 1742 | + hast-util-from-parse5@8.0.3: | |
| 1743 | + resolution: {integrity: sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==} | |
| 1744 | + | |
| 1745 | + hast-util-is-element@3.0.0: | |
| 1746 | + resolution: {integrity: sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==} | |
| 1747 | + | |
| 1748 | + hast-util-parse-selector@4.0.0: | |
| 1749 | + resolution: {integrity: sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==} | |
| 1750 | + | |
| 1751 | + hast-util-raw@9.1.0: | |
| 1752 | + resolution: {integrity: sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw==} | |
| 1753 | + | |
| 1754 | + hast-util-to-html@9.0.5: | |
| 1755 | + resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} | |
| 1756 | + | |
| 1757 | + hast-util-to-parse5@8.0.1: | |
| 1758 | + resolution: {integrity: sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA==} | |
| 1759 | + | |
| 1760 | + hast-util-to-text@4.0.2: | |
| 1761 | + resolution: {integrity: sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==} | |
| 1762 | + | |
| 1763 | + hast-util-whitespace@3.0.0: | |
| 1764 | + resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} | |
| 1765 | + | |
| 1766 | + hastscript@9.0.1: | |
| 1767 | + resolution: {integrity: sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==} | |
| 1768 | + | |
| 1769 | + he@1.2.0: | |
| 1770 | + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} | |
| 1771 | + hasBin: true | |
| 1772 | + | |
| 1773 | + html-escaper@3.0.3: | |
| 1774 | + resolution: {integrity: sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==} | |
| 1775 | + | |
| 1776 | + html-void-elements@3.0.0: | |
| 1777 | + resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} | |
| 1778 | + | |
| 1779 | + http-cache-semantics@4.2.0: | |
| 1780 | + resolution: {integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==} | |
| 1781 | + | |
| 1782 | + import-meta-resolve@4.2.0: | |
| 1783 | + resolution: {integrity: sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==} | |
| 1784 | + | |
| 1785 | + iron-webcrypto@1.2.1: | |
| 1786 | + resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==} | |
| 1787 | + | |
| 1788 | + is-docker@3.0.0: | |
| 1789 | + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} | |
| 1790 | + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} | |
| 1791 | + hasBin: true | |
| 1792 | + | |
| 1793 | + is-fullwidth-code-point@3.0.0: | |
| 1794 | + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} | |
| 1795 | + engines: {node: '>=8'} | |
| 1796 | + | |
| 1797 | + is-inside-container@1.0.0: | |
| 1798 | + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} | |
| 1799 | + engines: {node: '>=14.16'} | |
| 1800 | + hasBin: true | |
| 1801 | + | |
| 1802 | + is-plain-obj@4.1.0: | |
| 1803 | + resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} | |
| 1804 | + engines: {node: '>=12'} | |
| 1805 | + | |
| 1806 | + is-wsl@3.1.1: | |
| 1807 | + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} | |
| 1808 | + engines: {node: '>=16'} | |
| 1809 | + | |
| 1810 | + js-tokens@4.0.0: | |
| 1811 | + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} | |
| 1812 | + | |
| 1813 | + js-tokens@9.0.1: | |
| 1814 | + resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} | |
| 1815 | + | |
| 1816 | + js-yaml@4.1.1: | |
| 1817 | + resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} | |
| 1818 | + hasBin: true | |
| 1819 | + | |
| 1820 | + jsesc@3.1.0: | |
| 1821 | + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} | |
| 1822 | + engines: {node: '>=6'} | |
| 1823 | + hasBin: true | |
| 1824 | + | |
| 1825 | + json5@2.2.3: | |
| 1826 | + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} | |
| 1827 | + engines: {node: '>=6'} | |
| 1828 | + hasBin: true | |
| 1829 | + | |
| 1830 | + kleur@3.0.3: | |
| 1831 | + resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} | |
| 1832 | + engines: {node: '>=6'} | |
| 1833 | + | |
| 1834 | + kleur@4.1.5: | |
| 1835 | + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} | |
| 1836 | + engines: {node: '>=6'} | |
| 1837 | + | |
| 1838 | + kolorist@1.8.0: | |
| 1839 | + resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} | |
| 1840 | + | |
| 1841 | + longest-streak@3.1.0: | |
| 1842 | + resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} | |
| 1843 | + | |
| 1844 | + loupe@3.2.1: | |
| 1845 | + resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==} | |
| 1846 | + | |
| 1847 | + lru-cache@11.2.7: | |
| 1848 | + resolution: {integrity: sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==} | |
| 1849 | + engines: {node: 20 || >=22} | |
| 1850 | + | |
| 1851 | + lru-cache@5.1.1: | |
| 1852 | + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} | |
| 1853 | + | |
| 1854 | + magic-string@0.30.21: | |
| 1855 | + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} | |
| 1856 | + | |
| 1857 | + magicast@0.5.2: | |
| 1858 | + resolution: {integrity: sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ==} | |
| 1859 | + | |
| 1860 | + markdown-table@3.0.4: | |
| 1861 | + resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==} | |
| 1862 | + | |
| 1863 | + mdast-util-definitions@6.0.0: | |
| 1864 | + resolution: {integrity: sha512-scTllyX6pnYNZH/AIp/0ePz6s4cZtARxImwoPJ7kS42n+MnVsI4XbnG6d4ibehRIldYMWM2LD7ImQblVhUejVQ==} | |
| 1865 | + | |
| 1866 | + mdast-util-find-and-replace@3.0.2: | |
| 1867 | + resolution: {integrity: sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==} | |
| 1868 | + | |
| 1869 | + mdast-util-from-markdown@2.0.3: | |
| 1870 | + resolution: {integrity: sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==} | |
| 1871 | + | |
| 1872 | + mdast-util-gfm-autolink-literal@2.0.1: | |
| 1873 | + resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==} | |
| 1874 | + | |
| 1875 | + mdast-util-gfm-footnote@2.1.0: | |
| 1876 | + resolution: {integrity: sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==} | |
| 1877 | + | |
| 1878 | + mdast-util-gfm-strikethrough@2.0.0: | |
| 1879 | + resolution: {integrity: sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==} | |
| 1880 | + | |
| 1881 | + mdast-util-gfm-table@2.0.0: | |
| 1882 | + resolution: {integrity: sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==} | |
| 1883 | + | |
| 1884 | + mdast-util-gfm-task-list-item@2.0.0: | |
| 1885 | + resolution: {integrity: sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==} | |
| 1886 | + | |
| 1887 | + mdast-util-gfm@3.1.0: | |
| 1888 | + resolution: {integrity: sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==} | |
| 1889 | + | |
| 1890 | + mdast-util-phrasing@4.1.0: | |
| 1891 | + resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} | |
| 1892 | + | |
| 1893 | + mdast-util-to-hast@13.2.1: | |
| 1894 | + resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==} | |
| 1895 | + | |
| 1896 | + mdast-util-to-markdown@2.1.2: | |
| 1897 | + resolution: {integrity: sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==} | |
| 1898 | + | |
| 1899 | + mdast-util-to-string@4.0.0: | |
| 1900 | + resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} | |
| 1901 | + | |
| 1902 | + mdn-data@2.0.28: | |
| 1903 | + resolution: {integrity: sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==} | |
| 1904 | + | |
| 1905 | + mdn-data@2.27.1: | |
| 1906 | + resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==} | |
| 1907 | + | |
| 1908 | + micromark-core-commonmark@2.0.3: | |
| 1909 | + resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==} | |
| 1910 | + | |
| 1911 | + micromark-extension-gfm-autolink-literal@2.1.0: | |
| 1912 | + resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==} | |
| 1913 | + | |
| 1914 | + micromark-extension-gfm-footnote@2.1.0: | |
| 1915 | + resolution: {integrity: sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==} | |
| 1916 | + | |
| 1917 | + micromark-extension-gfm-strikethrough@2.1.0: | |
| 1918 | + resolution: {integrity: sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==} | |
| 1919 | + | |
| 1920 | + micromark-extension-gfm-table@2.1.1: | |
| 1921 | + resolution: {integrity: sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==} | |
| 1922 | + | |
| 1923 | + micromark-extension-gfm-tagfilter@2.0.0: | |
| 1924 | + resolution: {integrity: sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==} | |
| 1925 | + | |
| 1926 | + micromark-extension-gfm-task-list-item@2.1.0: | |
| 1927 | + resolution: {integrity: sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==} | |
| 1928 | + | |
| 1929 | + micromark-extension-gfm@3.0.0: | |
| 1930 | + resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==} | |
| 1931 | + | |
| 1932 | + micromark-factory-destination@2.0.1: | |
| 1933 | + resolution: {integrity: sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==} | |
| 1934 | + | |
| 1935 | + micromark-factory-label@2.0.1: | |
| 1936 | + resolution: {integrity: sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==} | |
| 1937 | + | |
| 1938 | + micromark-factory-space@2.0.1: | |
| 1939 | + resolution: {integrity: sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==} | |
| 1940 | + | |
| 1941 | + micromark-factory-title@2.0.1: | |
| 1942 | + resolution: {integrity: sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==} | |
| 1943 | + | |
| 1944 | + micromark-factory-whitespace@2.0.1: | |
| 1945 | + resolution: {integrity: sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==} | |
| 1946 | + | |
| 1947 | + micromark-util-character@2.1.1: | |
| 1948 | + resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==} | |
| 1949 | + | |
| 1950 | + micromark-util-chunked@2.0.1: | |
| 1951 | + resolution: {integrity: sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==} | |
| 1952 | + | |
| 1953 | + micromark-util-classify-character@2.0.1: | |
| 1954 | + resolution: {integrity: sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==} | |
| 1955 | + | |
| 1956 | + micromark-util-combine-extensions@2.0.1: | |
| 1957 | + resolution: {integrity: sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==} | |
| 1958 | + | |
| 1959 | + micromark-util-decode-numeric-character-reference@2.0.2: | |
| 1960 | + resolution: {integrity: sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==} | |
| 1961 | + | |
| 1962 | + micromark-util-decode-string@2.0.1: | |
| 1963 | + resolution: {integrity: sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==} | |
| 1964 | + | |
| 1965 | + micromark-util-encode@2.0.1: | |
| 1966 | + resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==} | |
| 1967 | + | |
| 1968 | + micromark-util-html-tag-name@2.0.1: | |
| 1969 | + resolution: {integrity: sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==} | |
| 1970 | + | |
| 1971 | + micromark-util-normalize-identifier@2.0.1: | |
| 1972 | + resolution: {integrity: sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==} | |
| 1973 | + | |
| 1974 | + micromark-util-resolve-all@2.0.1: | |
| 1975 | + resolution: {integrity: sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==} | |
| 1976 | + | |
| 1977 | + micromark-util-sanitize-uri@2.0.1: | |
| 1978 | + resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==} | |
| 1979 | + | |
| 1980 | + micromark-util-subtokenize@2.1.0: | |
| 1981 | + resolution: {integrity: sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==} | |
| 1982 | + | |
| 1983 | + micromark-util-symbol@2.0.1: | |
| 1984 | + resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==} | |
| 1985 | + | |
| 1986 | + micromark-util-types@2.0.2: | |
| 1987 | + resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==} | |
| 1988 | + | |
| 1989 | + micromark@4.0.2: | |
| 1990 | + resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==} | |
| 1991 | + | |
| 1992 | + miniflare@4.20260114.0: | |
| 1993 | + resolution: {integrity: sha512-QwHT7S6XqGdQxIvql1uirH/7/i3zDEt0B/YBXTYzMfJtVCR4+ue3KPkU+Bl0zMxvpgkvjh9+eCHhJbKEqya70A==} | |
| 1994 | + engines: {node: '>=18.0.0'} | |
| 1995 | + hasBin: true | |
| 1996 | + | |
| 1997 | + miniflare@4.20260317.2: | |
| 1998 | + resolution: {integrity: sha512-qNL+yWAFMX6fr0pWU6Lx1vNpPobpnDSF1V8eunIckWvoIQl8y1oBjL2RJFEGY3un+l3f9gwW9dirDPP26usYJQ==} | |
| 1999 | + engines: {node: '>=18.0.0'} | |
| 2000 | + hasBin: true | |
| 2001 | + | |
| 2002 | + mrmime@2.0.1: | |
| 2003 | + resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==} | |
| 2004 | + engines: {node: '>=10'} | |
| 2005 | + | |
| 2006 | + ms@2.1.3: | |
| 2007 | + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} | |
| 2008 | + | |
| 2009 | + nanoid@3.3.11: | |
| 2010 | + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} | |
| 2011 | + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} | |
| 2012 | + hasBin: true | |
| 2013 | + | |
| 2014 | + neotraverse@0.6.18: | |
| 2015 | + resolution: {integrity: sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==} | |
| 2016 | + engines: {node: '>= 10'} | |
| 2017 | + | |
| 2018 | + nlcst-to-string@4.0.0: | |
| 2019 | + resolution: {integrity: sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA==} | |
| 2020 | + | |
| 2021 | + node-fetch-native@1.6.7: | |
| 2022 | + resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==} | |
| 2023 | + | |
| 2024 | + node-html-parser@6.1.13: | |
| 2025 | + resolution: {integrity: sha512-qIsTMOY4C/dAa5Q5vsobRpOOvPfC4pB61UVW2uSwZNUp0QU/jCekTal1vMmbO0DgdHeLUJpv/ARmDqErVxA3Sg==} | |
| 2026 | + | |
| 2027 | + node-mock-http@1.0.4: | |
| 2028 | + resolution: {integrity: sha512-8DY+kFsDkNXy1sJglUfuODx1/opAGJGyrTuFqEoN90oRc2Vk0ZbD4K2qmKXBBEhZQzdKHIVfEJpDU8Ak2NJEvQ==} | |
| 2029 | + | |
| 2030 | + node-releases@2.0.36: | |
| 2031 | + resolution: {integrity: sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==} | |
| 2032 | + | |
| 2033 | + normalize-path@3.0.0: | |
| 2034 | + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} | |
| 2035 | + engines: {node: '>=0.10.0'} | |
| 2036 | + | |
| 2037 | + nth-check@2.1.1: | |
| 2038 | + resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} | |
| 2039 | + | |
| 2040 | + ofetch@1.5.1: | |
| 2041 | + resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==} | |
| 2042 | + | |
| 2043 | + ohash@2.0.11: | |
| 2044 | + resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==} | |
| 2045 | + | |
| 2046 | + oniguruma-parser@0.12.1: | |
| 2047 | + resolution: {integrity: sha512-8Unqkvk1RYc6yq2WBYRj4hdnsAxVze8i7iPfQr8e4uSP3tRv0rpZcbGUDvxfQQcdwHt/e9PrMvGCsa8OqG9X3w==} | |
| 2048 | + | |
| 2049 | + oniguruma-to-es@4.3.5: | |
| 2050 | + resolution: {integrity: sha512-Zjygswjpsewa0NLTsiizVuMQZbp0MDyM6lIt66OxsF21npUDlzpHi1Mgb/qhQdkb+dWFTzJmFbEWdvZgRho8eQ==} | |
| 2051 | + | |
| 2052 | + p-limit@6.2.0: | |
| 2053 | + resolution: {integrity: sha512-kuUqqHNUqoIWp/c467RI4X6mmyuojY5jGutNU0wVTmEOOfcuwLqyMVoAi9MKi2Ak+5i9+nhmrK4ufZE8069kHA==} | |
| 2054 | + engines: {node: '>=18'} | |
| 2055 | + | |
| 2056 | + p-queue@8.1.1: | |
| 2057 | + resolution: {integrity: sha512-aNZ+VfjobsWryoiPnEApGGmf5WmNsCo9xu8dfaYamG5qaLP7ClhLN6NgsFe6SwJ2UbLEBK5dv9x8Mn5+RVhMWQ==} | |
| 2058 | + engines: {node: '>=18'} | |
| 2059 | + | |
| 2060 | + p-timeout@6.1.4: | |
| 2061 | + resolution: {integrity: sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==} | |
| 2062 | + engines: {node: '>=14.16'} | |
| 2063 | + | |
| 2064 | + package-manager-detector@1.6.0: | |
| 2065 | + resolution: {integrity: sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==} | |
| 2066 | + | |
| 2067 | + parse-latin@7.0.0: | |
| 2068 | + resolution: {integrity: sha512-mhHgobPPua5kZ98EF4HWiH167JWBfl4pvAIXXdbaVohtK7a6YBOy56kvhCqduqyo/f3yrHFWmqmiMg/BkBkYYQ==} | |
| 2069 | + | |
| 2070 | + parse5@7.3.0: | |
| 2071 | + resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} | |
| 2072 | + | |
| 2073 | + path-to-regexp@6.3.0: | |
| 2074 | + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} | |
| 2075 | + | |
| 2076 | + pathe@2.0.3: | |
| 2077 | + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} | |
| 2078 | + | |
| 2079 | + pathval@2.0.1: | |
| 2080 | + resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==} | |
| 2081 | + engines: {node: '>= 14.16'} | |
| 2082 | + | |
| 2083 | + piccolore@0.1.3: | |
| 2084 | + resolution: {integrity: sha512-o8bTeDWjE086iwKrROaDf31K0qC/BENdm15/uH9usSC/uZjJOKb2YGiVHfLY4GhwsERiPI1jmwI2XrA7ACOxVw==} | |
| 2085 | + | |
| 2086 | + picocolors@1.1.1: | |
| 2087 | + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} | |
| 2088 | + | |
| 2089 | + picomatch@2.3.2: | |
| 2090 | + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} | |
| 2091 | + engines: {node: '>=8.6'} | |
| 2092 | + | |
| 2093 | + picomatch@4.0.4: | |
| 2094 | + resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} | |
| 2095 | + engines: {node: '>=12'} | |
| 2096 | + | |
| 2097 | + postcss@8.5.8: | |
| 2098 | + resolution: {integrity: sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==} | |
| 2099 | + engines: {node: ^10 || ^12 || >=14} | |
| 2100 | + | |
| 2101 | + preact-render-to-string@6.6.6: | |
| 2102 | + resolution: {integrity: sha512-EfqZJytnjJldV+YaaqhthU2oXsEf5e+6rDv957p+zxAvNfFLQOPfvBOTncscQ+akzu6Wrl7s3Pa0LjUQmWJsGQ==} | |
| 2103 | + peerDependencies: | |
| 2104 | + preact: '>=10 || >= 11.0.0-0' | |
| 2105 | + | |
| 2106 | + preact@10.29.0: | |
| 2107 | + resolution: {integrity: sha512-wSAGyk2bYR1c7t3SZ3jHcM6xy0lcBcDel6lODcs9ME6Th++Dx2KU+6D3HD8wMMKGA8Wpw7OMd3/4RGzYRpzwRg==} | |
| 2108 | + | |
| 2109 | + prismjs@1.30.0: | |
| 2110 | + resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==} | |
| 2111 | + engines: {node: '>=6'} | |
| 2112 | + | |
| 2113 | + prompts@2.4.2: | |
| 2114 | + resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} | |
| 2115 | + engines: {node: '>= 6'} | |
| 2116 | + | |
| 2117 | + property-information@7.1.0: | |
| 2118 | + resolution: {integrity: sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==} | |
| 2119 | + | |
| 2120 | + radix3@1.1.2: | |
| 2121 | + resolution: {integrity: sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==} | |
| 2122 | + | |
| 2123 | + readdirp@5.0.0: | |
| 2124 | + resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==} | |
| 2125 | + engines: {node: '>= 20.19.0'} | |
| 2126 | + | |
| 2127 | + regex-recursion@6.0.2: | |
| 2128 | + resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==} | |
| 2129 | + | |
| 2130 | + regex-utilities@2.3.0: | |
| 2131 | + resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} | |
| 2132 | + | |
| 2133 | + regex@6.1.0: | |
| 2134 | + resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==} | |
| 2135 | + | |
| 2136 | + rehype-parse@9.0.1: | |
| 2137 | + resolution: {integrity: sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==} | |
| 2138 | + | |
| 2139 | + rehype-raw@7.0.0: | |
| 2140 | + resolution: {integrity: sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==} | |
| 2141 | + | |
| 2142 | + rehype-stringify@10.0.1: | |
| 2143 | + resolution: {integrity: sha512-k9ecfXHmIPuFVI61B9DeLPN0qFHfawM6RsuX48hoqlaKSF61RskNjSm1lI8PhBEM0MRdLxVVm4WmTqJQccH9mA==} | |
| 2144 | + | |
| 2145 | + rehype@13.0.2: | |
| 2146 | + resolution: {integrity: sha512-j31mdaRFrwFRUIlxGeuPXXKWQxet52RBQRvCmzl5eCefn/KGbomK5GMHNMsOJf55fgo3qw5tST5neDuarDYR2A==} | |
| 2147 | + | |
| 2148 | + remark-gfm@4.0.1: | |
| 2149 | + resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==} | |
| 2150 | + | |
| 2151 | + remark-parse@11.0.0: | |
| 2152 | + resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==} | |
| 2153 | + | |
| 2154 | + remark-rehype@11.1.2: | |
| 2155 | + resolution: {integrity: sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==} | |
| 2156 | + | |
| 2157 | + remark-smartypants@3.0.2: | |
| 2158 | + resolution: {integrity: sha512-ILTWeOriIluwEvPjv67v7Blgrcx+LZOkAUVtKI3putuhlZm84FnqDORNXPPm+HY3NdZOMhyDwZ1E+eZB/Df5dA==} | |
| 2159 | + engines: {node: '>=16.0.0'} | |
| 2160 | + | |
| 2161 | + remark-stringify@11.0.0: | |
| 2162 | + resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==} | |
| 2163 | + | |
| 2164 | + retext-latin@4.0.0: | |
| 2165 | + resolution: {integrity: sha512-hv9woG7Fy0M9IlRQloq/N6atV82NxLGveq+3H2WOi79dtIYWN8OaxogDm77f8YnVXJL2VD3bbqowu5E3EMhBYA==} | |
| 2166 | + | |
| 2167 | + retext-smartypants@6.2.0: | |
| 2168 | + resolution: {integrity: sha512-kk0jOU7+zGv//kfjXEBjdIryL1Acl4i9XNkHxtM7Tm5lFiCog576fjNC9hjoR7LTKQ0DsPWy09JummSsH1uqfQ==} | |
| 2169 | + | |
| 2170 | + retext-stringify@4.0.0: | |
| 2171 | + resolution: {integrity: sha512-rtfN/0o8kL1e+78+uxPTqu1Klt0yPzKuQ2BfWwwfgIUSayyzxpM1PJzkKt4V8803uB9qSy32MvI7Xep9khTpiA==} | |
| 2172 | + | |
| 2173 | + retext@9.0.0: | |
| 2174 | + resolution: {integrity: sha512-sbMDcpHCNjvlheSgMfEcVrZko3cDzdbe1x/e7G66dFp0Ff7Mldvi2uv6JkJQzdRcvLYE8CA8Oe8siQx8ZOgTcA==} | |
| 2175 | + | |
| 2176 | + rollup@4.60.0: | |
| 2177 | + resolution: {integrity: sha512-yqjxruMGBQJ2gG4HtjZtAfXArHomazDHoFwFFmZZl0r7Pdo7qCIXKqKHZc8yeoMgzJJ+pO6pEEHa+V7uzWlrAQ==} | |
| 2178 | + engines: {node: '>=18.0.0', npm: '>=8.0.0'} | |
| 2179 | + hasBin: true | |
| 2180 | + | |
| 2181 | + sax@1.6.0: | |
| 2182 | + resolution: {integrity: sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==} | |
| 2183 | + engines: {node: '>=11.0.0'} | |
| 2184 | + | |
| 2185 | + semver@6.3.1: | |
| 2186 | + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} | |
| 2187 | + hasBin: true | |
| 2188 | + | |
| 2189 | + semver@7.7.4: | |
| 2190 | + resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==} | |
| 2191 | + engines: {node: '>=10'} | |
| 2192 | + hasBin: true | |
| 2193 | + | |
| 2194 | + sharp@0.34.5: | |
| 2195 | + resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==} | |
| 2196 | + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} | |
| 2197 | + | |
| 2198 | + shiki@3.23.0: | |
| 2199 | + resolution: {integrity: sha512-55Dj73uq9ZXL5zyeRPzHQsK7Nbyt6Y10k5s7OjuFZGMhpp4r/rsLBH0o/0fstIzX1Lep9VxefWljK/SKCzygIA==} | |
| 2200 | + | |
| 2201 | + siginfo@2.0.0: | |
| 2202 | + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} | |
| 2203 | + | |
| 2204 | + simple-code-frame@1.3.0: | |
| 2205 | + resolution: {integrity: sha512-MB4pQmETUBlNs62BBeRjIFGeuy/x6gGKh7+eRUemn1rCFhqo7K+4slPqsyizCbcbYLnaYqaoZ2FWsZ/jN06D8w==} | |
| 2206 | + | |
| 2207 | + sisteransi@1.0.5: | |
| 2208 | + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} | |
| 2209 | + | |
| 2210 | + smol-toml@1.6.1: | |
| 2211 | + resolution: {integrity: sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==} | |
| 2212 | + engines: {node: '>= 18'} | |
| 2213 | + | |
| 2214 | + source-map-js@1.2.1: | |
| 2215 | + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} | |
| 2216 | + engines: {node: '>=0.10.0'} | |
| 2217 | + | |
| 2218 | + source-map@0.7.6: | |
| 2219 | + resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} | |
| 2220 | + engines: {node: '>= 12'} | |
| 2221 | + | |
| 2222 | + space-separated-tokens@2.0.2: | |
| 2223 | + resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} | |
| 2224 | + | |
| 2225 | + stack-trace@1.0.0-pre2: | |
| 2226 | + resolution: {integrity: sha512-2ztBJRek8IVofG9DBJqdy2N5kulaacX30Nz7xmkYF6ale9WBVmIy6mFBchvGX7Vx/MyjBhx+Rcxqrj+dbOnQ6A==} | |
| 2227 | + engines: {node: '>=16'} | |
| 2228 | + | |
| 2229 | + stackback@0.0.2: | |
| 2230 | + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} | |
| 2231 | + | |
| 2232 | + std-env@3.10.0: | |
| 2233 | + resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==} | |
| 2234 | + | |
| 2235 | + string-width@4.2.3: | |
| 2236 | + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} | |
| 2237 | + engines: {node: '>=8'} | |
| 2238 | + | |
| 2239 | + string-width@7.2.0: | |
| 2240 | + resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} | |
| 2241 | + engines: {node: '>=18'} | |
| 2242 | + | |
| 2243 | + stringify-entities@4.0.4: | |
| 2244 | + resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} | |
| 2245 | + | |
| 2246 | + strip-ansi@6.0.1: | |
| 2247 | + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} | |
| 2248 | + engines: {node: '>=8'} | |
| 2249 | + | |
| 2250 | + strip-ansi@7.2.0: | |
| 2251 | + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} | |
| 2252 | + engines: {node: '>=12'} | |
| 2253 | + | |
| 2254 | + strip-literal@3.1.0: | |
| 2255 | + resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==} | |
| 2256 | + | |
| 2257 | + supports-color@10.2.2: | |
| 2258 | + resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==} | |
| 2259 | + engines: {node: '>=18'} | |
| 2260 | + | |
| 2261 | + svgo@4.0.1: | |
| 2262 | + resolution: {integrity: sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w==} | |
| 2263 | + engines: {node: '>=16'} | |
| 2264 | + hasBin: true | |
| 2265 | + | |
| 2266 | + tiny-inflate@1.0.3: | |
| 2267 | + resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==} | |
| 2268 | + | |
| 2269 | + tinybench@2.9.0: | |
| 2270 | + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} | |
| 2271 | + | |
| 2272 | + tinyexec@0.3.2: | |
| 2273 | + resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} | |
| 2274 | + | |
| 2275 | + tinyexec@1.0.4: | |
| 2276 | + resolution: {integrity: sha512-u9r3uZC0bdpGOXtlxUIdwf9pkmvhqJdrVCH9fapQtgy/OeTTMZ1nqH7agtvEfmGui6e1XxjcdrlxvxJvc3sMqw==} | |
| 2277 | + engines: {node: '>=18'} | |
| 2278 | + | |
| 2279 | + tinyglobby@0.2.15: | |
| 2280 | + resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} | |
| 2281 | + engines: {node: '>=12.0.0'} | |
| 2282 | + | |
| 2283 | + tinypool@1.1.1: | |
| 2284 | + resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==} | |
| 2285 | + engines: {node: ^18.0.0 || >=20.0.0} | |
| 2286 | + | |
| 2287 | + tinyrainbow@2.0.0: | |
| 2288 | + resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} | |
| 2289 | + engines: {node: '>=14.0.0'} | |
| 2290 | + | |
| 2291 | + tinyspy@4.0.4: | |
| 2292 | + resolution: {integrity: sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==} | |
| 2293 | + engines: {node: '>=14.0.0'} | |
| 2294 | + | |
| 2295 | + trim-lines@3.0.1: | |
| 2296 | + resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} | |
| 2297 | + | |
| 2298 | + trough@2.2.0: | |
| 2299 | + resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==} | |
| 2300 | + | |
| 2301 | + tsconfck@3.1.6: | |
| 2302 | + resolution: {integrity: sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w==} | |
| 2303 | + engines: {node: ^18 || >=20} | |
| 2304 | + hasBin: true | |
| 2305 | + peerDependencies: | |
| 2306 | + typescript: ^5.0.0 | |
| 2307 | + peerDependenciesMeta: | |
| 2308 | + typescript: | |
| 2309 | + optional: true | |
| 2310 | + | |
| 2311 | + tslib@2.8.1: | |
| 2312 | + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} | |
| 2313 | + | |
| 2314 | + turbo@2.8.20: | |
| 2315 | + resolution: {integrity: sha512-Rb4qk5YT8RUwwdXtkLpkVhNEe/lor6+WV7S5tTlLpxSz6MjV5Qi8jGNn4gS6NAvrYGA/rNrE6YUQM85sCZUDbQ==} | |
| 2316 | + hasBin: true | |
| 2317 | + | |
| 2318 | + type-fest@4.41.0: | |
| 2319 | + resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==} | |
| 2320 | + engines: {node: '>=16'} | |
| 2321 | + | |
| 2322 | + typescript@5.9.3: | |
| 2323 | + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} | |
| 2324 | + engines: {node: '>=14.17'} | |
| 2325 | + hasBin: true | |
| 2326 | + | |
| 2327 | + ufo@1.6.3: | |
| 2328 | + resolution: {integrity: sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==} | |
| 2329 | + | |
| 2330 | + ultrahtml@1.6.0: | |
| 2331 | + resolution: {integrity: sha512-R9fBn90VTJrqqLDwyMph+HGne8eqY1iPfYhPzZrvKpIfwkWZbcYlfpsb8B9dTvBfpy1/hqAD7Wi8EKfP9e8zdw==} | |
| 2332 | + | |
| 2333 | + uncrypto@0.1.3: | |
| 2334 | + resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} | |
| 2335 | + | |
| 2336 | + undici-types@7.18.2: | |
| 2337 | + resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} | |
| 2338 | + | |
| 2339 | + undici@7.14.0: | |
| 2340 | + resolution: {integrity: sha512-Vqs8HTzjpQXZeXdpsfChQTlafcMQaaIwnGwLam1wudSSjlJeQ3bw1j+TLPePgrCnCpUXx7Ba5Pdpf5OBih62NQ==} | |
| 2341 | + engines: {node: '>=20.18.1'} | |
| 2342 | + | |
| 2343 | + undici@7.24.4: | |
| 2344 | + resolution: {integrity: sha512-BM/JzwwaRXxrLdElV2Uo6cTLEjhSb3WXboncJamZ15NgUURmvlXvxa6xkwIOILIjPNo9i8ku136ZvWV0Uly8+w==} | |
| 2345 | + engines: {node: '>=20.18.1'} | |
| 2346 | + | |
| 2347 | + unenv@2.0.0-rc.24: | |
| 2348 | + resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} | |
| 2349 | + | |
| 2350 | + unified@11.0.5: | |
| 2351 | + resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==} | |
| 2352 | + | |
| 2353 | + unifont@0.7.4: | |
| 2354 | + resolution: {integrity: sha512-oHeis4/xl42HUIeHuNZRGEvxj5AaIKR+bHPNegRq5LV1gdc3jundpONbjglKpihmJf+dswygdMJn3eftGIMemg==} | |
| 2355 | + | |
| 2356 | + unist-util-find-after@5.0.0: | |
| 2357 | + resolution: {integrity: sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==} | |
| 2358 | + | |
| 2359 | + unist-util-is@6.0.1: | |
| 2360 | + resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} | |
| 2361 | + | |
| 2362 | + unist-util-modify-children@4.0.0: | |
| 2363 | + resolution: {integrity: sha512-+tdN5fGNddvsQdIzUF3Xx82CU9sMM+fA0dLgR9vOmT0oPT2jH+P1nd5lSqfCfXAw+93NhcXNY2qqvTUtE4cQkw==} | |
| 2364 | + | |
| 2365 | + unist-util-position@5.0.0: | |
| 2366 | + resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} | |
| 2367 | + | |
| 2368 | + unist-util-remove-position@5.0.0: | |
| 2369 | + resolution: {integrity: sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==} | |
| 2370 | + | |
| 2371 | + unist-util-stringify-position@4.0.0: | |
| 2372 | + resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} | |
| 2373 | + | |
| 2374 | + unist-util-visit-children@3.0.0: | |
| 2375 | + resolution: {integrity: sha512-RgmdTfSBOg04sdPcpTSD1jzoNBjt9a80/ZCzp5cI9n1qPzLZWF9YdvWGN2zmTumP1HWhXKdUWexjy/Wy/lJ7tA==} | |
| 2376 | + | |
| 2377 | + unist-util-visit-parents@6.0.2: | |
| 2378 | + resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==} | |
| 2379 | + | |
| 2380 | + unist-util-visit@5.1.0: | |
| 2381 | + resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} | |
| 2382 | + | |
| 2383 | + unstorage@1.17.4: | |
| 2384 | + resolution: {integrity: sha512-fHK0yNg38tBiJKp/Vgsq4j0JEsCmgqH58HAn707S7zGkArbZsVr/CwINoi+nh3h98BRCwKvx1K3Xg9u3VV83sw==} | |
| 2385 | + peerDependencies: | |
| 2386 | + '@azure/app-configuration': ^1.8.0 | |
| 2387 | + '@azure/cosmos': ^4.2.0 | |
| 2388 | + '@azure/data-tables': ^13.3.0 | |
| 2389 | + '@azure/identity': ^4.6.0 | |
| 2390 | + '@azure/keyvault-secrets': ^4.9.0 | |
| 2391 | + '@azure/storage-blob': ^12.26.0 | |
| 2392 | + '@capacitor/preferences': ^6 || ^7 || ^8 | |
| 2393 | + '@deno/kv': '>=0.9.0' | |
| 2394 | + '@netlify/blobs': ^6.5.0 || ^7.0.0 || ^8.1.0 || ^9.0.0 || ^10.0.0 | |
| 2395 | + '@planetscale/database': ^1.19.0 | |
| 2396 | + '@upstash/redis': ^1.34.3 | |
| 2397 | + '@vercel/blob': '>=0.27.1' | |
| 2398 | + '@vercel/functions': ^2.2.12 || ^3.0.0 | |
| 2399 | + '@vercel/kv': ^1 || ^2 || ^3 | |
| 2400 | + aws4fetch: ^1.0.20 | |
| 2401 | + db0: '>=0.2.1' | |
| 2402 | + idb-keyval: ^6.2.1 | |
| 2403 | + ioredis: ^5.4.2 | |
| 2404 | + uploadthing: ^7.4.4 | |
| 2405 | + peerDependenciesMeta: | |
| 2406 | + '@azure/app-configuration': | |
| 2407 | + optional: true | |
| 2408 | + '@azure/cosmos': | |
| 2409 | + optional: true | |
| 2410 | + '@azure/data-tables': | |
| 2411 | + optional: true | |
| 2412 | + '@azure/identity': | |
| 2413 | + optional: true | |
| 2414 | + '@azure/keyvault-secrets': | |
| 2415 | + optional: true | |
| 2416 | + '@azure/storage-blob': | |
| 2417 | + optional: true | |
| 2418 | + '@capacitor/preferences': | |
| 2419 | + optional: true | |
| 2420 | + '@deno/kv': | |
| 2421 | + optional: true | |
| 2422 | + '@netlify/blobs': | |
| 2423 | + optional: true | |
| 2424 | + '@planetscale/database': | |
| 2425 | + optional: true | |
| 2426 | + '@upstash/redis': | |
| 2427 | + optional: true | |
| 2428 | + '@vercel/blob': | |
| 2429 | + optional: true | |
| 2430 | + '@vercel/functions': | |
| 2431 | + optional: true | |
| 2432 | + '@vercel/kv': | |
| 2433 | + optional: true | |
| 2434 | + aws4fetch: | |
| 2435 | + optional: true | |
| 2436 | + db0: | |
| 2437 | + optional: true | |
| 2438 | + idb-keyval: | |
| 2439 | + optional: true | |
| 2440 | + ioredis: | |
| 2441 | + optional: true | |
| 2442 | + uploadthing: | |
| 2443 | + optional: true | |
| 2444 | + | |
| 2445 | + update-browserslist-db@1.2.3: | |
| 2446 | + resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} | |
| 2447 | + hasBin: true | |
| 2448 | + peerDependencies: | |
| 2449 | + browserslist: '>= 4.21.0' | |
| 2450 | + | |
| 2451 | + vfile-location@5.0.3: | |
| 2452 | + resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==} | |
| 2453 | + | |
| 2454 | + vfile-message@4.0.3: | |
| 2455 | + resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} | |
| 2456 | + | |
| 2457 | + vfile@6.0.3: | |
| 2458 | + resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} | |
| 2459 | + | |
| 2460 | + vite-node@3.2.4: | |
| 2461 | + resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} | |
| 2462 | + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} | |
| 2463 | + hasBin: true | |
| 2464 | + | |
| 2465 | + vite-prerender-plugin@0.5.13: | |
| 2466 | + resolution: {integrity: sha512-IKSpYkzDBsKAxa05naRbj7GvNVMSdww/Z/E89oO3xndz+gWnOBOKOAbEXv7qDhktY/j3vHgJmoV1pPzqU2tx9g==} | |
| 2467 | + peerDependencies: | |
| 2468 | + vite: 5.x || 6.x || 7.x || 8.x | |
| 2469 | + | |
| 2470 | + vite@6.4.1: | |
| 2471 | + resolution: {integrity: sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==} | |
| 2472 | + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} | |
| 2473 | + hasBin: true | |
| 2474 | + peerDependencies: | |
| 2475 | + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 | |
| 2476 | + jiti: '>=1.21.0' | |
| 2477 | + less: '*' | |
| 2478 | + lightningcss: ^1.21.0 | |
| 2479 | + sass: '*' | |
| 2480 | + sass-embedded: '*' | |
| 2481 | + stylus: '*' | |
| 2482 | + sugarss: '*' | |
| 2483 | + terser: ^5.16.0 | |
| 2484 | + tsx: ^4.8.1 | |
| 2485 | + yaml: ^2.4.2 | |
| 2486 | + peerDependenciesMeta: | |
| 2487 | + '@types/node': | |
| 2488 | + optional: true | |
| 2489 | + jiti: | |
| 2490 | + optional: true | |
| 2491 | + less: | |
| 2492 | + optional: true | |
| 2493 | + lightningcss: | |
| 2494 | + optional: true | |
| 2495 | + sass: | |
| 2496 | + optional: true | |
| 2497 | + sass-embedded: | |
| 2498 | + optional: true | |
| 2499 | + stylus: | |
| 2500 | + optional: true | |
| 2501 | + sugarss: | |
| 2502 | + optional: true | |
| 2503 | + terser: | |
| 2504 | + optional: true | |
| 2505 | + tsx: | |
| 2506 | + optional: true | |
| 2507 | + yaml: | |
| 2508 | + optional: true | |
| 2509 | + | |
| 2510 | + vite@7.3.1: | |
| 2511 | + resolution: {integrity: sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==} | |
| 2512 | + engines: {node: ^20.19.0 || >=22.12.0} | |
| 2513 | + hasBin: true | |
| 2514 | + peerDependencies: | |
| 2515 | + '@types/node': ^20.19.0 || >=22.12.0 | |
| 2516 | + jiti: '>=1.21.0' | |
| 2517 | + less: ^4.0.0 | |
| 2518 | + lightningcss: ^1.21.0 | |
| 2519 | + sass: ^1.70.0 | |
| 2520 | + sass-embedded: ^1.70.0 | |
| 2521 | + stylus: '>=0.54.8' | |
| 2522 | + sugarss: ^5.0.0 | |
| 2523 | + terser: ^5.16.0 | |
| 2524 | + tsx: ^4.8.1 | |
| 2525 | + yaml: ^2.4.2 | |
| 2526 | + peerDependenciesMeta: | |
| 2527 | + '@types/node': | |
| 2528 | + optional: true | |
| 2529 | + jiti: | |
| 2530 | + optional: true | |
| 2531 | + less: | |
| 2532 | + optional: true | |
| 2533 | + lightningcss: | |
| 2534 | + optional: true | |
| 2535 | + sass: | |
| 2536 | + optional: true | |
| 2537 | + sass-embedded: | |
| 2538 | + optional: true | |
| 2539 | + stylus: | |
| 2540 | + optional: true | |
| 2541 | + sugarss: | |
| 2542 | + optional: true | |
| 2543 | + terser: | |
| 2544 | + optional: true | |
| 2545 | + tsx: | |
| 2546 | + optional: true | |
| 2547 | + yaml: | |
| 2548 | + optional: true | |
| 2549 | + | |
| 2550 | + vitefu@1.1.2: | |
| 2551 | + resolution: {integrity: sha512-zpKATdUbzbsycPFBN71nS2uzBUQiVnFoOrr2rvqv34S1lcAgMKKkjWleLGeiJlZ8lwCXvtWaRn7R3ZC16SYRuw==} | |
| 2552 | + peerDependencies: | |
| 2553 | + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 | |
| 2554 | + peerDependenciesMeta: | |
| 2555 | + vite: | |
| 2556 | + optional: true | |
| 2557 | + | |
| 2558 | + vitest@3.2.4: | |
| 2559 | + resolution: {integrity: sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==} | |
| 2560 | + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} | |
| 2561 | + hasBin: true | |
| 2562 | + peerDependencies: | |
| 2563 | + '@edge-runtime/vm': '*' | |
| 2564 | + '@types/debug': ^4.1.12 | |
| 2565 | + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 | |
| 2566 | + '@vitest/browser': 3.2.4 | |
| 2567 | + '@vitest/ui': 3.2.4 | |
| 2568 | + happy-dom: '*' | |
| 2569 | + jsdom: '*' | |
| 2570 | + peerDependenciesMeta: | |
| 2571 | + '@edge-runtime/vm': | |
| 2572 | + optional: true | |
| 2573 | + '@types/debug': | |
| 2574 | + optional: true | |
| 2575 | + '@types/node': | |
| 2576 | + optional: true | |
| 2577 | + '@vitest/browser': | |
| 2578 | + optional: true | |
| 2579 | + '@vitest/ui': | |
| 2580 | + optional: true | |
| 2581 | + happy-dom: | |
| 2582 | + optional: true | |
| 2583 | + jsdom: | |
| 2584 | + optional: true | |
| 2585 | + | |
| 2586 | + web-namespaces@2.0.1: | |
| 2587 | + resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==} | |
| 2588 | + | |
| 2589 | + which-pm-runs@1.1.0: | |
| 2590 | + resolution: {integrity: sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==} | |
| 2591 | + engines: {node: '>=4'} | |
| 2592 | + | |
| 2593 | + why-is-node-running@2.3.0: | |
| 2594 | + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} | |
| 2595 | + engines: {node: '>=8'} | |
| 2596 | + hasBin: true | |
| 2597 | + | |
| 2598 | + widest-line@5.0.0: | |
| 2599 | + resolution: {integrity: sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==} | |
| 2600 | + engines: {node: '>=18'} | |
| 2601 | + | |
| 2602 | + workerd@1.20260114.0: | |
| 2603 | + resolution: {integrity: sha512-kTJ+jNdIllOzWuVA3NRQRvywP0T135zdCjAE2dAUY1BFbxM6fmMZV8BbskEoQ4hAODVQUfZQmyGctcwvVCKxFA==} | |
| 2604 | + engines: {node: '>=16'} | |
| 2605 | + hasBin: true | |
| 2606 | + | |
| 2607 | + workerd@1.20260317.1: | |
| 2608 | + resolution: {integrity: sha512-ZuEq1OdrJBS+NV+L5HMYPCzVn49a2O60slQiiLpG44jqtlOo+S167fWC76kEXteXLLLydeuRrluRel7WdOUa4g==} | |
| 2609 | + engines: {node: '>=16'} | |
| 2610 | + hasBin: true | |
| 2611 | + | |
| 2612 | + wrangler@4.59.2: | |
| 2613 | + resolution: {integrity: sha512-Z4xn6jFZTaugcOKz42xvRAYKgkVUERHVbuCJ5+f+gK+R6k12L02unakPGOA0L0ejhUl16dqDjKe4tmL9sedHcw==} | |
| 2614 | + engines: {node: '>=20.0.0'} | |
| 2615 | + hasBin: true | |
| 2616 | + peerDependencies: | |
| 2617 | + '@cloudflare/workers-types': ^4.20260114.0 | |
| 2618 | + peerDependenciesMeta: | |
| 2619 | + '@cloudflare/workers-types': | |
| 2620 | + optional: true | |
| 2621 | + | |
| 2622 | + wrangler@4.77.0: | |
| 2623 | + resolution: {integrity: sha512-E2Gm69+K++BFd3QvoWjC290RPQj1vDOUotA++sNHmtKPb7EP6C8Qv+1D5Ii73tfZtyNgakpqHlh8lBBbVWTKAQ==} | |
| 2624 | + engines: {node: '>=20.3.0'} | |
| 2625 | + hasBin: true | |
| 2626 | + peerDependencies: | |
| 2627 | + '@cloudflare/workers-types': ^4.20260317.1 | |
| 2628 | + peerDependenciesMeta: | |
| 2629 | + '@cloudflare/workers-types': | |
| 2630 | + optional: true | |
| 2631 | + | |
| 2632 | + wrap-ansi@9.0.2: | |
| 2633 | + resolution: {integrity: sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==} | |
| 2634 | + engines: {node: '>=18'} | |
| 2635 | + | |
| 2636 | + ws@8.18.0: | |
| 2637 | + resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} | |
| 2638 | + engines: {node: '>=10.0.0'} | |
| 2639 | + peerDependencies: | |
| 2640 | + bufferutil: ^4.0.1 | |
| 2641 | + utf-8-validate: '>=5.0.2' | |
| 2642 | + peerDependenciesMeta: | |
| 2643 | + bufferutil: | |
| 2644 | + optional: true | |
| 2645 | + utf-8-validate: | |
| 2646 | + optional: true | |
| 2647 | + | |
| 2648 | + xxhash-wasm@1.1.0: | |
| 2649 | + resolution: {integrity: sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==} | |
| 2650 | + | |
| 2651 | + yallist@3.1.1: | |
| 2652 | + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} | |
| 2653 | + | |
| 2654 | + yargs-parser@21.1.1: | |
| 2655 | + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} | |
| 2656 | + engines: {node: '>=12'} | |
| 2657 | + | |
| 2658 | + yocto-queue@1.2.2: | |
| 2659 | + resolution: {integrity: sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==} | |
| 2660 | + engines: {node: '>=12.20'} | |
| 2661 | + | |
| 2662 | + yocto-spinner@0.2.3: | |
| 2663 | + resolution: {integrity: sha512-sqBChb33loEnkoXte1bLg45bEBsOP9N1kzQh5JZNKj/0rik4zAPTNSAVPj3uQAdc6slYJ0Ksc403G2XgxsJQFQ==} | |
| 2664 | + engines: {node: '>=18.19'} | |
| 2665 | + | |
| 2666 | + yoctocolors@2.1.2: | |
| 2667 | + resolution: {integrity: sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==} | |
| 2668 | + engines: {node: '>=18'} | |
| 2669 | + | |
| 2670 | + youch-core@0.3.3: | |
| 2671 | + resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==} | |
| 2672 | + | |
| 2673 | + youch@4.1.0-beta.10: | |
| 2674 | + resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==} | |
| 2675 | + | |
| 2676 | + zimmerframe@1.1.4: | |
| 2677 | + resolution: {integrity: sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ==} | |
| 2678 | + | |
| 2679 | + zod-to-json-schema@3.25.1: | |
| 2680 | + resolution: {integrity: sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==} | |
| 2681 | + peerDependencies: | |
| 2682 | + zod: ^3.25 || ^4 | |
| 2683 | + | |
| 2684 | + zod-to-ts@1.2.0: | |
| 2685 | + resolution: {integrity: sha512-x30XE43V+InwGpvTySRNz9kB7qFU8DlyEy7BsSTCHPH1R0QasMmHWZDCzYm6bVXtj/9NNJAZF3jW8rzFvH5OFA==} | |
| 2686 | + peerDependencies: | |
| 2687 | + typescript: ^4.9.4 || ^5.0.2 | |
| 2688 | + zod: ^3 | |
| 2689 | + | |
| 2690 | + zod@3.25.76: | |
| 2691 | + resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} | |
| 2692 | + | |
| 2693 | + zwitch@2.0.4: | |
| 2694 | + resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} | |
| 2695 | + | |
| 2696 | +snapshots: | |
| 2697 | + | |
| 2698 | + '@astrojs/cloudflare@12.6.13(@types/node@25.5.0)(astro@5.18.1(@types/node@25.5.0)(rollup@4.60.0)(typescript@5.9.3))': | |
| 2699 | + dependencies: | |
| 2700 | + '@astrojs/internal-helpers': 0.7.6 | |
| 2701 | + '@astrojs/underscore-redirects': 1.0.0 | |
| 2702 | + '@cloudflare/workers-types': 4.20260317.1 | |
| 2703 | + astro: 5.18.1(@types/node@25.5.0)(rollup@4.60.0)(typescript@5.9.3) | |
| 2704 | + tinyglobby: 0.2.15 | |
| 2705 | + vite: 6.4.1(@types/node@25.5.0) | |
| 2706 | + wrangler: 4.59.2(@cloudflare/workers-types@4.20260317.1) | |
| 2707 | + transitivePeerDependencies: | |
| 2708 | + - '@types/node' | |
| 2709 | + - bufferutil | |
| 2710 | + - jiti | |
| 2711 | + - less | |
| 2712 | + - lightningcss | |
| 2713 | + - sass | |
| 2714 | + - sass-embedded | |
| 2715 | + - stylus | |
| 2716 | + - sugarss | |
| 2717 | + - terser | |
| 2718 | + - tsx | |
| 2719 | + - utf-8-validate | |
| 2720 | + - yaml | |
| 2721 | + | |
| 2722 | + '@astrojs/compiler@2.13.1': {} | |
| 2723 | + | |
| 2724 | + '@astrojs/internal-helpers@0.7.6': {} | |
| 2725 | + | |
| 2726 | + '@astrojs/markdown-remark@6.3.11': | |
| 2727 | + dependencies: | |
| 2728 | + '@astrojs/internal-helpers': 0.7.6 | |
| 2729 | + '@astrojs/prism': 3.3.0 | |
| 2730 | + github-slugger: 2.0.0 | |
| 2731 | + hast-util-from-html: 2.0.3 | |
| 2732 | + hast-util-to-text: 4.0.2 | |
| 2733 | + import-meta-resolve: 4.2.0 | |
| 2734 | + js-yaml: 4.1.1 | |
| 2735 | + mdast-util-definitions: 6.0.0 | |
| 2736 | + rehype-raw: 7.0.0 | |
| 2737 | + rehype-stringify: 10.0.1 | |
| 2738 | + remark-gfm: 4.0.1 | |
| 2739 | + remark-parse: 11.0.0 | |
| 2740 | + remark-rehype: 11.1.2 | |
| 2741 | + remark-smartypants: 3.0.2 | |
| 2742 | + shiki: 3.23.0 | |
| 2743 | + smol-toml: 1.6.1 | |
| 2744 | + unified: 11.0.5 | |
| 2745 | + unist-util-remove-position: 5.0.0 | |
| 2746 | + unist-util-visit: 5.1.0 | |
| 2747 | + unist-util-visit-parents: 6.0.2 | |
| 2748 | + vfile: 6.0.3 | |
| 2749 | + transitivePeerDependencies: | |
| 2750 | + - supports-color | |
| 2751 | + | |
| 2752 | + '@astrojs/preact@4.1.3(@babel/core@7.29.0)(@types/node@25.5.0)(preact@10.29.0)(rollup@4.60.0)': | |
| 2753 | + dependencies: | |
| 2754 | + '@preact/preset-vite': 2.10.5(@babel/core@7.29.0)(preact@10.29.0)(rollup@4.60.0)(vite@6.4.1(@types/node@25.5.0)) | |
| 2755 | + '@preact/signals': 2.8.2(preact@10.29.0) | |
| 2756 | + preact: 10.29.0 | |
| 2757 | + preact-render-to-string: 6.6.6(preact@10.29.0) | |
| 2758 | + vite: 6.4.1(@types/node@25.5.0) | |
| 2759 | + transitivePeerDependencies: | |
| 2760 | + - '@babel/core' | |
| 2761 | + - '@types/node' | |
| 2762 | + - jiti | |
| 2763 | + - less | |
| 2764 | + - lightningcss | |
| 2765 | + - rollup | |
| 2766 | + - sass | |
| 2767 | + - sass-embedded | |
| 2768 | + - stylus | |
| 2769 | + - sugarss | |
| 2770 | + - supports-color | |
| 2771 | + - terser | |
| 2772 | + - tsx | |
| 2773 | + - yaml | |
| 2774 | + | |
| 2775 | + '@astrojs/prism@3.3.0': | |
| 2776 | + dependencies: | |
| 2777 | + prismjs: 1.30.0 | |
| 2778 | + | |
| 2779 | + '@astrojs/telemetry@3.3.0': | |
| 2780 | + dependencies: | |
| 2781 | + ci-info: 4.4.0 | |
| 2782 | + debug: 4.4.3 | |
| 2783 | + dlv: 1.1.3 | |
| 2784 | + dset: 3.1.4 | |
| 2785 | + is-docker: 3.0.0 | |
| 2786 | + is-wsl: 3.1.1 | |
| 2787 | + which-pm-runs: 1.1.0 | |
| 2788 | + transitivePeerDependencies: | |
| 2789 | + - supports-color | |
| 2790 | + | |
| 2791 | + '@astrojs/underscore-redirects@1.0.0': {} | |
| 2792 | + | |
| 2793 | + '@babel/code-frame@7.29.0': | |
| 2794 | + dependencies: | |
| 2795 | + '@babel/helper-validator-identifier': 7.28.5 | |
| 2796 | + js-tokens: 4.0.0 | |
| 2797 | + picocolors: 1.1.1 | |
| 2798 | + | |
| 2799 | + '@babel/compat-data@7.29.0': {} | |
| 2800 | + | |
| 2801 | + '@babel/core@7.29.0': | |
| 2802 | + dependencies: | |
| 2803 | + '@babel/code-frame': 7.29.0 | |
| 2804 | + '@babel/generator': 7.29.1 | |
| 2805 | + '@babel/helper-compilation-targets': 7.28.6 | |
| 2806 | + '@babel/helper-module-transforms': 7.28.6(@babel/core@7.29.0) | |
| 2807 | + '@babel/helpers': 7.29.2 | |
| 2808 | + '@babel/parser': 7.29.2 | |
| 2809 | + '@babel/template': 7.28.6 | |
| 2810 | + '@babel/traverse': 7.29.0 | |
| 2811 | + '@babel/types': 7.29.0 | |
| 2812 | + '@jridgewell/remapping': 2.3.5 | |
| 2813 | + convert-source-map: 2.0.0 | |
| 2814 | + debug: 4.4.3 | |
| 2815 | + gensync: 1.0.0-beta.2 | |
| 2816 | + json5: 2.2.3 | |
| 2817 | + semver: 6.3.1 | |
| 2818 | + transitivePeerDependencies: | |
| 2819 | + - supports-color | |
| 2820 | + | |
| 2821 | + '@babel/generator@7.29.1': | |
| 2822 | + dependencies: | |
| 2823 | + '@babel/parser': 7.29.2 | |
| 2824 | + '@babel/types': 7.29.0 | |
| 2825 | + '@jridgewell/gen-mapping': 0.3.13 | |
| 2826 | + '@jridgewell/trace-mapping': 0.3.31 | |
| 2827 | + jsesc: 3.1.0 | |
| 2828 | + | |
| 2829 | + '@babel/helper-annotate-as-pure@7.27.3': | |
| 2830 | + dependencies: | |
| 2831 | + '@babel/types': 7.29.0 | |
| 2832 | + | |
| 2833 | + '@babel/helper-compilation-targets@7.28.6': | |
| 2834 | + dependencies: | |
| 2835 | + '@babel/compat-data': 7.29.0 | |
| 2836 | + '@babel/helper-validator-option': 7.27.1 | |
| 2837 | + browserslist: 4.28.1 | |
| 2838 | + lru-cache: 5.1.1 | |
| 2839 | + semver: 6.3.1 | |
| 2840 | + | |
| 2841 | + '@babel/helper-globals@7.28.0': {} | |
| 2842 | + | |
| 2843 | + '@babel/helper-module-imports@7.28.6': | |
| 2844 | + dependencies: | |
| 2845 | + '@babel/traverse': 7.29.0 | |
| 2846 | + '@babel/types': 7.29.0 | |
| 2847 | + transitivePeerDependencies: | |
| 2848 | + - supports-color | |
| 2849 | + | |
| 2850 | + '@babel/helper-module-transforms@7.28.6(@babel/core@7.29.0)': | |
| 2851 | + dependencies: | |
| 2852 | + '@babel/core': 7.29.0 | |
| 2853 | + '@babel/helper-module-imports': 7.28.6 | |
| 2854 | + '@babel/helper-validator-identifier': 7.28.5 | |
| 2855 | + '@babel/traverse': 7.29.0 | |
| 2856 | + transitivePeerDependencies: | |
| 2857 | + - supports-color | |
| 2858 | + | |
| 2859 | + '@babel/helper-plugin-utils@7.28.6': {} | |
| 2860 | + | |
| 2861 | + '@babel/helper-string-parser@7.27.1': {} | |
| 2862 | + | |
| 2863 | + '@babel/helper-validator-identifier@7.28.5': {} | |
| 2864 | + | |
| 2865 | + '@babel/helper-validator-option@7.27.1': {} | |
| 2866 | + | |
| 2867 | + '@babel/helpers@7.29.2': | |
| 2868 | + dependencies: | |
| 2869 | + '@babel/template': 7.28.6 | |
| 2870 | + '@babel/types': 7.29.0 | |
| 2871 | + | |
| 2872 | + '@babel/parser@7.29.2': | |
| 2873 | + dependencies: | |
| 2874 | + '@babel/types': 7.29.0 | |
| 2875 | + | |
| 2876 | + '@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0)': | |
| 2877 | + dependencies: | |
| 2878 | + '@babel/core': 7.29.0 | |
| 2879 | + '@babel/helper-plugin-utils': 7.28.6 | |
| 2880 | + | |
| 2881 | + '@babel/plugin-transform-react-jsx-development@7.27.1(@babel/core@7.29.0)': | |
| 2882 | + dependencies: | |
| 2883 | + '@babel/core': 7.29.0 | |
| 2884 | + '@babel/plugin-transform-react-jsx': 7.28.6(@babel/core@7.29.0) | |
| 2885 | + transitivePeerDependencies: | |
| 2886 | + - supports-color | |
| 2887 | + | |
| 2888 | + '@babel/plugin-transform-react-jsx@7.28.6(@babel/core@7.29.0)': | |
| 2889 | + dependencies: | |
| 2890 | + '@babel/core': 7.29.0 | |
| 2891 | + '@babel/helper-annotate-as-pure': 7.27.3 | |
| 2892 | + '@babel/helper-module-imports': 7.28.6 | |
| 2893 | + '@babel/helper-plugin-utils': 7.28.6 | |
| 2894 | + '@babel/plugin-syntax-jsx': 7.28.6(@babel/core@7.29.0) | |
| 2895 | + '@babel/types': 7.29.0 | |
| 2896 | + transitivePeerDependencies: | |
| 2897 | + - supports-color | |
| 2898 | + | |
| 2899 | + '@babel/template@7.28.6': | |
| 2900 | + dependencies: | |
| 2901 | + '@babel/code-frame': 7.29.0 | |
| 2902 | + '@babel/parser': 7.29.2 | |
| 2903 | + '@babel/types': 7.29.0 | |
| 2904 | + | |
| 2905 | + '@babel/traverse@7.29.0': | |
| 2906 | + dependencies: | |
| 2907 | + '@babel/code-frame': 7.29.0 | |
| 2908 | + '@babel/generator': 7.29.1 | |
| 2909 | + '@babel/helper-globals': 7.28.0 | |
| 2910 | + '@babel/parser': 7.29.2 | |
| 2911 | + '@babel/template': 7.28.6 | |
| 2912 | + '@babel/types': 7.29.0 | |
| 2913 | + debug: 4.4.3 | |
| 2914 | + transitivePeerDependencies: | |
| 2915 | + - supports-color | |
| 2916 | + | |
| 2917 | + '@babel/types@7.29.0': | |
| 2918 | + dependencies: | |
| 2919 | + '@babel/helper-string-parser': 7.27.1 | |
| 2920 | + '@babel/helper-validator-identifier': 7.28.5 | |
| 2921 | + | |
| 2922 | + '@capsizecss/unpack@4.0.0': | |
| 2923 | + dependencies: | |
| 2924 | + fontkitten: 1.0.3 | |
| 2925 | + | |
| 2926 | + '@cloudflare/kv-asset-handler@0.4.2': {} | |
| 2927 | + | |
| 2928 | + '@cloudflare/unenv-preset@2.10.0(unenv@2.0.0-rc.24)(workerd@1.20260114.0)': | |
| 2929 | + dependencies: | |
| 2930 | + unenv: 2.0.0-rc.24 | |
| 2931 | + optionalDependencies: | |
| 2932 | + workerd: 1.20260114.0 | |
| 2933 | + | |
| 2934 | + '@cloudflare/unenv-preset@2.16.0(unenv@2.0.0-rc.24)(workerd@1.20260317.1)': | |
| 2935 | + dependencies: | |
| 2936 | + unenv: 2.0.0-rc.24 | |
| 2937 | + optionalDependencies: | |
| 2938 | + workerd: 1.20260317.1 | |
| 2939 | + | |
| 2940 | + '@cloudflare/workerd-darwin-64@1.20260114.0': | |
| 2941 | + optional: true | |
| 2942 | + | |
| 2943 | + '@cloudflare/workerd-darwin-64@1.20260317.1': | |
| 2944 | + optional: true | |
| 2945 | + | |
| 2946 | + '@cloudflare/workerd-darwin-arm64@1.20260114.0': | |
| 2947 | + optional: true | |
| 2948 | + | |
| 2949 | + '@cloudflare/workerd-darwin-arm64@1.20260317.1': | |
| 2950 | + optional: true | |
| 2951 | + | |
| 2952 | + '@cloudflare/workerd-linux-64@1.20260114.0': | |
| 2953 | + optional: true | |
| 2954 | + | |
| 2955 | + '@cloudflare/workerd-linux-64@1.20260317.1': | |
| 2956 | + optional: true | |
| 2957 | + | |
| 2958 | + '@cloudflare/workerd-linux-arm64@1.20260114.0': | |
| 2959 | + optional: true | |
| 2960 | + | |
| 2961 | + '@cloudflare/workerd-linux-arm64@1.20260317.1': | |
| 2962 | + optional: true | |
| 2963 | + | |
| 2964 | + '@cloudflare/workerd-windows-64@1.20260114.0': | |
| 2965 | + optional: true | |
| 2966 | + | |
| 2967 | + '@cloudflare/workerd-windows-64@1.20260317.1': | |
| 2968 | + optional: true | |
| 2969 | + | |
| 2970 | + '@cloudflare/workers-types@4.20260317.1': {} | |
| 2971 | + | |
| 2972 | + '@cspotcode/source-map-support@0.8.1': | |
| 2973 | + dependencies: | |
| 2974 | + '@jridgewell/trace-mapping': 0.3.9 | |
| 2975 | + | |
| 2976 | + '@emnapi/runtime@1.9.1': | |
| 2977 | + dependencies: | |
| 2978 | + tslib: 2.8.1 | |
| 2979 | + optional: true | |
| 2980 | + | |
| 2981 | + '@esbuild/aix-ppc64@0.25.12': | |
| 2982 | + optional: true | |
| 2983 | + | |
| 2984 | + '@esbuild/aix-ppc64@0.27.0': | |
| 2985 | + optional: true | |
| 2986 | + | |
| 2987 | + '@esbuild/aix-ppc64@0.27.3': | |
| 2988 | + optional: true | |
| 2989 | + | |
| 2990 | + '@esbuild/aix-ppc64@0.27.4': | |
| 2991 | + optional: true | |
| 2992 | + | |
| 2993 | + '@esbuild/android-arm64@0.25.12': | |
| 2994 | + optional: true | |
| 2995 | + | |
| 2996 | + '@esbuild/android-arm64@0.27.0': | |
| 2997 | + optional: true | |
| 2998 | + | |
| 2999 | + '@esbuild/android-arm64@0.27.3': | |
| 3000 | + optional: true | |
| 3001 | + | |
| 3002 | + '@esbuild/android-arm64@0.27.4': | |
| 3003 | + optional: true | |
| 3004 | + | |
| 3005 | + '@esbuild/android-arm@0.25.12': | |
| 3006 | + optional: true | |
| 3007 | + | |
| 3008 | + '@esbuild/android-arm@0.27.0': | |
| 3009 | + optional: true | |
| 3010 | + | |
| 3011 | + '@esbuild/android-arm@0.27.3': | |
| 3012 | + optional: true | |
| 3013 | + | |
| 3014 | + '@esbuild/android-arm@0.27.4': | |
| 3015 | + optional: true | |
| 3016 | + | |
| 3017 | + '@esbuild/android-x64@0.25.12': | |
| 3018 | + optional: true | |
| 3019 | + | |
| 3020 | + '@esbuild/android-x64@0.27.0': | |
| 3021 | + optional: true | |
| 3022 | + | |
| 3023 | + '@esbuild/android-x64@0.27.3': | |
| 3024 | + optional: true | |
| 3025 | + | |
| 3026 | + '@esbuild/android-x64@0.27.4': | |
| 3027 | + optional: true | |
| 3028 | + | |
| 3029 | + '@esbuild/darwin-arm64@0.25.12': | |
| 3030 | + optional: true | |
| 3031 | + | |
| 3032 | + '@esbuild/darwin-arm64@0.27.0': | |
| 3033 | + optional: true | |
| 3034 | + | |
| 3035 | + '@esbuild/darwin-arm64@0.27.3': | |
| 3036 | + optional: true | |
| 3037 | + | |
| 3038 | + '@esbuild/darwin-arm64@0.27.4': | |
| 3039 | + optional: true | |
| 3040 | + | |
| 3041 | + '@esbuild/darwin-x64@0.25.12': | |
| 3042 | + optional: true | |
| 3043 | + | |
| 3044 | + '@esbuild/darwin-x64@0.27.0': | |
| 3045 | + optional: true | |
| 3046 | + | |
| 3047 | + '@esbuild/darwin-x64@0.27.3': | |
| 3048 | + optional: true | |
| 3049 | + | |
| 3050 | + '@esbuild/darwin-x64@0.27.4': | |
| 3051 | + optional: true | |
| 3052 | + | |
| 3053 | + '@esbuild/freebsd-arm64@0.25.12': | |
| 3054 | + optional: true | |
| 3055 | + | |
| 3056 | + '@esbuild/freebsd-arm64@0.27.0': | |
| 3057 | + optional: true | |
| 3058 | + | |
| 3059 | + '@esbuild/freebsd-arm64@0.27.3': | |
| 3060 | + optional: true | |
| 3061 | + | |
| 3062 | + '@esbuild/freebsd-arm64@0.27.4': | |
| 3063 | + optional: true | |
| 3064 | + | |
| 3065 | + '@esbuild/freebsd-x64@0.25.12': | |
| 3066 | + optional: true | |
| 3067 | + | |
| 3068 | + '@esbuild/freebsd-x64@0.27.0': | |
| 3069 | + optional: true | |
| 3070 | + | |
| 3071 | + '@esbuild/freebsd-x64@0.27.3': | |
| 3072 | + optional: true | |
| 3073 | + | |
| 3074 | + '@esbuild/freebsd-x64@0.27.4': | |
| 3075 | + optional: true | |
| 3076 | + | |
| 3077 | + '@esbuild/linux-arm64@0.25.12': | |
| 3078 | + optional: true | |
| 3079 | + | |
| 3080 | + '@esbuild/linux-arm64@0.27.0': | |
| 3081 | + optional: true | |
| 3082 | + | |
| 3083 | + '@esbuild/linux-arm64@0.27.3': | |
| 3084 | + optional: true | |
| 3085 | + | |
| 3086 | + '@esbuild/linux-arm64@0.27.4': | |
| 3087 | + optional: true | |
| 3088 | + | |
| 3089 | + '@esbuild/linux-arm@0.25.12': | |
| 3090 | + optional: true | |
| 3091 | + | |
| 3092 | + '@esbuild/linux-arm@0.27.0': | |
| 3093 | + optional: true | |
| 3094 | + | |
| 3095 | + '@esbuild/linux-arm@0.27.3': | |
| 3096 | + optional: true | |
| 3097 | + | |
| 3098 | + '@esbuild/linux-arm@0.27.4': | |
| 3099 | + optional: true | |
| 3100 | + | |
| 3101 | + '@esbuild/linux-ia32@0.25.12': | |
| 3102 | + optional: true | |
| 3103 | + | |
| 3104 | + '@esbuild/linux-ia32@0.27.0': | |
| 3105 | + optional: true | |
| 3106 | + | |
| 3107 | + '@esbuild/linux-ia32@0.27.3': | |
| 3108 | + optional: true | |
| 3109 | + | |
| 3110 | + '@esbuild/linux-ia32@0.27.4': | |
| 3111 | + optional: true | |
| 3112 | + | |
| 3113 | + '@esbuild/linux-loong64@0.25.12': | |
| 3114 | + optional: true | |
| 3115 | + | |
| 3116 | + '@esbuild/linux-loong64@0.27.0': | |
| 3117 | + optional: true | |
| 3118 | + | |
| 3119 | + '@esbuild/linux-loong64@0.27.3': | |
| 3120 | + optional: true | |
| 3121 | + | |
| 3122 | + '@esbuild/linux-loong64@0.27.4': | |
| 3123 | + optional: true | |
| 3124 | + | |
| 3125 | + '@esbuild/linux-mips64el@0.25.12': | |
| 3126 | + optional: true | |
| 3127 | + | |
| 3128 | + '@esbuild/linux-mips64el@0.27.0': | |
| 3129 | + optional: true | |
| 3130 | + | |
| 3131 | + '@esbuild/linux-mips64el@0.27.3': | |
| 3132 | + optional: true | |
| 3133 | + | |
| 3134 | + '@esbuild/linux-mips64el@0.27.4': | |
| 3135 | + optional: true | |
| 3136 | + | |
| 3137 | + '@esbuild/linux-ppc64@0.25.12': | |
| 3138 | + optional: true | |
| 3139 | + | |
| 3140 | + '@esbuild/linux-ppc64@0.27.0': | |
| 3141 | + optional: true | |
| 3142 | + | |
| 3143 | + '@esbuild/linux-ppc64@0.27.3': | |
| 3144 | + optional: true | |
| 3145 | + | |
| 3146 | + '@esbuild/linux-ppc64@0.27.4': | |
| 3147 | + optional: true | |
| 3148 | + | |
| 3149 | + '@esbuild/linux-riscv64@0.25.12': | |
| 3150 | + optional: true | |
| 3151 | + | |
| 3152 | + '@esbuild/linux-riscv64@0.27.0': | |
| 3153 | + optional: true | |
| 3154 | + | |
| 3155 | + '@esbuild/linux-riscv64@0.27.3': | |
| 3156 | + optional: true | |
| 3157 | + | |
| 3158 | + '@esbuild/linux-riscv64@0.27.4': | |
| 3159 | + optional: true | |
| 3160 | + | |
| 3161 | + '@esbuild/linux-s390x@0.25.12': | |
| 3162 | + optional: true | |
| 3163 | + | |
| 3164 | + '@esbuild/linux-s390x@0.27.0': | |
| 3165 | + optional: true | |
| 3166 | + | |
| 3167 | + '@esbuild/linux-s390x@0.27.3': | |
| 3168 | + optional: true | |
| 3169 | + | |
| 3170 | + '@esbuild/linux-s390x@0.27.4': | |
| 3171 | + optional: true | |
| 3172 | + | |
| 3173 | + '@esbuild/linux-x64@0.25.12': | |
| 3174 | + optional: true | |
| 3175 | + | |
| 3176 | + '@esbuild/linux-x64@0.27.0': | |
| 3177 | + optional: true | |
| 3178 | + | |
| 3179 | + '@esbuild/linux-x64@0.27.3': | |
| 3180 | + optional: true | |
| 3181 | + | |
| 3182 | + '@esbuild/linux-x64@0.27.4': | |
| 3183 | + optional: true | |
| 3184 | + | |
| 3185 | + '@esbuild/netbsd-arm64@0.25.12': | |
| 3186 | + optional: true | |
| 3187 | + | |
| 3188 | + '@esbuild/netbsd-arm64@0.27.0': | |
| 3189 | + optional: true | |
| 3190 | + | |
| 3191 | + '@esbuild/netbsd-arm64@0.27.3': | |
| 3192 | + optional: true | |
| 3193 | + | |
| 3194 | + '@esbuild/netbsd-arm64@0.27.4': | |
| 3195 | + optional: true | |
| 3196 | + | |
| 3197 | + '@esbuild/netbsd-x64@0.25.12': | |
| 3198 | + optional: true | |
| 3199 | + | |
| 3200 | + '@esbuild/netbsd-x64@0.27.0': | |
| 3201 | + optional: true | |
| 3202 | + | |
| 3203 | + '@esbuild/netbsd-x64@0.27.3': | |
| 3204 | + optional: true | |
| 3205 | + | |
| 3206 | + '@esbuild/netbsd-x64@0.27.4': | |
| 3207 | + optional: true | |
| 3208 | + | |
| 3209 | + '@esbuild/openbsd-arm64@0.25.12': | |
| 3210 | + optional: true | |
| 3211 | + | |
| 3212 | + '@esbuild/openbsd-arm64@0.27.0': | |
| 3213 | + optional: true | |
| 3214 | + | |
| 3215 | + '@esbuild/openbsd-arm64@0.27.3': | |
| 3216 | + optional: true | |
| 3217 | + | |
| 3218 | + '@esbuild/openbsd-arm64@0.27.4': | |
| 3219 | + optional: true | |
| 3220 | + | |
| 3221 | + '@esbuild/openbsd-x64@0.25.12': | |
| 3222 | + optional: true | |
| 3223 | + | |
| 3224 | + '@esbuild/openbsd-x64@0.27.0': | |
| 3225 | + optional: true | |
| 3226 | + | |
| 3227 | + '@esbuild/openbsd-x64@0.27.3': | |
| 3228 | + optional: true | |
| 3229 | + | |
| 3230 | + '@esbuild/openbsd-x64@0.27.4': | |
| 3231 | + optional: true | |
| 3232 | + | |
| 3233 | + '@esbuild/openharmony-arm64@0.25.12': | |
| 3234 | + optional: true | |
| 3235 | + | |
| 3236 | + '@esbuild/openharmony-arm64@0.27.0': | |
| 3237 | + optional: true | |
| 3238 | + | |
| 3239 | + '@esbuild/openharmony-arm64@0.27.3': | |
| 3240 | + optional: true | |
| 3241 | + | |
| 3242 | + '@esbuild/openharmony-arm64@0.27.4': | |
| 3243 | + optional: true | |
| 3244 | + | |
| 3245 | + '@esbuild/sunos-x64@0.25.12': | |
| 3246 | + optional: true | |
| 3247 | + | |
| 3248 | + '@esbuild/sunos-x64@0.27.0': | |
| 3249 | + optional: true | |
| 3250 | + | |
| 3251 | + '@esbuild/sunos-x64@0.27.3': | |
| 3252 | + optional: true | |
| 3253 | + | |
| 3254 | + '@esbuild/sunos-x64@0.27.4': | |
| 3255 | + optional: true | |
| 3256 | + | |
| 3257 | + '@esbuild/win32-arm64@0.25.12': | |
| 3258 | + optional: true | |
| 3259 | + | |
| 3260 | + '@esbuild/win32-arm64@0.27.0': | |
| 3261 | + optional: true | |
| 3262 | + | |
| 3263 | + '@esbuild/win32-arm64@0.27.3': | |
| 3264 | + optional: true | |
| 3265 | + | |
| 3266 | + '@esbuild/win32-arm64@0.27.4': | |
| 3267 | + optional: true | |
| 3268 | + | |
| 3269 | + '@esbuild/win32-ia32@0.25.12': | |
| 3270 | + optional: true | |
| 3271 | + | |
| 3272 | + '@esbuild/win32-ia32@0.27.0': | |
| 3273 | + optional: true | |
| 3274 | + | |
| 3275 | + '@esbuild/win32-ia32@0.27.3': | |
| 3276 | + optional: true | |
| 3277 | + | |
| 3278 | + '@esbuild/win32-ia32@0.27.4': | |
| 3279 | + optional: true | |
| 3280 | + | |
| 3281 | + '@esbuild/win32-x64@0.25.12': | |
| 3282 | + optional: true | |
| 3283 | + | |
| 3284 | + '@esbuild/win32-x64@0.27.0': | |
| 3285 | + optional: true | |
| 3286 | + | |
| 3287 | + '@esbuild/win32-x64@0.27.3': | |
| 3288 | + optional: true | |
| 3289 | + | |
| 3290 | + '@esbuild/win32-x64@0.27.4': | |
| 3291 | + optional: true | |
| 3292 | + | |
| 3293 | + '@img/colour@1.1.0': {} | |
| 3294 | + | |
| 3295 | + '@img/sharp-darwin-arm64@0.34.5': | |
| 3296 | + optionalDependencies: | |
| 3297 | + '@img/sharp-libvips-darwin-arm64': 1.2.4 | |
| 3298 | + optional: true | |
| 3299 | + | |
| 3300 | + '@img/sharp-darwin-x64@0.34.5': | |
| 3301 | + optionalDependencies: | |
| 3302 | + '@img/sharp-libvips-darwin-x64': 1.2.4 | |
| 3303 | + optional: true | |
| 3304 | + | |
| 3305 | + '@img/sharp-libvips-darwin-arm64@1.2.4': | |
| 3306 | + optional: true | |
| 3307 | + | |
| 3308 | + '@img/sharp-libvips-darwin-x64@1.2.4': | |
| 3309 | + optional: true | |
| 3310 | + | |
| 3311 | + '@img/sharp-libvips-linux-arm64@1.2.4': | |
| 3312 | + optional: true | |
| 3313 | + | |
| 3314 | + '@img/sharp-libvips-linux-arm@1.2.4': | |
| 3315 | + optional: true | |
| 3316 | + | |
| 3317 | + '@img/sharp-libvips-linux-ppc64@1.2.4': | |
| 3318 | + optional: true | |
| 3319 | + | |
| 3320 | + '@img/sharp-libvips-linux-riscv64@1.2.4': | |
| 3321 | + optional: true | |
| 3322 | + | |
| 3323 | + '@img/sharp-libvips-linux-s390x@1.2.4': | |
| 3324 | + optional: true | |
| 3325 | + | |
| 3326 | + '@img/sharp-libvips-linux-x64@1.2.4': | |
| 3327 | + optional: true | |
| 3328 | + | |
| 3329 | + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': | |
| 3330 | + optional: true | |
| 3331 | + | |
| 3332 | + '@img/sharp-libvips-linuxmusl-x64@1.2.4': | |
| 3333 | + optional: true | |
| 3334 | + | |
| 3335 | + '@img/sharp-linux-arm64@0.34.5': | |
| 3336 | + optionalDependencies: | |
| 3337 | + '@img/sharp-libvips-linux-arm64': 1.2.4 | |
| 3338 | + optional: true | |
| 3339 | + | |
| 3340 | + '@img/sharp-linux-arm@0.34.5': | |
| 3341 | + optionalDependencies: | |
| 3342 | + '@img/sharp-libvips-linux-arm': 1.2.4 | |
| 3343 | + optional: true | |
| 3344 | + | |
| 3345 | + '@img/sharp-linux-ppc64@0.34.5': | |
| 3346 | + optionalDependencies: | |
| 3347 | + '@img/sharp-libvips-linux-ppc64': 1.2.4 | |
| 3348 | + optional: true | |
| 3349 | + | |
| 3350 | + '@img/sharp-linux-riscv64@0.34.5': | |
| 3351 | + optionalDependencies: | |
| 3352 | + '@img/sharp-libvips-linux-riscv64': 1.2.4 | |
| 3353 | + optional: true | |
| 3354 | + | |
| 3355 | + '@img/sharp-linux-s390x@0.34.5': | |
| 3356 | + optionalDependencies: | |
| 3357 | + '@img/sharp-libvips-linux-s390x': 1.2.4 | |
| 3358 | + optional: true | |
| 3359 | + | |
| 3360 | + '@img/sharp-linux-x64@0.34.5': | |
| 3361 | + optionalDependencies: | |
| 3362 | + '@img/sharp-libvips-linux-x64': 1.2.4 | |
| 3363 | + optional: true | |
| 3364 | + | |
| 3365 | + '@img/sharp-linuxmusl-arm64@0.34.5': | |
| 3366 | + optionalDependencies: | |
| 3367 | + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 | |
| 3368 | + optional: true | |
| 3369 | + | |
| 3370 | + '@img/sharp-linuxmusl-x64@0.34.5': | |
| 3371 | + optionalDependencies: | |
| 3372 | + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 | |
| 3373 | + optional: true | |
| 3374 | + | |
| 3375 | + '@img/sharp-wasm32@0.34.5': | |
| 3376 | + dependencies: | |
| 3377 | + '@emnapi/runtime': 1.9.1 | |
| 3378 | + optional: true | |
| 3379 | + | |
| 3380 | + '@img/sharp-win32-arm64@0.34.5': | |
| 3381 | + optional: true | |
| 3382 | + | |
| 3383 | + '@img/sharp-win32-ia32@0.34.5': | |
| 3384 | + optional: true | |
| 3385 | + | |
| 3386 | + '@img/sharp-win32-x64@0.34.5': | |
| 3387 | + optional: true | |
| 3388 | + | |
| 3389 | + '@jridgewell/gen-mapping@0.3.13': | |
| 3390 | + dependencies: | |
| 3391 | + '@jridgewell/sourcemap-codec': 1.5.5 | |
| 3392 | + '@jridgewell/trace-mapping': 0.3.31 | |
| 3393 | + | |
| 3394 | + '@jridgewell/remapping@2.3.5': | |
| 3395 | + dependencies: | |
| 3396 | + '@jridgewell/gen-mapping': 0.3.13 | |
| 3397 | + '@jridgewell/trace-mapping': 0.3.31 | |
| 3398 | + | |
| 3399 | + '@jridgewell/resolve-uri@3.1.2': {} | |
| 3400 | + | |
| 3401 | + '@jridgewell/sourcemap-codec@1.5.5': {} | |
| 3402 | + | |
| 3403 | + '@jridgewell/trace-mapping@0.3.31': | |
| 3404 | + dependencies: | |
| 3405 | + '@jridgewell/resolve-uri': 3.1.2 | |
| 3406 | + '@jridgewell/sourcemap-codec': 1.5.5 | |
| 3407 | + | |
| 3408 | + '@jridgewell/trace-mapping@0.3.9': | |
| 3409 | + dependencies: | |
| 3410 | + '@jridgewell/resolve-uri': 3.1.2 | |
| 3411 | + '@jridgewell/sourcemap-codec': 1.5.5 | |
| 3412 | + | |
| 3413 | + '@oslojs/encoding@1.1.0': {} | |
| 3414 | + | |
| 3415 | + '@poppinss/colors@4.1.6': | |
| 3416 | + dependencies: | |
| 3417 | + kleur: 4.1.5 | |
| 3418 | + | |
| 3419 | + '@poppinss/dumper@0.6.5': | |
| 3420 | + dependencies: | |
| 3421 | + '@poppinss/colors': 4.1.6 | |
| 3422 | + '@sindresorhus/is': 7.2.0 | |
| 3423 | + supports-color: 10.2.2 | |
| 3424 | + | |
| 3425 | + '@poppinss/exception@1.2.3': {} | |
| 3426 | + | |
| 3427 | + '@preact/preset-vite@2.10.5(@babel/core@7.29.0)(preact@10.29.0)(rollup@4.60.0)(vite@6.4.1(@types/node@25.5.0))': | |
| 3428 | + dependencies: | |
| 3429 | + '@babel/core': 7.29.0 | |
| 3430 | + '@babel/plugin-transform-react-jsx': 7.28.6(@babel/core@7.29.0) | |
| 3431 | + '@babel/plugin-transform-react-jsx-development': 7.27.1(@babel/core@7.29.0) | |
| 3432 | + '@prefresh/vite': 2.4.12(preact@10.29.0)(vite@6.4.1(@types/node@25.5.0)) | |
| 3433 | + '@rollup/pluginutils': 5.3.0(rollup@4.60.0) | |
| 3434 | + babel-plugin-transform-hook-names: 1.0.2(@babel/core@7.29.0) | |
| 3435 | + debug: 4.4.3 | |
| 3436 | + magic-string: 0.30.21 | |
| 3437 | + picocolors: 1.1.1 | |
| 3438 | + vite: 6.4.1(@types/node@25.5.0) | |
| 3439 | + vite-prerender-plugin: 0.5.13(vite@6.4.1(@types/node@25.5.0)) | |
| 3440 | + zimmerframe: 1.1.4 | |
| 3441 | + transitivePeerDependencies: | |
| 3442 | + - preact | |
| 3443 | + - rollup | |
| 3444 | + - supports-color | |
| 3445 | + | |
| 3446 | + '@preact/signals-core@1.14.0': {} | |
| 3447 | + | |
| 3448 | + '@preact/signals@2.8.2(preact@10.29.0)': | |
| 3449 | + dependencies: | |
| 3450 | + '@preact/signals-core': 1.14.0 | |
| 3451 | + preact: 10.29.0 | |
| 3452 | + | |
| 3453 | + '@prefresh/babel-plugin@0.5.3': {} | |
| 3454 | + | |
| 3455 | + '@prefresh/core@1.5.9(preact@10.29.0)': | |
| 3456 | + dependencies: | |
| 3457 | + preact: 10.29.0 | |
| 3458 | + | |
| 3459 | + '@prefresh/utils@1.2.1': {} | |
| 3460 | + | |
| 3461 | + '@prefresh/vite@2.4.12(preact@10.29.0)(vite@6.4.1(@types/node@25.5.0))': | |
| 3462 | + dependencies: | |
| 3463 | + '@babel/core': 7.29.0 | |
| 3464 | + '@prefresh/babel-plugin': 0.5.3 | |
| 3465 | + '@prefresh/core': 1.5.9(preact@10.29.0) | |
| 3466 | + '@prefresh/utils': 1.2.1 | |
| 3467 | + '@rollup/pluginutils': 4.2.1 | |
| 3468 | + preact: 10.29.0 | |
| 3469 | + vite: 6.4.1(@types/node@25.5.0) | |
| 3470 | + transitivePeerDependencies: | |
| 3471 | + - supports-color | |
| 3472 | + | |
| 3473 | + '@rollup/pluginutils@4.2.1': | |
| 3474 | + dependencies: | |
| 3475 | + estree-walker: 2.0.2 | |
| 3476 | + picomatch: 2.3.2 | |
| 3477 | + | |
| 3478 | + '@rollup/pluginutils@5.3.0(rollup@4.60.0)': | |
| 3479 | + dependencies: | |
| 3480 | + '@types/estree': 1.0.8 | |
| 3481 | + estree-walker: 2.0.2 | |
| 3482 | + picomatch: 4.0.4 | |
| 3483 | + optionalDependencies: | |
| 3484 | + rollup: 4.60.0 | |
| 3485 | + | |
| 3486 | + '@rollup/rollup-android-arm-eabi@4.60.0': | |
| 3487 | + optional: true | |
| 3488 | + | |
| 3489 | + '@rollup/rollup-android-arm64@4.60.0': | |
| 3490 | + optional: true | |
| 3491 | + | |
| 3492 | + '@rollup/rollup-darwin-arm64@4.60.0': | |
| 3493 | + optional: true | |
| 3494 | + | |
| 3495 | + '@rollup/rollup-darwin-x64@4.60.0': | |
| 3496 | + optional: true | |
| 3497 | + | |
| 3498 | + '@rollup/rollup-freebsd-arm64@4.60.0': | |
| 3499 | + optional: true | |
| 3500 | + | |
| 3501 | + '@rollup/rollup-freebsd-x64@4.60.0': | |
| 3502 | + optional: true | |
| 3503 | + | |
| 3504 | + '@rollup/rollup-linux-arm-gnueabihf@4.60.0': | |
| 3505 | + optional: true | |
| 3506 | + | |
| 3507 | + '@rollup/rollup-linux-arm-musleabihf@4.60.0': | |
| 3508 | + optional: true | |
| 3509 | + | |
| 3510 | + '@rollup/rollup-linux-arm64-gnu@4.60.0': | |
| 3511 | + optional: true | |
| 3512 | + | |
| 3513 | + '@rollup/rollup-linux-arm64-musl@4.60.0': | |
| 3514 | + optional: true | |
| 3515 | + | |
| 3516 | + '@rollup/rollup-linux-loong64-gnu@4.60.0': | |
| 3517 | + optional: true | |
| 3518 | + | |
| 3519 | + '@rollup/rollup-linux-loong64-musl@4.60.0': | |
| 3520 | + optional: true | |
| 3521 | + | |
| 3522 | + '@rollup/rollup-linux-ppc64-gnu@4.60.0': | |
| 3523 | + optional: true | |
| 3524 | + | |
| 3525 | + '@rollup/rollup-linux-ppc64-musl@4.60.0': | |
| 3526 | + optional: true | |
| 3527 | + | |
| 3528 | + '@rollup/rollup-linux-riscv64-gnu@4.60.0': | |
| 3529 | + optional: true | |
| 3530 | + | |
| 3531 | + '@rollup/rollup-linux-riscv64-musl@4.60.0': | |
| 3532 | + optional: true | |
| 3533 | + | |
| 3534 | + '@rollup/rollup-linux-s390x-gnu@4.60.0': | |
| 3535 | + optional: true | |
| 3536 | + | |
| 3537 | + '@rollup/rollup-linux-x64-gnu@4.60.0': | |
| 3538 | + optional: true | |
| 3539 | + | |
| 3540 | + '@rollup/rollup-linux-x64-musl@4.60.0': | |
| 3541 | + optional: true | |
| 3542 | + | |
| 3543 | + '@rollup/rollup-openbsd-x64@4.60.0': | |
| 3544 | + optional: true | |
| 3545 | + | |
| 3546 | + '@rollup/rollup-openharmony-arm64@4.60.0': | |
| 3547 | + optional: true | |
| 3548 | + | |
| 3549 | + '@rollup/rollup-win32-arm64-msvc@4.60.0': | |
| 3550 | + optional: true | |
| 3551 | + | |
| 3552 | + '@rollup/rollup-win32-ia32-msvc@4.60.0': | |
| 3553 | + optional: true | |
| 3554 | + | |
| 3555 | + '@rollup/rollup-win32-x64-gnu@4.60.0': | |
| 3556 | + optional: true | |
| 3557 | + | |
| 3558 | + '@rollup/rollup-win32-x64-msvc@4.60.0': | |
| 3559 | + optional: true | |
| 3560 | + | |
| 3561 | + '@shikijs/core@3.23.0': | |
| 3562 | + dependencies: | |
| 3563 | + '@shikijs/types': 3.23.0 | |
| 3564 | + '@shikijs/vscode-textmate': 10.0.2 | |
| 3565 | + '@types/hast': 3.0.4 | |
| 3566 | + hast-util-to-html: 9.0.5 | |
| 3567 | + | |
| 3568 | + '@shikijs/engine-javascript@3.23.0': | |
| 3569 | + dependencies: | |
| 3570 | + '@shikijs/types': 3.23.0 | |
| 3571 | + '@shikijs/vscode-textmate': 10.0.2 | |
| 3572 | + oniguruma-to-es: 4.3.5 | |
| 3573 | + | |
| 3574 | + '@shikijs/engine-oniguruma@3.23.0': | |
| 3575 | + dependencies: | |
| 3576 | + '@shikijs/types': 3.23.0 | |
| 3577 | + '@shikijs/vscode-textmate': 10.0.2 | |
| 3578 | + | |
| 3579 | + '@shikijs/langs@3.23.0': | |
| 3580 | + dependencies: | |
| 3581 | + '@shikijs/types': 3.23.0 | |
| 3582 | + | |
| 3583 | + '@shikijs/themes@3.23.0': | |
| 3584 | + dependencies: | |
| 3585 | + '@shikijs/types': 3.23.0 | |
| 3586 | + | |
| 3587 | + '@shikijs/types@3.23.0': | |
| 3588 | + dependencies: | |
| 3589 | + '@shikijs/vscode-textmate': 10.0.2 | |
| 3590 | + '@types/hast': 3.0.4 | |
| 3591 | + | |
| 3592 | + '@shikijs/vscode-textmate@10.0.2': {} | |
| 3593 | + | |
| 3594 | + '@sindresorhus/is@7.2.0': {} | |
| 3595 | + | |
| 3596 | + '@speed-highlight/core@1.2.15': {} | |
| 3597 | + | |
| 3598 | + '@turbo/darwin-64@2.8.20': | |
| 3599 | + optional: true | |
| 3600 | + | |
| 3601 | + '@turbo/darwin-arm64@2.8.20': | |
| 3602 | + optional: true | |
| 3603 | + | |
| 3604 | + '@turbo/linux-64@2.8.20': | |
| 3605 | + optional: true | |
| 3606 | + | |
| 3607 | + '@turbo/linux-arm64@2.8.20': | |
| 3608 | + optional: true | |
| 3609 | + | |
| 3610 | + '@turbo/windows-64@2.8.20': | |
| 3611 | + optional: true | |
| 3612 | + | |
| 3613 | + '@turbo/windows-arm64@2.8.20': | |
| 3614 | + optional: true | |
| 3615 | + | |
| 3616 | + '@types/chai@5.2.3': | |
| 3617 | + dependencies: | |
| 3618 | + '@types/deep-eql': 4.0.2 | |
| 3619 | + assertion-error: 2.0.1 | |
| 3620 | + | |
| 3621 | + '@types/debug@4.1.13': | |
| 3622 | + dependencies: | |
| 3623 | + '@types/ms': 2.1.0 | |
| 3624 | + | |
| 3625 | + '@types/deep-eql@4.0.2': {} | |
| 3626 | + | |
| 3627 | + '@types/estree@1.0.8': {} | |
| 3628 | + | |
| 3629 | + '@types/hast@3.0.4': | |
| 3630 | + dependencies: | |
| 3631 | + '@types/unist': 3.0.3 | |
| 3632 | + | |
| 3633 | + '@types/mdast@4.0.4': | |
| 3634 | + dependencies: | |
| 3635 | + '@types/unist': 3.0.3 | |
| 3636 | + | |
| 3637 | + '@types/ms@2.1.0': {} | |
| 3638 | + | |
| 3639 | + '@types/nlcst@2.0.3': | |
| 3640 | + dependencies: | |
| 3641 | + '@types/unist': 3.0.3 | |
| 3642 | + | |
| 3643 | + '@types/node@25.5.0': | |
| 3644 | + dependencies: | |
| 3645 | + undici-types: 7.18.2 | |
| 3646 | + | |
| 3647 | + '@types/unist@3.0.3': {} | |
| 3648 | + | |
| 3649 | + '@ungap/structured-clone@1.3.0': {} | |
| 3650 | + | |
| 3651 | + '@vitest/expect@3.2.4': | |
| 3652 | + dependencies: | |
| 3653 | + '@types/chai': 5.2.3 | |
| 3654 | + '@vitest/spy': 3.2.4 | |
| 3655 | + '@vitest/utils': 3.2.4 | |
| 3656 | + chai: 5.3.3 | |
| 3657 | + tinyrainbow: 2.0.0 | |
| 3658 | + | |
| 3659 | + '@vitest/mocker@3.2.4(vite@7.3.1(@types/node@25.5.0))': | |
| 3660 | + dependencies: | |
| 3661 | + '@vitest/spy': 3.2.4 | |
| 3662 | + estree-walker: 3.0.3 | |
| 3663 | + magic-string: 0.30.21 | |
| 3664 | + optionalDependencies: | |
| 3665 | + vite: 7.3.1(@types/node@25.5.0) | |
| 3666 | + | |
| 3667 | + '@vitest/pretty-format@3.2.4': | |
| 3668 | + dependencies: | |
| 3669 | + tinyrainbow: 2.0.0 | |
| 3670 | + | |
| 3671 | + '@vitest/runner@3.2.4': | |
| 3672 | + dependencies: | |
| 3673 | + '@vitest/utils': 3.2.4 | |
| 3674 | + pathe: 2.0.3 | |
| 3675 | + strip-literal: 3.1.0 | |
| 3676 | + | |
| 3677 | + '@vitest/snapshot@3.2.4': | |
| 3678 | + dependencies: | |
| 3679 | + '@vitest/pretty-format': 3.2.4 | |
| 3680 | + magic-string: 0.30.21 | |
| 3681 | + pathe: 2.0.3 | |
| 3682 | + | |
| 3683 | + '@vitest/spy@3.2.4': | |
| 3684 | + dependencies: | |
| 3685 | + tinyspy: 4.0.4 | |
| 3686 | + | |
| 3687 | + '@vitest/utils@3.2.4': | |
| 3688 | + dependencies: | |
| 3689 | + '@vitest/pretty-format': 3.2.4 | |
| 3690 | + loupe: 3.2.1 | |
| 3691 | + tinyrainbow: 2.0.0 | |
| 3692 | + | |
| 3693 | + acorn@8.16.0: {} | |
| 3694 | + | |
| 3695 | + ansi-align@3.0.1: | |
| 3696 | + dependencies: | |
| 3697 | + string-width: 4.2.3 | |
| 3698 | + | |
| 3699 | + ansi-regex@5.0.1: {} | |
| 3700 | + | |
| 3701 | + ansi-regex@6.2.2: {} | |
| 3702 | + | |
| 3703 | + ansi-styles@6.2.3: {} | |
| 3704 | + | |
| 3705 | + anymatch@3.1.3: | |
| 3706 | + dependencies: | |
| 3707 | + normalize-path: 3.0.0 | |
| 3708 | + picomatch: 2.3.2 | |
| 3709 | + | |
| 3710 | + argparse@2.0.1: {} | |
| 3711 | + | |
| 3712 | + aria-query@5.3.2: {} | |
| 3713 | + | |
| 3714 | + array-iterate@2.0.1: {} | |
| 3715 | + | |
| 3716 | + assertion-error@2.0.1: {} | |
| 3717 | + | |
| 3718 | + astro@5.18.1(@types/node@25.5.0)(rollup@4.60.0)(typescript@5.9.3): | |
| 3719 | + dependencies: | |
| 3720 | + '@astrojs/compiler': 2.13.1 | |
| 3721 | + '@astrojs/internal-helpers': 0.7.6 | |
| 3722 | + '@astrojs/markdown-remark': 6.3.11 | |
| 3723 | + '@astrojs/telemetry': 3.3.0 | |
| 3724 | + '@capsizecss/unpack': 4.0.0 | |
| 3725 | + '@oslojs/encoding': 1.1.0 | |
| 3726 | + '@rollup/pluginutils': 5.3.0(rollup@4.60.0) | |
| 3727 | + acorn: 8.16.0 | |
| 3728 | + aria-query: 5.3.2 | |
| 3729 | + axobject-query: 4.1.0 | |
| 3730 | + boxen: 8.0.1 | |
| 3731 | + ci-info: 4.4.0 | |
| 3732 | + clsx: 2.1.1 | |
| 3733 | + common-ancestor-path: 1.0.1 | |
| 3734 | + cookie: 1.1.1 | |
| 3735 | + cssesc: 3.0.0 | |
| 3736 | + debug: 4.4.3 | |
| 3737 | + deterministic-object-hash: 2.0.2 | |
| 3738 | + devalue: 5.6.4 | |
| 3739 | + diff: 8.0.4 | |
| 3740 | + dlv: 1.1.3 | |
| 3741 | + dset: 3.1.4 | |
| 3742 | + es-module-lexer: 1.7.0 | |
| 3743 | + esbuild: 0.27.4 | |
| 3744 | + estree-walker: 3.0.3 | |
| 3745 | + flattie: 1.1.1 | |
| 3746 | + fontace: 0.4.1 | |
| 3747 | + github-slugger: 2.0.0 | |
| 3748 | + html-escaper: 3.0.3 | |
| 3749 | + http-cache-semantics: 4.2.0 | |
| 3750 | + import-meta-resolve: 4.2.0 | |
| 3751 | + js-yaml: 4.1.1 | |
| 3752 | + magic-string: 0.30.21 | |
| 3753 | + magicast: 0.5.2 | |
| 3754 | + mrmime: 2.0.1 | |
| 3755 | + neotraverse: 0.6.18 | |
| 3756 | + p-limit: 6.2.0 | |
| 3757 | + p-queue: 8.1.1 | |
| 3758 | + package-manager-detector: 1.6.0 | |
| 3759 | + piccolore: 0.1.3 | |
| 3760 | + picomatch: 4.0.4 | |
| 3761 | + prompts: 2.4.2 | |
| 3762 | + rehype: 13.0.2 | |
| 3763 | + semver: 7.7.4 | |
| 3764 | + shiki: 3.23.0 | |
| 3765 | + smol-toml: 1.6.1 | |
| 3766 | + svgo: 4.0.1 | |
| 3767 | + tinyexec: 1.0.4 | |
| 3768 | + tinyglobby: 0.2.15 | |
| 3769 | + tsconfck: 3.1.6(typescript@5.9.3) | |
| 3770 | + ultrahtml: 1.6.0 | |
| 3771 | + unifont: 0.7.4 | |
| 3772 | + unist-util-visit: 5.1.0 | |
| 3773 | + unstorage: 1.17.4 | |
| 3774 | + vfile: 6.0.3 | |
| 3775 | + vite: 6.4.1(@types/node@25.5.0) | |
| 3776 | + vitefu: 1.1.2(vite@6.4.1(@types/node@25.5.0)) | |
| 3777 | + xxhash-wasm: 1.1.0 | |
| 3778 | + yargs-parser: 21.1.1 | |
| 3779 | + yocto-spinner: 0.2.3 | |
| 3780 | + zod: 3.25.76 | |
| 3781 | + zod-to-json-schema: 3.25.1(zod@3.25.76) | |
| 3782 | + zod-to-ts: 1.2.0(typescript@5.9.3)(zod@3.25.76) | |
| 3783 | + optionalDependencies: | |
| 3784 | + sharp: 0.34.5 | |
| 3785 | + transitivePeerDependencies: | |
| 3786 | + - '@azure/app-configuration' | |
| 3787 | + - '@azure/cosmos' | |
| 3788 | + - '@azure/data-tables' | |
| 3789 | + - '@azure/identity' | |
| 3790 | + - '@azure/keyvault-secrets' | |
| 3791 | + - '@azure/storage-blob' | |
| 3792 | + - '@capacitor/preferences' | |
| 3793 | + - '@deno/kv' | |
| 3794 | + - '@netlify/blobs' | |
| 3795 | + - '@planetscale/database' | |
| 3796 | + - '@types/node' | |
| 3797 | + - '@upstash/redis' | |
| 3798 | + - '@vercel/blob' | |
| 3799 | + - '@vercel/functions' | |
| 3800 | + - '@vercel/kv' | |
| 3801 | + - aws4fetch | |
| 3802 | + - db0 | |
| 3803 | + - idb-keyval | |
| 3804 | + - ioredis | |
| 3805 | + - jiti | |
| 3806 | + - less | |
| 3807 | + - lightningcss | |
| 3808 | + - rollup | |
| 3809 | + - sass | |
| 3810 | + - sass-embedded | |
| 3811 | + - stylus | |
| 3812 | + - sugarss | |
| 3813 | + - supports-color | |
| 3814 | + - terser | |
| 3815 | + - tsx | |
| 3816 | + - typescript | |
| 3817 | + - uploadthing | |
| 3818 | + - yaml | |
| 3819 | + | |
| 3820 | + axobject-query@4.1.0: {} | |
| 3821 | + | |
| 3822 | + babel-plugin-transform-hook-names@1.0.2(@babel/core@7.29.0): | |
| 3823 | + dependencies: | |
| 3824 | + '@babel/core': 7.29.0 | |
| 3825 | + | |
| 3826 | + bail@2.0.2: {} | |
| 3827 | + | |
| 3828 | + base-64@1.0.0: {} | |
| 3829 | + | |
| 3830 | + baseline-browser-mapping@2.10.11: {} | |
| 3831 | + | |
| 3832 | + blake3-wasm@2.1.5: {} | |
| 3833 | + | |
| 3834 | + boolbase@1.0.0: {} | |
| 3835 | + | |
| 3836 | + boxen@8.0.1: | |
| 3837 | + dependencies: | |
| 3838 | + ansi-align: 3.0.1 | |
| 3839 | + camelcase: 8.0.0 | |
| 3840 | + chalk: 5.6.2 | |
| 3841 | + cli-boxes: 3.0.0 | |
| 3842 | + string-width: 7.2.0 | |
| 3843 | + type-fest: 4.41.0 | |
| 3844 | + widest-line: 5.0.0 | |
| 3845 | + wrap-ansi: 9.0.2 | |
| 3846 | + | |
| 3847 | + browserslist@4.28.1: | |
| 3848 | + dependencies: | |
| 3849 | + baseline-browser-mapping: 2.10.11 | |
| 3850 | + caniuse-lite: 1.0.30001781 | |
| 3851 | + electron-to-chromium: 1.5.325 | |
| 3852 | + node-releases: 2.0.36 | |
| 3853 | + update-browserslist-db: 1.2.3(browserslist@4.28.1) | |
| 3854 | + | |
| 3855 | + cac@6.7.14: {} | |
| 3856 | + | |
| 3857 | + camelcase@8.0.0: {} | |
| 3858 | + | |
| 3859 | + caniuse-lite@1.0.30001781: {} | |
| 3860 | + | |
| 3861 | + ccount@2.0.1: {} | |
| 3862 | + | |
| 3863 | + chai@5.3.3: | |
| 3864 | + dependencies: | |
| 3865 | + assertion-error: 2.0.1 | |
| 3866 | + check-error: 2.1.3 | |
| 3867 | + deep-eql: 5.0.2 | |
| 3868 | + loupe: 3.2.1 | |
| 3869 | + pathval: 2.0.1 | |
| 3870 | + | |
| 3871 | + chalk@5.6.2: {} | |
| 3872 | + | |
| 3873 | + character-entities-html4@2.1.0: {} | |
| 3874 | + | |
| 3875 | + character-entities-legacy@3.0.0: {} | |
| 3876 | + | |
| 3877 | + character-entities@2.0.2: {} | |
| 3878 | + | |
| 3879 | + check-error@2.1.3: {} | |
| 3880 | + | |
| 3881 | + chokidar@5.0.0: | |
| 3882 | + dependencies: | |
| 3883 | + readdirp: 5.0.0 | |
| 3884 | + | |
| 3885 | + ci-info@4.4.0: {} | |
| 3886 | + | |
| 3887 | + cli-boxes@3.0.0: {} | |
| 3888 | + | |
| 3889 | + clsx@2.1.1: {} | |
| 3890 | + | |
| 3891 | + comma-separated-tokens@2.0.3: {} | |
| 3892 | + | |
| 3893 | + commander@11.1.0: {} | |
| 3894 | + | |
| 3895 | + common-ancestor-path@1.0.1: {} | |
| 3896 | + | |
| 3897 | + convert-source-map@2.0.0: {} | |
| 3898 | + | |
| 3899 | + cookie-es@1.2.2: {} | |
| 3900 | + | |
| 3901 | + cookie@1.1.1: {} | |
| 3902 | + | |
| 3903 | + crossws@0.3.5: | |
| 3904 | + dependencies: | |
| 3905 | + uncrypto: 0.1.3 | |
| 3906 | + | |
| 3907 | + css-select@5.2.2: | |
| 3908 | + dependencies: | |
| 3909 | + boolbase: 1.0.0 | |
| 3910 | + css-what: 6.2.2 | |
| 3911 | + domhandler: 5.0.3 | |
| 3912 | + domutils: 3.2.2 | |
| 3913 | + nth-check: 2.1.1 | |
| 3914 | + | |
| 3915 | + css-tree@2.2.1: | |
| 3916 | + dependencies: | |
| 3917 | + mdn-data: 2.0.28 | |
| 3918 | + source-map-js: 1.2.1 | |
| 3919 | + | |
| 3920 | + css-tree@3.2.1: | |
| 3921 | + dependencies: | |
| 3922 | + mdn-data: 2.27.1 | |
| 3923 | + source-map-js: 1.2.1 | |
| 3924 | + | |
| 3925 | + css-what@6.2.2: {} | |
| 3926 | + | |
| 3927 | + cssesc@3.0.0: {} | |
| 3928 | + | |
| 3929 | + csso@5.0.5: | |
| 3930 | + dependencies: | |
| 3931 | + css-tree: 2.2.1 | |
| 3932 | + | |
| 3933 | + debug@4.4.3: | |
| 3934 | + dependencies: | |
| 3935 | + ms: 2.1.3 | |
| 3936 | + | |
| 3937 | + decode-named-character-reference@1.3.0: | |
| 3938 | + dependencies: | |
| 3939 | + character-entities: 2.0.2 | |
| 3940 | + | |
| 3941 | + deep-eql@5.0.2: {} | |
| 3942 | + | |
| 3943 | + defu@6.1.4: {} | |
| 3944 | + | |
| 3945 | + dequal@2.0.3: {} | |
| 3946 | + | |
| 3947 | + destr@2.0.5: {} | |
| 3948 | + | |
| 3949 | + detect-libc@2.1.2: {} | |
| 3950 | + | |
| 3951 | + deterministic-object-hash@2.0.2: | |
| 3952 | + dependencies: | |
| 3953 | + base-64: 1.0.0 | |
| 3954 | + | |
| 3955 | + devalue@5.6.4: {} | |
| 3956 | + | |
| 3957 | + devlop@1.1.0: | |
| 3958 | + dependencies: | |
| 3959 | + dequal: 2.0.3 | |
| 3960 | + | |
| 3961 | + diff@8.0.4: {} | |
| 3962 | + | |
| 3963 | + dlv@1.1.3: {} | |
| 3964 | + | |
| 3965 | + dom-serializer@2.0.0: | |
| 3966 | + dependencies: | |
| 3967 | + domelementtype: 2.3.0 | |
| 3968 | + domhandler: 5.0.3 | |
| 3969 | + entities: 4.5.0 | |
| 3970 | + | |
| 3971 | + domelementtype@2.3.0: {} | |
| 3972 | + | |
| 3973 | + domhandler@5.0.3: | |
| 3974 | + dependencies: | |
| 3975 | + domelementtype: 2.3.0 | |
| 3976 | + | |
| 3977 | + domutils@3.2.2: | |
| 3978 | + dependencies: | |
| 3979 | + dom-serializer: 2.0.0 | |
| 3980 | + domelementtype: 2.3.0 | |
| 3981 | + domhandler: 5.0.3 | |
| 3982 | + | |
| 3983 | + dset@3.1.4: {} | |
| 3984 | + | |
| 3985 | + electron-to-chromium@1.5.325: {} | |
| 3986 | + | |
| 3987 | + emoji-regex@10.6.0: {} | |
| 3988 | + | |
| 3989 | + emoji-regex@8.0.0: {} | |
| 3990 | + | |
| 3991 | + entities@4.5.0: {} | |
| 3992 | + | |
| 3993 | + entities@6.0.1: {} | |
| 3994 | + | |
| 3995 | + error-stack-parser-es@1.0.5: {} | |
| 3996 | + | |
| 3997 | + es-module-lexer@1.7.0: {} | |
| 3998 | + | |
| 3999 | + esbuild@0.25.12: | |
| 4000 | + optionalDependencies: | |
| 4001 | + '@esbuild/aix-ppc64': 0.25.12 | |
| 4002 | + '@esbuild/android-arm': 0.25.12 | |
| 4003 | + '@esbuild/android-arm64': 0.25.12 | |
| 4004 | + '@esbuild/android-x64': 0.25.12 | |
| 4005 | + '@esbuild/darwin-arm64': 0.25.12 | |
| 4006 | + '@esbuild/darwin-x64': 0.25.12 | |
| 4007 | + '@esbuild/freebsd-arm64': 0.25.12 | |
| 4008 | + '@esbuild/freebsd-x64': 0.25.12 | |
| 4009 | + '@esbuild/linux-arm': 0.25.12 | |
| 4010 | + '@esbuild/linux-arm64': 0.25.12 | |
| 4011 | + '@esbuild/linux-ia32': 0.25.12 | |
| 4012 | + '@esbuild/linux-loong64': 0.25.12 | |
| 4013 | + '@esbuild/linux-mips64el': 0.25.12 | |
| 4014 | + '@esbuild/linux-ppc64': 0.25.12 | |
| 4015 | + '@esbuild/linux-riscv64': 0.25.12 | |
| 4016 | + '@esbuild/linux-s390x': 0.25.12 | |
| 4017 | + '@esbuild/linux-x64': 0.25.12 | |
| 4018 | + '@esbuild/netbsd-arm64': 0.25.12 | |
| 4019 | + '@esbuild/netbsd-x64': 0.25.12 | |
| 4020 | + '@esbuild/openbsd-arm64': 0.25.12 | |
| 4021 | + '@esbuild/openbsd-x64': 0.25.12 | |
| 4022 | + '@esbuild/openharmony-arm64': 0.25.12 | |
| 4023 | + '@esbuild/sunos-x64': 0.25.12 | |
| 4024 | + '@esbuild/win32-arm64': 0.25.12 | |
| 4025 | + '@esbuild/win32-ia32': 0.25.12 | |
| 4026 | + '@esbuild/win32-x64': 0.25.12 | |
| 4027 | + | |
| 4028 | + esbuild@0.27.0: | |
| 4029 | + optionalDependencies: | |
| 4030 | + '@esbuild/aix-ppc64': 0.27.0 | |
| 4031 | + '@esbuild/android-arm': 0.27.0 | |
| 4032 | + '@esbuild/android-arm64': 0.27.0 | |
| 4033 | + '@esbuild/android-x64': 0.27.0 | |
| 4034 | + '@esbuild/darwin-arm64': 0.27.0 | |
| 4035 | + '@esbuild/darwin-x64': 0.27.0 | |
| 4036 | + '@esbuild/freebsd-arm64': 0.27.0 | |
| 4037 | + '@esbuild/freebsd-x64': 0.27.0 | |
| 4038 | + '@esbuild/linux-arm': 0.27.0 | |
| 4039 | + '@esbuild/linux-arm64': 0.27.0 | |
| 4040 | + '@esbuild/linux-ia32': 0.27.0 | |
| 4041 | + '@esbuild/linux-loong64': 0.27.0 | |
| 4042 | + '@esbuild/linux-mips64el': 0.27.0 | |
| 4043 | + '@esbuild/linux-ppc64': 0.27.0 | |
| 4044 | + '@esbuild/linux-riscv64': 0.27.0 | |
| 4045 | + '@esbuild/linux-s390x': 0.27.0 | |
| 4046 | + '@esbuild/linux-x64': 0.27.0 | |
| 4047 | + '@esbuild/netbsd-arm64': 0.27.0 | |
| 4048 | + '@esbuild/netbsd-x64': 0.27.0 | |
| 4049 | + '@esbuild/openbsd-arm64': 0.27.0 | |
| 4050 | + '@esbuild/openbsd-x64': 0.27.0 | |
| 4051 | + '@esbuild/openharmony-arm64': 0.27.0 | |
| 4052 | + '@esbuild/sunos-x64': 0.27.0 | |
| 4053 | + '@esbuild/win32-arm64': 0.27.0 | |
| 4054 | + '@esbuild/win32-ia32': 0.27.0 | |
| 4055 | + '@esbuild/win32-x64': 0.27.0 | |
| 4056 | + | |
| 4057 | + esbuild@0.27.3: | |
| 4058 | + optionalDependencies: | |
| 4059 | + '@esbuild/aix-ppc64': 0.27.3 | |
| 4060 | + '@esbuild/android-arm': 0.27.3 | |
| 4061 | + '@esbuild/android-arm64': 0.27.3 | |
| 4062 | + '@esbuild/android-x64': 0.27.3 | |
| 4063 | + '@esbuild/darwin-arm64': 0.27.3 | |
| 4064 | + '@esbuild/darwin-x64': 0.27.3 | |
| 4065 | + '@esbuild/freebsd-arm64': 0.27.3 | |
| 4066 | + '@esbuild/freebsd-x64': 0.27.3 | |
| 4067 | + '@esbuild/linux-arm': 0.27.3 | |
| 4068 | + '@esbuild/linux-arm64': 0.27.3 | |
| 4069 | + '@esbuild/linux-ia32': 0.27.3 | |
| 4070 | + '@esbuild/linux-loong64': 0.27.3 | |
| 4071 | + '@esbuild/linux-mips64el': 0.27.3 | |
| 4072 | + '@esbuild/linux-ppc64': 0.27.3 | |
| 4073 | + '@esbuild/linux-riscv64': 0.27.3 | |
| 4074 | + '@esbuild/linux-s390x': 0.27.3 | |
| 4075 | + '@esbuild/linux-x64': 0.27.3 | |
| 4076 | + '@esbuild/netbsd-arm64': 0.27.3 | |
| 4077 | + '@esbuild/netbsd-x64': 0.27.3 | |
| 4078 | + '@esbuild/openbsd-arm64': 0.27.3 | |
| 4079 | + '@esbuild/openbsd-x64': 0.27.3 | |
| 4080 | + '@esbuild/openharmony-arm64': 0.27.3 | |
| 4081 | + '@esbuild/sunos-x64': 0.27.3 | |
| 4082 | + '@esbuild/win32-arm64': 0.27.3 | |
| 4083 | + '@esbuild/win32-ia32': 0.27.3 | |
| 4084 | + '@esbuild/win32-x64': 0.27.3 | |
| 4085 | + | |
| 4086 | + esbuild@0.27.4: | |
| 4087 | + optionalDependencies: | |
| 4088 | + '@esbuild/aix-ppc64': 0.27.4 | |
| 4089 | + '@esbuild/android-arm': 0.27.4 | |
| 4090 | + '@esbuild/android-arm64': 0.27.4 | |
| 4091 | + '@esbuild/android-x64': 0.27.4 | |
| 4092 | + '@esbuild/darwin-arm64': 0.27.4 | |
| 4093 | + '@esbuild/darwin-x64': 0.27.4 | |
| 4094 | + '@esbuild/freebsd-arm64': 0.27.4 | |
| 4095 | + '@esbuild/freebsd-x64': 0.27.4 | |
| 4096 | + '@esbuild/linux-arm': 0.27.4 | |
| 4097 | + '@esbuild/linux-arm64': 0.27.4 | |
| 4098 | + '@esbuild/linux-ia32': 0.27.4 | |
| 4099 | + '@esbuild/linux-loong64': 0.27.4 | |
| 4100 | + '@esbuild/linux-mips64el': 0.27.4 | |
| 4101 | + '@esbuild/linux-ppc64': 0.27.4 | |
| 4102 | + '@esbuild/linux-riscv64': 0.27.4 | |
| 4103 | + '@esbuild/linux-s390x': 0.27.4 | |
| 4104 | + '@esbuild/linux-x64': 0.27.4 | |
| 4105 | + '@esbuild/netbsd-arm64': 0.27.4 | |
| 4106 | + '@esbuild/netbsd-x64': 0.27.4 | |
| 4107 | + '@esbuild/openbsd-arm64': 0.27.4 | |
| 4108 | + '@esbuild/openbsd-x64': 0.27.4 | |
| 4109 | + '@esbuild/openharmony-arm64': 0.27.4 | |
| 4110 | + '@esbuild/sunos-x64': 0.27.4 | |
| 4111 | + '@esbuild/win32-arm64': 0.27.4 | |
| 4112 | + '@esbuild/win32-ia32': 0.27.4 | |
| 4113 | + '@esbuild/win32-x64': 0.27.4 | |
| 4114 | + | |
| 4115 | + escalade@3.2.0: {} | |
| 4116 | + | |
| 4117 | + escape-string-regexp@5.0.0: {} | |
| 4118 | + | |
| 4119 | + estree-walker@2.0.2: {} | |
| 4120 | + | |
| 4121 | + estree-walker@3.0.3: | |
| 4122 | + dependencies: | |
| 4123 | + '@types/estree': 1.0.8 | |
| 4124 | + | |
| 4125 | + eventemitter3@5.0.4: {} | |
| 4126 | + | |
| 4127 | + expect-type@1.3.0: {} | |
| 4128 | + | |
| 4129 | + extend@3.0.2: {} | |
| 4130 | + | |
| 4131 | + fdir@6.5.0(picomatch@4.0.4): | |
| 4132 | + optionalDependencies: | |
| 4133 | + picomatch: 4.0.4 | |
| 4134 | + | |
| 4135 | + flattie@1.1.1: {} | |
| 4136 | + | |
| 4137 | + fontace@0.4.1: | |
| 4138 | + dependencies: | |
| 4139 | + fontkitten: 1.0.3 | |
| 4140 | + | |
| 4141 | + fontkitten@1.0.3: | |
| 4142 | + dependencies: | |
| 4143 | + tiny-inflate: 1.0.3 | |
| 4144 | + | |
| 4145 | + fsevents@2.3.3: | |
| 4146 | + optional: true | |
| 4147 | + | |
| 4148 | + gensync@1.0.0-beta.2: {} | |
| 4149 | + | |
| 4150 | + get-east-asian-width@1.5.0: {} | |
| 4151 | + | |
| 4152 | + github-slugger@2.0.0: {} | |
| 4153 | + | |
| 4154 | + h3@1.15.10: | |
| 4155 | + dependencies: | |
| 4156 | + cookie-es: 1.2.2 | |
| 4157 | + crossws: 0.3.5 | |
| 4158 | + defu: 6.1.4 | |
| 4159 | + destr: 2.0.5 | |
| 4160 | + iron-webcrypto: 1.2.1 | |
| 4161 | + node-mock-http: 1.0.4 | |
| 4162 | + radix3: 1.1.2 | |
| 4163 | + ufo: 1.6.3 | |
| 4164 | + uncrypto: 0.1.3 | |
| 4165 | + | |
| 4166 | + hast-util-from-html@2.0.3: | |
| 4167 | + dependencies: | |
| 4168 | + '@types/hast': 3.0.4 | |
| 4169 | + devlop: 1.1.0 | |
| 4170 | + hast-util-from-parse5: 8.0.3 | |
| 4171 | + parse5: 7.3.0 | |
| 4172 | + vfile: 6.0.3 | |
| 4173 | + vfile-message: 4.0.3 | |
| 4174 | + | |
| 4175 | + hast-util-from-parse5@8.0.3: | |
| 4176 | + dependencies: | |
| 4177 | + '@types/hast': 3.0.4 | |
| 4178 | + '@types/unist': 3.0.3 | |
| 4179 | + devlop: 1.1.0 | |
| 4180 | + hastscript: 9.0.1 | |
| 4181 | + property-information: 7.1.0 | |
| 4182 | + vfile: 6.0.3 | |
| 4183 | + vfile-location: 5.0.3 | |
| 4184 | + web-namespaces: 2.0.1 | |
| 4185 | + | |
| 4186 | + hast-util-is-element@3.0.0: | |
| 4187 | + dependencies: | |
| 4188 | + '@types/hast': 3.0.4 | |
| 4189 | + | |
| 4190 | + hast-util-parse-selector@4.0.0: | |
| 4191 | + dependencies: | |
| 4192 | + '@types/hast': 3.0.4 | |
| 4193 | + | |
| 4194 | + hast-util-raw@9.1.0: | |
| 4195 | + dependencies: | |
| 4196 | + '@types/hast': 3.0.4 | |
| 4197 | + '@types/unist': 3.0.3 | |
| 4198 | + '@ungap/structured-clone': 1.3.0 | |
| 4199 | + hast-util-from-parse5: 8.0.3 | |
| 4200 | + hast-util-to-parse5: 8.0.1 | |
| 4201 | + html-void-elements: 3.0.0 | |
| 4202 | + mdast-util-to-hast: 13.2.1 | |
| 4203 | + parse5: 7.3.0 | |
| 4204 | + unist-util-position: 5.0.0 | |
| 4205 | + unist-util-visit: 5.1.0 | |
| 4206 | + vfile: 6.0.3 | |
| 4207 | + web-namespaces: 2.0.1 | |
| 4208 | + zwitch: 2.0.4 | |
| 4209 | + | |
| 4210 | + hast-util-to-html@9.0.5: | |
| 4211 | + dependencies: | |
| 4212 | + '@types/hast': 3.0.4 | |
| 4213 | + '@types/unist': 3.0.3 | |
| 4214 | + ccount: 2.0.1 | |
| 4215 | + comma-separated-tokens: 2.0.3 | |
| 4216 | + hast-util-whitespace: 3.0.0 | |
| 4217 | + html-void-elements: 3.0.0 | |
| 4218 | + mdast-util-to-hast: 13.2.1 | |
| 4219 | + property-information: 7.1.0 | |
| 4220 | + space-separated-tokens: 2.0.2 | |
| 4221 | + stringify-entities: 4.0.4 | |
| 4222 | + zwitch: 2.0.4 | |
| 4223 | + | |
| 4224 | + hast-util-to-parse5@8.0.1: | |
| 4225 | + dependencies: | |
| 4226 | + '@types/hast': 3.0.4 | |
| 4227 | + comma-separated-tokens: 2.0.3 | |
| 4228 | + devlop: 1.1.0 | |
| 4229 | + property-information: 7.1.0 | |
| 4230 | + space-separated-tokens: 2.0.2 | |
| 4231 | + web-namespaces: 2.0.1 | |
| 4232 | + zwitch: 2.0.4 | |
| 4233 | + | |
| 4234 | + hast-util-to-text@4.0.2: | |
| 4235 | + dependencies: | |
| 4236 | + '@types/hast': 3.0.4 | |
| 4237 | + '@types/unist': 3.0.3 | |
| 4238 | + hast-util-is-element: 3.0.0 | |
| 4239 | + unist-util-find-after: 5.0.0 | |
| 4240 | + | |
| 4241 | + hast-util-whitespace@3.0.0: | |
| 4242 | + dependencies: | |
| 4243 | + '@types/hast': 3.0.4 | |
| 4244 | + | |
| 4245 | + hastscript@9.0.1: | |
| 4246 | + dependencies: | |
| 4247 | + '@types/hast': 3.0.4 | |
| 4248 | + comma-separated-tokens: 2.0.3 | |
| 4249 | + hast-util-parse-selector: 4.0.0 | |
| 4250 | + property-information: 7.1.0 | |
| 4251 | + space-separated-tokens: 2.0.2 | |
| 4252 | + | |
| 4253 | + he@1.2.0: {} | |
| 4254 | + | |
| 4255 | + html-escaper@3.0.3: {} | |
| 4256 | + | |
| 4257 | + html-void-elements@3.0.0: {} | |
| 4258 | + | |
| 4259 | + http-cache-semantics@4.2.0: {} | |
| 4260 | + | |
| 4261 | + import-meta-resolve@4.2.0: {} | |
| 4262 | + | |
| 4263 | + iron-webcrypto@1.2.1: {} | |
| 4264 | + | |
| 4265 | + is-docker@3.0.0: {} | |
| 4266 | + | |
| 4267 | + is-fullwidth-code-point@3.0.0: {} | |
| 4268 | + | |
| 4269 | + is-inside-container@1.0.0: | |
| 4270 | + dependencies: | |
| 4271 | + is-docker: 3.0.0 | |
| 4272 | + | |
| 4273 | + is-plain-obj@4.1.0: {} | |
| 4274 | + | |
| 4275 | + is-wsl@3.1.1: | |
| 4276 | + dependencies: | |
| 4277 | + is-inside-container: 1.0.0 | |
| 4278 | + | |
| 4279 | + js-tokens@4.0.0: {} | |
| 4280 | + | |
| 4281 | + js-tokens@9.0.1: {} | |
| 4282 | + | |
| 4283 | + js-yaml@4.1.1: | |
| 4284 | + dependencies: | |
| 4285 | + argparse: 2.0.1 | |
| 4286 | + | |
| 4287 | + jsesc@3.1.0: {} | |
| 4288 | + | |
| 4289 | + json5@2.2.3: {} | |
| 4290 | + | |
| 4291 | + kleur@3.0.3: {} | |
| 4292 | + | |
| 4293 | + kleur@4.1.5: {} | |
| 4294 | + | |
| 4295 | + kolorist@1.8.0: {} | |
| 4296 | + | |
| 4297 | + longest-streak@3.1.0: {} | |
| 4298 | + | |
| 4299 | + loupe@3.2.1: {} | |
| 4300 | + | |
| 4301 | + lru-cache@11.2.7: {} | |
| 4302 | + | |
| 4303 | + lru-cache@5.1.1: | |
| 4304 | + dependencies: | |
| 4305 | + yallist: 3.1.1 | |
| 4306 | + | |
| 4307 | + magic-string@0.30.21: | |
| 4308 | + dependencies: | |
| 4309 | + '@jridgewell/sourcemap-codec': 1.5.5 | |
| 4310 | + | |
| 4311 | + magicast@0.5.2: | |
| 4312 | + dependencies: | |
| 4313 | + '@babel/parser': 7.29.2 | |
| 4314 | + '@babel/types': 7.29.0 | |
| 4315 | + source-map-js: 1.2.1 | |
| 4316 | + | |
| 4317 | + markdown-table@3.0.4: {} | |
| 4318 | + | |
| 4319 | + mdast-util-definitions@6.0.0: | |
| 4320 | + dependencies: | |
| 4321 | + '@types/mdast': 4.0.4 | |
| 4322 | + '@types/unist': 3.0.3 | |
| 4323 | + unist-util-visit: 5.1.0 | |
| 4324 | + | |
| 4325 | + mdast-util-find-and-replace@3.0.2: | |
| 4326 | + dependencies: | |
| 4327 | + '@types/mdast': 4.0.4 | |
| 4328 | + escape-string-regexp: 5.0.0 | |
| 4329 | + unist-util-is: 6.0.1 | |
| 4330 | + unist-util-visit-parents: 6.0.2 | |
| 4331 | + | |
| 4332 | + mdast-util-from-markdown@2.0.3: | |
| 4333 | + dependencies: | |
| 4334 | + '@types/mdast': 4.0.4 | |
| 4335 | + '@types/unist': 3.0.3 | |
| 4336 | + decode-named-character-reference: 1.3.0 | |
| 4337 | + devlop: 1.1.0 | |
| 4338 | + mdast-util-to-string: 4.0.0 | |
| 4339 | + micromark: 4.0.2 | |
| 4340 | + micromark-util-decode-numeric-character-reference: 2.0.2 | |
| 4341 | + micromark-util-decode-string: 2.0.1 | |
| 4342 | + micromark-util-normalize-identifier: 2.0.1 | |
| 4343 | + micromark-util-symbol: 2.0.1 | |
| 4344 | + micromark-util-types: 2.0.2 | |
| 4345 | + unist-util-stringify-position: 4.0.0 | |
| 4346 | + transitivePeerDependencies: | |
| 4347 | + - supports-color | |
| 4348 | + | |
| 4349 | + mdast-util-gfm-autolink-literal@2.0.1: | |
| 4350 | + dependencies: | |
| 4351 | + '@types/mdast': 4.0.4 | |
| 4352 | + ccount: 2.0.1 | |
| 4353 | + devlop: 1.1.0 | |
| 4354 | + mdast-util-find-and-replace: 3.0.2 | |
| 4355 | + micromark-util-character: 2.1.1 | |
| 4356 | + | |
| 4357 | + mdast-util-gfm-footnote@2.1.0: | |
| 4358 | + dependencies: | |
| 4359 | + '@types/mdast': 4.0.4 | |
| 4360 | + devlop: 1.1.0 | |
| 4361 | + mdast-util-from-markdown: 2.0.3 | |
| 4362 | + mdast-util-to-markdown: 2.1.2 | |
| 4363 | + micromark-util-normalize-identifier: 2.0.1 | |
| 4364 | + transitivePeerDependencies: | |
| 4365 | + - supports-color | |
| 4366 | + | |
| 4367 | + mdast-util-gfm-strikethrough@2.0.0: | |
| 4368 | + dependencies: | |
| 4369 | + '@types/mdast': 4.0.4 | |
| 4370 | + mdast-util-from-markdown: 2.0.3 | |
| 4371 | + mdast-util-to-markdown: 2.1.2 | |
| 4372 | + transitivePeerDependencies: | |
| 4373 | + - supports-color | |
| 4374 | + | |
| 4375 | + mdast-util-gfm-table@2.0.0: | |
| 4376 | + dependencies: | |
| 4377 | + '@types/mdast': 4.0.4 | |
| 4378 | + devlop: 1.1.0 | |
| 4379 | + markdown-table: 3.0.4 | |
| 4380 | + mdast-util-from-markdown: 2.0.3 | |
| 4381 | + mdast-util-to-markdown: 2.1.2 | |
| 4382 | + transitivePeerDependencies: | |
| 4383 | + - supports-color | |
| 4384 | + | |
| 4385 | + mdast-util-gfm-task-list-item@2.0.0: | |
| 4386 | + dependencies: | |
| 4387 | + '@types/mdast': 4.0.4 | |
| 4388 | + devlop: 1.1.0 | |
| 4389 | + mdast-util-from-markdown: 2.0.3 | |
| 4390 | + mdast-util-to-markdown: 2.1.2 | |
| 4391 | + transitivePeerDependencies: | |
| 4392 | + - supports-color | |
| 4393 | + | |
| 4394 | + mdast-util-gfm@3.1.0: | |
| 4395 | + dependencies: | |
| 4396 | + mdast-util-from-markdown: 2.0.3 | |
| 4397 | + mdast-util-gfm-autolink-literal: 2.0.1 | |
| 4398 | + mdast-util-gfm-footnote: 2.1.0 | |
| 4399 | + mdast-util-gfm-strikethrough: 2.0.0 | |
| 4400 | + mdast-util-gfm-table: 2.0.0 | |
| 4401 | + mdast-util-gfm-task-list-item: 2.0.0 | |
| 4402 | + mdast-util-to-markdown: 2.1.2 | |
| 4403 | + transitivePeerDependencies: | |
| 4404 | + - supports-color | |
| 4405 | + | |
| 4406 | + mdast-util-phrasing@4.1.0: | |
| 4407 | + dependencies: | |
| 4408 | + '@types/mdast': 4.0.4 | |
| 4409 | + unist-util-is: 6.0.1 | |
| 4410 | + | |
| 4411 | + mdast-util-to-hast@13.2.1: | |
| 4412 | + dependencies: | |
| 4413 | + '@types/hast': 3.0.4 | |
| 4414 | + '@types/mdast': 4.0.4 | |
| 4415 | + '@ungap/structured-clone': 1.3.0 | |
| 4416 | + devlop: 1.1.0 | |
| 4417 | + micromark-util-sanitize-uri: 2.0.1 | |
| 4418 | + trim-lines: 3.0.1 | |
| 4419 | + unist-util-position: 5.0.0 | |
| 4420 | + unist-util-visit: 5.1.0 | |
| 4421 | + vfile: 6.0.3 | |
| 4422 | + | |
| 4423 | + mdast-util-to-markdown@2.1.2: | |
| 4424 | + dependencies: | |
| 4425 | + '@types/mdast': 4.0.4 | |
| 4426 | + '@types/unist': 3.0.3 | |
| 4427 | + longest-streak: 3.1.0 | |
| 4428 | + mdast-util-phrasing: 4.1.0 | |
| 4429 | + mdast-util-to-string: 4.0.0 | |
| 4430 | + micromark-util-classify-character: 2.0.1 | |
| 4431 | + micromark-util-decode-string: 2.0.1 | |
| 4432 | + unist-util-visit: 5.1.0 | |
| 4433 | + zwitch: 2.0.4 | |
| 4434 | + | |
| 4435 | + mdast-util-to-string@4.0.0: | |
| 4436 | + dependencies: | |
| 4437 | + '@types/mdast': 4.0.4 | |
| 4438 | + | |
| 4439 | + mdn-data@2.0.28: {} | |
| 4440 | + | |
| 4441 | + mdn-data@2.27.1: {} | |
| 4442 | + | |
| 4443 | + micromark-core-commonmark@2.0.3: | |
| 4444 | + dependencies: | |
| 4445 | + decode-named-character-reference: 1.3.0 | |
| 4446 | + devlop: 1.1.0 | |
| 4447 | + micromark-factory-destination: 2.0.1 | |
| 4448 | + micromark-factory-label: 2.0.1 | |
| 4449 | + micromark-factory-space: 2.0.1 | |
| 4450 | + micromark-factory-title: 2.0.1 | |
| 4451 | + micromark-factory-whitespace: 2.0.1 | |
| 4452 | + micromark-util-character: 2.1.1 | |
| 4453 | + micromark-util-chunked: 2.0.1 | |
| 4454 | + micromark-util-classify-character: 2.0.1 | |
| 4455 | + micromark-util-html-tag-name: 2.0.1 | |
| 4456 | + micromark-util-normalize-identifier: 2.0.1 | |
| 4457 | + micromark-util-resolve-all: 2.0.1 | |
| 4458 | + micromark-util-subtokenize: 2.1.0 | |
| 4459 | + micromark-util-symbol: 2.0.1 | |
| 4460 | + micromark-util-types: 2.0.2 | |
| 4461 | + | |
| 4462 | + micromark-extension-gfm-autolink-literal@2.1.0: | |
| 4463 | + dependencies: | |
| 4464 | + micromark-util-character: 2.1.1 | |
| 4465 | + micromark-util-sanitize-uri: 2.0.1 | |
| 4466 | + micromark-util-symbol: 2.0.1 | |
| 4467 | + micromark-util-types: 2.0.2 | |
| 4468 | + | |
| 4469 | + micromark-extension-gfm-footnote@2.1.0: | |
| 4470 | + dependencies: | |
| 4471 | + devlop: 1.1.0 | |
| 4472 | + micromark-core-commonmark: 2.0.3 | |
| 4473 | + micromark-factory-space: 2.0.1 | |
| 4474 | + micromark-util-character: 2.1.1 | |
| 4475 | + micromark-util-normalize-identifier: 2.0.1 | |
| 4476 | + micromark-util-sanitize-uri: 2.0.1 | |
| 4477 | + micromark-util-symbol: 2.0.1 | |
| 4478 | + micromark-util-types: 2.0.2 | |
| 4479 | + | |
| 4480 | + micromark-extension-gfm-strikethrough@2.1.0: | |
| 4481 | + dependencies: | |
| 4482 | + devlop: 1.1.0 | |
| 4483 | + micromark-util-chunked: 2.0.1 | |
| 4484 | + micromark-util-classify-character: 2.0.1 | |
| 4485 | + micromark-util-resolve-all: 2.0.1 | |
| 4486 | + micromark-util-symbol: 2.0.1 | |
| 4487 | + micromark-util-types: 2.0.2 | |
| 4488 | + | |
| 4489 | + micromark-extension-gfm-table@2.1.1: | |
| 4490 | + dependencies: | |
| 4491 | + devlop: 1.1.0 | |
| 4492 | + micromark-factory-space: 2.0.1 | |
| 4493 | + micromark-util-character: 2.1.1 | |
| 4494 | + micromark-util-symbol: 2.0.1 | |
| 4495 | + micromark-util-types: 2.0.2 | |
| 4496 | + | |
| 4497 | + micromark-extension-gfm-tagfilter@2.0.0: | |
| 4498 | + dependencies: | |
| 4499 | + micromark-util-types: 2.0.2 | |
| 4500 | + | |
| 4501 | + micromark-extension-gfm-task-list-item@2.1.0: | |
| 4502 | + dependencies: | |
| 4503 | + devlop: 1.1.0 | |
| 4504 | + micromark-factory-space: 2.0.1 | |
| 4505 | + micromark-util-character: 2.1.1 | |
| 4506 | + micromark-util-symbol: 2.0.1 | |
| 4507 | + micromark-util-types: 2.0.2 | |
| 4508 | + | |
| 4509 | + micromark-extension-gfm@3.0.0: | |
| 4510 | + dependencies: | |
| 4511 | + micromark-extension-gfm-autolink-literal: 2.1.0 | |
| 4512 | + micromark-extension-gfm-footnote: 2.1.0 | |
| 4513 | + micromark-extension-gfm-strikethrough: 2.1.0 | |
| 4514 | + micromark-extension-gfm-table: 2.1.1 | |
| 4515 | + micromark-extension-gfm-tagfilter: 2.0.0 | |
| 4516 | + micromark-extension-gfm-task-list-item: 2.1.0 | |
| 4517 | + micromark-util-combine-extensions: 2.0.1 | |
| 4518 | + micromark-util-types: 2.0.2 | |
| 4519 | + | |
| 4520 | + micromark-factory-destination@2.0.1: | |
| 4521 | + dependencies: | |
| 4522 | + micromark-util-character: 2.1.1 | |
| 4523 | + micromark-util-symbol: 2.0.1 | |
| 4524 | + micromark-util-types: 2.0.2 | |
| 4525 | + | |
| 4526 | + micromark-factory-label@2.0.1: | |
| 4527 | + dependencies: | |
| 4528 | + devlop: 1.1.0 | |
| 4529 | + micromark-util-character: 2.1.1 | |
| 4530 | + micromark-util-symbol: 2.0.1 | |
| 4531 | + micromark-util-types: 2.0.2 | |
| 4532 | + | |
| 4533 | + micromark-factory-space@2.0.1: | |
| 4534 | + dependencies: | |
| 4535 | + micromark-util-character: 2.1.1 | |
| 4536 | + micromark-util-types: 2.0.2 | |
| 4537 | + | |
| 4538 | + micromark-factory-title@2.0.1: | |
| 4539 | + dependencies: | |
| 4540 | + micromark-factory-space: 2.0.1 | |
| 4541 | + micromark-util-character: 2.1.1 | |
| 4542 | + micromark-util-symbol: 2.0.1 | |
| 4543 | + micromark-util-types: 2.0.2 | |
| 4544 | + | |
| 4545 | + micromark-factory-whitespace@2.0.1: | |
| 4546 | + dependencies: | |
| 4547 | + micromark-factory-space: 2.0.1 | |
| 4548 | + micromark-util-character: 2.1.1 | |
| 4549 | + micromark-util-symbol: 2.0.1 | |
| 4550 | + micromark-util-types: 2.0.2 | |
| 4551 | + | |
| 4552 | + micromark-util-character@2.1.1: | |
| 4553 | + dependencies: | |
| 4554 | + micromark-util-symbol: 2.0.1 | |
| 4555 | + micromark-util-types: 2.0.2 | |
| 4556 | + | |
| 4557 | + micromark-util-chunked@2.0.1: | |
| 4558 | + dependencies: | |
| 4559 | + micromark-util-symbol: 2.0.1 | |
| 4560 | + | |
| 4561 | + micromark-util-classify-character@2.0.1: | |
| 4562 | + dependencies: | |
| 4563 | + micromark-util-character: 2.1.1 | |
| 4564 | + micromark-util-symbol: 2.0.1 | |
| 4565 | + micromark-util-types: 2.0.2 | |
| 4566 | + | |
| 4567 | + micromark-util-combine-extensions@2.0.1: | |
| 4568 | + dependencies: | |
| 4569 | + micromark-util-chunked: 2.0.1 | |
| 4570 | + micromark-util-types: 2.0.2 | |
| 4571 | + | |
| 4572 | + micromark-util-decode-numeric-character-reference@2.0.2: | |
| 4573 | + dependencies: | |
| 4574 | + micromark-util-symbol: 2.0.1 | |
| 4575 | + | |
| 4576 | + micromark-util-decode-string@2.0.1: | |
| 4577 | + dependencies: | |
| 4578 | + decode-named-character-reference: 1.3.0 | |
| 4579 | + micromark-util-character: 2.1.1 | |
| 4580 | + micromark-util-decode-numeric-character-reference: 2.0.2 | |
| 4581 | + micromark-util-symbol: 2.0.1 | |
| 4582 | + | |
| 4583 | + micromark-util-encode@2.0.1: {} | |
| 4584 | + | |
| 4585 | + micromark-util-html-tag-name@2.0.1: {} | |
| 4586 | + | |
| 4587 | + micromark-util-normalize-identifier@2.0.1: | |
| 4588 | + dependencies: | |
| 4589 | + micromark-util-symbol: 2.0.1 | |
| 4590 | + | |
| 4591 | + micromark-util-resolve-all@2.0.1: | |
| 4592 | + dependencies: | |
| 4593 | + micromark-util-types: 2.0.2 | |
| 4594 | + | |
| 4595 | + micromark-util-sanitize-uri@2.0.1: | |
| 4596 | + dependencies: | |
| 4597 | + micromark-util-character: 2.1.1 | |
| 4598 | + micromark-util-encode: 2.0.1 | |
| 4599 | + micromark-util-symbol: 2.0.1 | |
| 4600 | + | |
| 4601 | + micromark-util-subtokenize@2.1.0: | |
| 4602 | + dependencies: | |
| 4603 | + devlop: 1.1.0 | |
| 4604 | + micromark-util-chunked: 2.0.1 | |
| 4605 | + micromark-util-symbol: 2.0.1 | |
| 4606 | + micromark-util-types: 2.0.2 | |
| 4607 | + | |
| 4608 | + micromark-util-symbol@2.0.1: {} | |
| 4609 | + | |
| 4610 | + micromark-util-types@2.0.2: {} | |
| 4611 | + | |
| 4612 | + micromark@4.0.2: | |
| 4613 | + dependencies: | |
| 4614 | + '@types/debug': 4.1.13 | |
| 4615 | + debug: 4.4.3 | |
| 4616 | + decode-named-character-reference: 1.3.0 | |
| 4617 | + devlop: 1.1.0 | |
| 4618 | + micromark-core-commonmark: 2.0.3 | |
| 4619 | + micromark-factory-space: 2.0.1 | |
| 4620 | + micromark-util-character: 2.1.1 | |
| 4621 | + micromark-util-chunked: 2.0.1 | |
| 4622 | + micromark-util-combine-extensions: 2.0.1 | |
| 4623 | + micromark-util-decode-numeric-character-reference: 2.0.2 | |
| 4624 | + micromark-util-encode: 2.0.1 | |
| 4625 | + micromark-util-normalize-identifier: 2.0.1 | |
| 4626 | + micromark-util-resolve-all: 2.0.1 | |
| 4627 | + micromark-util-sanitize-uri: 2.0.1 | |
| 4628 | + micromark-util-subtokenize: 2.1.0 | |
| 4629 | + micromark-util-symbol: 2.0.1 | |
| 4630 | + micromark-util-types: 2.0.2 | |
| 4631 | + transitivePeerDependencies: | |
| 4632 | + - supports-color | |
| 4633 | + | |
| 4634 | + miniflare@4.20260114.0: | |
| 4635 | + dependencies: | |
| 4636 | + '@cspotcode/source-map-support': 0.8.1 | |
| 4637 | + sharp: 0.34.5 | |
| 4638 | + undici: 7.14.0 | |
| 4639 | + workerd: 1.20260114.0 | |
| 4640 | + ws: 8.18.0 | |
| 4641 | + youch: 4.1.0-beta.10 | |
| 4642 | + zod: 3.25.76 | |
| 4643 | + transitivePeerDependencies: | |
| 4644 | + - bufferutil | |
| 4645 | + - utf-8-validate | |
| 4646 | + | |
| 4647 | + miniflare@4.20260317.2: | |
| 4648 | + dependencies: | |
| 4649 | + '@cspotcode/source-map-support': 0.8.1 | |
| 4650 | + sharp: 0.34.5 | |
| 4651 | + undici: 7.24.4 | |
| 4652 | + workerd: 1.20260317.1 | |
| 4653 | + ws: 8.18.0 | |
| 4654 | + youch: 4.1.0-beta.10 | |
| 4655 | + transitivePeerDependencies: | |
| 4656 | + - bufferutil | |
| 4657 | + - utf-8-validate | |
| 4658 | + | |
| 4659 | + mrmime@2.0.1: {} | |
| 4660 | + | |
| 4661 | + ms@2.1.3: {} | |
| 4662 | + | |
| 4663 | + nanoid@3.3.11: {} | |
| 4664 | + | |
| 4665 | + neotraverse@0.6.18: {} | |
| 4666 | + | |
| 4667 | + nlcst-to-string@4.0.0: | |
| 4668 | + dependencies: | |
| 4669 | + '@types/nlcst': 2.0.3 | |
| 4670 | + | |
| 4671 | + node-fetch-native@1.6.7: {} | |
| 4672 | + | |
| 4673 | + node-html-parser@6.1.13: | |
| 4674 | + dependencies: | |
| 4675 | + css-select: 5.2.2 | |
| 4676 | + he: 1.2.0 | |
| 4677 | + | |
| 4678 | + node-mock-http@1.0.4: {} | |
| 4679 | + | |
| 4680 | + node-releases@2.0.36: {} | |
| 4681 | + | |
| 4682 | + normalize-path@3.0.0: {} | |
| 4683 | + | |
| 4684 | + nth-check@2.1.1: | |
| 4685 | + dependencies: | |
| 4686 | + boolbase: 1.0.0 | |
| 4687 | + | |
| 4688 | + ofetch@1.5.1: | |
| 4689 | + dependencies: | |
| 4690 | + destr: 2.0.5 | |
| 4691 | + node-fetch-native: 1.6.7 | |
| 4692 | + ufo: 1.6.3 | |
| 4693 | + | |
| 4694 | + ohash@2.0.11: {} | |
| 4695 | + | |
| 4696 | + oniguruma-parser@0.12.1: {} | |
| 4697 | + | |
| 4698 | + oniguruma-to-es@4.3.5: | |
| 4699 | + dependencies: | |
| 4700 | + oniguruma-parser: 0.12.1 | |
| 4701 | + regex: 6.1.0 | |
| 4702 | + regex-recursion: 6.0.2 | |
| 4703 | + | |
| 4704 | + p-limit@6.2.0: | |
| 4705 | + dependencies: | |
| 4706 | + yocto-queue: 1.2.2 | |
| 4707 | + | |
| 4708 | + p-queue@8.1.1: | |
| 4709 | + dependencies: | |
| 4710 | + eventemitter3: 5.0.4 | |
| 4711 | + p-timeout: 6.1.4 | |
| 4712 | + | |
| 4713 | + p-timeout@6.1.4: {} | |
| 4714 | + | |
| 4715 | + package-manager-detector@1.6.0: {} | |
| 4716 | + | |
| 4717 | + parse-latin@7.0.0: | |
| 4718 | + dependencies: | |
| 4719 | + '@types/nlcst': 2.0.3 | |
| 4720 | + '@types/unist': 3.0.3 | |
| 4721 | + nlcst-to-string: 4.0.0 | |
| 4722 | + unist-util-modify-children: 4.0.0 | |
| 4723 | + unist-util-visit-children: 3.0.0 | |
| 4724 | + vfile: 6.0.3 | |
| 4725 | + | |
| 4726 | + parse5@7.3.0: | |
| 4727 | + dependencies: | |
| 4728 | + entities: 6.0.1 | |
| 4729 | + | |
| 4730 | + path-to-regexp@6.3.0: {} | |
| 4731 | + | |
| 4732 | + pathe@2.0.3: {} | |
| 4733 | + | |
| 4734 | + pathval@2.0.1: {} | |
| 4735 | + | |
| 4736 | + piccolore@0.1.3: {} | |
| 4737 | + | |
| 4738 | + picocolors@1.1.1: {} | |
| 4739 | + | |
| 4740 | + picomatch@2.3.2: {} | |
| 4741 | + | |
| 4742 | + picomatch@4.0.4: {} | |
| 4743 | + | |
| 4744 | + postcss@8.5.8: | |
| 4745 | + dependencies: | |
| 4746 | + nanoid: 3.3.11 | |
| 4747 | + picocolors: 1.1.1 | |
| 4748 | + source-map-js: 1.2.1 | |
| 4749 | + | |
| 4750 | + preact-render-to-string@6.6.6(preact@10.29.0): | |
| 4751 | + dependencies: | |
| 4752 | + preact: 10.29.0 | |
| 4753 | + | |
| 4754 | + preact@10.29.0: {} | |
| 4755 | + | |
| 4756 | + prismjs@1.30.0: {} | |
| 4757 | + | |
| 4758 | + prompts@2.4.2: | |
| 4759 | + dependencies: | |
| 4760 | + kleur: 3.0.3 | |
| 4761 | + sisteransi: 1.0.5 | |
| 4762 | + | |
| 4763 | + property-information@7.1.0: {} | |
| 4764 | + | |
| 4765 | + radix3@1.1.2: {} | |
| 4766 | + | |
| 4767 | + readdirp@5.0.0: {} | |
| 4768 | + | |
| 4769 | + regex-recursion@6.0.2: | |
| 4770 | + dependencies: | |
| 4771 | + regex-utilities: 2.3.0 | |
| 4772 | + | |
| 4773 | + regex-utilities@2.3.0: {} | |
| 4774 | + | |
| 4775 | + regex@6.1.0: | |
| 4776 | + dependencies: | |
| 4777 | + regex-utilities: 2.3.0 | |
| 4778 | + | |
| 4779 | + rehype-parse@9.0.1: | |
| 4780 | + dependencies: | |
| 4781 | + '@types/hast': 3.0.4 | |
| 4782 | + hast-util-from-html: 2.0.3 | |
| 4783 | + unified: 11.0.5 | |
| 4784 | + | |
| 4785 | + rehype-raw@7.0.0: | |
| 4786 | + dependencies: | |
| 4787 | + '@types/hast': 3.0.4 | |
| 4788 | + hast-util-raw: 9.1.0 | |
| 4789 | + vfile: 6.0.3 | |
| 4790 | + | |
| 4791 | + rehype-stringify@10.0.1: | |
| 4792 | + dependencies: | |
| 4793 | + '@types/hast': 3.0.4 | |
| 4794 | + hast-util-to-html: 9.0.5 | |
| 4795 | + unified: 11.0.5 | |
| 4796 | + | |
| 4797 | + rehype@13.0.2: | |
| 4798 | + dependencies: | |
| 4799 | + '@types/hast': 3.0.4 | |
| 4800 | + rehype-parse: 9.0.1 | |
| 4801 | + rehype-stringify: 10.0.1 | |
| 4802 | + unified: 11.0.5 | |
| 4803 | + | |
| 4804 | + remark-gfm@4.0.1: | |
| 4805 | + dependencies: | |
| 4806 | + '@types/mdast': 4.0.4 | |
| 4807 | + mdast-util-gfm: 3.1.0 | |
| 4808 | + micromark-extension-gfm: 3.0.0 | |
| 4809 | + remark-parse: 11.0.0 | |
| 4810 | + remark-stringify: 11.0.0 | |
| 4811 | + unified: 11.0.5 | |
| 4812 | + transitivePeerDependencies: | |
| 4813 | + - supports-color | |
| 4814 | + | |
| 4815 | + remark-parse@11.0.0: | |
| 4816 | + dependencies: | |
| 4817 | + '@types/mdast': 4.0.4 | |
| 4818 | + mdast-util-from-markdown: 2.0.3 | |
| 4819 | + micromark-util-types: 2.0.2 | |
| 4820 | + unified: 11.0.5 | |
| 4821 | + transitivePeerDependencies: | |
| 4822 | + - supports-color | |
| 4823 | + | |
| 4824 | + remark-rehype@11.1.2: | |
| 4825 | + dependencies: | |
| 4826 | + '@types/hast': 3.0.4 | |
| 4827 | + '@types/mdast': 4.0.4 | |
| 4828 | + mdast-util-to-hast: 13.2.1 | |
| 4829 | + unified: 11.0.5 | |
| 4830 | + vfile: 6.0.3 | |
| 4831 | + | |
| 4832 | + remark-smartypants@3.0.2: | |
| 4833 | + dependencies: | |
| 4834 | + retext: 9.0.0 | |
| 4835 | + retext-smartypants: 6.2.0 | |
| 4836 | + unified: 11.0.5 | |
| 4837 | + unist-util-visit: 5.1.0 | |
| 4838 | + | |
| 4839 | + remark-stringify@11.0.0: | |
| 4840 | + dependencies: | |
| 4841 | + '@types/mdast': 4.0.4 | |
| 4842 | + mdast-util-to-markdown: 2.1.2 | |
| 4843 | + unified: 11.0.5 | |
| 4844 | + | |
| 4845 | + retext-latin@4.0.0: | |
| 4846 | + dependencies: | |
| 4847 | + '@types/nlcst': 2.0.3 | |
| 4848 | + parse-latin: 7.0.0 | |
| 4849 | + unified: 11.0.5 | |
| 4850 | + | |
| 4851 | + retext-smartypants@6.2.0: | |
| 4852 | + dependencies: | |
| 4853 | + '@types/nlcst': 2.0.3 | |
| 4854 | + nlcst-to-string: 4.0.0 | |
| 4855 | + unist-util-visit: 5.1.0 | |
| 4856 | + | |
| 4857 | + retext-stringify@4.0.0: | |
| 4858 | + dependencies: | |
| 4859 | + '@types/nlcst': 2.0.3 | |
| 4860 | + nlcst-to-string: 4.0.0 | |
| 4861 | + unified: 11.0.5 | |
| 4862 | + | |
| 4863 | + retext@9.0.0: | |
| 4864 | + dependencies: | |
| 4865 | + '@types/nlcst': 2.0.3 | |
| 4866 | + retext-latin: 4.0.0 | |
| 4867 | + retext-stringify: 4.0.0 | |
| 4868 | + unified: 11.0.5 | |
| 4869 | + | |
| 4870 | + rollup@4.60.0: | |
| 4871 | + dependencies: | |
| 4872 | + '@types/estree': 1.0.8 | |
| 4873 | + optionalDependencies: | |
| 4874 | + '@rollup/rollup-android-arm-eabi': 4.60.0 | |
| 4875 | + '@rollup/rollup-android-arm64': 4.60.0 | |
| 4876 | + '@rollup/rollup-darwin-arm64': 4.60.0 | |
| 4877 | + '@rollup/rollup-darwin-x64': 4.60.0 | |
| 4878 | + '@rollup/rollup-freebsd-arm64': 4.60.0 | |
| 4879 | + '@rollup/rollup-freebsd-x64': 4.60.0 | |
| 4880 | + '@rollup/rollup-linux-arm-gnueabihf': 4.60.0 | |
| 4881 | + '@rollup/rollup-linux-arm-musleabihf': 4.60.0 | |
| 4882 | + '@rollup/rollup-linux-arm64-gnu': 4.60.0 | |
| 4883 | + '@rollup/rollup-linux-arm64-musl': 4.60.0 | |
| 4884 | + '@rollup/rollup-linux-loong64-gnu': 4.60.0 | |
| 4885 | + '@rollup/rollup-linux-loong64-musl': 4.60.0 | |
| 4886 | + '@rollup/rollup-linux-ppc64-gnu': 4.60.0 | |
| 4887 | + '@rollup/rollup-linux-ppc64-musl': 4.60.0 | |
| 4888 | + '@rollup/rollup-linux-riscv64-gnu': 4.60.0 | |
| 4889 | + '@rollup/rollup-linux-riscv64-musl': 4.60.0 | |
| 4890 | + '@rollup/rollup-linux-s390x-gnu': 4.60.0 | |
| 4891 | + '@rollup/rollup-linux-x64-gnu': 4.60.0 | |
| 4892 | + '@rollup/rollup-linux-x64-musl': 4.60.0 | |
| 4893 | + '@rollup/rollup-openbsd-x64': 4.60.0 | |
| 4894 | + '@rollup/rollup-openharmony-arm64': 4.60.0 | |
| 4895 | + '@rollup/rollup-win32-arm64-msvc': 4.60.0 | |
| 4896 | + '@rollup/rollup-win32-ia32-msvc': 4.60.0 | |
| 4897 | + '@rollup/rollup-win32-x64-gnu': 4.60.0 | |
| 4898 | + '@rollup/rollup-win32-x64-msvc': 4.60.0 | |
| 4899 | + fsevents: 2.3.3 | |
| 4900 | + | |
| 4901 | + sax@1.6.0: {} | |
| 4902 | + | |
| 4903 | + semver@6.3.1: {} | |
| 4904 | + | |
| 4905 | + semver@7.7.4: {} | |
| 4906 | + | |
| 4907 | + sharp@0.34.5: | |
| 4908 | + dependencies: | |
| 4909 | + '@img/colour': 1.1.0 | |
| 4910 | + detect-libc: 2.1.2 | |
| 4911 | + semver: 7.7.4 | |
| 4912 | + optionalDependencies: | |
| 4913 | + '@img/sharp-darwin-arm64': 0.34.5 | |
| 4914 | + '@img/sharp-darwin-x64': 0.34.5 | |
| 4915 | + '@img/sharp-libvips-darwin-arm64': 1.2.4 | |
| 4916 | + '@img/sharp-libvips-darwin-x64': 1.2.4 | |
| 4917 | + '@img/sharp-libvips-linux-arm': 1.2.4 | |
| 4918 | + '@img/sharp-libvips-linux-arm64': 1.2.4 | |
| 4919 | + '@img/sharp-libvips-linux-ppc64': 1.2.4 | |
| 4920 | + '@img/sharp-libvips-linux-riscv64': 1.2.4 | |
| 4921 | + '@img/sharp-libvips-linux-s390x': 1.2.4 | |
| 4922 | + '@img/sharp-libvips-linux-x64': 1.2.4 | |
| 4923 | + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 | |
| 4924 | + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 | |
| 4925 | + '@img/sharp-linux-arm': 0.34.5 | |
| 4926 | + '@img/sharp-linux-arm64': 0.34.5 | |
| 4927 | + '@img/sharp-linux-ppc64': 0.34.5 | |
| 4928 | + '@img/sharp-linux-riscv64': 0.34.5 | |
| 4929 | + '@img/sharp-linux-s390x': 0.34.5 | |
| 4930 | + '@img/sharp-linux-x64': 0.34.5 | |
| 4931 | + '@img/sharp-linuxmusl-arm64': 0.34.5 | |
| 4932 | + '@img/sharp-linuxmusl-x64': 0.34.5 | |
| 4933 | + '@img/sharp-wasm32': 0.34.5 | |
| 4934 | + '@img/sharp-win32-arm64': 0.34.5 | |
| 4935 | + '@img/sharp-win32-ia32': 0.34.5 | |
| 4936 | + '@img/sharp-win32-x64': 0.34.5 | |
| 4937 | + | |
| 4938 | + shiki@3.23.0: | |
| 4939 | + dependencies: | |
| 4940 | + '@shikijs/core': 3.23.0 | |
| 4941 | + '@shikijs/engine-javascript': 3.23.0 | |
| 4942 | + '@shikijs/engine-oniguruma': 3.23.0 | |
| 4943 | + '@shikijs/langs': 3.23.0 | |
| 4944 | + '@shikijs/themes': 3.23.0 | |
| 4945 | + '@shikijs/types': 3.23.0 | |
| 4946 | + '@shikijs/vscode-textmate': 10.0.2 | |
| 4947 | + '@types/hast': 3.0.4 | |
| 4948 | + | |
| 4949 | + siginfo@2.0.0: {} | |
| 4950 | + | |
| 4951 | + simple-code-frame@1.3.0: | |
| 4952 | + dependencies: | |
| 4953 | + kolorist: 1.8.0 | |
| 4954 | + | |
| 4955 | + sisteransi@1.0.5: {} | |
| 4956 | + | |
| 4957 | + smol-toml@1.6.1: {} | |
| 4958 | + | |
| 4959 | + source-map-js@1.2.1: {} | |
| 4960 | + | |
| 4961 | + source-map@0.7.6: {} | |
| 4962 | + | |
| 4963 | + space-separated-tokens@2.0.2: {} | |
| 4964 | + | |
| 4965 | + stack-trace@1.0.0-pre2: {} | |
| 4966 | + | |
| 4967 | + stackback@0.0.2: {} | |
| 4968 | + | |
| 4969 | + std-env@3.10.0: {} | |
| 4970 | + | |
| 4971 | + string-width@4.2.3: | |
| 4972 | + dependencies: | |
| 4973 | + emoji-regex: 8.0.0 | |
| 4974 | + is-fullwidth-code-point: 3.0.0 | |
| 4975 | + strip-ansi: 6.0.1 | |
| 4976 | + | |
| 4977 | + string-width@7.2.0: | |
| 4978 | + dependencies: | |
| 4979 | + emoji-regex: 10.6.0 | |
| 4980 | + get-east-asian-width: 1.5.0 | |
| 4981 | + strip-ansi: 7.2.0 | |
| 4982 | + | |
| 4983 | + stringify-entities@4.0.4: | |
| 4984 | + dependencies: | |
| 4985 | + character-entities-html4: 2.1.0 | |
| 4986 | + character-entities-legacy: 3.0.0 | |
| 4987 | + | |
| 4988 | + strip-ansi@6.0.1: | |
| 4989 | + dependencies: | |
| 4990 | + ansi-regex: 5.0.1 | |
| 4991 | + | |
| 4992 | + strip-ansi@7.2.0: | |
| 4993 | + dependencies: | |
| 4994 | + ansi-regex: 6.2.2 | |
| 4995 | + | |
| 4996 | + strip-literal@3.1.0: | |
| 4997 | + dependencies: | |
| 4998 | + js-tokens: 9.0.1 | |
| 4999 | + | |
| 5000 | + supports-color@10.2.2: {} | |
| 5001 | + | |
| 5002 | + svgo@4.0.1: | |
| 5003 | + dependencies: | |
| 5004 | + commander: 11.1.0 | |
| 5005 | + css-select: 5.2.2 | |
| 5006 | + css-tree: 3.2.1 | |
| 5007 | + css-what: 6.2.2 | |
| 5008 | + csso: 5.0.5 | |
| 5009 | + picocolors: 1.1.1 | |
| 5010 | + sax: 1.6.0 | |
| 5011 | + | |
| 5012 | + tiny-inflate@1.0.3: {} | |
| 5013 | + | |
| 5014 | + tinybench@2.9.0: {} | |
| 5015 | + | |
| 5016 | + tinyexec@0.3.2: {} | |
| 5017 | + | |
| 5018 | + tinyexec@1.0.4: {} | |
| 5019 | + | |
| 5020 | + tinyglobby@0.2.15: | |
| 5021 | + dependencies: | |
| 5022 | + fdir: 6.5.0(picomatch@4.0.4) | |
| 5023 | + picomatch: 4.0.4 | |
| 5024 | + | |
| 5025 | + tinypool@1.1.1: {} | |
| 5026 | + | |
| 5027 | + tinyrainbow@2.0.0: {} | |
| 5028 | + | |
| 5029 | + tinyspy@4.0.4: {} | |
| 5030 | + | |
| 5031 | + trim-lines@3.0.1: {} | |
| 5032 | + | |
| 5033 | + trough@2.2.0: {} | |
| 5034 | + | |
| 5035 | + tsconfck@3.1.6(typescript@5.9.3): | |
| 5036 | + optionalDependencies: | |
| 5037 | + typescript: 5.9.3 | |
| 5038 | + | |
| 5039 | + tslib@2.8.1: | |
| 5040 | + optional: true | |
| 5041 | + | |
| 5042 | + turbo@2.8.20: | |
| 5043 | + optionalDependencies: | |
| 5044 | + '@turbo/darwin-64': 2.8.20 | |
| 5045 | + '@turbo/darwin-arm64': 2.8.20 | |
| 5046 | + '@turbo/linux-64': 2.8.20 | |
| 5047 | + '@turbo/linux-arm64': 2.8.20 | |
| 5048 | + '@turbo/windows-64': 2.8.20 | |
| 5049 | + '@turbo/windows-arm64': 2.8.20 | |
| 5050 | + | |
| 5051 | + type-fest@4.41.0: {} | |
| 5052 | + | |
| 5053 | + typescript@5.9.3: {} | |
| 5054 | + | |
| 5055 | + ufo@1.6.3: {} | |
| 5056 | + | |
| 5057 | + ultrahtml@1.6.0: {} | |
| 5058 | + | |
| 5059 | + uncrypto@0.1.3: {} | |
| 5060 | + | |
| 5061 | + undici-types@7.18.2: {} | |
| 5062 | + | |
| 5063 | + undici@7.14.0: {} | |
| 5064 | + | |
| 5065 | + undici@7.24.4: {} | |
| 5066 | + | |
| 5067 | + unenv@2.0.0-rc.24: | |
| 5068 | + dependencies: | |
| 5069 | + pathe: 2.0.3 | |
| 5070 | + | |
| 5071 | + unified@11.0.5: | |
| 5072 | + dependencies: | |
| 5073 | + '@types/unist': 3.0.3 | |
| 5074 | + bail: 2.0.2 | |
| 5075 | + devlop: 1.1.0 | |
| 5076 | + extend: 3.0.2 | |
| 5077 | + is-plain-obj: 4.1.0 | |
| 5078 | + trough: 2.2.0 | |
| 5079 | + vfile: 6.0.3 | |
| 5080 | + | |
| 5081 | + unifont@0.7.4: | |
| 5082 | + dependencies: | |
| 5083 | + css-tree: 3.2.1 | |
| 5084 | + ofetch: 1.5.1 | |
| 5085 | + ohash: 2.0.11 | |
| 5086 | + | |
| 5087 | + unist-util-find-after@5.0.0: | |
| 5088 | + dependencies: | |
| 5089 | + '@types/unist': 3.0.3 | |
| 5090 | + unist-util-is: 6.0.1 | |
| 5091 | + | |
| 5092 | + unist-util-is@6.0.1: | |
| 5093 | + dependencies: | |
| 5094 | + '@types/unist': 3.0.3 | |
| 5095 | + | |
| 5096 | + unist-util-modify-children@4.0.0: | |
| 5097 | + dependencies: | |
| 5098 | + '@types/unist': 3.0.3 | |
| 5099 | + array-iterate: 2.0.1 | |
| 5100 | + | |
| 5101 | + unist-util-position@5.0.0: | |
| 5102 | + dependencies: | |
| 5103 | + '@types/unist': 3.0.3 | |
| 5104 | + | |
| 5105 | + unist-util-remove-position@5.0.0: | |
| 5106 | + dependencies: | |
| 5107 | + '@types/unist': 3.0.3 | |
| 5108 | + unist-util-visit: 5.1.0 | |
| 5109 | + | |
| 5110 | + unist-util-stringify-position@4.0.0: | |
| 5111 | + dependencies: | |
| 5112 | + '@types/unist': 3.0.3 | |
| 5113 | + | |
| 5114 | + unist-util-visit-children@3.0.0: | |
| 5115 | + dependencies: | |
| 5116 | + '@types/unist': 3.0.3 | |
| 5117 | + | |
| 5118 | + unist-util-visit-parents@6.0.2: | |
| 5119 | + dependencies: | |
| 5120 | + '@types/unist': 3.0.3 | |
| 5121 | + unist-util-is: 6.0.1 | |
| 5122 | + | |
| 5123 | + unist-util-visit@5.1.0: | |
| 5124 | + dependencies: | |
| 5125 | + '@types/unist': 3.0.3 | |
| 5126 | + unist-util-is: 6.0.1 | |
| 5127 | + unist-util-visit-parents: 6.0.2 | |
| 5128 | + | |
| 5129 | + unstorage@1.17.4: | |
| 5130 | + dependencies: | |
| 5131 | + anymatch: 3.1.3 | |
| 5132 | + chokidar: 5.0.0 | |
| 5133 | + destr: 2.0.5 | |
| 5134 | + h3: 1.15.10 | |
| 5135 | + lru-cache: 11.2.7 | |
| 5136 | + node-fetch-native: 1.6.7 | |
| 5137 | + ofetch: 1.5.1 | |
| 5138 | + ufo: 1.6.3 | |
| 5139 | + | |
| 5140 | + update-browserslist-db@1.2.3(browserslist@4.28.1): | |
| 5141 | + dependencies: | |
| 5142 | + browserslist: 4.28.1 | |
| 5143 | + escalade: 3.2.0 | |
| 5144 | + picocolors: 1.1.1 | |
| 5145 | + | |
| 5146 | + vfile-location@5.0.3: | |
| 5147 | + dependencies: | |
| 5148 | + '@types/unist': 3.0.3 | |
| 5149 | + vfile: 6.0.3 | |
| 5150 | + | |
| 5151 | + vfile-message@4.0.3: | |
| 5152 | + dependencies: | |
| 5153 | + '@types/unist': 3.0.3 | |
| 5154 | + unist-util-stringify-position: 4.0.0 | |
| 5155 | + | |
| 5156 | + vfile@6.0.3: | |
| 5157 | + dependencies: | |
| 5158 | + '@types/unist': 3.0.3 | |
| 5159 | + vfile-message: 4.0.3 | |
| 5160 | + | |
| 5161 | + vite-node@3.2.4(@types/node@25.5.0): | |
| 5162 | + dependencies: | |
| 5163 | + cac: 6.7.14 | |
| 5164 | + debug: 4.4.3 | |
| 5165 | + es-module-lexer: 1.7.0 | |
| 5166 | + pathe: 2.0.3 | |
| 5167 | + vite: 7.3.1(@types/node@25.5.0) | |
| 5168 | + transitivePeerDependencies: | |
| 5169 | + - '@types/node' | |
| 5170 | + - jiti | |
| 5171 | + - less | |
| 5172 | + - lightningcss | |
| 5173 | + - sass | |
| 5174 | + - sass-embedded | |
| 5175 | + - stylus | |
| 5176 | + - sugarss | |
| 5177 | + - supports-color | |
| 5178 | + - terser | |
| 5179 | + - tsx | |
| 5180 | + - yaml | |
| 5181 | + | |
| 5182 | + vite-prerender-plugin@0.5.13(vite@6.4.1(@types/node@25.5.0)): | |
| 5183 | + dependencies: | |
| 5184 | + kolorist: 1.8.0 | |
| 5185 | + magic-string: 0.30.21 | |
| 5186 | + node-html-parser: 6.1.13 | |
| 5187 | + simple-code-frame: 1.3.0 | |
| 5188 | + source-map: 0.7.6 | |
| 5189 | + stack-trace: 1.0.0-pre2 | |
| 5190 | + vite: 6.4.1(@types/node@25.5.0) | |
| 5191 | + | |
| 5192 | + vite@6.4.1(@types/node@25.5.0): | |
| 5193 | + dependencies: | |
| 5194 | + esbuild: 0.25.12 | |
| 5195 | + fdir: 6.5.0(picomatch@4.0.4) | |
| 5196 | + picomatch: 4.0.4 | |
| 5197 | + postcss: 8.5.8 | |
| 5198 | + rollup: 4.60.0 | |
| 5199 | + tinyglobby: 0.2.15 | |
| 5200 | + optionalDependencies: | |
| 5201 | + '@types/node': 25.5.0 | |
| 5202 | + fsevents: 2.3.3 | |
| 5203 | + | |
| 5204 | + vite@7.3.1(@types/node@25.5.0): | |
| 5205 | + dependencies: | |
| 5206 | + esbuild: 0.27.4 | |
| 5207 | + fdir: 6.5.0(picomatch@4.0.4) | |
| 5208 | + picomatch: 4.0.4 | |
| 5209 | + postcss: 8.5.8 | |
| 5210 | + rollup: 4.60.0 | |
| 5211 | + tinyglobby: 0.2.15 | |
| 5212 | + optionalDependencies: | |
| 5213 | + '@types/node': 25.5.0 | |
| 5214 | + fsevents: 2.3.3 | |
| 5215 | + | |
| 5216 | + vitefu@1.1.2(vite@6.4.1(@types/node@25.5.0)): | |
| 5217 | + optionalDependencies: | |
| 5218 | + vite: 6.4.1(@types/node@25.5.0) | |
| 5219 | + | |
| 5220 | + vitest@3.2.4(@types/debug@4.1.13)(@types/node@25.5.0): | |
| 5221 | + dependencies: | |
| 5222 | + '@types/chai': 5.2.3 | |
| 5223 | + '@vitest/expect': 3.2.4 | |
| 5224 | + '@vitest/mocker': 3.2.4(vite@7.3.1(@types/node@25.5.0)) | |
| 5225 | + '@vitest/pretty-format': 3.2.4 | |
| 5226 | + '@vitest/runner': 3.2.4 | |
| 5227 | + '@vitest/snapshot': 3.2.4 | |
| 5228 | + '@vitest/spy': 3.2.4 | |
| 5229 | + '@vitest/utils': 3.2.4 | |
| 5230 | + chai: 5.3.3 | |
| 5231 | + debug: 4.4.3 | |
| 5232 | + expect-type: 1.3.0 | |
| 5233 | + magic-string: 0.30.21 | |
| 5234 | + pathe: 2.0.3 | |
| 5235 | + picomatch: 4.0.4 | |
| 5236 | + std-env: 3.10.0 | |
| 5237 | + tinybench: 2.9.0 | |
| 5238 | + tinyexec: 0.3.2 | |
| 5239 | + tinyglobby: 0.2.15 | |
| 5240 | + tinypool: 1.1.1 | |
| 5241 | + tinyrainbow: 2.0.0 | |
| 5242 | + vite: 7.3.1(@types/node@25.5.0) | |
| 5243 | + vite-node: 3.2.4(@types/node@25.5.0) | |
| 5244 | + why-is-node-running: 2.3.0 | |
| 5245 | + optionalDependencies: | |
| 5246 | + '@types/debug': 4.1.13 | |
| 5247 | + '@types/node': 25.5.0 | |
| 5248 | + transitivePeerDependencies: | |
| 5249 | + - jiti | |
| 5250 | + - less | |
| 5251 | + - lightningcss | |
| 5252 | + - msw | |
| 5253 | + - sass | |
| 5254 | + - sass-embedded | |
| 5255 | + - stylus | |
| 5256 | + - sugarss | |
| 5257 | + - supports-color | |
| 5258 | + - terser | |
| 5259 | + - tsx | |
| 5260 | + - yaml | |
| 5261 | + | |
| 5262 | + web-namespaces@2.0.1: {} | |
| 5263 | + | |
| 5264 | + which-pm-runs@1.1.0: {} | |
| 5265 | + | |
| 5266 | + why-is-node-running@2.3.0: | |
| 5267 | + dependencies: | |
| 5268 | + siginfo: 2.0.0 | |
| 5269 | + stackback: 0.0.2 | |
| 5270 | + | |
| 5271 | + widest-line@5.0.0: | |
| 5272 | + dependencies: | |
| 5273 | + string-width: 7.2.0 | |
| 5274 | + | |
| 5275 | + workerd@1.20260114.0: | |
| 5276 | + optionalDependencies: | |
| 5277 | + '@cloudflare/workerd-darwin-64': 1.20260114.0 | |
| 5278 | + '@cloudflare/workerd-darwin-arm64': 1.20260114.0 | |
| 5279 | + '@cloudflare/workerd-linux-64': 1.20260114.0 | |
| 5280 | + '@cloudflare/workerd-linux-arm64': 1.20260114.0 | |
| 5281 | + '@cloudflare/workerd-windows-64': 1.20260114.0 | |
| 5282 | + | |
| 5283 | + workerd@1.20260317.1: | |
| 5284 | + optionalDependencies: | |
| 5285 | + '@cloudflare/workerd-darwin-64': 1.20260317.1 | |
| 5286 | + '@cloudflare/workerd-darwin-arm64': 1.20260317.1 | |
| 5287 | + '@cloudflare/workerd-linux-64': 1.20260317.1 | |
| 5288 | + '@cloudflare/workerd-linux-arm64': 1.20260317.1 | |
| 5289 | + '@cloudflare/workerd-windows-64': 1.20260317.1 | |
| 5290 | + | |
| 5291 | + wrangler@4.59.2(@cloudflare/workers-types@4.20260317.1): | |
| 5292 | + dependencies: | |
| 5293 | + '@cloudflare/kv-asset-handler': 0.4.2 | |
| 5294 | + '@cloudflare/unenv-preset': 2.10.0(unenv@2.0.0-rc.24)(workerd@1.20260114.0) | |
| 5295 | + blake3-wasm: 2.1.5 | |
| 5296 | + esbuild: 0.27.0 | |
| 5297 | + miniflare: 4.20260114.0 | |
| 5298 | + path-to-regexp: 6.3.0 | |
| 5299 | + unenv: 2.0.0-rc.24 | |
| 5300 | + workerd: 1.20260114.0 | |
| 5301 | + optionalDependencies: | |
| 5302 | + '@cloudflare/workers-types': 4.20260317.1 | |
| 5303 | + fsevents: 2.3.3 | |
| 5304 | + transitivePeerDependencies: | |
| 5305 | + - bufferutil | |
| 5306 | + - utf-8-validate | |
| 5307 | + | |
| 5308 | + wrangler@4.77.0(@cloudflare/workers-types@4.20260317.1): | |
| 5309 | + dependencies: | |
| 5310 | + '@cloudflare/kv-asset-handler': 0.4.2 | |
| 5311 | + '@cloudflare/unenv-preset': 2.16.0(unenv@2.0.0-rc.24)(workerd@1.20260317.1) | |
| 5312 | + blake3-wasm: 2.1.5 | |
| 5313 | + esbuild: 0.27.3 | |
| 5314 | + miniflare: 4.20260317.2 | |
| 5315 | + path-to-regexp: 6.3.0 | |
| 5316 | + unenv: 2.0.0-rc.24 | |
| 5317 | + workerd: 1.20260317.1 | |
| 5318 | + optionalDependencies: | |
| 5319 | + '@cloudflare/workers-types': 4.20260317.1 | |
| 5320 | + fsevents: 2.3.3 | |
| 5321 | + transitivePeerDependencies: | |
| 5322 | + - bufferutil | |
| 5323 | + - utf-8-validate | |
| 5324 | + | |
| 5325 | + wrap-ansi@9.0.2: | |
| 5326 | + dependencies: | |
| 5327 | + ansi-styles: 6.2.3 | |
| 5328 | + string-width: 7.2.0 | |
| 5329 | + strip-ansi: 7.2.0 | |
| 5330 | + | |
| 5331 | + ws@8.18.0: {} | |
| 5332 | + | |
| 5333 | + xxhash-wasm@1.1.0: {} | |
| 5334 | + | |
| 5335 | + yallist@3.1.1: {} | |
| 5336 | + | |
| 5337 | + yargs-parser@21.1.1: {} | |
| 5338 | + | |
| 5339 | + yocto-queue@1.2.2: {} | |
| 5340 | + | |
| 5341 | + yocto-spinner@0.2.3: | |
| 5342 | + dependencies: | |
| 5343 | + yoctocolors: 2.1.2 | |
| 5344 | + | |
| 5345 | + yoctocolors@2.1.2: {} | |
| 5346 | + | |
| 5347 | + youch-core@0.3.3: | |
| 5348 | + dependencies: | |
| 5349 | + '@poppinss/exception': 1.2.3 | |
| 5350 | + error-stack-parser-es: 1.0.5 | |
| 5351 | + | |
| 5352 | + youch@4.1.0-beta.10: | |
| 5353 | + dependencies: | |
| 5354 | + '@poppinss/colors': 4.1.6 | |
| 5355 | + '@poppinss/dumper': 0.6.5 | |
| 5356 | + '@speed-highlight/core': 1.2.15 | |
| 5357 | + cookie: 1.1.1 | |
| 5358 | + youch-core: 0.3.3 | |
| 5359 | + | |
| 5360 | + zimmerframe@1.1.4: {} | |
| 5361 | + | |
| 5362 | + zod-to-json-schema@3.25.1(zod@3.25.76): | |
| 5363 | + dependencies: | |
| 5364 | + zod: 3.25.76 | |
| 5365 | + | |
| 5366 | + zod-to-ts@1.2.0(typescript@5.9.3)(zod@3.25.76): | |
| 5367 | + dependencies: | |
| 5368 | + typescript: 5.9.3 | |
| 5369 | + zod: 3.25.76 | |
| 5370 | + | |
| 5371 | + zod@3.25.76: {} | |
| 5372 | + | |
| 5373 | + zwitch@2.0.4: {} | |
| 5374 | + | |
A pnpm-workspace.yaml
| @@ -1,0 +1,7 @@ | ||
| 1 | +packages: | |
| 2 | + - "packages/*" | |
| 3 | +onlyBuiltDependencies: | |
| 4 | + - esbuild | |
| 5 | + - sharp | |
| 6 | + - workerd | |
| 7 | + | |
A tsconfig.base.json
| @@ -1,0 +1,18 @@ | ||
| 1 | +{ | |
| 2 | + "compilerOptions": { | |
| 3 | + "target": "ES2022", | |
| 4 | + "module": "ES2022", | |
| 5 | + "moduleResolution": "bundler", | |
| 6 | + "lib": ["ES2022"], | |
| 7 | + "strict": true, | |
| 8 | + "esModuleInterop": true, | |
| 9 | + "skipLibCheck": true, | |
| 10 | + "forceConsistentCasingInFileNames": true, | |
| 11 | + "resolveJsonModule": true, | |
| 12 | + "isolatedModules": true, | |
| 13 | + "declaration": true, | |
| 14 | + "declarationMap": true, | |
| 15 | + "sourceMap": true | |
| 16 | + } | |
| 17 | +} | |
| 18 | + | |
A turbo.json
| @@ -1,0 +1,18 @@ | ||
| 1 | +{ | |
| 2 | + "$schema": "https://turbo.build/schema.json", | |
| 3 | + "tasks": { | |
| 4 | + "build": { | |
| 5 | + "dependsOn": ["^build"], | |
| 6 | + "outputs": ["dist/**"] | |
| 7 | + }, | |
| 8 | + "dev": { | |
| 9 | + "cache": false, | |
| 10 | + "persistent": true | |
| 11 | + }, | |
| 12 | + "test": { | |
| 13 | + "dependsOn": ["^build"] | |
| 14 | + }, | |
| 15 | + "lint": {} | |
| 16 | + } | |
| 17 | +} | |
| 18 | + | |