feat: add providers CLI and multi-account onboarding

This commit is contained in:
Peter Steinberger
2026-01-08 01:18:37 +01:00
parent 6b3ed40d0f
commit 05b8679c8b
54 changed files with 4399 additions and 1448 deletions

View File

@@ -137,7 +137,7 @@ describe("sendCommand", () => {
expect(deps.sendMessageTelegram).toHaveBeenCalledWith(
"123",
"hi",
expect.objectContaining({ token: "token-abc", verbose: false }),
expect.objectContaining({ accountId: "default", verbose: false }),
);
expect(deps.sendMessageWhatsApp).not.toHaveBeenCalled();
});
@@ -158,7 +158,7 @@ describe("sendCommand", () => {
expect(deps.sendMessageTelegram).toHaveBeenCalledWith(
"123",
"hi",
expect.objectContaining({ token: "cfg-token", verbose: false }),
expect.objectContaining({ accountId: "default", verbose: false }),
);
});
@@ -209,7 +209,11 @@ describe("sendCommand", () => {
deps,
runtime,
);
expect(deps.sendMessageSlack).toHaveBeenCalledWith("channel:C123", "hi");
expect(deps.sendMessageSlack).toHaveBeenCalledWith(
"channel:C123",
"hi",
expect.objectContaining({ accountId: "default" }),
);
expect(deps.sendMessageWhatsApp).not.toHaveBeenCalled();
});