{
  "schemaVersion": 1,
  "atomId": "run_context_state.aicomponent",
  "bundleType": "aicomponent",
  "category": "state",
  "mode": "fixed",
  "label": { "zh": "运行上下文状态", "en": "Run context state" },
  "tags": ["state", "run-context", "test-mode", "preview", "debug"],
  "bindingRoles": ["runContext"],
  "scaffold": {
    "files": {
      "src/game/run/RunContextRuntime.ts": {
        "source": "ref/RunContextRuntime.ts",
        "mode": "full",
        "weight": 10
      }
    }
  },
  "imports": [],
  "exports": [
    { "name": "setActiveRunContext",   "kind": "function", "location": "src/game/run/RunContextRuntime.ts" },
    { "name": "getActiveRunContext",   "kind": "function", "location": "src/game/run/RunContextRuntime.ts" },
    { "name": "clearActiveRunContext", "kind": "function", "location": "src/game/run/RunContextRuntime.ts" },
    { "name": "ActiveRunContext",      "kind": "type",     "location": "src/game/run/RunContextRuntime.ts" },
    { "name": "RunFlags",              "kind": "type",     "location": "src/game/run/RunContextRuntime.ts" }
  ],
  "neutralDescriptor": {
    "geometry": "global singleton storing the current run mode (normal vs test) and optional test level data, affecting game progression behavior",
    "layers": ["debug-runtime", "test-mode-gate"]
  },
  "usageHints": [
    "test 模式下游戏使用 RunContext 中提供的自定义关卡数据，不影响正式关卡进度",
    "affectsProgression: false 的 run 不会更新 LevelManager 的进度",
    "仅在编辑器/预览场景中写入；游戏场景只读"
  ],
  "files": {
    "skill": "SKILL.md",
    "runContextRuntime": "ref/RunContextRuntime.ts"
  }
}
