|
1 | 1 | (ns integration.initialize-test |
2 | 2 | (:require |
| 3 | + [clojure.string :as string] |
3 | 4 | [clojure.test :refer [deftest is testing]] |
4 | 5 | [integration.eca :as eca] |
5 | 6 | [integration.fixture :as fixture] |
|
32 | 33 | :chatDefaultModel "anthropic/claude-sonnet-4-20250514" |
33 | 34 | :chatBehaviors ["agent" "plan"] |
34 | 35 | :chatDefaultBehavior "plan" |
35 | | - :chatWelcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"} |
| 36 | + :chatWelcomeMessage (m/pred #(string/includes? % "Welcome to ECA!"))} |
36 | 37 | (eca/request! (fixture/initialize-request |
37 | 38 | {:initializationOptions (merge fixture/default-init-options |
38 | 39 | {:chat {:defaultBehavior "plan"}})}))))) |
|
46 | 47 | :selectModel "anthropic/claude-sonnet-4-20250514" |
47 | 48 | :behaviors ["agent" "plan"] |
48 | 49 | :selectBehavior "plan" |
49 | | - :welcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"}} |
| 50 | + :welcomeMessage (m/pred #(string/includes? % "Welcome to ECA!"))}} |
50 | 51 | (eca/client-awaits-server-notification :config/updated))))) |
51 | 52 |
|
52 | 53 | (testing "Native tools updated" |
|
90 | 91 | :chatDefaultModel "my-custom/bar-2" |
91 | 92 | :chatBehaviors ["agent" "plan"] |
92 | 93 | :chatDefaultBehavior "agent" |
93 | | - :chatWelcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"} |
| 94 | + :chatWelcomeMessage (m/pred #(string/includes? % "Welcome to ECA!"))} |
94 | 95 | (eca/request! (fixture/initialize-request |
95 | 96 | {:initializationOptions (merge fixture/default-init-options |
96 | 97 | {:defaultModel "my-custom/bar-2" |
|
110 | 111 | :selectModel "my-custom/bar-2" |
111 | 112 | :behaviors ["agent" "plan"] |
112 | 113 | :selectBehavior "agent" |
113 | | - :welcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"}} |
| 114 | + :welcomeMessage (m/pred #(string/includes? % "Welcome to ECA!"))}} |
114 | 115 | (eca/client-awaits-server-notification :config/updated)))))) |
0 commit comments