oh-my-knowledge 0.50.0 → 0.51.0
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.
|
@@ -3712,16 +3712,8 @@ function isOrchestrationRuntimeEvent(event) {
|
|
|
3712
3712
|
return /^(?:Task|Agent)$/i.test(event.toolName ?? '')
|
|
3713
3713
|
|| /runner\.js|send-input\.js|check-session\.js/i.test(text);
|
|
3714
3714
|
}
|
|
3715
|
-
if (event.kind === 'tool_result') {
|
|
3716
|
-
const trimmed = text.trim();
|
|
3717
|
-
if (/^---\s*\n?\s*name:/i.test(trimmed) || /^---\s+name:/i.test(trimmed))
|
|
3718
|
-
return false;
|
|
3719
|
-
return /"event"\s*:\s*"started"|Command still running \(session|Process exited with code|Process exited with signal/i.test(text)
|
|
3720
|
-
|| /["']?(?:child_?session_?id|agent_?id|thread_?id|session_?id)["']?\s*[:=]/i.test(text)
|
|
3721
|
-
|| /\b(?:session|thread|agent)(?:\s+id)?\s*[:=]\s*[a-z0-9][a-z0-9._-]*/i.test(text);
|
|
3722
|
-
}
|
|
3723
3715
|
if (event.kind === 'assistant_message') {
|
|
3724
|
-
return /ttyd|(?:已启动|启动了|spawned|started)
|
|
3716
|
+
return /ttyd|(?:已启动|启动了|spawned|started).{0,80}(?:subagent|sub-agent|child agent|子\s*(?:agent|代理|智能体|Claude|Codex))|(?:subagent|sub-agent|child agent|子\s*(?:agent|代理|智能体|Claude|Codex)).{0,48}(?:已启动|启动中|正在(?:执行|运行|分析)|spawned|started|running)/i.test(text)
|
|
3725
3717
|
|| /\b(?:session|thread|agent)(?:\s+id)?\s*[:=]\s*[a-z0-9][a-z0-9._-]*/i.test(text);
|
|
3726
3718
|
}
|
|
3727
3719
|
return false;
|
|
@@ -4280,16 +4272,10 @@ function inferSkillRole(group, allInvocations, session) {
|
|
|
4280
4272
|
return 'unknown';
|
|
4281
4273
|
}
|
|
4282
4274
|
function routingEvidenceEvents(invocation) {
|
|
4283
|
-
return invocation.timeline
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
return true;
|
|
4288
|
-
if (isDifferentSkillInvocationEvent(event, invocation.skillName))
|
|
4289
|
-
return true;
|
|
4290
|
-
const text = event.fullText ?? event.snippet ?? '';
|
|
4291
|
-
return /subagent|sub-agent|child agent|子\s*(?:agent|代理|智能体|Claude|Codex)|子任务|分发|委派|路由|delegate|dispatch|route|调用.+skill|走\s*`?[\w-]+`?\s*skill/i.test(text);
|
|
4292
|
-
}).slice(0, 3);
|
|
4275
|
+
return invocation.timeline
|
|
4276
|
+
.filter((event) => isOrchestrationRuntimeEvent(event)
|
|
4277
|
+
|| isDifferentSkillInvocationEvent(event, invocation.skillName))
|
|
4278
|
+
.slice(0, 3);
|
|
4293
4279
|
}
|
|
4294
4280
|
function isDifferentSkillInvocationEvent(event, currentSkillName) {
|
|
4295
4281
|
if (event.kind !== 'tool_use' || !/^Skill$/i.test(event.toolName ?? ''))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-knowledge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"packageManager": "yarn@4.16.0",
|
|
5
5
|
"description": "Evaluation framework for LLM knowledge inputs — prompts, RAG corpora, skills, agent workflows. Fix the model, vary the artifact. Built-in statistical rigor: bootstrap CI, Krippendorff α, length-debias, saturation curves.",
|
|
6
6
|
"type": "module",
|