Commit eda8ff2
committed
refactor(appkit): let the framework own ai-search missing-resource policy
setup()'s indexName-presence check duplicated the framework's resource
validation, which already warns-in-dev / throws-in-prod for a missing
DATABRICKS_VS_INDEX_NAME and runs before setup(). The inline NODE_ENV gate
was therefore redundant, its prod-throw branch was unreachable in the real
createApp flow, and it silently ignored APPKIT_STRICT_VALIDATION (which the
registry honors). Drop it and keep only the pagination -> endpointName check,
a config logic error the registry can't see. Unresolved aliases still 404 on
the routes and throw in query(). Removes the two now-obsolete setup() tests.
Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>1 parent e13f60a commit eda8ff2
2 files changed
Lines changed: 4 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 52 | | |
62 | 53 | | |
63 | 54 | | |
| |||
Lines changed: 0 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 120 | | |
145 | 121 | | |
146 | 122 | | |
| |||
0 commit comments