feat(notify): bundle KDCO notify with ownership migration

This commit is contained in:
Kenny
2026-04-19 14:07:08 +08:00
parent af15e8a413
commit f5a11281f8
17 changed files with 906 additions and 13 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bun
import { copyFileSync, mkdirSync, writeFileSync } from "node:fs"
import { join } from "node:path"
const DIST_NOTIFY_DIR = join("dist", "opencode-notify")
const SOURCE_NOTICE_PATH = join("src", "bundled-opencode-notify", "THIRD_PARTY_NOTICES.md")
const DIST_NOTICE_PATH = join(DIST_NOTIFY_DIR, "THIRD_PARTY_NOTICES.md")
const DIST_PACKAGE_PATH = join(DIST_NOTIFY_DIR, "package.json")
const bundledPackageJson = {
name: "@oh-my-openagent/bundled-opencode-notify",
private: true,
type: "module",
main: "./index.js",
}
function main(): void {
mkdirSync(DIST_NOTIFY_DIR, { recursive: true })
writeFileSync(DIST_PACKAGE_PATH, `${JSON.stringify(bundledPackageJson, null, 2)}\n`, "utf-8")
copyFileSync(SOURCE_NOTICE_PATH, DIST_NOTICE_PATH)
}
main()