hexdag 0.5.0.dev2__py3-none-any.whl → 0.5.0.dev3__py3-none-any.whl

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.
@@ -148,14 +148,15 @@ export async function getAllPluginNodes(): Promise<PluginNode[]> {
148
148
  const plugins = await listPlugins()
149
149
  const nodes: PluginNode[] = []
150
150
 
151
- plugins.forEach((plugin) => {
152
- plugin.nodes.forEach((node) => {
151
+ for (const plugin of plugins) {
152
+ const pluginNodes = Array.isArray(plugin.nodes) ? plugin.nodes : []
153
+ for (const node of pluginNodes) {
153
154
  nodes.push({
154
155
  ...node,
155
156
  plugin: plugin.name,
156
157
  })
157
- })
158
- })
158
+ }
159
+ }
159
160
 
160
161
  return nodes
161
162
  } catch (error) {
@@ -169,14 +170,15 @@ export async function getAllPluginAdapters(): Promise<PluginAdapter[]> {
169
170
  const plugins = await listPlugins()
170
171
  const adapters: PluginAdapter[] = []
171
172
 
172
- plugins.forEach((plugin) => {
173
- plugin.adapters.forEach((adapter) => {
173
+ for (const plugin of plugins) {
174
+ const pluginAdapters = Array.isArray(plugin.adapters) ? plugin.adapters : []
175
+ for (const adapter of pluginAdapters) {
174
176
  adapters.push({
175
177
  ...adapter,
176
178
  plugin: plugin.name,
177
179
  })
178
- })
179
- })
180
+ }
181
+ }
180
182
 
181
183
  return adapters
182
184
  } catch (error) {
@@ -187,7 +189,16 @@ export async function getAllPluginAdapters(): Promise<PluginAdapter[]> {
187
189
 
188
190
  export async function listPlugins(): Promise<PluginInfo[]> {
189
191
  try {
190
- return await apiRequest<PluginInfo[]>('/plugins')
192
+ const response = await apiRequest<PluginInfo[] | { plugins: PluginInfo[] }>('/plugins')
193
+ // Handle both array response and object with plugins property
194
+ if (Array.isArray(response)) {
195
+ return response
196
+ }
197
+ if (response && typeof response === 'object' && 'plugins' in response && Array.isArray(response.plugins)) {
198
+ return response.plugins
199
+ }
200
+ console.warn('Unexpected plugins response format:', response)
201
+ return []
191
202
  } catch (error) {
192
203
  console.error('Failed to list plugins:', error)
193
204
  return []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hexdag
3
- Version: 0.5.0.dev2
3
+ Version: 0.5.0.dev3
4
4
  Summary: Lightweight DAG orchestration framework with enterprise pipeline capabilities
5
5
  Project-URL: Homepage, https://hexdag.ai
6
6
  Project-URL: Repository, https://github.com/omniviser/hexdag
@@ -194,7 +194,7 @@ hexdag/studio/ui/src/components/PythonEditor.tsx,sha256=vJ7sgZ6s75651EI7Y-GTv2s5
194
194
  hexdag/studio/ui/src/components/ValidationPanel.tsx,sha256=lzRIgwso2j-_NLFOu8j9GCQWkn6KB-d-6eWG9x4nmHs,4157
195
195
  hexdag/studio/ui/src/components/YamlEditor.tsx,sha256=naD2dSq9rw6hxbA6Fkj9-8fmU0vRF1Rk1_FfpPqksfU,6781
196
196
  hexdag/studio/ui/src/components/index.ts,sha256=fjXeu-PS5GD5m-My52619toCqWqQRuZHDPfJ_rQ4ZIk,428
197
- hexdag/studio/ui/src/lib/api.ts,sha256=s6pO1mzmNR7EpLHdHrrjXHwP2pCMyHKBUCwXvhF8y0c,4960
197
+ hexdag/studio/ui/src/lib/api.ts,sha256=Ogg1eYR4IVkWmNOShGQ1P5mfXMwod2PvOEi6buO7OAY,5515
198
198
  hexdag/studio/ui/src/lib/nodeTemplates.ts,sha256=s8zOfsQGhpCG7foPdrsFtQ_CGwN6jcZTXe_fCbTno5M,4743
199
199
  hexdag/studio/ui/src/lib/store.ts,sha256=aynI_K5oioi7Zq0WhC_oIrhSNximBSnD54xPe6JTgi4,6902
200
200
  hexdag/studio/ui/src/types/index.ts,sha256=ZWKo_eHfPnMGVXqMa0SZuB5VSOdDDLQy7RkhkVA1qPo,2592
@@ -257,8 +257,8 @@ hexdag_plugins/storage/vector/__init__.py,sha256=uMI7dYdgMpm5b-Kay3Z9OehTC8kfqvJ
257
257
  hexdag_plugins/storage/vector/chromadb.py,sha256=CZBtp4EAw6WGwJ4M8WYc0KYVdbTJLiP74pF3JxSZIgI,7103
258
258
  hexdag_plugins/storage/vector/in_memory.py,sha256=j_7FAXj8nQPxPAIksaeOyU5yFJijOXxYEJCRibwttB8,8390
259
259
  hexdag_plugins/storage/vector/pgvector.py,sha256=830TWR4JrwbpzYultCIfb7Tll_D0te3xJM3PXCHyH94,18262
260
- hexdag-0.5.0.dev2.dist-info/METADATA,sha256=3xMVd05Np-dSbZNKwCrpqni03ZoRS0f6r0ons3_p3aM,13940
261
- hexdag-0.5.0.dev2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
262
- hexdag-0.5.0.dev2.dist-info/entry_points.txt,sha256=HVVYo840xI_sDh7Ld4V6JikuEKykjCv-hdB8lND48FU,144
263
- hexdag-0.5.0.dev2.dist-info/licenses/LICENSE,sha256=ha-Tqaxjm6OqBpizGHUnQk1XxuU9_M9xMFTSz_kJzxk,10760
264
- hexdag-0.5.0.dev2.dist-info/RECORD,,
260
+ hexdag-0.5.0.dev3.dist-info/METADATA,sha256=SErPOQLov-gaAoIIruFR4Bkq5W138YsY4_WZk9hVQgQ,13940
261
+ hexdag-0.5.0.dev3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
262
+ hexdag-0.5.0.dev3.dist-info/entry_points.txt,sha256=HVVYo840xI_sDh7Ld4V6JikuEKykjCv-hdB8lND48FU,144
263
+ hexdag-0.5.0.dev3.dist-info/licenses/LICENSE,sha256=ha-Tqaxjm6OqBpizGHUnQk1XxuU9_M9xMFTSz_kJzxk,10760
264
+ hexdag-0.5.0.dev3.dist-info/RECORD,,