@siming-org/core 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1913,7 +1913,7 @@ declare function assertModelAliasExists(repo: ModelAliasRepo, code: string): Pro
|
|
|
1913
1913
|
* - color:可选 UI 语义色 token(如 --success);
|
|
1914
1914
|
* - order:下拉排序;builtin:内置值(禁删,D8);active:启停(禁用值下拉不可选,D8)。
|
|
1915
1915
|
*/
|
|
1916
|
-
/** 注册表 category 白名单(D4:固定分类,不可增删)。T202608260002:agent_function 为第二个「schema 固定枚举权威 + registry 仅展示」双轨类(继 pause_type
|
|
1916
|
+
/** 注册表 category 白名单(D4:固定分类,不可增删)。T202608260002:agent_function 为第二个「schema 固定枚举权威 + registry 仅展示」双轨类(继 pause_type 先例)。T202609230001 §12.6:tool_check_type 曾短暂入册后撤销——16 检查类型是 CLI CHECK_REGISTRY 固定实现映射非用户数据,说明能力内聚到 NodeChecksEditor 内置目录(不设枚举类目) */
|
|
1917
1917
|
declare const EnumRegistryCategorySchema: z.ZodEnum<{
|
|
1918
1918
|
scope: "scope";
|
|
1919
1919
|
dag_phase: "dag_phase";
|
|
@@ -1978,7 +1978,7 @@ declare const EnumRegistryUpdateSchema: z.ZodObject<{
|
|
|
1978
1978
|
type EnumRegistryUpdate = z.infer<typeof EnumRegistryUpdateSchema>;
|
|
1979
1979
|
|
|
1980
1980
|
type EnumRegistryRepo = Repo<EnumRegistry> & {
|
|
1981
|
-
/** 全量
|
|
1981
|
+
/** 全量 9 类(SettingsPage 一次性加载;N017 删 gate_type,T202608260002 +agent_function,T202609150002 +issue_status;T202609230001 §12.6 tool_check_type 撤册——CLI 固定实现映射不设枚举类目) */
|
|
1982
1982
|
listRegistries(): Promise<EnumRegistry[]>;
|
|
1983
1983
|
/** 单类(按 category) */
|
|
1984
1984
|
getRegistry(category: EnumRegistryCategory): Promise<EnumRegistry | null>;
|
package/dist/index.js
CHANGED
|
@@ -4168,8 +4168,16 @@ function applyUpgradeDecisions(template, presetsByCode, decisions) {
|
|
|
4168
4168
|
working.prompt = latest.prompt;
|
|
4169
4169
|
working.skills = [...latest.skills];
|
|
4170
4170
|
working.agents = [...latest.agents ?? []];
|
|
4171
|
-
|
|
4172
|
-
|
|
4171
|
+
if (latest.toolChecks !== void 0) {
|
|
4172
|
+
working.toolChecks = latest.toolChecks.map((c) => c.params ? { ...c, params: { ...c.params } } : { ...c });
|
|
4173
|
+
} else {
|
|
4174
|
+
delete working.toolChecks;
|
|
4175
|
+
}
|
|
4176
|
+
if (latest.aiChecks !== void 0) {
|
|
4177
|
+
working.aiChecks = latest.aiChecks.map((c) => ({ ...c }));
|
|
4178
|
+
} else {
|
|
4179
|
+
delete working.aiChecks;
|
|
4180
|
+
}
|
|
4173
4181
|
working.sourcePreset = {
|
|
4174
4182
|
code: source.code,
|
|
4175
4183
|
version: latest.version,
|