@ai-workbench/remote-agent 0.8.17 → 0.8.19
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/README.md +29 -9
- package/dist/acp.d.ts +3 -0
- package/dist/acp.js +36 -8
- package/dist/approval-label.d.ts +2 -1
- package/dist/approval-label.js +9 -1
- package/dist/client.js +2 -2
- package/dist/close-diagnostics.d.ts +1 -1
- package/dist/conversation-details.js +12 -7
- package/dist/employee-exec.d.ts +5 -0
- package/dist/employee-exec.js +12 -2
- package/dist/employee-info.d.ts +13 -0
- package/dist/employee-info.js +28 -0
- package/dist/employee-provider.js +23 -14
- package/dist/employee-reasons.d.ts +4 -0
- package/dist/employee-reasons.js +61 -0
- package/dist/employee-ssh.d.ts +1 -1
- package/dist/employee-ssh.js +1 -1
- package/dist/failure-evidence.d.ts +4 -0
- package/dist/failure-evidence.js +22 -3
- package/dist/index.d.ts +8 -2
- package/dist/index.js +77 -26
- package/dist/input.d.ts +11 -0
- package/dist/input.js +48 -5
- package/dist/presentation.js +1 -1
- package/dist/provider.d.ts +5 -0
- package/dist/provider.js +1 -0
- package/dist/stage-timing.d.ts +4 -0
- package/dist/stage-timing.js +27 -5
- package/locale/en.json +2 -2
- package/locale/zh.json +1 -1
- package/package.json +1 -1
package/dist/stage-timing.js
CHANGED
|
@@ -11,6 +11,19 @@ export class StageTiming {
|
|
|
11
11
|
started = performance.now();
|
|
12
12
|
pending = [];
|
|
13
13
|
sink;
|
|
14
|
+
confirmations = { count: 0, total: 0, min: Infinity, max: 0, elapsed: 0 };
|
|
15
|
+
emit(detail) { if (this.sink)
|
|
16
|
+
this.sink(detail);
|
|
17
|
+
else
|
|
18
|
+
this.pending.push(detail); }
|
|
19
|
+
/** Presentation aggregation only: no duration threshold and no new execution gate. */
|
|
20
|
+
summarize() {
|
|
21
|
+
const current = this.confirmations;
|
|
22
|
+
if (!current.count)
|
|
23
|
+
return;
|
|
24
|
+
this.confirmations = { count: 0, total: 0, min: Infinity, max: 0, elapsed: 0 };
|
|
25
|
+
this.emit({ kind: 'session', severity: 'info', code: 'REMOTE_STAGE_TIMING', summary: STAGES['connection-confirm'] + ':' + current.count + '次,共' + current.total.toFixed(1) + '毫秒,最大' + current.max.toFixed(1) + '毫秒', payload: { phase: 'connection-confirm', count: current.count, totalDurationMs: current.total, minDurationMs: current.min, maxDurationMs: current.max, elapsedMs: current.elapsed, outcome: 'ok', clock: 'client-monotonic' } });
|
|
26
|
+
}
|
|
14
27
|
bind(sink) {
|
|
15
28
|
this.sink = sink;
|
|
16
29
|
const pending = this.pending;
|
|
@@ -29,11 +42,20 @@ export class StageTiming {
|
|
|
29
42
|
finally {
|
|
30
43
|
const ended = performance.now();
|
|
31
44
|
const durationMs = ended - started, elapsedMs = ended - this.started;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
if (phase === 'connection-confirm' && outcome === 'ok') {
|
|
46
|
+
const current = this.confirmations;
|
|
47
|
+
current.count++;
|
|
48
|
+
current.total += durationMs;
|
|
49
|
+
current.min = Math.min(current.min, durationMs);
|
|
50
|
+
current.max = Math.max(current.max, durationMs);
|
|
51
|
+
current.elapsed = elapsedMs;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
if (phase !== 'connection-confirm')
|
|
55
|
+
this.summarize();
|
|
56
|
+
const detail = { kind: 'session', severity: outcome === 'ok' ? 'info' : 'warning', code: 'REMOTE_STAGE_TIMING', summary: STAGES[phase] + ':' + durationMs.toFixed(1) + '毫秒', payload: { phase, durationMs, elapsedMs, outcome, clock: 'client-monotonic' } };
|
|
57
|
+
this.emit(detail);
|
|
58
|
+
}
|
|
37
59
|
}
|
|
38
60
|
}
|
|
39
61
|
}
|
package/locale/en.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Codex (Remote Host)",
|
|
4
|
-
"description": "Run Codex sessions through a remote host. Administrators: use Settings → Open configuration file to edit the existing plugin entry. See README for the
|
|
4
|
+
"description": "Run Codex sessions through a remote host. Administrators: use Settings → Open configuration file to edit the existing plugin entry. See README for the eight fields and approved defaults."
|
|
5
5
|
},
|
|
6
6
|
"configuration": {
|
|
7
|
-
"administratorNote": "Settings → Built-in plugins → 远程助手参数.
|
|
7
|
+
"administratorNote": "Settings → Built-in plugins → 远程助手参数. Eight named settings with defaults, scope and effects.",
|
|
8
8
|
"providerName": "Codex (Remote Host)"
|
|
9
9
|
}
|
|
10
10
|
}
|
package/locale/zh.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"description": "通过远程主机运行Claude与Codex。首版不支持总是允许和歧义审批选项、已有Claude会话中立即生效的系统上下文变更;完整说明见README。参数从设置 → 内置插件 → 远程助手参数编辑。"
|
|
5
5
|
},
|
|
6
6
|
"configuration": {
|
|
7
|
-
"administratorNote": "管理员:设置 → 内置插件 →
|
|
7
|
+
"administratorNote": "管理员:设置 → 内置插件 → 远程助手参数。八项设置含默认值、范围、生效和后果说明。",
|
|
8
8
|
"providerName": "Codex(远程主机)"
|
|
9
9
|
}
|
|
10
10
|
}
|