@@ -4,154 +4,45 @@ skip_core_tasks = true
4
4
5
5
[tasks .build ]
6
6
run_task = { name = [
7
- " build-anthropic" ,
8
- " build-grok" ,
9
- " build-openai" ,
10
- " build-openrouter" ,
11
- " build-ollama" ,
7
+ " build-algolia" ,
12
8
] }
13
9
14
10
[tasks .build-portable ]
15
11
run_task = { name = [
16
- " build-anthropic-portable" ,
17
- " build-grok-portable" ,
18
- " build-openai-portable" ,
19
- " build-openrouter-portable" ,
20
- " build-ollama-portable" ,
12
+ " build-algolia-portable" ,
21
13
] }
22
14
23
15
[tasks .release-build ]
24
16
run_task = { name = [
25
- " release-build-anthropic" ,
26
- " release-build-grok" ,
27
- " release-build-openai" ,
28
- " release-build-openrouter" ,
29
- " release-build-ollama" ,
17
+ " release-build-algolia" ,
30
18
] }
31
19
32
20
[tasks .release-build-portable ]
33
21
run_task = { name = [
34
- " release-build-anthropic-portable" ,
35
- " release-build-grok-portable" ,
36
- " release-build-openai-portable" ,
37
- " release-build-openrouter-portable" ,
38
- " release-build-ollama-portable" ,
22
+ " release-build-algolia-portable" ,
39
23
] }
40
24
41
- [tasks .build-ollama ]
25
+ [tasks .build-algolia ]
42
26
install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
43
27
command = " cargo-component"
44
- args = [" build" , " -p" , " golem-llm-ollama " ]
28
+ args = [" build" , " -p" , " golem-search-algolia " ]
45
29
46
30
47
- [tasks .build-ollama -portable ]
31
+ [tasks .build-algolia -portable ]
48
32
install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
49
33
command = " cargo-component"
50
- args = [" build" , " -p" , " golem-llm-ollama " , " --no-default-features" ]
34
+ args = [" build" , " -p" , " golem-search-algolia " , " --no-default-features" ]
51
35
52
36
53
- [tasks .build-anthropic ]
37
+ [tasks .release- build-algolia ]
54
38
install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
55
39
command = " cargo-component"
56
- args = [" build" , " -p" , " golem-llm-anthropic " ]
40
+ args = [" build" , " -p" , " golem-search-algolia " , " --release " ]
57
41
58
- [tasks .build-anthropic -portable ]
42
+ [tasks .release- build-algolia -portable ]
59
43
install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
60
44
command = " cargo-component"
61
- args = [" build" , " -p" , " golem-llm-anthropic" , " --no-default-features" ]
62
-
63
- [tasks .build-grok ]
64
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
65
- command = " cargo-component"
66
- args = [" build" , " -p" , " golem-llm-grok" ]
67
-
68
- [tasks .build-grok-portable ]
69
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
70
- command = " cargo-component"
71
- args = [" build" , " -p" , " golem-llm-grok" , " --no-default-features" ]
72
-
73
- [tasks .build-openai ]
74
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
75
- command = " cargo-component"
76
- args = [" build" , " -p" , " golem-llm-openai" ]
77
-
78
- [tasks .build-openai-portable ]
79
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
80
- command = " cargo-component"
81
- args = [" build" , " -p" , " golem-llm-openai" , " --no-default-features" ]
82
-
83
- [tasks .build-openrouter ]
84
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
85
- command = " cargo-component"
86
- args = [" build" , " -p" , " golem-llm-openrouter" ]
87
-
88
- [tasks .build-openrouter-portable ]
89
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
90
- command = " cargo-component"
91
- args = [" build" , " -p" , " golem-llm-openrouter" , " --no-default-features" ]
92
-
93
- [tasks .release-build-ollama ]
94
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
95
- command = " cargo-component"
96
- args = [" build" , " -p" , " golem-llm-ollama" , " --release" ]
97
-
98
- [tasks .release-build-ollama-portable ]
99
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
100
- command = " cargo-component"
101
- args = [" build" , " -p" , " golem-llm-ollama" , " --release" , " --no-default-features" ]
102
-
103
-
104
- [tasks .release-build-anthropic ]
105
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
106
- command = " cargo-component"
107
- args = [" build" , " -p" , " golem-llm-anthropic" , " --release" ]
108
-
109
- [tasks .release-build-anthropic-portable ]
110
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
111
- command = " cargo-component"
112
- args = [
113
- " build" ,
114
- " -p" ,
115
- " golem-llm-anthropic" ,
116
- " --release" ,
117
- " --no-default-features" ,
118
- ]
119
-
120
- [tasks .release-build-grok ]
121
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
122
- command = " cargo-component"
123
- args = [" build" , " -p" , " golem-llm-grok" , " --release" ]
124
-
125
- [tasks .release-build-grok-portable ]
126
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
127
- command = " cargo-component"
128
- args = [" build" , " -p" , " golem-llm-grok" , " --release" , " --no-default-features" ]
129
-
130
- [tasks .release-build-openai ]
131
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
132
- command = " cargo-component"
133
- args = [" build" , " -p" , " golem-llm-openai" , " --release" ]
134
-
135
- [tasks .release-build-openai-portable ]
136
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
137
- command = " cargo-component"
138
- args = [" build" , " -p" , " golem-llm-openai" , " --release" , " --no-default-features" ]
139
-
140
- [tasks .release-build-openrouter ]
141
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
142
- command = " cargo-component"
143
- args = [" build" , " -p" , " golem-llm-openrouter" , " --release" ]
144
-
145
- [tasks .release-build-openrouter-portable ]
146
- install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
147
- command = " cargo-component"
148
- args = [
149
- " build" ,
150
- " -p" ,
151
- " golem-llm-openrouter" ,
152
- " --release" ,
153
- " --no-default-features" ,
154
- ]
45
+ args = [" build" , " -p" , " golem-search-algolia" , " --release" , " --no-default-features" ]
155
46
156
47
[tasks .wit-update ]
157
48
install_crate = { crate_name = " wit-deps-cli" }
@@ -163,22 +54,22 @@ dependencies = ["wit-update"]
163
54
164
55
script_runner = " @duckscript"
165
56
script = """
166
- modules = array llm openai anthropic grok openrouter ollama
57
+ modules = array search algolia
167
58
168
59
for module in ${modules}
169
60
rm -r ${module}/wit/deps
170
- mkdir ${module}/wit/deps/golem-llm
171
- cp wit/golem-llm .wit ${module}/wit/deps/golem-llm /golem-llm .wit
61
+ mkdir ${module}/wit/deps/golem-search
62
+ cp wit/golem-search .wit ${module}/wit/deps/golem-search /golem-search .wit
172
63
cp wit/deps/wasi:io ${module}/wit/deps
173
64
174
- echo "Copied WIT for module llm ::${module}"
65
+ echo "Copied WIT for module search ::${module}"
175
66
end
176
67
177
68
# Copy WIT files for integration tests
178
69
rm -r ../test/wit
179
- mkdir ../test/wit/deps/golem-llm
70
+ mkdir ../test/wit/deps/golem-search
180
71
mkdir ../test/wit/deps/io
181
- cp wit/golem-llm .wit ../test/wit/deps/golem-llm /golem-llm .wit
72
+ cp wit/golem-search .wit ../test/wit/deps/golem-search /golem-search .wit
182
73
cp wit/deps/wasi:io/error.wit ../test/wit/deps/io/error.wit
183
74
cp wit/deps/wasi:io/poll.wit ../test/wit/deps/io/poll.wit
184
75
cp wit/deps/wasi:io/streams.wit ../test/wit/deps/io/streams.wit
@@ -190,21 +81,13 @@ echo "Copied WIT for module test"
190
81
[tasks .build-test-components ]
191
82
dependencies = [" build" ]
192
83
install_crate = " cargo-binstall"
193
- description = " Builds llm test components with golem-cli"
84
+ description = " Builds search test components with golem-cli"
194
85
script = '''
195
86
cargo-binstall golem-cli@1.2.2-dev.11 --locked --no-confirm
196
87
cargo-binstall wac-cli --locked --no-confirm
197
88
cd ../test
198
89
199
90
golem-cli --version
200
91
golem-cli app clean
201
- golem-cli app build -b anthropic-debug
202
- golem-cli app clean
203
- golem-cli app build -b grok-debug
204
- golem-cli app clean
205
- golem-cli app build -b openai-debug
206
- golem-cli app clean
207
- golem-cli app build -b openrouter-debug
208
- golem-cli app clean
209
- golem-cli app build -b ollama-debug
92
+ golem-cli app build -b algolia-debug
210
93
'''
0 commit comments