@eve-horizon/cli 0.2.15 → 0.2.16
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/index.js +46 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -55303,6 +55303,10 @@ var configSchema = external_exports.object({
|
|
|
55303
55303
|
// cert-manager ClusterIssuer for app ingresses
|
|
55304
55304
|
EVE_DEFAULT_TLS_SECRET: external_exports.string().optional(),
|
|
55305
55305
|
// Optional fixed TLS secret name (use with wildcard certs)
|
|
55306
|
+
EVE_REGISTRY_HOST: external_exports.string().optional(),
|
|
55307
|
+
// Eve-native container registry host (e.g., registry.eh1.incept5.dev)
|
|
55308
|
+
EVE_REGISTRY_SIGNING_KEY: external_exports.string().optional(),
|
|
55309
|
+
// RSA private key (PEM) for signing registry JWTs
|
|
55306
55310
|
EVE_CORS_ORIGIN: external_exports.string().default("*"),
|
|
55307
55311
|
// CORS origin: '*' (any), 'true' (reflect), or specific URL
|
|
55308
55312
|
Z_AI_API_KEY: external_exports.string().optional(),
|
|
@@ -56458,6 +56462,7 @@ var DeployResponseSchema = external_exports.union([
|
|
|
56458
56462
|
]);
|
|
56459
56463
|
|
|
56460
56464
|
// ../shared/dist/schemas/pack.js
|
|
56465
|
+
var GatewayPolicySchema = external_exports.enum(["none", "discoverable", "routable"]);
|
|
56461
56466
|
var PackYamlSchema = external_exports.object({
|
|
56462
56467
|
version: external_exports.literal(1),
|
|
56463
56468
|
id: external_exports.string().min(1).regex(/^[a-z0-9-]+$/, "Pack ID must be lowercase alphanumeric with hyphens"),
|
|
@@ -56466,7 +56471,10 @@ var PackYamlSchema = external_exports.object({
|
|
|
56466
56471
|
teams: external_exports.string().min(1),
|
|
56467
56472
|
chat: external_exports.string().min(1).optional(),
|
|
56468
56473
|
x_eve: external_exports.string().min(1).optional()
|
|
56469
|
-
})
|
|
56474
|
+
}),
|
|
56475
|
+
gateway: external_exports.object({
|
|
56476
|
+
default_policy: GatewayPolicySchema.default("none")
|
|
56477
|
+
}).optional()
|
|
56470
56478
|
});
|
|
56471
56479
|
var GIT_SHA_PATTERN = /^[0-9a-f]{40}$/;
|
|
56472
56480
|
var PackEntrySchema = external_exports.object({
|
|
@@ -56648,7 +56656,7 @@ var EnvironmentSchema = external_exports.object({
|
|
|
56648
56656
|
var ManifestSchema = external_exports.object({
|
|
56649
56657
|
schema: external_exports.string().optional(),
|
|
56650
56658
|
project: external_exports.string().optional(),
|
|
56651
|
-
registry: external_exports.record(external_exports.unknown()).optional(),
|
|
56659
|
+
registry: external_exports.union([external_exports.literal("eve"), external_exports.literal("none"), external_exports.record(external_exports.unknown())]).optional(),
|
|
56652
56660
|
services: external_exports.record(ServiceSchema).optional(),
|
|
56653
56661
|
environments: external_exports.record(EnvironmentSchema).optional(),
|
|
56654
56662
|
pipelines: external_exports.record(PipelineDefinitionSchema).optional(),
|
|
@@ -56819,7 +56827,9 @@ var AgentSummarySchema = external_exports.object({
|
|
|
56819
56827
|
workflow: external_exports.string().nullable().optional(),
|
|
56820
56828
|
harness_profile: external_exports.string().nullable().optional(),
|
|
56821
56829
|
policies: external_exports.record(external_exports.unknown()).nullable().optional(),
|
|
56822
|
-
access: external_exports.record(external_exports.unknown()).nullable().optional()
|
|
56830
|
+
access: external_exports.record(external_exports.unknown()).nullable().optional(),
|
|
56831
|
+
gateway_policy: GatewayPolicySchema.optional(),
|
|
56832
|
+
gateway_clients: external_exports.array(external_exports.string()).nullable().optional()
|
|
56823
56833
|
});
|
|
56824
56834
|
var AgentsConfigResponseSchema = external_exports.object({
|
|
56825
56835
|
project_id: external_exports.string(),
|
|
@@ -56837,7 +56847,8 @@ var OrgAgentDirectoryItemSchema = external_exports.object({
|
|
|
56837
56847
|
agent_name: external_exports.string().nullable().optional(),
|
|
56838
56848
|
agent_description: external_exports.string().nullable().optional(),
|
|
56839
56849
|
role: external_exports.string().nullable().optional(),
|
|
56840
|
-
workflow: external_exports.string().nullable().optional()
|
|
56850
|
+
workflow: external_exports.string().nullable().optional(),
|
|
56851
|
+
gateway_policy: GatewayPolicySchema.optional()
|
|
56841
56852
|
});
|
|
56842
56853
|
var OrgAgentDirectoryResponseSchema = external_exports.object({
|
|
56843
56854
|
org_id: external_exports.string(),
|
|
@@ -56862,6 +56873,10 @@ var AgentScheduleSchema = external_exports.object({
|
|
|
56862
56873
|
heartbeat_cron: external_exports.string().optional()
|
|
56863
56874
|
}).passthrough();
|
|
56864
56875
|
var AgentSlugSchema = external_exports.string().min(1).regex(/^[a-z0-9][a-z0-9-]*$/, "slug must be lowercase alphanumeric with optional dashes");
|
|
56876
|
+
var AgentGatewaySchema = external_exports.object({
|
|
56877
|
+
policy: GatewayPolicySchema.optional(),
|
|
56878
|
+
clients: external_exports.array(external_exports.string()).optional()
|
|
56879
|
+
}).optional();
|
|
56865
56880
|
var AgentEntrySchema = external_exports.object({
|
|
56866
56881
|
name: external_exports.string().optional(),
|
|
56867
56882
|
slug: AgentSlugSchema.optional(),
|
|
@@ -56872,7 +56887,8 @@ var AgentEntrySchema = external_exports.object({
|
|
|
56872
56887
|
harness_profile: external_exports.string().optional(),
|
|
56873
56888
|
access: AgentAccessSchema.optional(),
|
|
56874
56889
|
policies: AgentPolicySchema.optional(),
|
|
56875
|
-
schedule: AgentScheduleSchema.optional()
|
|
56890
|
+
schedule: AgentScheduleSchema.optional(),
|
|
56891
|
+
gateway: AgentGatewaySchema
|
|
56876
56892
|
}).passthrough();
|
|
56877
56893
|
var AgentsYamlSchema = external_exports.object({
|
|
56878
56894
|
version: external_exports.number().int().min(1),
|
|
@@ -57308,12 +57324,14 @@ async function resolvePack(entry, projectSlug, repoRoot) {
|
|
|
57308
57324
|
const chat = parsed.imports.chat ? loadYamlMap(path2.join(packDir, parsed.imports.chat)) : null;
|
|
57309
57325
|
const xEve = parsed.imports.x_eve ? loadYamlMap(path2.join(packDir, parsed.imports.x_eve)) : null;
|
|
57310
57326
|
const prefixedAgents = prefixAgentSlugs(agents, projectSlug);
|
|
57327
|
+
const packDefaultPolicy = parsed.gateway?.default_policy ?? "none";
|
|
57328
|
+
const gatewayResolvedAgents = resolveAgentGatewayPolicies(prefixedAgents, packDefaultPolicy);
|
|
57311
57329
|
const skillPaths2 = discoverSkillPaths(packDir);
|
|
57312
57330
|
return {
|
|
57313
57331
|
id: parsed.id,
|
|
57314
57332
|
source: entry.source,
|
|
57315
57333
|
ref: entry.ref ?? resolveLocalRef(packDir),
|
|
57316
|
-
agents:
|
|
57334
|
+
agents: gatewayResolvedAgents,
|
|
57317
57335
|
teams,
|
|
57318
57336
|
chat,
|
|
57319
57337
|
xEve,
|
|
@@ -57421,6 +57439,28 @@ function prefixAgentSlugs(agentsConfig, projectSlug) {
|
|
|
57421
57439
|
}
|
|
57422
57440
|
return result;
|
|
57423
57441
|
}
|
|
57442
|
+
function resolveAgentGatewayPolicies(agentsConfig, packDefaultPolicy) {
|
|
57443
|
+
const agentsMap = extractInnerMap(agentsConfig, "agents");
|
|
57444
|
+
const result = {};
|
|
57445
|
+
for (const [id, entry] of Object.entries(agentsMap)) {
|
|
57446
|
+
if (typeof entry !== "object" || entry === null) {
|
|
57447
|
+
result[id] = entry;
|
|
57448
|
+
continue;
|
|
57449
|
+
}
|
|
57450
|
+
const agent = { ...entry };
|
|
57451
|
+
const gateway = agent.gateway;
|
|
57452
|
+
if (gateway === null) {
|
|
57453
|
+
agent.gateway = { policy: packDefaultPolicy };
|
|
57454
|
+
} else if (!gateway?.policy) {
|
|
57455
|
+
agent.gateway = { ...gateway ?? {}, policy: packDefaultPolicy };
|
|
57456
|
+
}
|
|
57457
|
+
result[id] = agent;
|
|
57458
|
+
}
|
|
57459
|
+
if (agentsConfig.agents) {
|
|
57460
|
+
return { ...agentsConfig, agents: result };
|
|
57461
|
+
}
|
|
57462
|
+
return result;
|
|
57463
|
+
}
|
|
57424
57464
|
function discoverSkillPaths(packDir) {
|
|
57425
57465
|
const paths = [];
|
|
57426
57466
|
const skillsDir = path2.join(packDir, "skills");
|