Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export {
DEFAULT_GEMINI_API_TARGET,
DEFAULT_COPILOT_API_TARGET,
} from './domain-utils';
export type { AgentImageResult } from './domain-utils';


Comment on lines 47 to 51
// Re-export API proxy config (extracted to api-proxy-config.ts)
export {
Expand All @@ -61,7 +61,7 @@ export {
extractGhesDomainsFromEngineApiTarget,
resolveApiTargetsToAllowedDomains,
} from './api-proxy-config';
export type { ApiProxyValidationResult } from './api-proxy-config';


// Re-export option parsers (extracted to option-parsers.ts)
export {
Expand All @@ -87,7 +87,7 @@ export {
parseVolumeMounts,
formatItem,
} from './option-parsers';
export type { FlagValidationResult, LocalhostProcessingResult } from './option-parsers';


/**
* Default DNS servers (Google Public DNS)
Expand Down
4 changes: 2 additions & 2 deletions src/commands/logs-command-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { formatStats } from '../logs/stats-formatter';
/**
* Options for determining which logs to show (based on log level)
*/
export interface LoggingOptions {
interface LoggingOptions {
/** The output format being used */
format: LogStatsFormat;
/** Callback to determine if info logs should be shown */
Expand Down Expand Up @@ -124,7 +124,7 @@ export function findPolicyManifestForSource(source: LogSource): PolicyManifest |
* @param source - Log source to load from
* @returns Aggregated statistics
*/
export async function loadLogsWithErrorHandling(
async function loadLogsWithErrorHandling(
source: LogSource
): Promise<AggregatedStats> {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/logs-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { runLogsCommand } from './logs-command-helpers';
/**
* Output format type for stats command (alias for shared type)
*/
export type StatsFormat = LogStatsFormat;
type StatsFormat = LogStatsFormat;

/**
* Options for the stats command
Expand Down
2 changes: 1 addition & 1 deletion src/commands/logs-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { runLogsCommand } from './logs-command-helpers';
/**
* Output format type for summary command (alias for shared type)
*/
export type SummaryFormat = LogStatsFormat;
type SummaryFormat = LogStatsFormat;

/**
* Options for the summary command
Expand Down
2 changes: 1 addition & 1 deletion src/commands/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
/**
* Options for the logs command
*/
export interface LogsCommandOptions {
interface LogsCommandOptions {
/** Follow log output in real-time */
follow?: boolean;
/** Output format: raw, pretty, json */
Expand Down
6 changes: 3 additions & 3 deletions src/domain-patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export const SQUID_DANGEROUS_CHARS = /[\s\0"'`;#]/;
/**
* Protocol restriction for a domain
*/
export type DomainProtocol = 'http' | 'https' | 'both';
type DomainProtocol = 'http' | 'https' | 'both';

/**
* Parsed domain with protocol information
*/
export interface ParsedDomain {
interface ParsedDomain {
/** The domain name without protocol prefix */
domain: string;
/** Which protocol(s) are allowed */
Expand Down Expand Up @@ -243,7 +243,7 @@ export interface PlainDomainEntry {
protocol: DomainProtocol;
}

export interface ParsedDomainList {
interface ParsedDomainList {
/** Plain domains without wildcards */
plainDomains: PlainDomainEntry[];
/** Wildcard patterns with regex */
Expand Down
4 changes: 2 additions & 2 deletions src/image-tag.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const IMAGE_DIGEST_KEYS = ['squid', 'agent', 'agent-act', 'api-proxy', 'cli-proxy'] as const;

export type ImageDigestKey = typeof IMAGE_DIGEST_KEYS[number];
type ImageDigestKey = typeof IMAGE_DIGEST_KEYS[number];

export interface ParsedImageTag {
interface ParsedImageTag {
tag: string;
digests: Partial<Record<ImageDigestKey, string>>;
}
Expand Down
4 changes: 2 additions & 2 deletions src/logs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
*/

export { parseLogLine, extractDomain, extractPort } from './log-parser';
export { LogFormatter, LogFormatterOptions } from './log-formatter';
export { LogFormatter } from './log-formatter';
export {
discoverLogSources,
selectMostRecent,
isContainerRunning,
validateSource,
listLogSources,
} from './log-discovery';
export { streamLogs, StreamOptions } from './log-streamer';
export { streamLogs } from './log-streamer';
export {
aggregateLogs,
loadAllLogs,
Expand Down
2 changes: 1 addition & 1 deletion src/logs/log-formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ParsedLogEntry, OutputFormat, EnhancedLogEntry } from '../types';
/**
* Options for log formatting
*/
export interface LogFormatterOptions {
interface LogFormatterOptions {
/** Output format */
format: OutputFormat;
/** Whether to colorize output (for pretty format). Defaults to true if stdout is TTY */
Expand Down
2 changes: 1 addition & 1 deletion src/logs/log-streamer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { trackPidForPortSync, isPidTrackingAvailable } from '../pid-tracker';
/**
* Options for streaming logs
*/
export interface StreamOptions {
interface StreamOptions {
/** Follow log output in real-time (like tail -f) */
follow: boolean;
/** Log source to stream from */
Expand Down
2 changes: 1 addition & 1 deletion src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as yaml from 'js-yaml';
/**
* A single domain rule within a ruleset
*/
export interface Rule {
interface Rule {
/** Domain name to allow (e.g., "github.com") */
domain: string;
/**
Expand Down
Loading