初始版本 0.1.0:四道菜团队中台 DSH 插件
模型通道:接管官方 API Key 通道指向弹匣网关(GLM-5.3 / GLM-5.3-Flash) 登录:浏览器取一次性接入码 → 换成员专属 key → 写入 DSH 凭据 工具面:MCP 暴露查汇总/查任务/查项目/建任务/完成/改期/whoami 面板:侧边栏入口,个人看板 + 角色可见范围 + 行内操作 离职吊销:成员停用即吊销名下全部 TDB key 发布配置:scope 包名、私有 registry 锁定、prepack 自动构建、prepublishOnly 检查
This commit is contained in:
commit
ff8017bbbb
26 files changed
+2924
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#!/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 + " 行)")
|
||||
Reference in new issue
Block a user