@botbotgo/agent-harness 0.0.130 → 0.0.131
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 +1 -0
- package/README.zh.md +1 -0
- package/dist/contracts/runtime.d.ts +8 -0
- package/dist/package-version.d.ts +1 -1
- package/dist/package-version.js +1 -1
- package/dist/runtime/harness/index.d.ts +1 -0
- package/dist/runtime/harness/index.js +1 -0
- package/dist/runtime/harness/run/queue-diagnostics.d.ts +2 -0
- package/dist/runtime/harness/run/queue-diagnostics.js +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,6 +114,7 @@ Boundary documents live in:
|
|
|
114
114
|
- `docs/acp-support-plan.md`
|
|
115
115
|
- `docs/recovery-policy-matrix.md`
|
|
116
116
|
- `docs/operator-timeline.md`
|
|
117
|
+
- `docs/queue-concurrency-inspection.md`
|
|
117
118
|
- `docs/feature-checklist.md`
|
|
118
119
|
- `docs/long-term-memory.md`
|
|
119
120
|
- `docs/app-task-pattern.md`
|
package/README.zh.md
CHANGED
|
@@ -114,6 +114,7 @@ AI 让 agent 逻辑、工具调用和工作流代码更容易生成,真正变
|
|
|
114
114
|
- `docs/acp-support-plan.md`
|
|
115
115
|
- `docs/recovery-policy-matrix.md`
|
|
116
116
|
- `docs/operator-timeline.md`
|
|
117
|
+
- `docs/queue-concurrency-inspection.md`
|
|
117
118
|
- `docs/feature-checklist.md`
|
|
118
119
|
- `docs/long-term-memory.md`
|
|
119
120
|
- `docs/app-task-pattern.md`
|
|
@@ -59,6 +59,14 @@ export type RuntimeTimelineProjectionOptions = {
|
|
|
59
59
|
threadId?: string;
|
|
60
60
|
runId?: string;
|
|
61
61
|
};
|
|
62
|
+
export type RuntimeQueueDiagnostics = {
|
|
63
|
+
status: HealthStatus;
|
|
64
|
+
activeRunSlots: number;
|
|
65
|
+
pendingRunSlots: number;
|
|
66
|
+
stuckRuns: number;
|
|
67
|
+
queueEvents: RuntimeTimelineItem[];
|
|
68
|
+
summary: string;
|
|
69
|
+
};
|
|
62
70
|
export type RuntimeEventSink = {
|
|
63
71
|
publish: (event: HarnessEvent) => void;
|
|
64
72
|
subscribe: (listener: HarnessEventListener) => () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.130";
|
package/dist/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.130";
|
|
@@ -4,6 +4,7 @@ export * from "./events/events.js";
|
|
|
4
4
|
export * from "./events/timeline.js";
|
|
5
5
|
export * from "./system/health-monitor.js";
|
|
6
6
|
export * from "./run/helpers.js";
|
|
7
|
+
export * from "./run/queue-diagnostics.js";
|
|
7
8
|
export * from "./system/inventory.js";
|
|
8
9
|
export * from "./system/policy-engine.js";
|
|
9
10
|
export * from "./run/resources.js";
|
|
@@ -4,6 +4,7 @@ export * from "./events/events.js";
|
|
|
4
4
|
export * from "./events/timeline.js";
|
|
5
5
|
export * from "./system/health-monitor.js";
|
|
6
6
|
export * from "./run/helpers.js";
|
|
7
|
+
export * from "./run/queue-diagnostics.js";
|
|
7
8
|
export * from "./system/inventory.js";
|
|
8
9
|
export * from "./system/policy-engine.js";
|
|
9
10
|
export * from "./run/resources.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function projectQueueDiagnostics(snapshot, timeline) {
|
|
2
|
+
const queueEvents = timeline.filter((item) => item.kind === "queue" || item.kind === "recovery");
|
|
3
|
+
const summary = `active=${snapshot.stats.activeRunSlots} ` +
|
|
4
|
+
`pending=${snapshot.stats.pendingRunSlots} ` +
|
|
5
|
+
`stuck=${snapshot.stats.stuckRuns} ` +
|
|
6
|
+
`workload=${snapshot.checks.workload.status}`;
|
|
7
|
+
return {
|
|
8
|
+
status: snapshot.checks.workload.status,
|
|
9
|
+
activeRunSlots: snapshot.stats.activeRunSlots,
|
|
10
|
+
pendingRunSlots: snapshot.stats.pendingRunSlots,
|
|
11
|
+
stuckRuns: snapshot.stats.stuckRuns,
|
|
12
|
+
queueEvents,
|
|
13
|
+
summary,
|
|
14
|
+
};
|
|
15
|
+
}
|