@gaia-ai/ui 0.6.0 → 0.6.1
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/README.md +1 -1
- package/dist/src/ui-home.d.ts +1 -1
- package/dist/src/ui.d.ts +2 -2
- package/dist/src/ui.js +5 -5
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
GAIA home-rooted cockpit: the `gaia ui` command plugin (renderer resolved dynamically).
|
|
4
4
|
|
|
5
|
-
Part of the GAIA
|
|
5
|
+
Part of the GAIA CLI. Install the meta package `@gaia-ai/gaia` to get the `gaia` CLI with all addons. Source: https://git.key-tec.de/keytec/gaia (gaia-cli/).
|
package/dist/src/ui-home.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ConductorRegistryEntry, type MachineContext } from '@gaia-ai/core';
|
|
2
2
|
/**
|
|
3
3
|
* The resolved home control-plane connection passed to the renderer launcher.
|
|
4
|
-
* A structural mirror of `@gaia-ai/
|
|
4
|
+
* A structural mirror of `@gaia-ai/addon-gaia-ui`'s `HomeConnection` — kept
|
|
5
5
|
* local so this package needs NO compile-time dependency on the renderer (it
|
|
6
6
|
* resolves the renderer dynamically, ESLint-style, at runtime).
|
|
7
7
|
*/
|
package/dist/src/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ConductorRegistryEntry, type GaiaCommandHost, type GaiaCommandPlugin, type MachineContext } from '@gaia-ai/core';
|
|
2
|
-
import { type AgentLaunchHost } from '@gaia-ai/
|
|
2
|
+
import { type AgentLaunchHost } from '@gaia-ai/addon-herdr';
|
|
3
3
|
import { type HomeConnection } from './ui-home.js';
|
|
4
4
|
/** Prompt-level agent service the renderer consumes (mirror of gaia-ui's `TuiAgentService`). */
|
|
5
5
|
interface TuiAgentService {
|
|
@@ -64,7 +64,7 @@ export interface UiDeps {
|
|
|
64
64
|
* user-global machine context + the conductor registry (NOT a project engine
|
|
65
65
|
* config), resolves the connection from the home `gaia.config.js` scope, adapts
|
|
66
66
|
* a herdr-backed agent host to the renderer's prompt-level service, and
|
|
67
|
-
* delegates to `@gaia-ai/
|
|
67
|
+
* delegates to `@gaia-ai/addon-gaia-ui`'s `runGaiaUi`. `$GAIA_UI_PLUGIN`
|
|
68
68
|
* overrides the renderer module (dev).
|
|
69
69
|
*/
|
|
70
70
|
export declare function cmdUi(deps?: UiDeps): Promise<void>;
|
package/dist/src/ui.js
CHANGED
|
@@ -3,7 +3,7 @@ import { homedir } from 'node:os';
|
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import { pathToFileURL } from 'node:url';
|
|
5
5
|
import { CommandRunner, createLogger, exec, homeFallbackGaiaConfigPath, listRegisteredConductors, machineContextPath, readMachineContext, setDefaultCommandRunner, } from '@gaia-ai/core';
|
|
6
|
-
import { herdrAgentHost } from '@gaia-ai/
|
|
6
|
+
import { herdrAgentHost } from '@gaia-ai/addon-herdr';
|
|
7
7
|
import { buildProgram as buildDropshProgram } from 'dropsh';
|
|
8
8
|
import { buildHomeConnection, resolveAgentCommand, resolveDefaultProject, resolveUiConfigPath, } from './ui-home.js';
|
|
9
9
|
function loggerFor(checkoutRoot) {
|
|
@@ -12,7 +12,7 @@ function loggerFor(checkoutRoot) {
|
|
|
12
12
|
return logger;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Resolve + dynamically import `@gaia-ai/
|
|
15
|
+
* Resolve + dynamically import `@gaia-ai/addon-gaia-ui` (the renderer launcher),
|
|
16
16
|
* ESLint-style over the host bases. This package never statically imports the
|
|
17
17
|
* renderer — it is a swappable plugin. Returns undefined (and logs) when the
|
|
18
18
|
* package is not installed.
|
|
@@ -21,7 +21,7 @@ async function loadGaiaUiModule(logger, bases) {
|
|
|
21
21
|
let resolved;
|
|
22
22
|
for (const base of bases) {
|
|
23
23
|
try {
|
|
24
|
-
resolved = createRequire(base).resolve('@gaia-ai/
|
|
24
|
+
resolved = createRequire(base).resolve('@gaia-ai/addon-gaia-ui');
|
|
25
25
|
break;
|
|
26
26
|
}
|
|
27
27
|
catch {
|
|
@@ -29,7 +29,7 @@ async function loadGaiaUiModule(logger, bases) {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
if (resolved === undefined) {
|
|
32
|
-
logger.error({}, 'gaia ui: could not resolve @gaia-ai/
|
|
32
|
+
logger.error({}, 'gaia ui: could not resolve @gaia-ai/addon-gaia-ui. ' +
|
|
33
33
|
'Install it, or set $GAIA_UI_PLUGIN to a renderer plugin path.');
|
|
34
34
|
return undefined;
|
|
35
35
|
}
|
|
@@ -40,7 +40,7 @@ async function loadGaiaUiModule(logger, bases) {
|
|
|
40
40
|
* user-global machine context + the conductor registry (NOT a project engine
|
|
41
41
|
* config), resolves the connection from the home `gaia.config.js` scope, adapts
|
|
42
42
|
* a herdr-backed agent host to the renderer's prompt-level service, and
|
|
43
|
-
* delegates to `@gaia-ai/
|
|
43
|
+
* delegates to `@gaia-ai/addon-gaia-ui`'s `runGaiaUi`. `$GAIA_UI_PLUGIN`
|
|
44
44
|
* overrides the renderer module (dev).
|
|
45
45
|
*/
|
|
46
46
|
export async function cmdUi(deps = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaia-ai/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "GAIA home-rooted cockpit: the `gaia ui` command plugin (renderer resolved dynamically).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
25
|
"url": "git+https://git.key-tec.de/keytec/gaia.git",
|
|
26
|
-
"directory": "
|
|
26
|
+
"directory": "gaia-cli/ui"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@gaia-ai/core": "^0.6.
|
|
30
|
-
"@gaia-ai/
|
|
29
|
+
"@gaia-ai/core": "^0.6.1",
|
|
30
|
+
"@gaia-ai/addon-herdr": "^0.6.1",
|
|
31
31
|
"commander": "^12.1.0",
|
|
32
32
|
"dropsh": "^0.5.8"
|
|
33
33
|
}
|