@suifei/dsh-ai-team 0.3.83 → 0.3.86
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/CHANGELOG.md +11 -0
- package/index.js +50 -1
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/__init__.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/__main__.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/backend.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/budget.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/config.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/consolidate.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/cycle.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/dream.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/evidence.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/gate.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/handoff_backend.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/harvest.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/harvest_codex.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/harvest_copilot.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/harvest_copilot_cli.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/harvest_cursor.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/harvest_opencode.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/harvest_pi.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/harvest_sources.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/judges.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/memory.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/mine.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/multi_skill.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/replay.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/skill_resolver.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/staging.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/state.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/tasks_file.cpython-311.pyc +0 -0
- package/lib/vendor/skillopt/skillopt_sleep/__pycache__/types.cpython-311.pyc +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.86 - 2026-11-12
|
|
4
|
+
|
|
5
|
+
- **技能进化链路可观测性**:health 新增 `runtime.services`(tools.register / shell / 已注册的 skillopt_* 工具清单);SkillOpt 注册条件不满足时记 `skillopt.skip.fail` 诊断——消除「静默未启用」的排查盲区(此前只能靠 diag 猜)。
|
|
6
|
+
- 实证:本机 7 个 skillopt 工具全部注册、Python 3.11 引擎可运行(`status` 实跑 `nights so far: 0`);技能进化链路**已就绪但从未运行**(默认 mock backend 为安全默认)。
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## 0.3.84 - 2026-11-12
|
|
10
|
+
|
|
11
|
+
- **旧会话自动迁移(review 修复)**:唤醒失败且错误表明 subagent 不可用时(旧形态成员会话由 agents.create 创建、不在 subagent catalog),自动以 subagent 形态重建一次(重置会话)并记录 member.autoreseat 诊断——避免成员在重构后静默不再被唤醒,用户无需手动迁移。
|
|
12
|
+
|
|
13
|
+
|
|
3
14
|
## 0.3.83 - 2026-11-12
|
|
4
15
|
|
|
5
16
|
- **人员池模型下拉 [object Object] 修复**:modelCatalog 的 providers[].models 元素是 {id,name} 对象,P2 之前按字符串拼接。改为按 {id,name} 取值,并用索引映射代替字符串拆解(模型显示名可能含分隔符)。
|
package/index.js
CHANGED
|
@@ -41,7 +41,7 @@ export const name = 'ai-team';
|
|
|
41
41
|
/** The workbench only makes sense where the Web carrier exists. */
|
|
42
42
|
export const inject = ['webServer', 'permissionPresets', 'sandboxPolicy'];
|
|
43
43
|
|
|
44
|
-
const VERSION = '0.3.
|
|
44
|
+
const VERSION = '0.3.86';
|
|
45
45
|
const HUMAN_ID = 'mem_human';
|
|
46
46
|
|
|
47
47
|
const SKILLOPT_BACKENDS = ['mock', 'claude', 'codex', 'copilot', 'cursor', 'pi', 'opencode', 'handoff', 'azure_openai'];
|
|
@@ -490,6 +490,38 @@ export function apply(ctx, config = {}) {
|
|
|
490
490
|
message: error?.message ?? String(error),
|
|
491
491
|
});
|
|
492
492
|
console.warn('[ai-team] wake failed:', plan.memberId, error?.code ?? error?.message ?? error);
|
|
493
|
+
// 一次性迁移自愈:旧形态成员会话(历史上由 agents.create 创建、
|
|
494
|
+
// 不在 subagent catalog)无法经父→子通道投递。识别该失败后自动以
|
|
495
|
+
// subagent 形态重建一次(重置会话),避免成员静默不再被唤醒。
|
|
496
|
+
const failureText = `${error?.code ?? ''} ${error?.message ?? String(error)}`;
|
|
497
|
+
const legacySession = /subagent|not-found|not found|E_SESSION_MISSING/i.test(failureText)
|
|
498
|
+
&& typeof member?.sessionId === 'string' && member.sessionId !== '';
|
|
499
|
+
if (legacySession) {
|
|
500
|
+
try {
|
|
501
|
+
const reseated = await activateMember({
|
|
502
|
+
payload: {
|
|
503
|
+
memberId: plan.memberId,
|
|
504
|
+
force: true,
|
|
505
|
+
prompt: '会话已升级为团队子智能体形态(历史会话迁移)。先读 tasks/thread 当前状态,继续推进;不要重复已完成的工作。',
|
|
506
|
+
},
|
|
507
|
+
}, projectRuntime);
|
|
508
|
+
diag.append({
|
|
509
|
+
ev: 'member.autoreseat',
|
|
510
|
+
projectId: projectRuntime.id,
|
|
511
|
+
memberId: plan.memberId,
|
|
512
|
+
oldSessionId: member.sessionId,
|
|
513
|
+
newSessionId: reseated?.sessionId ?? null,
|
|
514
|
+
ok: reseated?.error === undefined,
|
|
515
|
+
});
|
|
516
|
+
} catch (reseatError) {
|
|
517
|
+
diag.append({
|
|
518
|
+
ev: 'member.autoreseat.fail',
|
|
519
|
+
projectId: projectRuntime.id,
|
|
520
|
+
memberId: plan.memberId,
|
|
521
|
+
message: reseatError?.message ?? String(reseatError),
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
}
|
|
493
525
|
try {
|
|
494
526
|
await projectRuntime.service.recordWake(plan.memberId, {
|
|
495
527
|
ok: false, taskId: plan.taskId, reason: plan.reason, error: error?.code ?? error?.message ?? String(error),
|
|
@@ -715,6 +747,16 @@ export function apply(ctx, config = {}) {
|
|
|
715
747
|
let disposeSkillOpt = () => {};
|
|
716
748
|
try {
|
|
717
749
|
const shell = ctx.get('shell');
|
|
750
|
+
// 探针:SkillOpt 注册依赖 tools.register + shell 两个服务。历史上这条
|
|
751
|
+
// if 为假时无任何诊断,导致「技能进化静默未启用」(用户实证盘查)。
|
|
752
|
+
if (!tools?.register || !shell) {
|
|
753
|
+
diag.append({
|
|
754
|
+
ev: 'skillopt.skip.fail',
|
|
755
|
+
hasToolsRegister: typeof tools?.register === 'function',
|
|
756
|
+
hasShell: Boolean(shell),
|
|
757
|
+
});
|
|
758
|
+
console.warn('[ai-team] SkillOpt tools not registered:', { hasToolsRegister: typeof tools?.register === 'function', hasShell: Boolean(shell) });
|
|
759
|
+
}
|
|
718
760
|
if (tools?.register && shell) {
|
|
719
761
|
// Backend/timeout come from the plugin Config (patch layer), so an
|
|
720
762
|
// operator can move the skillopt_* tools off the safe mock default.
|
|
@@ -1168,6 +1210,13 @@ export function apply(ctx, config = {}) {
|
|
|
1168
1210
|
})),
|
|
1169
1211
|
runtime: {
|
|
1170
1212
|
roots: ctx.get('agents')?.roots?.().length ?? null,
|
|
1213
|
+
// 服务探测(技能进化链路依赖 tools.register + shell):
|
|
1214
|
+
// 同步可观测,避免历史「静默未启用」盲区。
|
|
1215
|
+
services: {
|
|
1216
|
+
tools: typeof ctx.get('tools')?.register === 'function',
|
|
1217
|
+
shell: Boolean(ctx.get('shell')),
|
|
1218
|
+
skilloptTools: (ctx.get('tools')?.definitions?.() ?? []).map((definition) => definition.name).filter((toolName) => String(toolName).startsWith('skillopt_')),
|
|
1219
|
+
},
|
|
1171
1220
|
defaultModel: ctx.get('agentDefaultModel')?.currentSelection?.() ?? null,
|
|
1172
1221
|
llmProviders: ctx.get('llm')?.listProviders?.() ?? [],
|
|
1173
1222
|
providers: ctx.get('subagents')?.list?.() ?? [],
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suifei/dsh-ai-team",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.86",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "文渊阁 (Wenyuan Pavilion) — AI Team mode for DeepSeek Harness: concurrent projects, owned tasks, threads, inbox and an append-only team ledger",
|
|
6
6
|
"license": "MIT",
|