Skip to content

Commit 871a964

Browse files
committed
Deleted outdated SQL reference documentation.
1 parent 175c400 commit 871a964

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/lib/skill-archive.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,6 @@ export async function isSkillArchive(file: File): Promise<boolean> {
104104
return ZIP_MAGIC.every((byte, i) => head[i] === byte);
105105
}
106106

107-
function formatMb(bytes: number): string {
108-
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
109-
}
110-
111-
function normalizeEntrypointCase(path: string): string {
112-
const base = basename(path);
113-
if (base !== 'SKILL.md' && base.toLowerCase() === 'skill.md') {
114-
return `${path.slice(0, path.length - base.length)}SKILL.md`;
115-
}
116-
return path;
117-
}
118-
119107
/**
120108
* Normalize a zip entry path and reject anything that escapes the archive root.
121109
* Returns the cleaned, forward-slashed path, or `null` for absolute paths,
@@ -132,3 +120,15 @@ export function sanitizeEntryPath(raw: string): null | string {
132120
const cleaned = segments.join('/');
133121
return cleaned === '' ? null : cleaned;
134122
}
123+
124+
function formatMb(bytes: number): string {
125+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
126+
}
127+
128+
function normalizeEntrypointCase(path: string): string {
129+
const base = basename(path);
130+
if (base !== 'SKILL.md' && base.toLowerCase() === 'skill.md') {
131+
return `${path.slice(0, path.length - base.length)}SKILL.md`;
132+
}
133+
return path;
134+
}

0 commit comments

Comments
 (0)