{"version":3,"sources":["../lib/index.ts"],"sourcesContent":["// AUTO-COPIED FROM scripts/static-lib-index.ts\n// DO NOT EDIT GENERATED lib/index.ts DIRECTLY\n// scripts/static-lib-index.ts\n// Source of truth for protobuf barrel exports (copied to lib/index.ts after generation)\n// Update when adding new testsystem packages.\n//\n// NOTE: Import paths in this file are relative to lib/ and won't resolve from scripts/\n// This is intentional - the file is copied to lib/index.ts during generation where paths work correctly.\n//\n// This file provides a clean, organized export structure for the generated protobuf code:\n// - Individual module exports (common, testCase, testSuite, events, observer, google)\n// - Unified testsystem namespace combining all modules\n// - Proper TypeScript types without complex runtime merging\n//\n// See NAMESPACE_ORGANIZATION.md for detailed usage documentation.\n\n// Re-export all generated modules with clean namespace structure\nexport * as google from './google/protobuf/timestamp';\nexport { testsystem as common } from './testsystem/v1/common/common';\nexport { testsystem as testCase } from './testsystem/v1/entities/test_case';\nexport { testsystem as testSuite } from './testsystem/v1/entities/test_suite';\nexport { testsystem as events } from './testsystem/v1/events/events';\nexport { testsystem as observer } from './testsystem/v1/observer/observer';\n\n// Import all namespace modules\nimport { testsystem as commonNS } from './testsystem/v1/common/common';\nimport { testsystem as testCaseNS } from './testsystem/v1/entities/test_case';\nimport { testsystem as testSuiteNS } from './testsystem/v1/entities/test_suite';\nimport { testsystem as eventsNS } from './testsystem/v1/events/events';\nimport { testsystem as observerNS } from './testsystem/v1/observer/observer';\n\n// Deep merge helper for nested namespaces\nfunction isPlainObject(value: unknown): value is Record<string, unknown> {\n  if (value === null || typeof value !== 'object') {\n    return false;\n  }\n  const proto = Object.getPrototypeOf(value);\n  return proto === Object.prototype || proto === null;\n}\n\nfunction deepMerge(\n  target: Record<string, unknown>,\n  ...sources: Record<string, unknown>[]\n): Record<string, unknown> {\n  for (const source of sources) {\n    for (const key of Object.keys(source)) {\n      const sourceValue = source[key];\n\n      if (isPlainObject(sourceValue)) {\n        const targetValue = target[key];\n\n        if (!isPlainObject(targetValue)) {\n          target[key] = {};\n        }\n\n        deepMerge(\n          target[key] as Record<string, unknown>,\n          sourceValue as Record<string, unknown>\n        );\n      } else {\n        // For non-plain objects (including functions, class instances, arrays, etc.),\n        // copy the value by reference instead of deep merging.\n        target[key] = sourceValue;\n      }\n    }\n  }\n  return target;\n}\n\n// Runtime merged namespace with proper deep merging for nested v1.entities, v1.events, etc.\nexport const testsystem = deepMerge({}, commonNS, testCaseNS, testSuiteNS, eventsNS, observerNS);\n\n// Export type for the merged namespace\nexport type testsystem = typeof testsystem;\n"],"mappings":";;;;;;;;;;;;;;;;AAgCA,SAAS,cAAc,OAAkD;AACvE,MAAI,UAAU,QAAQ,OAAO,UAAU,UAAU;AAC/C,WAAO;AAAA,EACT;AACA,QAAM,QAAQ,OAAO,eAAe,KAAK;AACzC,SAAO,UAAU,OAAO,aAAa,UAAU;AACjD;AAEA,SAAS,UACP,WACG,SACsB;AACzB,aAAW,UAAU,SAAS;AAC5B,eAAW,OAAO,OAAO,KAAK,MAAM,GAAG;AACrC,YAAM,cAAc,OAAO,GAAG;AAE9B,UAAI,cAAc,WAAW,GAAG;AAC9B,cAAM,cAAc,OAAO,GAAG;AAE9B,YAAI,CAAC,cAAc,WAAW,GAAG;AAC/B,iBAAO,GAAG,IAAI,CAAC;AAAA,QACjB;AAEA;AAAA,UACE,OAAO,GAAG;AAAA,UACV;AAAA,QACF;AAAA,MACF,OAAO;AAGL,eAAO,GAAG,IAAI;AAAA,MAChB;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;AAGO,IAAMA,cAAa,UAAU,CAAC,GAAG,YAAUA,aAAYA,aAAaA,aAAUA,WAAU;","names":["testsystem"]}