Skip to content
Merged
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 src/cli/commands/create/command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
AgentFramework,
AgentLanguage,
AgentProtocol,
AgentType,
AgentSource,
MemoryType,
ModelProvider as ModelProviderEnum,
NetworkMode as NetworkModeEnum,
Expand Down Expand Up @@ -251,7 +251,7 @@ async function handleCreateCLI(options: CreateOptions): Promise<void> {
memory_type: standardize(MemoryType, options.memory ?? 'none'),
agent_protocol: standardize(AgentProtocol, options.protocol ?? 'http'),
build_type: standardize(TelemetryBuildType, options.build ?? 'codezip'),
agent_type: standardize(AgentType, options.type ?? 'create'),
agent_source: standardize(AgentSource, options.type ?? 'create'),
network_mode: standardize(NetworkModeEnum, options.networkMode ?? 'public'),
has_agent: options.agent !== false,
};
Expand Down
4 changes: 2 additions & 2 deletions src/cli/primitives/AgentPrimitive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import {
AgentFramework,
AgentLanguage,
AgentProtocol,
AgentType,
AgentSource,
AuthorizerType,
MemoryType,
ModelProvider as ModelProviderEnum,
Expand Down Expand Up @@ -368,7 +368,7 @@ export class AgentPrimitive extends BasePrimitive<AddAgentOptions, RemovableReso
agent_language: standardize(AgentLanguage, cliOptions.language),
agent_framework: standardize(AgentFramework, cliOptions.framework),
model_provider: standardize(ModelProviderEnum, cliOptions.modelProvider),
agent_type: standardize(AgentType, cliOptions.type ?? 'create'),
agent_source: standardize(AgentSource, cliOptions.type ?? 'create'),
build_type: standardize(TelemetryBuildType, cliOptions.build ?? 'CodeZip'),
agent_protocol: standardize(AgentProtocol, cliOptions.protocol ?? 'HTTP'),
network_mode: standardize(NetworkModeEnum, cliOptions.networkMode ?? 'PUBLIC'),
Expand Down
4 changes: 2 additions & 2 deletions src/cli/telemetry/__tests__/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('withCommandRunTelemetry', () => {
memory_type: 'shortterm',
agent_protocol: 'mcp',
build_type: 'codezip',
agent_type: 'create',
agent_source: 'create',
network_mode: 'public',
has_agent: true,
},
Expand All @@ -118,7 +118,7 @@ describe('withCommandRunTelemetry', () => {
memory_type: 'none',
agent_protocol: 'http',
build_type: 'codezip',
agent_type: 'create',
agent_source: 'create',
network_mode: 'public',
has_agent: true,
},
Expand Down
8 changes: 4 additions & 4 deletions src/cli/telemetry/schemas/__tests__/command-run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('COMMAND_SCHEMAS', () => {
memory_type: 'shortterm',
agent_protocol: 'mcp',
build_type: 'codezip',
agent_type: 'create',
agent_source: 'create',
network_mode: 'public',
has_agent: true,
};
Expand All @@ -110,7 +110,7 @@ describe('COMMAND_SCHEMAS', () => {
memory_type: 'shortterm',
agent_protocol: 'mcp',
build_type: 'codezip',
agent_type: 'create',
agent_source: 'create',
network_mode: 'public',
has_agent: true,
})
Expand Down Expand Up @@ -246,7 +246,7 @@ describe('resilientParse', () => {
memory_type: 'shortterm',
agent_protocol: 'mcp',
build_type: 'codezip',
agent_type: 'create',
agent_source: 'create',
network_mode: 'public',
has_agent: true,
};
Expand All @@ -261,7 +261,7 @@ describe('resilientParse', () => {
memory_type: 'shortterm',
agent_protocol: 'mcp',
build_type: 'codezip',
agent_type: 'create',
agent_source: 'create',
network_mode: 'public',
has_agent: true,
};
Expand Down
6 changes: 3 additions & 3 deletions src/cli/telemetry/schemas/command-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
AgentFramework,
AgentLanguage,
AgentProtocol,
AgentType,
AgentSource,
AttachMode,
AuthType,
AuthorizerType,
Expand Down Expand Up @@ -39,7 +39,7 @@ const CreateAttrs = safeSchema({
memory_type: MemoryType,
agent_protocol: AgentProtocol,
build_type: BuildType,
agent_type: AgentType,
agent_source: AgentSource,
network_mode: NetworkMode,
has_agent: z.boolean(),
});
Expand All @@ -48,7 +48,7 @@ const AddAgentAttrs = safeSchema({
agent_language: AgentLanguage,
agent_framework: AgentFramework,
model_provider: ModelProvider,
agent_type: AgentType,
agent_source: AgentSource,
build_type: BuildType,
agent_protocol: AgentProtocol,
network_mode: NetworkMode,
Expand Down
4 changes: 2 additions & 2 deletions src/cli/telemetry/schemas/common-shapes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const Count = z.number().int().nonnegative();

export const DevAction = z.enum(['server', 'invoke', 'exec']);
export const UiMode = z.enum(['browser', 'terminal']);
export const AgentType = z.enum(['create', 'byo', 'import']);
export const AgentSource = z.enum(['create', 'byo', 'import']);
export const AttachMode = z.enum(['log_only', 'enforce']);
export const AuthType = z.enum(['sigv4', 'bearer_token']);
export const AuthorizerType = z.enum(['aws_iam', 'custom_jwt', 'none']);
Expand Down Expand Up @@ -153,7 +153,7 @@ export type DeployMode = z.infer<typeof DeployModeSchema>;
*/
export const ATTRIBUTES = {
dev_action: DevAction,
agent_type: AgentType,
agent_source: AgentSource,
attach_gateway_count: Count,
attach_mode: AttachMode,
auth_type: AuthType,
Expand Down
4 changes: 2 additions & 2 deletions src/cli/tui/screens/agent/useAddAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
AgentFramework,
AgentLanguage,
AgentProtocol,
AgentType as AgentTypeEnum,
AgentSource,
AuthorizerType as AuthorizerTypeEnum,
BuildType,
MemoryType as MemoryEnum,
Expand Down Expand Up @@ -163,7 +163,7 @@ export function useAddAgent() {
agent_language: standardize(AgentLanguage, config.language),
agent_framework: standardize(AgentFramework, config.framework),
model_provider: standardize(ModelProvider, config.modelProvider),
agent_type: standardize(AgentTypeEnum, config.agentType),
agent_source: standardize(AgentSource, config.agentType),
build_type: standardize(BuildType, config.buildType),
agent_protocol: standardize(AgentProtocol, config.protocol ?? 'HTTP'),
network_mode: standardize(NetworkMode, config.networkMode ?? 'PUBLIC'),
Expand Down
4 changes: 2 additions & 2 deletions src/cli/tui/screens/create/useCreateFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
AgentFramework,
AgentLanguage,
AgentProtocol,
AgentType,
AgentSource,
BuildType,
MemoryType as MemoryEnum,
ModelProvider,
Expand Down Expand Up @@ -266,7 +266,7 @@ export function useCreateFlow(cwd: string): CreateFlowState {
memory_type: standardize(MemoryEnum, addAgentConfig?.memory ?? 'none'),
agent_protocol: standardize(AgentProtocol, addAgentConfig?.protocol ?? 'HTTP'),
build_type: standardize(BuildType, addAgentConfig?.buildType ?? 'CodeZip'),
agent_type: standardize(AgentType, addAgentConfig?.agentType ?? 'create'),
agent_source: standardize(AgentSource, addAgentConfig?.agentType ?? 'create'),
network_mode: standardize(NetworkMode, addAgentConfig?.networkMode ?? 'PUBLIC'),
has_agent: addAgentConfig !== null,
};
Expand Down
Loading