@colbymchenry/codegraph-win32-arm64 1.4.1 → 1.5.0

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.
Files changed (171) hide show
  1. package/bin/codegraph.cmd +1 -1
  2. package/lib/dist/bin/codegraph.js +61 -15
  3. package/lib/dist/bin/codegraph.js.map +1 -1
  4. package/lib/dist/context/index.d.ts.map +1 -1
  5. package/lib/dist/context/index.js +41 -11
  6. package/lib/dist/context/index.js.map +1 -1
  7. package/lib/dist/db/index.d.ts +142 -0
  8. package/lib/dist/db/index.d.ts.map +1 -1
  9. package/lib/dist/db/index.js +267 -6
  10. package/lib/dist/db/index.js.map +1 -1
  11. package/lib/dist/db/queries.d.ts +74 -2
  12. package/lib/dist/db/queries.d.ts.map +1 -1
  13. package/lib/dist/db/queries.js +287 -20
  14. package/lib/dist/db/queries.js.map +1 -1
  15. package/lib/dist/db/sqlite-adapter.d.ts +3 -1
  16. package/lib/dist/db/sqlite-adapter.d.ts.map +1 -1
  17. package/lib/dist/db/sqlite-adapter.js +22 -4
  18. package/lib/dist/db/sqlite-adapter.js.map +1 -1
  19. package/lib/dist/db/wal-valve.d.ts +15 -2
  20. package/lib/dist/db/wal-valve.d.ts.map +1 -1
  21. package/lib/dist/db/wal-valve.js +88 -6
  22. package/lib/dist/db/wal-valve.js.map +1 -1
  23. package/lib/dist/extraction/grammars.d.ts.map +1 -1
  24. package/lib/dist/extraction/grammars.js +63 -0
  25. package/lib/dist/extraction/grammars.js.map +1 -1
  26. package/lib/dist/extraction/index.d.ts +32 -3
  27. package/lib/dist/extraction/index.d.ts.map +1 -1
  28. package/lib/dist/extraction/index.js +254 -61
  29. package/lib/dist/extraction/index.js.map +1 -1
  30. package/lib/dist/extraction/kernel/decode.d.ts +9 -0
  31. package/lib/dist/extraction/kernel/decode.d.ts.map +1 -0
  32. package/lib/dist/extraction/kernel/decode.js +162 -0
  33. package/lib/dist/extraction/kernel/decode.js.map +1 -0
  34. package/lib/dist/extraction/kernel/index.d.ts +64 -0
  35. package/lib/dist/extraction/kernel/index.d.ts.map +1 -0
  36. package/lib/dist/extraction/kernel/index.js +279 -0
  37. package/lib/dist/extraction/kernel/index.js.map +1 -0
  38. package/lib/dist/extraction/kernel/layout.d.ts +101 -0
  39. package/lib/dist/extraction/kernel/layout.d.ts.map +1 -0
  40. package/lib/dist/extraction/kernel/layout.js +104 -0
  41. package/lib/dist/extraction/kernel/layout.js.map +1 -0
  42. package/lib/dist/extraction/kernel/loader.d.ts +103 -0
  43. package/lib/dist/extraction/kernel/loader.d.ts.map +1 -0
  44. package/lib/dist/extraction/kernel/loader.js +146 -0
  45. package/lib/dist/extraction/kernel/loader.js.map +1 -0
  46. package/lib/dist/extraction/languages/c-cpp.d.ts +14 -0
  47. package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
  48. package/lib/dist/extraction/languages/c-cpp.js +849 -12
  49. package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
  50. package/lib/dist/extraction/parse-pool.d.ts +8 -0
  51. package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
  52. package/lib/dist/extraction/parse-pool.js +15 -0
  53. package/lib/dist/extraction/parse-pool.js.map +1 -1
  54. package/lib/dist/extraction/parse-worker.js +35 -1
  55. package/lib/dist/extraction/parse-worker.js.map +1 -1
  56. package/lib/dist/extraction/store-worker.d.ts +24 -0
  57. package/lib/dist/extraction/store-worker.d.ts.map +1 -0
  58. package/lib/dist/extraction/store-worker.js +139 -0
  59. package/lib/dist/extraction/store-worker.js.map +1 -0
  60. package/lib/dist/extraction/store-writer.d.ts +63 -0
  61. package/lib/dist/extraction/store-writer.d.ts.map +1 -0
  62. package/lib/dist/extraction/store-writer.js +174 -0
  63. package/lib/dist/extraction/store-writer.js.map +1 -0
  64. package/lib/dist/extraction/tree-sitter.d.ts +22 -4
  65. package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
  66. package/lib/dist/extraction/tree-sitter.js +151 -6
  67. package/lib/dist/extraction/tree-sitter.js.map +1 -1
  68. package/lib/dist/extraction/wasm/tree-sitter-c.wasm +0 -0
  69. package/lib/dist/extraction/wasm/tree-sitter-cpp.wasm +0 -0
  70. package/lib/dist/extraction/wasm/tree-sitter-dart.wasm +0 -0
  71. package/lib/dist/extraction/wasm/tree-sitter-go.wasm +0 -0
  72. package/lib/dist/extraction/wasm/tree-sitter-java.wasm +0 -0
  73. package/lib/dist/extraction/wasm/tree-sitter-javascript.wasm +0 -0
  74. package/lib/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
  75. package/lib/dist/extraction/wasm/tree-sitter-php.wasm +0 -0
  76. package/lib/dist/extraction/wasm/tree-sitter-python.wasm +0 -0
  77. package/lib/dist/extraction/wasm/tree-sitter-ruby.wasm +0 -0
  78. package/lib/dist/extraction/wasm/tree-sitter-rust.wasm +0 -0
  79. package/lib/dist/extraction/wasm/tree-sitter-swift.wasm +0 -0
  80. package/lib/dist/extraction/wasm/tree-sitter-tsx.wasm +0 -0
  81. package/lib/dist/extraction/wasm/tree-sitter-typescript.wasm +0 -0
  82. package/lib/dist/extraction/wasm-runtime-flags.d.ts +15 -0
  83. package/lib/dist/extraction/wasm-runtime-flags.d.ts.map +1 -1
  84. package/lib/dist/extraction/wasm-runtime-flags.js +27 -3
  85. package/lib/dist/extraction/wasm-runtime-flags.js.map +1 -1
  86. package/lib/dist/index.d.ts +14 -2
  87. package/lib/dist/index.d.ts.map +1 -1
  88. package/lib/dist/index.js +188 -10
  89. package/lib/dist/index.js.map +1 -1
  90. package/lib/dist/installer/beta-signup.d.ts +54 -0
  91. package/lib/dist/installer/beta-signup.d.ts.map +1 -0
  92. package/lib/dist/installer/beta-signup.js +178 -0
  93. package/lib/dist/installer/beta-signup.js.map +1 -0
  94. package/lib/dist/installer/index.d.ts.map +1 -1
  95. package/lib/dist/installer/index.js +11 -0
  96. package/lib/dist/installer/index.js.map +1 -1
  97. package/lib/dist/mcp/tools.d.ts.map +1 -1
  98. package/lib/dist/mcp/tools.js +27 -0
  99. package/lib/dist/mcp/tools.js.map +1 -1
  100. package/lib/dist/resolution/c-fnptr-synthesizer.d.ts +1 -1
  101. package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -1
  102. package/lib/dist/resolution/c-fnptr-synthesizer.js +574 -132
  103. package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -1
  104. package/lib/dist/resolution/callback-synthesizer.d.ts +54 -10
  105. package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
  106. package/lib/dist/resolution/callback-synthesizer.js +249 -157
  107. package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
  108. package/lib/dist/resolution/cooperative-yield.d.ts +10 -2
  109. package/lib/dist/resolution/cooperative-yield.d.ts.map +1 -1
  110. package/lib/dist/resolution/cooperative-yield.js +6 -4
  111. package/lib/dist/resolution/cooperative-yield.js.map +1 -1
  112. package/lib/dist/resolution/frameworks/go.d.ts.map +1 -1
  113. package/lib/dist/resolution/frameworks/go.js +29 -6
  114. package/lib/dist/resolution/frameworks/go.js.map +1 -1
  115. package/lib/dist/resolution/import-resolver.d.ts +2 -3
  116. package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
  117. package/lib/dist/resolution/import-resolver.js +166 -7
  118. package/lib/dist/resolution/import-resolver.js.map +1 -1
  119. package/lib/dist/resolution/index.d.ts +87 -2
  120. package/lib/dist/resolution/index.d.ts.map +1 -1
  121. package/lib/dist/resolution/index.js +716 -130
  122. package/lib/dist/resolution/index.js.map +1 -1
  123. package/lib/dist/resolution/memory-budget.d.ts +48 -0
  124. package/lib/dist/resolution/memory-budget.d.ts.map +1 -0
  125. package/lib/dist/resolution/memory-budget.js +162 -0
  126. package/lib/dist/resolution/memory-budget.js.map +1 -0
  127. package/lib/dist/resolution/name-matcher.d.ts +12 -1
  128. package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
  129. package/lib/dist/resolution/name-matcher.js +387 -95
  130. package/lib/dist/resolution/name-matcher.js.map +1 -1
  131. package/lib/dist/resolution/resolver-pool.d.ts +106 -0
  132. package/lib/dist/resolution/resolver-pool.d.ts.map +1 -0
  133. package/lib/dist/resolution/resolver-pool.js +344 -0
  134. package/lib/dist/resolution/resolver-pool.js.map +1 -0
  135. package/lib/dist/resolution/resolver-worker.d.ts +17 -0
  136. package/lib/dist/resolution/resolver-worker.d.ts.map +1 -0
  137. package/lib/dist/resolution/resolver-worker.js +141 -0
  138. package/lib/dist/resolution/resolver-worker.js.map +1 -0
  139. package/lib/dist/resolution/types.d.ts +3 -0
  140. package/lib/dist/resolution/types.d.ts.map +1 -1
  141. package/lib/dist/sync/watcher.d.ts +25 -1
  142. package/lib/dist/sync/watcher.d.ts.map +1 -1
  143. package/lib/dist/sync/watcher.js +76 -3
  144. package/lib/dist/sync/watcher.js.map +1 -1
  145. package/lib/dist/types.d.ts +41 -2
  146. package/lib/dist/types.d.ts.map +1 -1
  147. package/lib/dist/types.js +26 -1
  148. package/lib/dist/types.js.map +1 -1
  149. package/lib/dist/ui/color.d.ts +21 -0
  150. package/lib/dist/ui/color.d.ts.map +1 -0
  151. package/lib/dist/ui/color.js +42 -0
  152. package/lib/dist/ui/color.js.map +1 -0
  153. package/lib/dist/ui/glyphs.d.ts +35 -10
  154. package/lib/dist/ui/glyphs.d.ts.map +1 -1
  155. package/lib/dist/ui/glyphs.js +59 -12
  156. package/lib/dist/ui/glyphs.js.map +1 -1
  157. package/lib/dist/ui/shimmer-progress.d.ts.map +1 -1
  158. package/lib/dist/ui/shimmer-progress.js +78 -4
  159. package/lib/dist/ui/shimmer-progress.js.map +1 -1
  160. package/lib/dist/ui/shimmer-worker.js +25 -17
  161. package/lib/dist/ui/shimmer-worker.js.map +1 -1
  162. package/lib/dist/ui/types.d.ts +0 -2
  163. package/lib/dist/ui/types.d.ts.map +1 -1
  164. package/lib/dist/upgrade/index.d.ts +7 -0
  165. package/lib/dist/upgrade/index.d.ts.map +1 -1
  166. package/lib/dist/upgrade/index.js +18 -5
  167. package/lib/dist/upgrade/index.js.map +1 -1
  168. package/lib/kernel/codegraph-kernel.node +0 -0
  169. package/lib/node_modules/.package-lock.json +1 -1
  170. package/lib/package.json +6 -1
  171. package/package.json +6 -2
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ /**
3
+ * Native-kernel loader — finds, loads, and contract-verifies the
4
+ * codegraph-kernel .node addon.
5
+ *
6
+ * The kernel is OPTIONAL everywhere. Every failure mode here (no binary for
7
+ * this platform, dlopen error, ABI/kind-table mismatch) resolves to `null`
8
+ * and the extraction path silently keeps using the wasm pipeline — a missing
9
+ * or stale kernel must never break indexing, only skip the speedup. Set
10
+ * CODEGRAPH_KERNEL_DEBUG=1 to see why a kernel didn't load.
11
+ *
12
+ * Kill switch: CODEGRAPH_KERNEL=0 disables the kernel entirely (checked per
13
+ * call so tests and embedders can flip it at runtime).
14
+ *
15
+ * Search order:
16
+ * 1. CODEGRAPH_KERNEL_PATH — explicit .node path (dev/testing override)
17
+ * 2. <up3>/kernel/codegraph-kernel.node — the release bundle layout
18
+ * (lib/dist/** next to lib/kernel/; see scripts/build-bundle.sh)
19
+ * 3. <up3>/codegraph-kernel/prebuilds/<platform>-<arch>/codegraph-kernel.node
20
+ * — from-source runs and tests (staged by scripts/build-kernel.sh)
21
+ *
22
+ * "up3" = three directories above this file, which is the package root both
23
+ * from src/extraction/kernel/ and from dist/extraction/kernel/.
24
+ */
25
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
26
+ if (k2 === undefined) k2 = k;
27
+ var desc = Object.getOwnPropertyDescriptor(m, k);
28
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
29
+ desc = { enumerable: true, get: function() { return m[k]; } };
30
+ }
31
+ Object.defineProperty(o, k2, desc);
32
+ }) : (function(o, m, k, k2) {
33
+ if (k2 === undefined) k2 = k;
34
+ o[k2] = m[k];
35
+ }));
36
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
37
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
38
+ }) : function(o, v) {
39
+ o["default"] = v;
40
+ });
41
+ var __importStar = (this && this.__importStar) || (function () {
42
+ var ownKeys = function(o) {
43
+ ownKeys = Object.getOwnPropertyNames || function (o) {
44
+ var ar = [];
45
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
46
+ return ar;
47
+ };
48
+ return ownKeys(o);
49
+ };
50
+ return function (mod) {
51
+ if (mod && mod.__esModule) return mod;
52
+ var result = {};
53
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
54
+ __setModuleDefault(result, mod);
55
+ return result;
56
+ };
57
+ })();
58
+ Object.defineProperty(exports, "__esModule", { value: true });
59
+ exports.getKernel = getKernel;
60
+ exports.kernelSupports = kernelSupports;
61
+ exports.resetKernelForTests = resetKernelForTests;
62
+ const fs = __importStar(require("fs"));
63
+ const path = __importStar(require("path"));
64
+ const module_1 = require("module");
65
+ const types_1 = require("../../types");
66
+ const layout_1 = require("./layout");
67
+ const debugEnabled = () => process.env.CODEGRAPH_KERNEL_DEBUG === '1';
68
+ function debug(msg) {
69
+ if (debugEnabled())
70
+ process.stderr.write(`[codegraph-kernel] ${msg}\n`);
71
+ }
72
+ /** Languages the loaded binary supports (contract-verified). Empty when no kernel. */
73
+ let kernelLanguages = new Set();
74
+ /** undefined = not attempted yet; null = attempted and unavailable. */
75
+ let cached;
76
+ function candidatePaths() {
77
+ const candidates = [];
78
+ if (process.env.CODEGRAPH_KERNEL_PATH)
79
+ candidates.push(process.env.CODEGRAPH_KERNEL_PATH);
80
+ const packageRoot = path.resolve(__dirname, '..', '..', '..');
81
+ candidates.push(path.join(packageRoot, 'kernel', 'codegraph-kernel.node'));
82
+ candidates.push(path.join(packageRoot, 'codegraph-kernel', 'prebuilds', `${process.platform}-${process.arch}`, 'codegraph-kernel.node'));
83
+ return candidates;
84
+ }
85
+ /**
86
+ * Verify the binary speaks our wire contract: same ABI version and byte-equal
87
+ * NodeKind/EdgeKind tables (kinds cross the boundary as indexes into these).
88
+ */
89
+ function verifyContract(mod, from) {
90
+ const info = mod.contractInfo();
91
+ if (info.abiVersion !== layout_1.KERNEL_ABI_VERSION) {
92
+ debug(`${from}: ABI ${info.abiVersion} != expected ${layout_1.KERNEL_ABI_VERSION} — ignoring kernel`);
93
+ return false;
94
+ }
95
+ const sameTable = (a, b) => a.length === b.length && a.every((v, i) => v === b[i]);
96
+ if (!sameTable(info.nodeKinds, types_1.NODE_KINDS) || !sameTable(info.edgeKinds, types_1.EDGE_KINDS)) {
97
+ debug(`${from}: NodeKind/EdgeKind tables differ from src/types.ts — ignoring kernel`);
98
+ return false;
99
+ }
100
+ return true;
101
+ }
102
+ /**
103
+ * Load (once per process) and return the kernel module, or null when
104
+ * unavailable. The kill switch is NOT checked here — callers route through
105
+ * `kernelAvailable()` / `tryKernelExtract()` which check it per call.
106
+ */
107
+ function getKernel() {
108
+ if (cached !== undefined)
109
+ return cached;
110
+ cached = null;
111
+ for (const candidate of candidatePaths()) {
112
+ try {
113
+ if (!fs.existsSync(candidate))
114
+ continue;
115
+ // createRequire: works identically from CJS output and future ESM.
116
+ const req = (0, module_1.createRequire)(__filename);
117
+ const mod = req(candidate);
118
+ if (typeof mod.extractFile !== 'function' || typeof mod.contractInfo !== 'function') {
119
+ debug(`${candidate}: missing expected exports — ignoring`);
120
+ continue;
121
+ }
122
+ if (!verifyContract(mod, candidate))
123
+ continue;
124
+ kernelLanguages = new Set(mod.contractInfo().languages);
125
+ debug(`loaded ${candidate} (languages: ${[...kernelLanguages].join(', ')})`);
126
+ cached = mod;
127
+ break;
128
+ }
129
+ catch (err) {
130
+ debug(`${candidate}: failed to load — ${err instanceof Error ? err.message : String(err)}`);
131
+ }
132
+ }
133
+ return cached;
134
+ }
135
+ /** True when the kill switch is off, a verified binary is loaded, and it supports `language`. */
136
+ function kernelSupports(language) {
137
+ if (process.env.CODEGRAPH_KERNEL === '0')
138
+ return false;
139
+ return getKernel() !== null && kernelLanguages.has(language);
140
+ }
141
+ /** Test hook: forget the loaded module so a changed env is re-evaluated. */
142
+ function resetKernelForTests() {
143
+ cached = undefined;
144
+ kernelLanguages = new Set();
145
+ }
146
+ //# sourceMappingURL=loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../src/extraction/kernel/loader.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyHH,8BAuBC;AAGD,wCAGC;AAGD,kDAGC;AA1JD,uCAAyB;AACzB,2CAA6B;AAC7B,mCAAuC;AACvC,uCAAqD;AACrD,qCAA8C;AAgE9C,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,GAAG,CAAC;AACtE,SAAS,KAAK,CAAC,GAAW;IACxB,IAAI,YAAY,EAAE;QAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;AAC1E,CAAC;AAED,sFAAsF;AACtF,IAAI,eAAe,GAAwB,IAAI,GAAG,EAAE,CAAC;AACrD,uEAAuE;AACvE,IAAI,MAAuC,CAAC;AAE5C,SAAS,cAAc;IACrB,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,IAAI,OAAO,CAAC,GAAG,CAAC,qBAAqB;QAAE,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IAC1F,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9D,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,uBAAuB,CAAC,CAAC,CAAC;IAC3E,UAAU,CAAC,IAAI,CACb,IAAI,CAA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source: string): string;
103
103
  * class.
104
104
  */
105
105
  export declare function blankCppAnnotationMacroCalls(source: string): string;
106
+ export declare function blankLoneMacroLines(source: string): string;
106
107
  export declare function blankCppApiPrefixMacros(source: string): string;
107
108
  export declare function blankCppInlineAnnotationMacros(source: string): string;
108
109
  export declare function blankCudaConstructs(source: string): string;
110
+ export declare function blankCLeadingAttrMacros(source: string): string;
111
+ export declare function blankCCplusplusGuardBodies(source: string): string;
112
+ export declare function blankCStatementMacroCalls(source: string): string;
113
+ export declare function blankCSandwichedAnnotations(source: string): string;
114
+ export declare function blankCAutoInference(source: string): string;
115
+ export declare function blankCTrailingParamAttrMacros(source: string): string;
116
+ export declare function blankCKernelAnnotations(source: string): string;
117
+ export declare function blankCParameterizedAnnotationMacros(source: string): string;
118
+ export declare function blankCTypeKeywordArgs(source: string): string;
119
+ export declare function blankCFileScopePrefixedDeclMacros(source: string): string;
120
+ export declare function rewriteCPrefixedDeclMacroInitializers(source: string): string;
121
+ export declare function blankCVaArgQualifiedTypeArgs(source: string): string;
122
+ export declare function blankCNamedVariadicDefineDots(source: string): string;
109
123
  export declare const cppExtractor: LanguageExtractor;
110
124
  //# sourceMappingURL=c-cpp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"c-cpp.d.ts","sourceRoot":"","sources":["../../../src/extraction/languages/c-cpp.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAwG9D;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAkBtE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAUzD;AAaD,eAAO,MAAM,UAAU,EAAE,iBAuDxB,CAAC;AAoCF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM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