Initial commit

This commit is contained in:
xggz
2026-03-06 22:56:13 +08:00
commit 54d1097b41
273 changed files with 92457 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
export const ATTACH_FILE_TO_SESSION_EVENT = "codeg:attach-file-to-session"
export interface AttachFileToSessionDetail {
tabId: string
path: string
}
export function emitAttachFileToSession(
detail: AttachFileToSessionDetail
): void {
if (typeof window === "undefined") return
window.dispatchEvent(
new CustomEvent<AttachFileToSessionDetail>(ATTACH_FILE_TO_SESSION_EVENT, {
detail,
})
)
}