refactor(core): migrate to Bun and converge acquisition policies and Agent boundaries

This commit is contained in:
root committed 2026-10-13 14:37:03 +08:00
1 parent 3f1c6d02f6
commit 27c0f27434
268 files changed
+7468 -7852

No files matched your search

@@ -51,6 +51,7 @@ export const INTENT_ROUTES: readonly IntentRoute[] = [
{ cap: "inventory.query", note: "库里已有的文件与收录版本" },
{ cap: "release.search", note: "找可下载的资源" },
{ cap: "release.inspect", note: "看某条资源的文件清单与促销" },
{ cap: "release.apply_facts", note: "查证后补齐缺失资源属性,再由规则判断" },
{ cap: "download.plan", note: "准备下载,返回是否需要批准" },
{ cap: "download.submit", note: "提交到下载器" },
],
+4 -2
View File
@@ -17,8 +17,10 @@ import type { PromptSection, SessionKind, SkillDoc } from "./types.ts";
// pi 1.x 把 harness 移到 pi-durable 后不再提供 skills,这里只保留本项目用到的部分:
// 一层目录下的 <name>/SKILL.md,不读 .gitignore、不收根目录的散 .md、不跟随符号链接。
/** 仓库内的 Skill 目录;deno compile 用 --include 嵌入(apps/server/deno.json 的 compile 任务) */
export const SKILLS_DIR = fileURLToPath(new URL("../../skills", import.meta.url));
/** 仓库内的 Skill 目录;bun build --compile 用 --include 嵌入(apps/server/package.json 的 compile 任务) */
export const SKILLS_DIR = process.execPath.endsWith("/umt-server")
? join(process.execPath.replace(/[^/]+$/, ""), "skills")
: fileURLToPath(new URL("../../skills", import.meta.url));
const DEFAULT_SESSIONS: SessionKind[] = ["chat", "patrol", "investigate", "child"];
const SESSION_KINDS = new Set<SessionKind>(["chat", "patrol", "investigate", "child", "vision"]);