模型通道:接管官方 API Key 通道指向弹匣网关(GLM-5.3 / GLM-5.3-Flash) 登录:浏览器取一次性接入码 → 换成员专属 key → 写入 DSH 凭据 工具面:MCP 暴露查汇总/查任务/查项目/建任务/完成/改期/whoami 面板:侧边栏入口,个人看板 + 角色可见范围 + 行内操作 离职吊销:成员停用即吊销名下全部 TDB key 发布配置:scope 包名、私有 registry 锁定、prepack 自动构建、prepublishOnly 检查
20 lines
939 B
JavaScript
20 lines
939 B
JavaScript
#!/usr/bin/env node
|
|
/** 把 panel.css + panel.template.js 合成 dist/client.js(客户端半片)。 */
|
|
import fs from "node:fs"
|
|
import { homedir } from "node:os"
|
|
import { join, dirname } from "node:path"
|
|
import { fileURLToPath } from "node:url"
|
|
|
|
const here = dirname(fileURLToPath(import.meta.url))
|
|
const root = join(here, "..")
|
|
const css = fs.readFileSync(join(root, "src/panel/panel.css"), "utf8")
|
|
let tpl = fs.readFileSync(join(root, "src/panel/panel.template.js"), "utf8")
|
|
if (!tpl.includes("__CSS_JSON__")) {
|
|
console.error("模板里没有 __CSS_JSON__ 占位,拒绝生成")
|
|
process.exit(1)
|
|
}
|
|
tpl = tpl.replace("__CSS_JSON__", JSON.stringify(css))
|
|
fs.mkdirSync(join(root, "dist"), { recursive: true })
|
|
fs.writeFileSync(join(root, "dist/client.js"), tpl)
|
|
const kb = (fs.statSync(join(root, "dist/client.js")).size / 1024).toFixed(1)
|
|
console.log("built dist/client.js " + kb + " KB (css " + css.split("\n").length + " 行)") |