Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/eve/src/cli/commands/info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { CompileAgentResult } from "#compiler/compile-agent.js";
import {
createCompiledAgentManifest,
createCompiledAgentNodeManifest,
type CompiledChannelEntry,
type CompiledChannelDefinition,
type CompiledInstructionsDefinition,
type CompiledScheduleDefinition,
type CompiledSubagentNode,
Expand Down Expand Up @@ -70,7 +70,7 @@ function makeCompiledState(
schedules?: CompiledScheduleDefinition[];
} = {},
): CompileAgentResult {
const channels: CompiledChannelEntry[] = [
const channels: CompiledChannelDefinition[] = [
{
kind: "channel",
name: "slack",
Expand Down
16 changes: 6 additions & 10 deletions packages/eve/src/cli/commands/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,12 @@ export function buildApplicationInfoJson(inspection: ApplicationInspection): App
tools: (compiledState?.manifest.tools ?? []).map((tool) => tool.name),
subagents: (compiledState?.manifest.subagents ?? []).map((subagent) => subagent.name),
schedules: (compiledState?.manifest.schedules ?? []).map((schedule) => schedule.name),
channels: (compiledState?.manifest.channels ?? []).map((channel) =>
channel.kind === "channel"
? {
name: channel.name,
kind: channel.adapterKind ?? null,
method: channel.method,
urlPath: channel.urlPath,
}
: { name: channel.name, kind: "disabled", method: null, urlPath: null },
),
channels: (compiledState?.manifest.channels ?? []).map((channel) => ({
name: channel.name,
kind: channel.adapterKind ?? null,
method: channel.method,
urlPath: channel.urlPath,
})),
messaging: {
create: messaging.createSessionRoutePath,
messages: messaging.sessionMessagesRoutePattern,
Expand Down
38 changes: 8 additions & 30 deletions packages/eve/src/cli/dev/tui/agent-header.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ const FRAMEWORK_TOOL: AgentInfoToolEntry = {
inputSchema: { type: "object" },
logicalPath: "eve:framework/bash",
name: "bash",
origin: "framework",
owner: { feature: "shell", kind: "framework" },
outputSchema: { type: "object" },
replacesFrameworkTool: false,
requiresApproval: false,
sourceId: "eve:bash-tool",
sourceKind: "module",
Expand All @@ -32,9 +31,8 @@ const AUTHORED_TOOL: AgentInfoToolEntry = {
inputSchema: { type: "object" },
logicalPath: "agent/tools/get_weather.ts",
name: "get_weather",
origin: "authored",
owner: { kind: "application" },
outputSchema: null,
replacesFrameworkTool: false,
requiresApproval: false,
sourceKind: "module",
};
Expand All @@ -52,12 +50,8 @@ const INFO: AgentInfoResult = {
capabilities: {
devRoutes: true,
},
channels: {
authored: [],
available: [],
disabledFramework: [],
framework: [],
},
channels: [],
composition: { disabled: [], shadowed: [] },
connections: [],
diagnostics: {
discoveryErrors: 0,
Expand All @@ -71,12 +65,14 @@ const INFO: AgentInfoResult = {
content: "You are a weather assistant.",
logicalPath: "instructions.md",
name: "instructions",
owner: { kind: "application" },
role: "system",
sourceKind: "markdown",
},
],
},
kind: "eve-agent-info",
kernel: { prepared: [], reserved: [] },
mode: "development",
sandbox: null,
schedules: [],
Expand All @@ -88,26 +84,8 @@ const INFO: AgentInfoResult = {
local: [],
total: 0,
},
tools: {
authored: [AUTHORED_TOOL],
available: [FRAMEWORK_TOOL, AUTHORED_TOOL],
disabledFramework: [],
dynamic: [],
framework: [
{
...FRAMEWORK_TOOL,
disabledByAuthor: false,
replacedByAuthoredTool: false,
status: "active",
},
],
reserved: [],
},
version: 2,
workflow: {
enabled: false,
toolName: "Workflow",
},
tools: { dynamic: [], static: [FRAMEWORK_TOOL, AUTHORED_TOOL] },
version: 3,
workspace: {
resourceRoot: null,
rootEntries: [],
Expand Down
17 changes: 6 additions & 11 deletions packages/eve/src/cli/dev/tui/remote-connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const INFO: AgentInfoResult = {
name: "Weather Agent",
},
capabilities: { devRoutes: true },
channels: { authored: [], available: [], disabledFramework: [], framework: [] },
channels: [],
composition: { disabled: [], shadowed: [] },
connections: [],
diagnostics: { discoveryErrors: 0, discoveryWarnings: 0 },
hooks: [],
Expand All @@ -62,27 +63,21 @@ const INFO: AgentInfoResult = {
content: "You are a weather assistant.",
logicalPath: "agent/instructions.md",
name: "instructions",
owner: { kind: "application" },
role: "system",
sourceKind: "markdown",
},
],
},
kind: "eve-agent-info",
kernel: { prepared: [], reserved: [] },
mode: "development",
sandbox: null,
schedules: [],
skills: { dynamic: [], static: [] },
subagents: { local: [], total: 0 },
tools: {
authored: [],
available: [],
disabledFramework: [],
dynamic: [],
framework: [],
reserved: [],
},
version: 2,
workflow: { enabled: false, toolName: "Workflow" },
tools: { dynamic: [], static: [] },
version: 3,
workspace: { resourceRoot: null, rootEntries: [] },
};

Expand Down
27 changes: 8 additions & 19 deletions packages/eve/src/cli/dev/tui/runner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,8 @@ const AGENT_INFO: AgentInfoResult = {
capabilities: {
devRoutes: true,
},
channels: {
authored: [],
available: [],
disabledFramework: [],
framework: [],
},
channels: [],
composition: { disabled: [], shadowed: [] },
connections: [],
diagnostics: {
discoveryErrors: 0,
Expand All @@ -130,12 +126,14 @@ const AGENT_INFO: AgentInfoResult = {
content: "You are a weather assistant.",
logicalPath: "agent/instructions.md",
name: "instructions",
owner: { kind: "application" },
role: "system",
sourceKind: "markdown",
},
],
},
kind: "eve-agent-info",
kernel: { prepared: [], reserved: [] },
mode: "development",
sandbox: null,
schedules: [],
Expand All @@ -148,7 +146,8 @@ const AGENT_INFO: AgentInfoResult = {
total: 0,
},
tools: {
authored: [
dynamic: [],
static: [
{
description: "Get the weather.",
hasAuth: false,
Expand All @@ -158,24 +157,14 @@ const AGENT_INFO: AgentInfoResult = {
inputSchema: { type: "object" },
logicalPath: "agent/tools/get_weather.ts",
name: "get_weather",
origin: "authored",
owner: { kind: "application" },
outputSchema: null,
replacesFrameworkTool: false,
requiresApproval: false,
sourceKind: "module",
},
],
available: [],
disabledFramework: [],
dynamic: [],
framework: [],
reserved: [],
},
version: 2,
workflow: {
enabled: false,
toolName: "Workflow",
},
version: 3,
workspace: {
resourceRoot: null,
rootEntries: [],
Expand Down
16 changes: 5 additions & 11 deletions packages/eve/src/cli/dev/tui/setup-issues.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,21 @@ const DISCONNECTED_GATEWAY_INFO: AgentInfoResult = {
name: "Agent",
},
capabilities: { devRoutes: true },
channels: { authored: [], available: [], disabledFramework: [], framework: [] },
channels: [],
composition: { disabled: [], shadowed: [] },
connections: [],
diagnostics: { discoveryErrors: 0, discoveryWarnings: 0 },
hooks: [],
instructions: { dynamic: [], static: [] },
kernel: { prepared: [], reserved: [] },
kind: "eve-agent-info",
mode: "development",
sandbox: null,
schedules: [],
skills: { dynamic: [], static: [] },
subagents: { local: [], total: 0 },
tools: {
authored: [],
available: [],
disabledFramework: [],
dynamic: [],
framework: [],
reserved: [],
},
version: 2,
workflow: { enabled: false, toolName: "Workflow" },
tools: { dynamic: [], static: [] },
version: 3,
workspace: { resourceRoot: null, rootEntries: [] },
};

Expand Down
16 changes: 5 additions & 11 deletions packages/eve/src/cli/dev/tui/setup-issues.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,21 @@ function infoWithRouting(
name: "Agent",
},
capabilities: { devRoutes: true },
channels: { authored: [], available: [], disabledFramework: [], framework: [] },
channels: [],
composition: { disabled: [], shadowed: [] },
connections: [],
diagnostics: { discoveryErrors: 0, discoveryWarnings: 0 },
hooks: [],
instructions: { dynamic: [], static: [] },
kernel: { prepared: [], reserved: [] },
kind: "eve-agent-info",
mode: "development",
sandbox: null,
schedules: [],
skills: { dynamic: [], static: [] },
subagents: { local: [], total: 0 },
tools: {
authored: [],
available: [],
disabledFramework: [],
dynamic: [],
framework: [],
reserved: [],
},
version: 2,
workflow: { enabled: false, toolName: "Workflow" },
tools: { dynamic: [], static: [] },
version: 3,
workspace: { resourceRoot: null, rootEntries: [] },
};
}
Expand Down
24 changes: 5 additions & 19 deletions packages/eve/src/cli/dev/tui/terminal-renderer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,8 @@ function agentInfoWithModel(
capabilities: {
devRoutes: true,
},
channels: {
authored: [],
available: [],
disabledFramework: [],
framework: [],
},
channels: [],
composition: { disabled: [], shadowed: [] },
connections: [],
diagnostics: {
discoveryErrors: 0,
Expand All @@ -117,6 +113,7 @@ function agentInfoWithModel(
static: [],
},
kind: "eve-agent-info",
kernel: { prepared: [], reserved: [] },
mode: "development",
sandbox: null,
schedules: [],
Expand All @@ -128,19 +125,8 @@ function agentInfoWithModel(
local: [],
total: 0,
},
tools: {
authored: [],
available: [],
disabledFramework: [],
dynamic: [],
framework: [],
reserved: [],
},
version: 2,
workflow: {
enabled: false,
toolName: "Workflow",
},
tools: { dynamic: [], static: [] },
version: 3,
workspace: {
resourceRoot: null,
rootEntries: [],
Expand Down
Loading
Loading