@gaia-ai/core 0.6.0 → 0.6.2
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 +2 -2
- package/dist/src/cli/config-source.d.ts +47 -0
- package/dist/src/cli/config-source.js +197 -0
- package/dist/src/cli/gaia-dir.d.ts +48 -3
- package/dist/src/cli/gaia-dir.js +100 -10
- package/dist/src/cli/load-gaia-config.d.ts +5 -0
- package/dist/src/cli/load-gaia-config.js +10 -1
- package/dist/src/core/exec.d.ts +1 -1
- package/dist/src/core/exec.js +1 -1
- package/dist/src/index.d.ts +4 -11
- package/dist/src/index.js +18 -7
- package/dist/src/plugins/discover-addons.d.ts +19 -8
- package/dist/src/plugins/discover-addons.js +13 -3
- package/dist/src/plugins/preset.d.ts +30 -12
- package/dist/src/plugins/preset.js +10 -0
- package/package.json +4 -5
- package/dist/src/plugins/agent/agent.d.ts +0 -61
- package/dist/src/plugins/agent/agent.js +0 -11
- package/dist/src/plugins/auth/basic.d.ts +0 -12
- package/dist/src/plugins/auth/basic.js +0 -37
- package/dist/src/plugins/builtins-preset.d.ts +0 -5
- package/dist/src/plugins/builtins-preset.js +0 -32
- package/dist/src/plugins/executor/executor.d.ts +0 -104
- package/dist/src/plugins/executor/executor.js +0 -1
- package/dist/src/plugins/plugins.d.ts +0 -60
- package/dist/src/plugins/plugins.js +0 -42
- package/dist/src/plugins/registry-exports.d.ts +0 -6
- package/dist/src/plugins/registry-exports.js +0 -6
- package/dist/src/plugins/remote/drupal.d.ts +0 -40
- package/dist/src/plugins/remote/drupal.js +0 -393
- package/dist/src/plugins/remote/fake.d.ts +0 -113
- package/dist/src/plugins/remote/fake.js +0 -247
- package/dist/src/plugins/remote/remote.d.ts +0 -203
- package/dist/src/plugins/remote/remote.js +0 -1
- package/dist/src/plugins/workspace/fake.d.ts +0 -6
- package/dist/src/plugins/workspace/fake.js +0 -16
- package/dist/src/plugins/workspace/git.d.ts +0 -37
- package/dist/src/plugins/workspace/git.js +0 -89
- package/dist/src/plugins/workspace/instructions.d.ts +0 -6
- package/dist/src/plugins/workspace/instructions.js +0 -16
- package/dist/src/plugins/workspace/workspace.d.ts +0 -35
- package/dist/src/plugins/workspace/workspace.js +0 -1
- package/dist/src/plugins-index.d.ts +0 -1
- package/dist/src/plugins-index.js +0 -1
- package/dist/src/types.d.ts +0 -65
- package/dist/src/types.js +0 -1
package/dist/src/types.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { DropSHPlugin } from 'dropsh/plugin';
|
|
2
|
-
import type { AgentCandidate, ExecutorPlugin, RemotePlugin, WorkspacePlugin } from './plugins/plugins.js';
|
|
3
|
-
/** Normalized single conductor. */
|
|
4
|
-
export interface ConductorSettings {
|
|
5
|
-
/** Default: `${project} @ ${checkoutRoot}`. */
|
|
6
|
-
label: string;
|
|
7
|
-
/**
|
|
8
|
-
* Stable node identity (gaia_conductor.machine_id) this process registers as.
|
|
9
|
-
* Defaults to a hash of hostname + checkout path. Set it to pin a conductor to
|
|
10
|
-
* a known identity — e.g. so a ticket can be pre-assigned to it (conductor
|
|
11
|
-
* assignment is the run-start trigger), which the e2e fixtures rely on.
|
|
12
|
-
*/
|
|
13
|
-
machine_id?: string;
|
|
14
|
-
/** Project name (gaia_project.name); resolved at registration. */
|
|
15
|
-
project: string;
|
|
16
|
-
/**
|
|
17
|
-
* Workflow states this conductor serves. An empty list means it serves every
|
|
18
|
-
* claimable state in its project; a non-empty list narrows it to those
|
|
19
|
-
* states (GAIA-207).
|
|
20
|
-
*/
|
|
21
|
-
states: string[];
|
|
22
|
-
/**
|
|
23
|
-
* Agent prompt template - the GAIA run contract, NOT project workflow. Bounds
|
|
24
|
-
* the agent to exactly one state and tells it to release + stop, keeping run
|
|
25
|
-
* mechanics out of the repo's WORKFLOW.md. Placeholders: `{identifier}`,
|
|
26
|
-
* `{state}`, `{runUuid}`. Defaults to `DEFAULT_AGENT_PROMPT`.
|
|
27
|
-
*/
|
|
28
|
-
prompt: string;
|
|
29
|
-
/** Default: 1. */
|
|
30
|
-
max_parallel: number;
|
|
31
|
-
poll_interval_ms: number;
|
|
32
|
-
lease_seconds: number;
|
|
33
|
-
hooks?: {
|
|
34
|
-
after_create?: string;
|
|
35
|
-
before_run?: string;
|
|
36
|
-
after_run?: string;
|
|
37
|
-
after_done?: string;
|
|
38
|
-
};
|
|
39
|
-
/** Control-plane site settings used for dropsh and agent env. */
|
|
40
|
-
site: {
|
|
41
|
-
base_url: string;
|
|
42
|
-
jsonapi_prefix: string;
|
|
43
|
-
};
|
|
44
|
-
/** Absolute path of the loaded config. */
|
|
45
|
-
config_path: string;
|
|
46
|
-
}
|
|
47
|
-
/** Whole conductor.config.js (dropsh-superset): site + named plugin slots. */
|
|
48
|
-
export interface ConductorFileConfig extends ConductorSettings {
|
|
49
|
-
remote: RemotePlugin;
|
|
50
|
-
executor: ExecutorPlugin;
|
|
51
|
-
/** The agent slot: a single candidate or an array of candidates (shape preserved as authored). Selection normalizes + picks one per dispatch. */
|
|
52
|
-
agent: AgentCandidate | AgentCandidate[];
|
|
53
|
-
workspace: WorkspacePlugin;
|
|
54
|
-
/** dropsh-layer plugins (auth etc.); separate from the GAIA slots. */
|
|
55
|
-
plugins?: DropSHPlugin[];
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* GAIA-201 split config model: the ENGINE half of a conductor config —
|
|
59
|
-
* everything a `conductor.config.js` carries EXCEPT the connection (`site`) and
|
|
60
|
-
* the auth `plugins`, which now live in a separate `gaia.config.js`
|
|
61
|
-
* (`GaiaConnectionConfig`). `loadConductorConfig` returns this; the conductor
|
|
62
|
-
* command composes it with the connection (`composeConductorConfig`) into the
|
|
63
|
-
* full `ConductorFileConfig` the engine consumes.
|
|
64
|
-
*/
|
|
65
|
-
export type ConductorEngineConfig = Omit<ConductorFileConfig, 'site' | 'plugins'>;
|
package/dist/src/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|