@gaia-ai/ui 0.9.1 → 0.10.0

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/dist/src/ui.d.ts CHANGED
@@ -58,6 +58,9 @@ export interface RunGaiaUiOptions {
58
58
  /** GAIA-233: the write-scoped JSON:API client. Absent ⇒ the renderer writes
59
59
  * through the read client and the server decides (spec Decision 1). */
60
60
  writeClient?: unknown;
61
+ /** GAIA-373: UI extension entry MODULES core discovered from `addons[]`.
62
+ * Specifiers only — this package imports none of them (spec F2). */
63
+ uiEntries?: readonly string[] | undefined;
61
64
  }
62
65
  /** What a write-client builder needs — everything a connection already carries. */
63
66
  export interface BuildWriteClientOptions {
package/dist/src/ui.js CHANGED
@@ -391,6 +391,16 @@ export async function cmdUi(deps = {}) {
391
391
  ...(renderer ? { renderer } : {}),
392
392
  ...(initialRoute ? { initialRoute } : {}),
393
393
  ...(writeClient !== undefined ? { writeClient } : {}),
394
+ // GAIA-373 — the UI contributions core discovered from `addons[]`, still
395
+ // as module specifiers. Omitted when there are none, so a config without
396
+ // `addons[]` hands the renderer exactly what it got before.
397
+ //
398
+ // `?? []` because `loadConnection` is an INJECTED seam (`deps`), so the
399
+ // resolved object is only as complete as whoever supplied the loader:
400
+ // core's own always carries this key, a caller's substitute need not.
401
+ ...(resolved.ui_entries?.length
402
+ ? { uiEntries: resolved.ui_entries }
403
+ : {}),
394
404
  });
395
405
  }
396
406
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaia-ai/ui",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "description": "GAIA project-first cockpit: the `gaia ui` command plugin (renderer resolved dynamically).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,8 +26,8 @@
26
26
  "directory": "gaia-cli/ui"
27
27
  },
28
28
  "dependencies": {
29
- "@gaia-ai/core": "^0.9.1",
30
- "@gaia-ai/addon-herdr": "^0.9.1",
29
+ "@gaia-ai/core": "^0.10.0",
30
+ "@gaia-ai/addon-herdr": "^0.10.0",
31
31
  "commander": "^12.1.0",
32
32
  "dropsh": "^0.5.8"
33
33
  }