Merge branch 'main' of github.com:getpaseo/paseo
This commit is contained in:
@@ -3,6 +3,16 @@ import { describe, expect, test } from "vitest";
|
|||||||
import { buildProviderCommand } from "@/utils/provider-command-templates";
|
import { buildProviderCommand } from "@/utils/provider-command-templates";
|
||||||
|
|
||||||
describe("buildProviderCommand", () => {
|
describe("buildProviderCommand", () => {
|
||||||
|
test("builds Hermes resume commands from native session ids", () => {
|
||||||
|
expect(
|
||||||
|
buildProviderCommand({
|
||||||
|
provider: "hermes",
|
||||||
|
id: "resume",
|
||||||
|
sessionId: "20260813_111500_abc123",
|
||||||
|
}),
|
||||||
|
).toBe("hermes --resume 20260813_111500_abc123");
|
||||||
|
});
|
||||||
|
|
||||||
test("builds OpenCode resume commands from native session ids", () => {
|
test("builds OpenCode resume commands from native session ids", () => {
|
||||||
expect(
|
expect(
|
||||||
buildProviderCommand({
|
buildProviderCommand({
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ export const PROVIDER_COMMAND_TEMPLATES: Record<
|
|||||||
claude: {
|
claude: {
|
||||||
resume: "claude --resume {sessionId}",
|
resume: "claude --resume {sessionId}",
|
||||||
},
|
},
|
||||||
|
hermes: {
|
||||||
|
resume: "hermes --resume {sessionId}",
|
||||||
|
},
|
||||||
pi: {
|
pi: {
|
||||||
resume: "pi --session {sessionId}",
|
resume: "pi --session {sessionId}",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user