@kingsoftcloud/agentkit-harness-node 0.0.29 → 0.0.30
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kingsoftcloud/agentkit-harness-node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Standalone Native Harness Node adapters: a durable SQLite run store, a one-request model HTTP port, and a minimal versioned JSON-RPC 2.0 over NDJSON process entry. Reuses the shared Native adapter implementations and externalizes @kingsoftcloud/agentkit-harness-core; depends on no Studio/DSH code at runtime.",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"src/package-integrity.mjs"
|
|
155
155
|
],
|
|
156
156
|
"dependencies": {
|
|
157
|
-
"@kingsoftcloud/agentkit-harness-core": "0.0.
|
|
157
|
+
"@kingsoftcloud/agentkit-harness-core": "0.0.30",
|
|
158
158
|
"@astral-sh/ruff-wasm-nodejs": "0.16.8",
|
|
159
159
|
"parse5": "7.3.0",
|
|
160
160
|
"playwright-core": "1.58.2",
|
|
@@ -113,6 +113,8 @@ export function projectEngineEvent(event, requiredVerification = false, thinking
|
|
|
113
113
|
case 'model.retry_scheduled':
|
|
114
114
|
return { ...base, category: 'model', title: 'waiting',
|
|
115
115
|
...(Number.isSafeInteger(payload.retryAt) && payload.retryAt > 0 ? { retryAt: payload.retryAt } : {}),
|
|
116
|
+
...(Number.isSafeInteger(payload.attempt) && payload.attempt > 0 ? { attempt: payload.attempt } : {}),
|
|
117
|
+
...(payload.purpose === 'compaction' ? { purpose: 'compaction' } : {}),
|
|
116
118
|
...(Number.isSafeInteger(payload.failure?.httpStatus) ? { httpStatus: payload.failure.httpStatus } : {}) };
|
|
117
119
|
case 'context.summary_completed':
|
|
118
120
|
case 'completion.delivery_review_completed':
|
|
@@ -142,6 +144,8 @@ export function projectEngineEvent(event, requiredVerification = false, thinking
|
|
|
142
144
|
case 'model.retry_exhausted': return { ...base, category: 'model', reason: 'provider_unavailable',
|
|
143
145
|
modelError: nativeModelStopMessage('provider_unavailable') };
|
|
144
146
|
case 'run.started': return { ...base, category: 'run', title: 'started' };
|
|
147
|
+
case 'run.paused': return { ...base, category: 'run', title: 'paused', reason: payload.reason,
|
|
148
|
+
...modelStopFields(payload.reason) };
|
|
145
149
|
case 'run.terminal': return { ...base, category: 'run', title: payload.phase, status: payload.outcome,
|
|
146
150
|
...(requiredVerification ? { requiredVerification: true } : {}),
|
|
147
151
|
...(payload.reason ? { reason: payload.reason } : {}),
|
|
@@ -19,6 +19,8 @@ const messages = Object.freeze({
|
|
|
19
19
|
context_finalization_budget_unavailable: '剩余上下文预算不足以完成任务收尾。',
|
|
20
20
|
repeated_tool_error_no_progress: '工具连续失败且任务没有进展,请检查工具配置或输入。',
|
|
21
21
|
verification_report_missing: '任务验证没有返回结果,无法确认完成。',
|
|
22
|
+
delivery_no_progress: '验收待办仍未完成,继续执行后没有观察到进展。任务已暂停,可补充信息后继续。',
|
|
23
|
+
delivery_repair_budget_exhausted: '验收待办仍未完成,本轮可用的修复预算已用完。任务已暂停。',
|
|
22
24
|
child_owner_unavailable: '子任务执行端不可用,请核对原子任务状态。',
|
|
23
25
|
child_receipt_unavailable: '子任务结果尚未确认,请核对原子任务。',
|
|
24
26
|
background_children_unsettled: '后台子任务尚未结算,请核对后继续。',
|
|
@@ -51,6 +53,7 @@ function modelFailureMessage(value, retriesExhausted = false) {
|
|
|
51
53
|
}
|
|
52
54
|
export function nativeModelStopMessage(reason, modelFailure) {
|
|
53
55
|
if (reason === 'provider_unavailable') return '模型服务暂不可用,自动重试次数已用完。任务已暂停,可稍后继续。';
|
|
56
|
+
if (reason === 'delivery_no_progress' || reason === 'delivery_repair_budget_exhausted') return messages[reason];
|
|
54
57
|
if (!modelReasons.has(reason)) return null;
|
|
55
58
|
if (reason.endsWith('_retry_exhausted')) {
|
|
56
59
|
const detail = modelFailureMessage(modelFailure, true);
|