"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var initialState_exports = {};
__export(initialState_exports, {
  createInitialState: () => createInitialState
});
module.exports = __toCommonJS(initialState_exports);
function createInitialState(initialModelName = "") {
  return {
    input: {
      value: "",
      history: [],
      historyIndex: -1,
      draftBeforeHistory: "",
      images: [],
      pastedBlocks: [],
      pasteCounter: 0,
      editingQueuedFollowUp: false
    },
    ui: {
      isProcessing: false,
      isCancelling: false,
      isThinking: false,
      isCompacting: false,
      activeOverlay: "none",
      showReasoning: true,
      exitWarningShown: false,
      exitWarningTimestamp: null,
      mcpWizardServerType: null,
      copyModeEnabled: false,
      pendingModelSwitch: null,
      selectedMcpServer: null,
      historySearch: {
        isActive: false,
        query: "",
        matchIndex: 0,
        originalInput: "",
        lastMatch: ""
      },
      promptAddWizard: null,
      autoApproveEdits: false,
      bypassPermissions: false,
      todoExpanded: true,
      backgroundTasksRunning: 0,
      backgroundTasksExpanded: false,
      backgroundTasks: [],
      planModeActive: false,
      planModeInitialized: false,
      chatgptRateLimitStatus: null,
      insufficientCredits: null,
      commandOutput: null
    },
    session: {
      id: null,
      hasActiveSession: false,
      modelName: initialModelName
    },
    approval: null,
    approvalQueue: []
  };
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  createInitialState
});
