juno-code 1.0.12 → 1.0.14

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.mjs CHANGED
@@ -44,7 +44,7 @@ var __export = (target, all) => {
44
44
  var version;
45
45
  var init_version = __esm({
46
46
  "src/version.ts"() {
47
- version = "1.0.12";
47
+ version = "1.0.14";
48
48
  }
49
49
  });
50
50
  function isHeadlessEnvironment() {
@@ -4422,6 +4422,28 @@ var CircularInheritanceError = class extends ProfileError {
4422
4422
 
4423
4423
  // src/core/config.ts
4424
4424
  var ENV_VAR_MAPPING = {
4425
+ // Core settings
4426
+ JUNO_CODE_DEFAULT_SUBAGENT: "defaultSubagent",
4427
+ JUNO_CODE_DEFAULT_MAX_ITERATIONS: "defaultMaxIterations",
4428
+ JUNO_CODE_DEFAULT_MODEL: "defaultModel",
4429
+ // Logging settings
4430
+ JUNO_CODE_LOG_LEVEL: "logLevel",
4431
+ JUNO_CODE_LOG_FILE: "logFile",
4432
+ JUNO_CODE_VERBOSE: "verbose",
4433
+ JUNO_CODE_QUIET: "quiet",
4434
+ // MCP settings
4435
+ JUNO_CODE_MCP_TIMEOUT: "mcpTimeout",
4436
+ JUNO_CODE_MCP_RETRIES: "mcpRetries",
4437
+ JUNO_CODE_MCP_SERVER_PATH: "mcpServerPath",
4438
+ JUNO_CODE_MCP_SERVER_NAME: "mcpServerName",
4439
+ // TUI settings
4440
+ JUNO_CODE_INTERACTIVE: "interactive",
4441
+ JUNO_CODE_HEADLESS_MODE: "headlessMode",
4442
+ // Paths
4443
+ JUNO_CODE_WORKING_DIRECTORY: "workingDirectory",
4444
+ JUNO_CODE_SESSION_DIRECTORY: "sessionDirectory"
4445
+ };
4446
+ var LEGACY_ENV_VAR_MAPPING = {
4425
4447
  // Core settings
4426
4448
  JUNO_TASK_DEFAULT_SUBAGENT: "defaultSubagent",
4427
4449
  JUNO_TASK_DEFAULT_MAX_ITERATIONS: "defaultMaxIterations",
@@ -4498,12 +4520,12 @@ var DEFAULT_CONFIG = {
4498
4520
  hooks: getDefaultHooks()
4499
4521
  };
4500
4522
  var GLOBAL_CONFIG_FILE_NAMES = [
4501
- "juno-task.config.json",
4502
- "juno-task.config.js",
4503
- ".juno-taskrc.json",
4504
- ".juno-taskrc.js",
4523
+ "juno-code.config.json",
4524
+ "juno-code.config.js",
4525
+ ".juno-coderc.json",
4526
+ ".juno-coderc.js",
4505
4527
  "package.json"
4506
- // Will look for 'junoTask' field
4528
+ // Will look for 'junoCode' field
4507
4529
  ];
4508
4530
  var PROJECT_CONFIG_FILE = ".juno_task/config.json";
4509
4531
  function resolvePath(inputPath, basePath = process.cwd()) {
@@ -4530,6 +4552,12 @@ function loadConfigFromEnv() {
4530
4552
  config[configKey] = parseEnvValue(value);
4531
4553
  }
4532
4554
  }
4555
+ for (const [envVar, configKey] of Object.entries(LEGACY_ENV_VAR_MAPPING)) {
4556
+ const value = process.env[envVar];
4557
+ if (value !== void 0 && config[configKey] === void 0) {
4558
+ config[configKey] = parseEnvValue(value);
4559
+ }
4560
+ }
4533
4561
  return config;
4534
4562
  }
4535
4563
  async function loadJsonConfig(filePath) {
@@ -4553,7 +4581,7 @@ async function loadPackageJsonConfig(filePath) {
4553
4581
  try {
4554
4582
  const content = await promises.readFile(filePath, "utf-8");
4555
4583
  const packageJson = JSON.parse(content);
4556
- return packageJson.junoTask || {};
4584
+ return packageJson.junoCode || {};
4557
4585
  } catch (error) {
4558
4586
  throw new Error(`Failed to load package.json config from ${filePath}: ${error}`);
4559
4587
  }
@@ -14735,6 +14763,6 @@ function migrateError(error) {
14735
14763
  return error;
14736
14764
  }
14737
14765
 
14738
- export { AlertDialog, AlreadyExistsError, BooleanSelect, CLIError, CLIOptionsSchema, ChoiceDialog, CircularInheritanceError, CircularProgress, CommandNotFoundError, ConfigFileNotFoundError, ConfigInvalidSyntaxError, ConfigLoader, ConfigValidationSchema, ConfigurationError, ConfirmDialog, ConnectionEventType, ConstraintValidationError, CustomSpinner, DEFAULT_CATEGORY_SEVERITY, DEFAULT_CATEGORY_STRATEGY, DEFAULT_CONFIG, DEFAULT_ERROR_RECOVERY_CONFIG, DEFAULT_HOOKS, DEFAULT_PROGRESS_CONFIG, DEFAULT_RATE_LIMIT_CONFIG, DEFAULT_TUI_THEME, DependencyValidationError, Dialog, DirectoryPathSchema, DiskFullError, ENV_VAR_MAPPING, ERROR_CODE_CATEGORIES, ErrorCategory, ErrorCode, ErrorDialog, ErrorHandlingStrategy, ErrorManager, ErrorPriority, ErrorRecoveryManager, ErrorReporter, ErrorSeverity, ExecutionEngine, ExecutionStatus, ExponentialBackoffStrategy, FileNotFoundError, FilePathSchema, FileProgressBar, FileSessionStorage, FixedBackoffStrategy, GitUrlSchema, IOError, IndeterminateProgressBar, Input, InvalidArgumentsError, InvalidChoiceError, InvalidFormatError, InvalidPathError, IterationsSchema, JunoMCPClient, JunoTaskConfigSchema, JunoTaskError, KEYS, LinearBackoffStrategy, LoadingSpinner, LogLevelSchema2 as LogLevelSchema, MCPAuthError, MCPConfigError, MCPConfigLoader, MCPConnectionState, MCPErrorCode, MCPServerUnresponsiveError, MCPToolNotFoundError, MCPValidationError, MCP_DEFAULTS, MetricsCollector, MetricsReporter, ModelSchema, MultiSelect, OutOfRangeError, PROGRESS_CHARS, PROGRESS_PATTERNS, PerformanceTracker, PermissionDeniedError, ProfileError, ProfileExistsError, ProfileNotFoundError, ProgressBar, ProgressDialog, ProgressEventType, ProgressSpinner, ProgressStreamManager, PromptEditor, QuickSelect, RATE_LIMIT_PATTERNS, RecoveryActionType, RecoveryStrategyType, RequiredFieldError, ResourceBusyError, ResourceExhaustedError, SPINNER_FRAMES, SUBAGENT_ALIASES2 as SUBAGENT_ALIASES, SUBAGENT_TOOL_MAPPING, SchemaValidationError, SearchableSelect, Select, SessionError, SessionExpiredError, SessionIdSchema, SessionManager, SessionNotFoundError, SessionState, SessionStatusSchema, SessionStorageType, SessionUtils, SimplePromptEditor, SingleSelect, Spinner, SpinnerPresets, StatisticsCalculator, StepProgressBar, SubagentCapability, SubagentSchema, SubagentStatus, SystemError, TUIApp, TUIInputError, TUILayout, TUINotAvailableError, TUIRenderer, TUIScreen, TUIScreenManager, TemplateError, TemplateNotFoundError, TemplateSyntaxError, TimedSpinner, ToolExecutionStatus, TypeValidationError, ValidationError, Validators, calculateRetryDelay, createContextFromCode, createDirectoryIfNotExists, createErrorChain, createErrorContext, createErrorCorrelation, createExecutionEngine, createExecutionRequest, createHeadlessProgress, createKeySequence, createMCPClient, createMCPClientFromConfig, createMetricsCollector, createMetricsReporter, createProfileManager, createSessionManager, enhanceForTerminal, enrichErrorContext, errorManager, errorRecoveryManager, errorReporter, executeHook, executeHooks, findMCPServerPath, formatError, formatErrorForLogging, formatErrorForUser, formatValidationError, getArchitecture, getCacheDirectory, getCategoryPriority, getColorSupport, getConfigDirectory, getCpuUsage, getDataDirectory, getDefaultHooks, getDefaultHooksJson, getEnvVar, getEnvVarWithDefault, getEnvironmentType, getErrorCategory, getErrorCodeCategory, getHomeDirectory, getMCPServerEnvironment, getMemoryUsage, getNodeEnvironment, getPlatform, getProcessInfo, getRecoveryStrategy, getRecoverySuggestions, getShell, getTUICapabilities, getTempDirectory, getTerminalHeight, getTerminalWidth, hasErrorCategory, hasErrorCode, headlessAlert, headlessConfirmation, headlessPromptEditor, headlessSelection, initializeTUIRenderer, isCIEnvironment, isCategoryRetriable, isConnectionError, isConnectionState, isDefined, isDevelopmentMode, isHeadlessEnvironment, isInDocker, isInteractiveTerminal, isJunoTaskError, isKeyboardEvent, isMCPError, isProgressEvent, isRateLimitError, isRetriableErrorCode, isRetryableError, isRunningAsRoot, isSubagentType, isTUIAvailable, isTUIError, isTUISupported, isTimeoutError, isToolError, isValidLogLevel, isValidPath, isValidSessionStatus, isValidSubagent, isValidationError, launchPromptEditor, launchSimplePrompt, loadConfig, migrateError, parseEnvArray, parseEnvBoolean, parseEnvNumber, parseKeyBinding, parseRateLimitResetTime, registerCleanupHandlers, renderAndWait, renderTUI, requiresUserIntervention, safeConsoleOutput, safeTUIExecution, safeTUIRender, sanitizeFilePath, sanitizeGitUrl, sanitizePromptText, sanitizeSessionId, setEnvVar, showAlert, showConfirmation, showSelection, showTUIAlert, supportsColor2 as supportsColor, tuiRenderer, useAppShortcuts, useFormKeys, useFormState, useGlobalShortcuts, useKeyboard, useListState, useNavigationKeys, useProgressAnimation, useTUIContext, useTUIState, useTextEditingKeys, validateCommandOptions, validateConfig, validateEnvironmentVars, validateHooksConfig, validateIterations, validateJson, validateLogLevel, validateMCPServerPath, validateModel, validateNumberRange, validatePaths, validateStringLength, validateSubagent, validateUniqueArray, validateWithFallback, version };
14766
+ export { AlertDialog, AlreadyExistsError, BooleanSelect, CLIError, CLIOptionsSchema, ChoiceDialog, CircularInheritanceError, CircularProgress, CommandNotFoundError, ConfigFileNotFoundError, ConfigInvalidSyntaxError, ConfigLoader, ConfigValidationSchema, ConfigurationError, ConfirmDialog, ConnectionEventType, ConstraintValidationError, CustomSpinner, DEFAULT_CATEGORY_SEVERITY, DEFAULT_CATEGORY_STRATEGY, DEFAULT_CONFIG, DEFAULT_ERROR_RECOVERY_CONFIG, DEFAULT_HOOKS, DEFAULT_PROGRESS_CONFIG, DEFAULT_RATE_LIMIT_CONFIG, DEFAULT_TUI_THEME, DependencyValidationError, Dialog, DirectoryPathSchema, DiskFullError, ENV_VAR_MAPPING, ERROR_CODE_CATEGORIES, ErrorCategory, ErrorCode, ErrorDialog, ErrorHandlingStrategy, ErrorManager, ErrorPriority, ErrorRecoveryManager, ErrorReporter, ErrorSeverity, ExecutionEngine, ExecutionStatus, ExponentialBackoffStrategy, FileNotFoundError, FilePathSchema, FileProgressBar, FileSessionStorage, FixedBackoffStrategy, GitUrlSchema, IOError, IndeterminateProgressBar, Input, InvalidArgumentsError, InvalidChoiceError, InvalidFormatError, InvalidPathError, IterationsSchema, JunoMCPClient, JunoTaskConfigSchema, JunoTaskError, KEYS, LEGACY_ENV_VAR_MAPPING, LinearBackoffStrategy, LoadingSpinner, LogLevelSchema2 as LogLevelSchema, MCPAuthError, MCPConfigError, MCPConfigLoader, MCPConnectionState, MCPErrorCode, MCPServerUnresponsiveError, MCPToolNotFoundError, MCPValidationError, MCP_DEFAULTS, MetricsCollector, MetricsReporter, ModelSchema, MultiSelect, OutOfRangeError, PROGRESS_CHARS, PROGRESS_PATTERNS, PerformanceTracker, PermissionDeniedError, ProfileError, ProfileExistsError, ProfileNotFoundError, ProgressBar, ProgressDialog, ProgressEventType, ProgressSpinner, ProgressStreamManager, PromptEditor, QuickSelect, RATE_LIMIT_PATTERNS, RecoveryActionType, RecoveryStrategyType, RequiredFieldError, ResourceBusyError, ResourceExhaustedError, SPINNER_FRAMES, SUBAGENT_ALIASES2 as SUBAGENT_ALIASES, SUBAGENT_TOOL_MAPPING, SchemaValidationError, SearchableSelect, Select, SessionError, SessionExpiredError, SessionIdSchema, SessionManager, SessionNotFoundError, SessionState, SessionStatusSchema, SessionStorageType, SessionUtils, SimplePromptEditor, SingleSelect, Spinner, SpinnerPresets, StatisticsCalculator, StepProgressBar, SubagentCapability, SubagentSchema, SubagentStatus, SystemError, TUIApp, TUIInputError, TUILayout, TUINotAvailableError, TUIRenderer, TUIScreen, TUIScreenManager, TemplateError, TemplateNotFoundError, TemplateSyntaxError, TimedSpinner, ToolExecutionStatus, TypeValidationError, ValidationError, Validators, calculateRetryDelay, createContextFromCode, createDirectoryIfNotExists, createErrorChain, createErrorContext, createErrorCorrelation, createExecutionEngine, createExecutionRequest, createHeadlessProgress, createKeySequence, createMCPClient, createMCPClientFromConfig, createMetricsCollector, createMetricsReporter, createProfileManager, createSessionManager, enhanceForTerminal, enrichErrorContext, errorManager, errorRecoveryManager, errorReporter, executeHook, executeHooks, findMCPServerPath, formatError, formatErrorForLogging, formatErrorForUser, formatValidationError, getArchitecture, getCacheDirectory, getCategoryPriority, getColorSupport, getConfigDirectory, getCpuUsage, getDataDirectory, getDefaultHooks, getDefaultHooksJson, getEnvVar, getEnvVarWithDefault, getEnvironmentType, getErrorCategory, getErrorCodeCategory, getHomeDirectory, getMCPServerEnvironment, getMemoryUsage, getNodeEnvironment, getPlatform, getProcessInfo, getRecoveryStrategy, getRecoverySuggestions, getShell, getTUICapabilities, getTempDirectory, getTerminalHeight, getTerminalWidth, hasErrorCategory, hasErrorCode, headlessAlert, headlessConfirmation, headlessPromptEditor, headlessSelection, initializeTUIRenderer, isCIEnvironment, isCategoryRetriable, isConnectionError, isConnectionState, isDefined, isDevelopmentMode, isHeadlessEnvironment, isInDocker, isInteractiveTerminal, isJunoTaskError, isKeyboardEvent, isMCPError, isProgressEvent, isRateLimitError, isRetriableErrorCode, isRetryableError, isRunningAsRoot, isSubagentType, isTUIAvailable, isTUIError, isTUISupported, isTimeoutError, isToolError, isValidLogLevel, isValidPath, isValidSessionStatus, isValidSubagent, isValidationError, launchPromptEditor, launchSimplePrompt, loadConfig, migrateError, parseEnvArray, parseEnvBoolean, parseEnvNumber, parseKeyBinding, parseRateLimitResetTime, registerCleanupHandlers, renderAndWait, renderTUI, requiresUserIntervention, safeConsoleOutput, safeTUIExecution, safeTUIRender, sanitizeFilePath, sanitizeGitUrl, sanitizePromptText, sanitizeSessionId, setEnvVar, showAlert, showConfirmation, showSelection, showTUIAlert, supportsColor2 as supportsColor, tuiRenderer, useAppShortcuts, useFormKeys, useFormState, useGlobalShortcuts, useKeyboard, useListState, useNavigationKeys, useProgressAnimation, useTUIContext, useTUIState, useTextEditingKeys, validateCommandOptions, validateConfig, validateEnvironmentVars, validateHooksConfig, validateIterations, validateJson, validateLogLevel, validateMCPServerPath, validateModel, validateNumberRange, validatePaths, validateStringLength, validateSubagent, validateUniqueArray, validateWithFallback, version };
14739
14767
  //# sourceMappingURL=index.mjs.map
14740
14768
  //# sourceMappingURL=index.mjs.map