import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);

// src/constants.ts
var CHARS_PER_TOKEN = 4;
function estimateTokens(text) {
  return Math.ceil(text.length / CHARS_PER_TOKEN);
}
var EMBEDDING_INPUT_LIMIT = 8e3;
var PROMPT_PREVIEW_CHARS = 300;
var AI_RESPONSE_PREVIEW_CHARS = 500;
var COMMAND_PREVIEW_CHARS = 80;
var CONTENT_SNIPPET_CHARS = 120;
var TOOL_OUTPUT_PREVIEW_CHARS = 200;
var SESSION_SUMMARY_PREVIEW_CHARS = 300;
var RECALL_SUMMARY_PREVIEW_CHARS = 200;
var CONTEXT_PLAN_PREVIEW_CHARS = 100;
var CONTEXT_SESSION_PREVIEW_CHARS = 80;
var CONTEXT_SPORE_PREVIEW_CHARS = 80;
var DAEMON_CLIENT_TIMEOUT_MS = 2e3;
var DAEMON_HEALTH_CHECK_TIMEOUT_MS = 500;
var LLM_REQUEST_TIMEOUT_MS = 18e4;
var EMBEDDING_REQUEST_TIMEOUT_MS = 6e4;
var DIGEST_LLM_REQUEST_TIMEOUT_MS = 6e5;
var STDIN_TIMEOUT_MS = 100;
var FILE_WATCH_STABILITY_MS = 1e3;
var PROVIDER_DETECT_TIMEOUT_MS = 3e3;
var STALE_BUFFER_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
var DAEMON_HEALTH_RETRY_DELAYS = [100, 200, 400, 800, 1500];
var DAEMON_STALE_GRACE_PERIOD_MS = 6e4;
var DAEMON_EVICT_TIMEOUT_MS = 3e3;
var DAEMON_EVICT_POLL_MS = 100;
var MAX_SLUG_LENGTH = 100;
var CANDIDATE_CONTENT_PREVIEW = 2e3;
var LINEAGE_RECENT_SESSIONS_LIMIT = 5;
var RELATED_SPORES_LIMIT = 50;
var SESSION_CONTEXT_MAX_PLANS = 3;
var PROMPT_CONTEXT_MAX_SPORES = 3;
var PROMPT_CONTEXT_MIN_SIMILARITY = 0.3;
var PROMPT_CONTEXT_MIN_LENGTH = 10;
var MCP_SEARCH_DEFAULT_LIMIT = 10;
var MCP_SESSIONS_DEFAULT_LIMIT = 20;
var MCP_LOGS_DEFAULT_LIMIT = 50;
var DIGEST_TIERS = [1500, 3e3, 5e3, 7500, 1e4];
var DIGEST_TIER_MIN_CONTEXT = {
  1500: 6500,
  3e3: 11500,
  5e3: 18500,
  7500: 24500,
  1e4: 30500
};
var DIGEST_SUBSTRATE_TYPE_WEIGHTS = {
  session: 3,
  spore: 3,
  plan: 2,
  artifact: 1,
  team: 1
};
var LLM_REASONING_MODE = "off";
var SUPERSESSION_CANDIDATE_LIMIT = 5;
var SUPERSESSION_VECTOR_FETCH_LIMIT = 20;
var SUPERSESSION_MAX_TOKENS = 256;
var CURATION_CLUSTER_SIMILARITY = 0.75;
var CONSOLIDATION_MIN_CLUSTER_SIZE = 3;
var CONSOLIDATION_VECTOR_FETCH_LIMIT = 20;
var CONSOLIDATION_MAX_TOKENS = 2048;

export {
  CHARS_PER_TOKEN,
  estimateTokens,
  EMBEDDING_INPUT_LIMIT,
  PROMPT_PREVIEW_CHARS,
  AI_RESPONSE_PREVIEW_CHARS,
  COMMAND_PREVIEW_CHARS,
  CONTENT_SNIPPET_CHARS,
  TOOL_OUTPUT_PREVIEW_CHARS,
  SESSION_SUMMARY_PREVIEW_CHARS,
  RECALL_SUMMARY_PREVIEW_CHARS,
  CONTEXT_PLAN_PREVIEW_CHARS,
  CONTEXT_SESSION_PREVIEW_CHARS,
  CONTEXT_SPORE_PREVIEW_CHARS,
  DAEMON_CLIENT_TIMEOUT_MS,
  DAEMON_HEALTH_CHECK_TIMEOUT_MS,
  LLM_REQUEST_TIMEOUT_MS,
  EMBEDDING_REQUEST_TIMEOUT_MS,
  DIGEST_LLM_REQUEST_TIMEOUT_MS,
  STDIN_TIMEOUT_MS,
  FILE_WATCH_STABILITY_MS,
  PROVIDER_DETECT_TIMEOUT_MS,
  STALE_BUFFER_MAX_AGE_MS,
  DAEMON_HEALTH_RETRY_DELAYS,
  DAEMON_STALE_GRACE_PERIOD_MS,
  DAEMON_EVICT_TIMEOUT_MS,
  DAEMON_EVICT_POLL_MS,
  MAX_SLUG_LENGTH,
  CANDIDATE_CONTENT_PREVIEW,
  LINEAGE_RECENT_SESSIONS_LIMIT,
  RELATED_SPORES_LIMIT,
  SESSION_CONTEXT_MAX_PLANS,
  PROMPT_CONTEXT_MAX_SPORES,
  PROMPT_CONTEXT_MIN_SIMILARITY,
  PROMPT_CONTEXT_MIN_LENGTH,
  MCP_SEARCH_DEFAULT_LIMIT,
  MCP_SESSIONS_DEFAULT_LIMIT,
  MCP_LOGS_DEFAULT_LIMIT,
  DIGEST_TIERS,
  DIGEST_TIER_MIN_CONTEXT,
  DIGEST_SUBSTRATE_TYPE_WEIGHTS,
  LLM_REASONING_MODE,
  SUPERSESSION_CANDIDATE_LIMIT,
  SUPERSESSION_VECTOR_FETCH_LIMIT,
  SUPERSESSION_MAX_TOKENS,
  CURATION_CLUSTER_SIMILARITY,
  CONSOLIDATION_MIN_CLUSTER_SIZE,
  CONSOLIDATION_VECTOR_FETCH_LIMIT,
  CONSOLIDATION_MAX_TOKENS
};
//# sourceMappingURL=chunk-WBLTISAK.js.map