@meshxdata/fops 0.1.28 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +370 -0
- package/package.json +1 -1
- package/src/commands/lifecycle.js +26 -6
- package/src/plugins/bundled/fops-plugin-foundation/index.js +2 -2
- package/src/plugins/bundled/fops-plugin-foundation/lib/client.js +1 -1
- package/src/plugins/bundled/fops-plugin-foundation/lib/tools-read.js +1 -1
- package/src/plugins/bundled/fops-plugin-foundation/lib/tools-write.js +1 -1
- package/src/web/api.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,376 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to @meshxdata/fops (Foundation Operator CLI) are documented here.
|
|
4
4
|
|
|
5
|
+
## [0.1.30] - 2026-03-04
|
|
6
|
+
|
|
7
|
+
- localhost replaced by 127.0.0.1 (82b9f30)
|
|
8
|
+
- .29 (587b0e1)
|
|
9
|
+
- improve up down and bootstrap script (b79ebaf)
|
|
10
|
+
- checksum (22c8086)
|
|
11
|
+
- checksum (96b434f)
|
|
12
|
+
- checksum (15ed3c0)
|
|
13
|
+
- checksum (8a6543a)
|
|
14
|
+
- bump embed trino linksg (8440504)
|
|
15
|
+
- bump data (765ffd9)
|
|
16
|
+
- bump (cb8b232)
|
|
17
|
+
- broken tests (c532229)
|
|
18
|
+
- release 0.1.18, preflight checks (d902249)
|
|
19
|
+
- fix compute display bug (d10f5d9)
|
|
20
|
+
- cleanup packer files (6330f18)
|
|
21
|
+
- plan mode (cb36a8a)
|
|
22
|
+
- bump to 0.1.16 - agent ui (41ac1a2)
|
|
23
|
+
- bump to 0.1.15 - agent ui (4ebe2e1)
|
|
24
|
+
- bump to 0.1.14 (6c3a7fa)
|
|
25
|
+
- bump to 0.1.13 (8db570f)
|
|
26
|
+
- release 0.1.12 (c1c79e5)
|
|
27
|
+
- bump (11aa3b0)
|
|
28
|
+
- git keep and bump tui (be1678e)
|
|
29
|
+
- skills, index, rrf, compacted context (100k > 10k) (7b2fffd)
|
|
30
|
+
- cloudflare and token consumption, graphs indexing (0ad9eec)
|
|
31
|
+
- bump storage default (22c83ba)
|
|
32
|
+
- storage fix (68a22a0)
|
|
33
|
+
- skills update (7f56500)
|
|
34
|
+
- v9 bump (3864446)
|
|
35
|
+
- bump (c95eedc)
|
|
36
|
+
- rrf (dbf8c95)
|
|
37
|
+
- feat: warning when running predictions (95e8c52)
|
|
38
|
+
- feat: support for local predictions (45cf26b)
|
|
39
|
+
- feat: wip support for predictions + mlflow (3457052)
|
|
40
|
+
- add Reciprocal Rank Fusion (RRF) to knowledge and skill retrieval (61549bc)
|
|
41
|
+
- validate CSV headers in compute_run readiness check (a8c7a43)
|
|
42
|
+
- fix corrupted Iceberg metadata: probe tables + force cleanup on re-apply (50578af)
|
|
43
|
+
- enforce: never use foundation_apply to fix broken products (2e049bf)
|
|
44
|
+
- update SKILL.md with complete tool reference for knowledge retrieval (30b1924)
|
|
45
|
+
- add storage read, input DP table probe, and compute_run improvements (34e6c4c)
|
|
46
|
+
- skills update (1220385)
|
|
47
|
+
- skills update (bb66958)
|
|
48
|
+
- some tui improvement andd tools apply overwrite (e90c35c)
|
|
49
|
+
- skills update (e9227a1)
|
|
50
|
+
- skills update (669c4b3)
|
|
51
|
+
- fix plugin pre-flight checks (f741743)
|
|
52
|
+
- increase agent context (6479aaa)
|
|
53
|
+
- skills and init sql fixes (5fce35e)
|
|
54
|
+
- checksum (3518b56)
|
|
55
|
+
- penging job limit (a139861)
|
|
56
|
+
- checksum (575d28c)
|
|
57
|
+
- bump (92049ba)
|
|
58
|
+
- fix bug per tab status (0a33657)
|
|
59
|
+
- fix bug per tab status (50457c6)
|
|
60
|
+
- checksumming (0ad842e)
|
|
61
|
+
- shot af mardkwon overlapping (51f63b9)
|
|
62
|
+
- add spark dockerfile for multiarch builds (95abbd1)
|
|
63
|
+
- fix plugin initialization (16b9782)
|
|
64
|
+
- split index.js (50902a2)
|
|
65
|
+
- cloudflare cidr (cc4e021)
|
|
66
|
+
- cloduflare restrictions (2f6ba2d)
|
|
67
|
+
- sequential start (86b496e)
|
|
68
|
+
- sequential start (4930fe1)
|
|
69
|
+
- sequential start (353f014)
|
|
70
|
+
- qa tests (2dc6a1a)
|
|
71
|
+
- bump sha for .85 (dc2edfe)
|
|
72
|
+
- preserve env on sudo (7831227)
|
|
73
|
+
- bump sha for .84 (6c052f9)
|
|
74
|
+
- non interactive for azure vms (0aa8a2f)
|
|
75
|
+
- keep .env if present (d072450)
|
|
76
|
+
- bump (7a8e732)
|
|
77
|
+
- ensure opa is on compose if not set (f4a5228)
|
|
78
|
+
- checksum bump (a2ccc20)
|
|
79
|
+
- netrc defensive checks (a0b0ccc)
|
|
80
|
+
- netrc defensive checks (ae37403)
|
|
81
|
+
- checksum (ec45d11)
|
|
82
|
+
- update sync and fix up (7f9af72)
|
|
83
|
+
- expand test for azure and add new per app tag support (388a168)
|
|
84
|
+
- checksum on update (44005fc)
|
|
85
|
+
- cleanup for later (15e5313)
|
|
86
|
+
- cleanup for later (11c9597)
|
|
87
|
+
- switch branch feature (822fecc)
|
|
88
|
+
- add pull (d1c19ab)
|
|
89
|
+
- Bump hono from 4.11.9 to 4.12.0 in /operator-cli (ad25144)
|
|
90
|
+
- tests (f180a9a)
|
|
91
|
+
- cleanup (39c49a3)
|
|
92
|
+
- registry (7b7126a)
|
|
93
|
+
- reconcile kafka (832d0db)
|
|
94
|
+
- gh login bug (025886c)
|
|
95
|
+
- cleanup (bb96cab)
|
|
96
|
+
- strip envs from process (2421180)
|
|
97
|
+
- force use of gh creds not tokens in envs var (fff7787)
|
|
98
|
+
- resolve import between npm installs and npm link (79522e1)
|
|
99
|
+
- fix gh scope and azure states (afd846c)
|
|
100
|
+
- refactoring (da50352)
|
|
101
|
+
- split fops repo (d447638)
|
|
102
|
+
- aks (b791f8f)
|
|
103
|
+
- refactor azure (67d3bad)
|
|
104
|
+
- wildcard (391f023)
|
|
105
|
+
- azure plugin (c074074)
|
|
106
|
+
- zap (d7e6e7f)
|
|
107
|
+
- fix knock (cf89c05)
|
|
108
|
+
- azure (4adec98)
|
|
109
|
+
- Bump tar from 7.5.7 to 7.5.9 in /operator-cli (e41e98e)
|
|
110
|
+
- azure stack index.js split (de12272)
|
|
111
|
+
- Bump ajv from 8.17.1 to 8.18.0 in /operator-cli (76da21f)
|
|
112
|
+
- packer (9665fbc)
|
|
113
|
+
- remove stack api (db0fd4d)
|
|
114
|
+
- packer cleanup (fe1bf14)
|
|
115
|
+
- force refresh token (3a3d7e2)
|
|
116
|
+
- provision shell (2ad505f)
|
|
117
|
+
- azure vm management (91dcb31)
|
|
118
|
+
- azure specific (2b0cca8)
|
|
119
|
+
- azure packer (12175b8)
|
|
120
|
+
- init hashed pwd (db8523c)
|
|
121
|
+
- packer (5b5c7c4)
|
|
122
|
+
- doctor for azure vm (ed524fa)
|
|
123
|
+
- packer and 1pwd (c6d053e)
|
|
124
|
+
- split big index.js (dc85a1b)
|
|
125
|
+
- kafka volume update (21815ec)
|
|
126
|
+
- fix openai azure tools confirmation and flow (0118cd1)
|
|
127
|
+
- nighly fixx, test fix (5e0d04f)
|
|
128
|
+
- open ai training (cdc494a)
|
|
129
|
+
- openai integration in azure (1ca1475)
|
|
130
|
+
- ci (672cea9)
|
|
131
|
+
- refresh ghcr creds (4220c48)
|
|
132
|
+
- cleaned up version (1a0074f)
|
|
133
|
+
- traefik on ghcr and templates (8e31a05)
|
|
134
|
+
- apply fcl (e78911f)
|
|
135
|
+
- demo landscape (dd205fe)
|
|
136
|
+
- smarter login and schema (1af514f)
|
|
137
|
+
- no down before up unless something broke (56b1132)
|
|
138
|
+
- dai, reconcile failed containers (12907fa)
|
|
139
|
+
- reconcile dead container (7da75e4)
|
|
140
|
+
- defensive around storage buckets dir (b98871d)
|
|
141
|
+
- defensive around storage buckets dir (e86e132)
|
|
142
|
+
- gear in for multiarch (bf3fa3e)
|
|
143
|
+
- up autofix (99c7f89)
|
|
144
|
+
- autofix stale containers on up (43c7d0f)
|
|
145
|
+
- shared sessions fix (5de1359)
|
|
146
|
+
- share sessions between ui and tui (8321391)
|
|
147
|
+
- fix chat view display details (e263996)
|
|
148
|
+
- fix chat view display details (9babdda)
|
|
149
|
+
- tui up fixes (86e9f17)
|
|
150
|
+
- fix commands init (442538b)
|
|
151
|
+
- enable k3s profile (b2dcfc8)
|
|
152
|
+
- test up till job creation (656d388)
|
|
153
|
+
- tui fixes (0599779)
|
|
154
|
+
- cleanup (27731f0)
|
|
155
|
+
- train (90bf559)
|
|
156
|
+
- training (f809bf6)
|
|
157
|
+
- training (ba2b836)
|
|
158
|
+
- training (6fc5267)
|
|
159
|
+
- training (4af8ac9)
|
|
160
|
+
- fix build script (bd82836)
|
|
161
|
+
- infra test (5b79815)
|
|
162
|
+
- infra test (3a0ac05)
|
|
163
|
+
- infra test (e5c67b5)
|
|
164
|
+
- tests (ae7b621)
|
|
165
|
+
- tests (c09ae6a)
|
|
166
|
+
- update tui (4784153)
|
|
167
|
+
- training (0a5a330)
|
|
168
|
+
- tui (df4dd4a)
|
|
169
|
+
- pkg builds (4dc9993)
|
|
170
|
+
- also source env for creds (9a17d8f)
|
|
171
|
+
- fcl support (e8a5743)
|
|
172
|
+
- fcl support (8d6b6cd)
|
|
173
|
+
- fcl support (cb76a4a)
|
|
174
|
+
- bump package (df2ee85)
|
|
175
|
+
- add iam mgmt (2d3c294)
|
|
176
|
+
- fix k3s (976ae77)
|
|
177
|
+
- fix trino, add storage plugin (75cb1f4)
|
|
178
|
+
- add project root as config (a2863c6)
|
|
179
|
+
- failure learnings (637ef5c)
|
|
180
|
+
- Apple signed binaries (63a610e)
|
|
181
|
+
- send build info to apple for notary service (300c220)
|
|
182
|
+
- migration failure fixes (c7f0b2f)
|
|
183
|
+
- release to wipe clean pg on duplicate key error (a38bf4d)
|
|
184
|
+
- small fix (a26a674)
|
|
185
|
+
- cleanup (ca7405d)
|
|
186
|
+
- bump packages (59723b7)
|
|
187
|
+
|
|
188
|
+
## [0.1.29] - 2026-03-03
|
|
189
|
+
|
|
190
|
+
- improve up down and bootstrap script (b79ebaf)
|
|
191
|
+
- checksum (22c8086)
|
|
192
|
+
- checksum (96b434f)
|
|
193
|
+
- checksum (15ed3c0)
|
|
194
|
+
- checksum (8a6543a)
|
|
195
|
+
- bump embed trino linksg (8440504)
|
|
196
|
+
- bump data (765ffd9)
|
|
197
|
+
- bump (cb8b232)
|
|
198
|
+
- broken tests (c532229)
|
|
199
|
+
- release 0.1.18, preflight checks (d902249)
|
|
200
|
+
- fix compute display bug (d10f5d9)
|
|
201
|
+
- cleanup packer files (6330f18)
|
|
202
|
+
- plan mode (cb36a8a)
|
|
203
|
+
- bump to 0.1.16 - agent ui (41ac1a2)
|
|
204
|
+
- bump to 0.1.15 - agent ui (4ebe2e1)
|
|
205
|
+
- bump to 0.1.14 (6c3a7fa)
|
|
206
|
+
- bump to 0.1.13 (8db570f)
|
|
207
|
+
- release 0.1.12 (c1c79e5)
|
|
208
|
+
- bump (11aa3b0)
|
|
209
|
+
- git keep and bump tui (be1678e)
|
|
210
|
+
- skills, index, rrf, compacted context (100k > 10k) (7b2fffd)
|
|
211
|
+
- cloudflare and token consumption, graphs indexing (0ad9eec)
|
|
212
|
+
- bump storage default (22c83ba)
|
|
213
|
+
- storage fix (68a22a0)
|
|
214
|
+
- skills update (7f56500)
|
|
215
|
+
- v9 bump (3864446)
|
|
216
|
+
- bump (c95eedc)
|
|
217
|
+
- rrf (dbf8c95)
|
|
218
|
+
- feat: warning when running predictions (95e8c52)
|
|
219
|
+
- feat: support for local predictions (45cf26b)
|
|
220
|
+
- feat: wip support for predictions + mlflow (3457052)
|
|
221
|
+
- add Reciprocal Rank Fusion (RRF) to knowledge and skill retrieval (61549bc)
|
|
222
|
+
- validate CSV headers in compute_run readiness check (a8c7a43)
|
|
223
|
+
- fix corrupted Iceberg metadata: probe tables + force cleanup on re-apply (50578af)
|
|
224
|
+
- enforce: never use foundation_apply to fix broken products (2e049bf)
|
|
225
|
+
- update SKILL.md with complete tool reference for knowledge retrieval (30b1924)
|
|
226
|
+
- add storage read, input DP table probe, and compute_run improvements (34e6c4c)
|
|
227
|
+
- skills update (1220385)
|
|
228
|
+
- skills update (bb66958)
|
|
229
|
+
- some tui improvement andd tools apply overwrite (e90c35c)
|
|
230
|
+
- skills update (e9227a1)
|
|
231
|
+
- skills update (669c4b3)
|
|
232
|
+
- fix plugin pre-flight checks (f741743)
|
|
233
|
+
- increase agent context (6479aaa)
|
|
234
|
+
- skills and init sql fixes (5fce35e)
|
|
235
|
+
- checksum (3518b56)
|
|
236
|
+
- penging job limit (a139861)
|
|
237
|
+
- checksum (575d28c)
|
|
238
|
+
- bump (92049ba)
|
|
239
|
+
- fix bug per tab status (0a33657)
|
|
240
|
+
- fix bug per tab status (50457c6)
|
|
241
|
+
- checksumming (0ad842e)
|
|
242
|
+
- shot af mardkwon overlapping (51f63b9)
|
|
243
|
+
- add spark dockerfile for multiarch builds (95abbd1)
|
|
244
|
+
- fix plugin initialization (16b9782)
|
|
245
|
+
- split index.js (50902a2)
|
|
246
|
+
- cloudflare cidr (cc4e021)
|
|
247
|
+
- cloduflare restrictions (2f6ba2d)
|
|
248
|
+
- sequential start (86b496e)
|
|
249
|
+
- sequential start (4930fe1)
|
|
250
|
+
- sequential start (353f014)
|
|
251
|
+
- qa tests (2dc6a1a)
|
|
252
|
+
- bump sha for .85 (dc2edfe)
|
|
253
|
+
- preserve env on sudo (7831227)
|
|
254
|
+
- bump sha for .84 (6c052f9)
|
|
255
|
+
- non interactive for azure vms (0aa8a2f)
|
|
256
|
+
- keep .env if present (d072450)
|
|
257
|
+
- bump (7a8e732)
|
|
258
|
+
- ensure opa is on compose if not set (f4a5228)
|
|
259
|
+
- checksum bump (a2ccc20)
|
|
260
|
+
- netrc defensive checks (a0b0ccc)
|
|
261
|
+
- netrc defensive checks (ae37403)
|
|
262
|
+
- checksum (ec45d11)
|
|
263
|
+
- update sync and fix up (7f9af72)
|
|
264
|
+
- expand test for azure and add new per app tag support (388a168)
|
|
265
|
+
- checksum on update (44005fc)
|
|
266
|
+
- cleanup for later (15e5313)
|
|
267
|
+
- cleanup for later (11c9597)
|
|
268
|
+
- switch branch feature (822fecc)
|
|
269
|
+
- add pull (d1c19ab)
|
|
270
|
+
- Bump hono from 4.11.9 to 4.12.0 in /operator-cli (ad25144)
|
|
271
|
+
- tests (f180a9a)
|
|
272
|
+
- cleanup (39c49a3)
|
|
273
|
+
- registry (7b7126a)
|
|
274
|
+
- reconcile kafka (832d0db)
|
|
275
|
+
- gh login bug (025886c)
|
|
276
|
+
- cleanup (bb96cab)
|
|
277
|
+
- strip envs from process (2421180)
|
|
278
|
+
- force use of gh creds not tokens in envs var (fff7787)
|
|
279
|
+
- resolve import between npm installs and npm link (79522e1)
|
|
280
|
+
- fix gh scope and azure states (afd846c)
|
|
281
|
+
- refactoring (da50352)
|
|
282
|
+
- split fops repo (d447638)
|
|
283
|
+
- aks (b791f8f)
|
|
284
|
+
- refactor azure (67d3bad)
|
|
285
|
+
- wildcard (391f023)
|
|
286
|
+
- azure plugin (c074074)
|
|
287
|
+
- zap (d7e6e7f)
|
|
288
|
+
- fix knock (cf89c05)
|
|
289
|
+
- azure (4adec98)
|
|
290
|
+
- Bump tar from 7.5.7 to 7.5.9 in /operator-cli (e41e98e)
|
|
291
|
+
- azure stack index.js split (de12272)
|
|
292
|
+
- Bump ajv from 8.17.1 to 8.18.0 in /operator-cli (76da21f)
|
|
293
|
+
- packer (9665fbc)
|
|
294
|
+
- remove stack api (db0fd4d)
|
|
295
|
+
- packer cleanup (fe1bf14)
|
|
296
|
+
- force refresh token (3a3d7e2)
|
|
297
|
+
- provision shell (2ad505f)
|
|
298
|
+
- azure vm management (91dcb31)
|
|
299
|
+
- azure specific (2b0cca8)
|
|
300
|
+
- azure packer (12175b8)
|
|
301
|
+
- init hashed pwd (db8523c)
|
|
302
|
+
- packer (5b5c7c4)
|
|
303
|
+
- doctor for azure vm (ed524fa)
|
|
304
|
+
- packer and 1pwd (c6d053e)
|
|
305
|
+
- split big index.js (dc85a1b)
|
|
306
|
+
- kafka volume update (21815ec)
|
|
307
|
+
- fix openai azure tools confirmation and flow (0118cd1)
|
|
308
|
+
- nighly fixx, test fix (5e0d04f)
|
|
309
|
+
- open ai training (cdc494a)
|
|
310
|
+
- openai integration in azure (1ca1475)
|
|
311
|
+
- ci (672cea9)
|
|
312
|
+
- refresh ghcr creds (4220c48)
|
|
313
|
+
- cleaned up version (1a0074f)
|
|
314
|
+
- traefik on ghcr and templates (8e31a05)
|
|
315
|
+
- apply fcl (e78911f)
|
|
316
|
+
- demo landscape (dd205fe)
|
|
317
|
+
- smarter login and schema (1af514f)
|
|
318
|
+
- no down before up unless something broke (56b1132)
|
|
319
|
+
- dai, reconcile failed containers (12907fa)
|
|
320
|
+
- reconcile dead container (7da75e4)
|
|
321
|
+
- defensive around storage buckets dir (b98871d)
|
|
322
|
+
- defensive around storage buckets dir (e86e132)
|
|
323
|
+
- gear in for multiarch (bf3fa3e)
|
|
324
|
+
- up autofix (99c7f89)
|
|
325
|
+
- autofix stale containers on up (43c7d0f)
|
|
326
|
+
- shared sessions fix (5de1359)
|
|
327
|
+
- share sessions between ui and tui (8321391)
|
|
328
|
+
- fix chat view display details (e263996)
|
|
329
|
+
- fix chat view display details (9babdda)
|
|
330
|
+
- tui up fixes (86e9f17)
|
|
331
|
+
- fix commands init (442538b)
|
|
332
|
+
- enable k3s profile (b2dcfc8)
|
|
333
|
+
- test up till job creation (656d388)
|
|
334
|
+
- tui fixes (0599779)
|
|
335
|
+
- cleanup (27731f0)
|
|
336
|
+
- train (90bf559)
|
|
337
|
+
- training (f809bf6)
|
|
338
|
+
- training (ba2b836)
|
|
339
|
+
- training (6fc5267)
|
|
340
|
+
- training (4af8ac9)
|
|
341
|
+
- fix build script (bd82836)
|
|
342
|
+
- infra test (5b79815)
|
|
343
|
+
- infra test (3a0ac05)
|
|
344
|
+
- infra test (e5c67b5)
|
|
345
|
+
- tests (ae7b621)
|
|
346
|
+
- tests (c09ae6a)
|
|
347
|
+
- update tui (4784153)
|
|
348
|
+
- training (0a5a330)
|
|
349
|
+
- tui (df4dd4a)
|
|
350
|
+
- pkg builds (4dc9993)
|
|
351
|
+
- also source env for creds (9a17d8f)
|
|
352
|
+
- fcl support (e8a5743)
|
|
353
|
+
- fcl support (8d6b6cd)
|
|
354
|
+
- fcl support (cb76a4a)
|
|
355
|
+
- bump package (df2ee85)
|
|
356
|
+
- add iam mgmt (2d3c294)
|
|
357
|
+
- fix k3s (976ae77)
|
|
358
|
+
- fix trino, add storage plugin (75cb1f4)
|
|
359
|
+
- add project root as config (a2863c6)
|
|
360
|
+
- failure learnings (637ef5c)
|
|
361
|
+
- Apple signed binaries (63a610e)
|
|
362
|
+
- send build info to apple for notary service (300c220)
|
|
363
|
+
- migration failure fixes (c7f0b2f)
|
|
364
|
+
- release to wipe clean pg on duplicate key error (a38bf4d)
|
|
365
|
+
- small fix (a26a674)
|
|
366
|
+
- cleanup (ca7405d)
|
|
367
|
+
- bump packages (59723b7)
|
|
368
|
+
- add retry on pulls if it fails (4de8497)
|
|
369
|
+
- bump packages (537cb3a)
|
|
370
|
+
|
|
371
|
+
# Changelog
|
|
372
|
+
|
|
373
|
+
All notable changes to @meshxdata/fops (Foundation Operator CLI) are documented here.
|
|
374
|
+
|
|
5
375
|
## [0.1.28] - 2026-03-03
|
|
6
376
|
|
|
7
377
|
- checksum (22c8086)
|
package/package.json
CHANGED
|
@@ -516,8 +516,8 @@ async function runUp(program, registry, opts) {
|
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
// --url: persist FOUNDATION_PUBLIC_URL to .env and enable traefik profile if needed.
|
|
519
|
-
// Local up (no --url): set FOUNDATION_PUBLIC_URL=http://
|
|
520
|
-
const localBaseUrl = "http://
|
|
519
|
+
// Local up (no --url): set FOUNDATION_PUBLIC_URL=http://127.0.0.1:3002 in .env and do not use traefik.
|
|
520
|
+
const localBaseUrl = "http://127.0.0.1:3002";
|
|
521
521
|
let publicUrl = null;
|
|
522
522
|
let previousPublicUrl = null;
|
|
523
523
|
const envPath = path.join(root, ".env");
|
|
@@ -725,6 +725,23 @@ async function runUp(program, registry, opts) {
|
|
|
725
725
|
}
|
|
726
726
|
} catch {}
|
|
727
727
|
|
|
728
|
+
// Ensure credentials/kubeconfig.yaml exists as a file (not a directory).
|
|
729
|
+
// Docker will auto-create the mount target as a directory if the file is missing,
|
|
730
|
+
// which causes k3s to fail with "is a directory" on startup.
|
|
731
|
+
const credentialsDir = path.join(root, "credentials");
|
|
732
|
+
const kubeconfigPath = path.join(credentialsDir, "kubeconfig.yaml");
|
|
733
|
+
fs.mkdirSync(credentialsDir, { recursive: true });
|
|
734
|
+
try {
|
|
735
|
+
const stat = fs.statSync(kubeconfigPath);
|
|
736
|
+
if (stat.isDirectory()) {
|
|
737
|
+
fs.rmSync(kubeconfigPath, { recursive: true, force: true });
|
|
738
|
+
fs.writeFileSync(kubeconfigPath, "");
|
|
739
|
+
}
|
|
740
|
+
} catch {
|
|
741
|
+
// File doesn't exist — create it
|
|
742
|
+
fs.writeFileSync(kubeconfigPath, "");
|
|
743
|
+
}
|
|
744
|
+
|
|
728
745
|
// Clean up internal MinIO metadata directory to avoid migration constraint violations
|
|
729
746
|
const minioSysDir = path.join(root, "storage-data", ".minio.sys");
|
|
730
747
|
if (fs.existsSync(minioSysDir)) {
|
|
@@ -1422,8 +1439,8 @@ async function runUp(program, registry, opts) {
|
|
|
1422
1439
|
|
|
1423
1440
|
// Wait for frontend to be reachable before opening browser
|
|
1424
1441
|
const http = await import("node:http");
|
|
1425
|
-
const browseUrl = publicUrl || "http://
|
|
1426
|
-
const healthUrl = publicUrl ? "http://
|
|
1442
|
+
const browseUrl = publicUrl || "http://127.0.0.1:3002";
|
|
1443
|
+
const healthUrl = publicUrl ? "http://127.0.0.1:3002" : browseUrl;
|
|
1427
1444
|
const isLocalBrowse = browseUrl.startsWith("http://localhost") || browseUrl.startsWith("http://127.0.0.1");
|
|
1428
1445
|
if (isLocalBrowse && !publicUrl && fs.existsSync(path.join(root, ".env"))) {
|
|
1429
1446
|
const envContent = fs.readFileSync(path.join(root, ".env"), "utf8");
|
|
@@ -1431,7 +1448,7 @@ async function runUp(program, registry, opts) {
|
|
|
1431
1448
|
const envUrl = envUrlMatch?.[1]?.replace(/^["']|["']$/g, "");
|
|
1432
1449
|
if (envUrl && !envUrl.includes("localhost") && !envUrl.includes("127.0.0.1")) {
|
|
1433
1450
|
console.log(chalk.yellow(" ⚠ .env has FOUNDATION_PUBLIC_URL=" + envUrl + " but you're opening localhost — this can cause \"too many redirects\" on login."));
|
|
1434
|
-
console.log(chalk.dim(" For local use, set FOUNDATION_PUBLIC_URL=http://
|
|
1451
|
+
console.log(chalk.dim(" For local use, set FOUNDATION_PUBLIC_URL=http://127.0.0.1:3002 in .env and run: docker compose up -d foundation-frontend"));
|
|
1435
1452
|
}
|
|
1436
1453
|
}
|
|
1437
1454
|
console.log(chalk.dim(" Waiting for frontend to be ready..."));
|
|
@@ -1642,8 +1659,9 @@ async function patchFrontendUrl(root, profileArgs, publicUrl, execa) {
|
|
|
1642
1659
|
}
|
|
1643
1660
|
if (!imageName) return false;
|
|
1644
1661
|
|
|
1645
|
-
// The default baked-in URL is http://
|
|
1662
|
+
// The default baked-in URL is http://127.0.0.1:3002 (from FOUNDATION_PUBLIC_URL default).
|
|
1646
1663
|
// Also patch the backend URL so API calls reach the right host.
|
|
1664
|
+
// Match both localhost and 127.0.0.1 variants for compatibility.
|
|
1647
1665
|
const parsed = new URL(publicUrl);
|
|
1648
1666
|
const apiUrl = `${parsed.protocol}//${parsed.hostname}:9001`;
|
|
1649
1667
|
|
|
@@ -1651,7 +1669,9 @@ async function patchFrontendUrl(root, profileArgs, publicUrl, execa) {
|
|
|
1651
1669
|
`FROM ${imageName}`,
|
|
1652
1670
|
`USER root`,
|
|
1653
1671
|
`RUN find /app/.next -type f \\( -name '*.js' -o -name '*.json' \\) -exec sed -i \\`,
|
|
1672
|
+
` -e 's|http://127.0.0.1:3002|${publicUrl}|g' \\`,
|
|
1654
1673
|
` -e 's|http://localhost:3002|${publicUrl}|g' \\`,
|
|
1674
|
+
` -e 's|http://127.0.0.1:9001|${apiUrl}|g' \\`,
|
|
1655
1675
|
` -e 's|http://localhost:9001|${apiUrl}|g' \\`,
|
|
1656
1676
|
` {} + 2>/dev/null; true`,
|
|
1657
1677
|
`USER nextjs`,
|
|
@@ -161,7 +161,7 @@ export function register(api) {
|
|
|
161
161
|
.option("--active", "Show only active (running/queued) jobs")
|
|
162
162
|
.option("--all", "Show all jobs including finished")
|
|
163
163
|
.action(async (opts) => {
|
|
164
|
-
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://
|
|
164
|
+
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://127.0.0.1:8000";
|
|
165
165
|
const httpMod = watcherBase.startsWith("https") ? await import("node:https") : await import("node:http");
|
|
166
166
|
try {
|
|
167
167
|
const raw = await new Promise((resolve, reject) => {
|
|
@@ -212,7 +212,7 @@ export function register(api) {
|
|
|
212
212
|
.description("Show logs for a compute job")
|
|
213
213
|
.option("-n, --tail <lines>", "Number of log lines", "500")
|
|
214
214
|
.action(async (jobId, opts) => {
|
|
215
|
-
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://
|
|
215
|
+
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://127.0.0.1:8000";
|
|
216
216
|
const httpMod = watcherBase.startsWith("https") ? await import("node:https") : await import("node:http");
|
|
217
217
|
|
|
218
218
|
// Resolve string IDs (UUIDs) to numeric IDs via job list
|
|
@@ -3,7 +3,7 @@ import http from "node:http";
|
|
|
3
3
|
import https from "node:https";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
|
|
6
|
-
const DEFAULT_BASE_URL = "http://
|
|
6
|
+
const DEFAULT_BASE_URL = "http://127.0.0.1:9001/api";
|
|
7
7
|
const TOKEN_TTL_MS = 30 * 60 * 1000; // 30 minutes
|
|
8
8
|
|
|
9
9
|
/** Resolve API base URL: config.apiUrl, FOUNDATION_API_URL, or default. Ensures path ends with /api. */
|
|
@@ -259,7 +259,7 @@ export function registerReadTools(api, client) {
|
|
|
259
259
|
required: ["action"],
|
|
260
260
|
},
|
|
261
261
|
async execute(input) {
|
|
262
|
-
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://
|
|
262
|
+
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://127.0.0.1:8000";
|
|
263
263
|
const httpMod = watcherBase.startsWith("https") ? await import("node:https") : await import("node:http");
|
|
264
264
|
|
|
265
265
|
const fetchJSON = (url) => new Promise((resolve, reject) => {
|
|
@@ -2052,7 +2052,7 @@ export function registerWriteTools(api, client) {
|
|
|
2052
2052
|
|
|
2053
2053
|
// ── Compute jobs (from watcher API) ──
|
|
2054
2054
|
try {
|
|
2055
|
-
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://
|
|
2055
|
+
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://127.0.0.1:8000";
|
|
2056
2056
|
const jobsRaw = await new Promise((resolve) => {
|
|
2057
2057
|
const req = http.get(`${watcherBase}/api/v1/jobs?per_page=100`, { timeout: 5000 }, (res) => {
|
|
2058
2058
|
let body = "";
|
package/src/web/api.js
CHANGED
|
@@ -17,7 +17,7 @@ import { streamAssistantReply } from "../agent/llm.js";
|
|
|
17
17
|
*/
|
|
18
18
|
export function createApiRoutes(core, shared = {}) {
|
|
19
19
|
const api = new Hono();
|
|
20
|
-
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://
|
|
20
|
+
const watcherBase = process.env.FOUNDATION_WATCHER_URL || "http://127.0.0.1:8000";
|
|
21
21
|
const STOP_WORDS = new Set([
|
|
22
22
|
"the", "and", "for", "with", "from", "this", "that", "into", "your", "our",
|
|
23
23
|
"goal", "plan", "please", "need", "want", "show", "make", "landscape",
|