expect(transport.capabilities.getNormalizedMessageState().messages).toHaveLength(1);
expect(
await transport.capabilities.readNormalizedMessage({
messageId: inbound.id,
}),
).toMatchObject({
id: inbound.id,
text: "hello from the operator",
});
});
it("inherits the shared failure-aware wait helper", async () => { const transport = createQaChannelTransport(createQaBusState());
let injected = false;
await expect(
transport.capabilities.waitForCondition(
async () => { if (!injected) {
injected = true;
await transport.capabilities.injectOutboundMessage({
accountId: "default",
to: "dm:qa-operator",
text: "⚠️ agent failed before reply: synthetic failure for wait helper",
});
} return undefined;
}, 50, 10,
),
).rejects.toThrow("synthetic failure for wait helper");
});
it("captures a fresh failure cursor for each wait helper call", async () => { const transport = createQaChannelTransport(createQaBusState());
await transport.capabilities.injectOutboundMessage({
accountId: "default",
to: "dm:qa-operator",
text: "⚠️ agent failed before reply: stale failure should not leak",
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.