apt-mcp-agent-setup 3.2.5 → 3.2.7

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 (79) hide show
  1. package/README.md +109 -109
  2. package/bin/cli.js +1 -1
  3. package/bundle/NOTICES.md +0 -0
  4. package/bundle/core.enc +0 -0
  5. package/bundle/mcp-rules.enc +0 -0
  6. package/bundle/skills-aso.enc +0 -0
  7. package/bundle/skills-ba.enc +0 -0
  8. package/bundle/skills-base.enc +0 -0
  9. package/bundle/skills-be.enc +0 -0
  10. package/bundle/skills-design.enc +0 -0
  11. package/bundle/skills-fe.enc +0 -0
  12. package/bundle/skills-mobile.enc +0 -0
  13. package/bundle/skills-pm.enc +0 -0
  14. package/integrity-manifest.json +79 -77
  15. package/package.json +1 -1
  16. package/release-check.js +328 -306
  17. package/src/backends/browser-tools-0.0.82.json +375 -375
  18. package/src/backends/browser-tools.js +1 -1
  19. package/src/backends/codegraph-1.6.0.json +180 -180
  20. package/src/backends/index-command.js +1 -1
  21. package/src/backends/index-store.js +1 -1
  22. package/src/backends/profiles.js +1 -1
  23. package/src/backends/review_graph.py +30 -30
  24. package/src/core/aso-import.js +1 -1
  25. package/src/core/catalog.js +1 -1
  26. package/src/core/codex-host-metadata.js +1 -1
  27. package/src/core/context-metrics.js +1 -1
  28. package/src/core/doctor.js +1 -1
  29. package/src/core/execution.js +1 -1
  30. package/src/core/hook-bridge.js +1 -1
  31. package/src/core/host-adapters.js +1 -1
  32. package/src/core/memory-store.js +1 -1
  33. package/src/core/model-inventory.js +1 -1
  34. package/src/core/model-routing.js +1 -1
  35. package/src/core/npm-cli.js +1 -1
  36. package/src/core/owned-lock.js +1 -1
  37. package/src/core/presentations.js +1 -1
  38. package/src/core/quality.js +1 -1
  39. package/src/core/runtime-info.js +1 -0
  40. package/src/core/session.js +1 -1
  41. package/src/core/skill-names.js +1 -1
  42. package/src/core/workspace-path.js +1 -1
  43. package/src/core/xlsx-reader.py +62 -62
  44. package/src/installer/bounded-command.js +1 -1
  45. package/src/installer/context-legacy-hashes.json +42 -42
  46. package/src/installer/global-setup.js +1 -1
  47. package/src/installer/host-hooks.js +1 -1
  48. package/src/installer/managed-config.js +1 -1
  49. package/src/installer/platform-config.js +1 -1
  50. package/src/installer/prerequisites.js +1 -1
  51. package/src/installer/presentations-requirements.txt +14 -14
  52. package/src/installer/presentations.js +1 -1
  53. package/src/installer/project-setup.js +1 -1
  54. package/src/installer/runtime-activation.js +1 -0
  55. package/src/installer/runtime-lock.js +1 -1
  56. package/src/installer/runtime-store.js +1 -1
  57. package/src/installer/setup-wizard.js +1 -1
  58. package/src/license/crypto.js +1 -1
  59. package/src/license/fingerprint.js +1 -1
  60. package/src/license/terms.js +1 -1
  61. package/src/license/verify.js +1 -1
  62. package/src/presets/index.js +1 -1
  63. package/src/proxy/backends.js +1 -1
  64. package/src/proxy/browser-sessions.js +1 -1
  65. package/src/proxy/core-tools.js +1 -1
  66. package/src/proxy/pipeline.js +1 -1
  67. package/src/proxy/router.config.js +1 -1
  68. package/src/proxy/router.js +1 -1
  69. package/src/proxy/server.js +1 -1
  70. package/src/templates/AGENTS.md +13 -13
  71. package/src/templates/CLAUDE.md +13 -13
  72. package/src/templates/GEMINI.md +13 -13
  73. package/src/templates/apt-runtime.md +16 -16
  74. package/src/templates/copilot-instructions.md +13 -13
  75. package/src/templates/cursorrules.mdc +18 -18
  76. package/src/templates/design-config.md +52 -52
  77. package/src/templates/gdrive-config.md +57 -57
  78. package/src/templates/mcp-tools.md +18 -18
  79. package/src/templates/windsurfrules.md +13 -13
@@ -1 +1 @@
1
- const _0x9f9d55=_0x4f0b;function _0x449d(){const _0x12469f=['nJuZmZaZs2DIzvj4','ChjVCgvYDgLLCW','nNrirhDUsa','ndm2ndqWnfHAvgv5rW','mJqXodGWzM5xCKTc','nZCWndC5mLLhA0Hbqq','otGYmdvpvw15ChO','CMvXDwLYzwq','zgvZy3jPChrPB24','yxb0vgfZAW','mZzuqM1Sr1e','lI9ICM93C2vYlxrVB2XZltaUmc44mI5QC29U','mtbtve9OAvi','BwfW','DhLWzq','u3rHyMXLihrHC2SGAwrLBNrPDhK7ihjLDxnLigzVCIb0AgLZihrHC2SU','zxHWB3j0CW','ndi5ndq3nNrOy1POCG','mtC3ntC5m0znwuDMrq','mZzhDwjbB3O','v29YA2vYigLKzw50Axr5oYbKzwzHDwX0CYb0BYbJB29YzgLUyxrVCI4','C3rYAw5N','Aw5WDxrty2HLBwe'];_0x449d=function(){return _0x12469f;};return _0x449d();}function _0x4f0b(_0x3daa38,_0xb8e8bf){_0x3daa38=_0x3daa38-0xd1;const _0x449db2=_0x449d();let _0x4f0bd6=_0x449db2[_0x3daa38];if(_0x4f0b['EXVEcE']===undefined){var _0x15c45f=function(_0x2be865){const _0x471c46='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x280e45='',_0x7f5012='';for(let _0x158488=0x0,_0x2bdc10,_0xe062bf,_0x4b2655=0x0;_0xe062bf=_0x2be865['charAt'](_0x4b2655++);~_0xe062bf&&(_0x2bdc10=_0x158488%0x4?_0x2bdc10*0x40+_0xe062bf:_0xe062bf,_0x158488++%0x4)?_0x280e45+=String['fromCharCode'](0xff&_0x2bdc10>>(-0x2*_0x158488&0x6)):0x0){_0xe062bf=_0x471c46['indexOf'](_0xe062bf);}for(let _0x37e3a6=0x0,_0x49aacb=_0x280e45['length'];_0x37e3a6<_0x49aacb;_0x37e3a6++){_0x7f5012+='%'+('00'+_0x280e45['charCodeAt'](_0x37e3a6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x7f5012);};_0x4f0b['LrNaPl']=_0x15c45f,_0x4f0b['EIlOQE']={},_0x4f0b['EXVEcE']=!![];}const _0x520743=_0x449db2[0x0],_0x16326d=_0x3daa38+_0x520743,_0x11ef72=_0x4f0b['EIlOQE'][_0x16326d];return!_0x11ef72?(_0x4f0bd6=_0x4f0b['LrNaPl'](_0x4f0bd6),_0x4f0b['EIlOQE'][_0x16326d]=_0x4f0bd6):_0x4f0bd6=_0x11ef72,_0x4f0bd6;}(function(_0x505c5c,_0x48b75c){const _0x55a437=_0x4f0b,_0x4cc7a3=_0x505c5c();while(!![]){try{const _0x386b7f=parseInt(_0x55a437(0xdc))/0x1*(-parseInt(_0x55a437(0xde))/0x2)+parseInt(_0x55a437(0xd5))/0x3+-parseInt(_0x55a437(0xe4))/0x4*(-parseInt(_0x55a437(0xe0))/0x5)+parseInt(_0x55a437(0xd6))/0x6*(parseInt(_0x55a437(0xda))/0x7)+-parseInt(_0x55a437(0xdf))/0x8+parseInt(_0x55a437(0xd4))/0x9+-parseInt(_0x55a437(0xe6))/0xa*(-parseInt(_0x55a437(0xdd))/0xb);if(_0x386b7f===_0x48b75c)break;else _0x4cc7a3['push'](_0x4cc7a3['shift']());}catch(_0x42fd24){_0x4cc7a3['push'](_0x4cc7a3['shift']());}}}(_0x449d,0x7d747));const {tools}=require(_0x9f9d55(0xe5)),_0x280e45={};_0x280e45[_0x9f9d55(0xd1)]=_0x9f9d55(0xd8),_0x280e45['description']=_0x9f9d55(0xd2);const _0x7f5012={};_0x7f5012[_0x9f9d55(0xd1)]=_0x9f9d55(0xd8),_0x7f5012[_0x9f9d55(0xe2)]=_0x9f9d55(0xd7),module[_0x9f9d55(0xd3)]=tools[_0x9f9d55(0xe7)](_0x158488=>({..._0x158488,'inputSchema':{..._0x158488[_0x9f9d55(0xd9)],'properties':{..._0x158488[_0x9f9d55(0xd9)][_0x9f9d55(0xdb)],'aptTask':_0x280e45,'aptWorker':_0x7f5012},'required':[..._0x158488[_0x9f9d55(0xd9)][_0x9f9d55(0xe1)]||[],_0x9f9d55(0xe3)]}}));
1
+ const _0x38ddef=_0x1cd6;function _0x1635(){const _0x40ec7d=['mJq2nte1n3jHsgjACG','ChjVCgvYDgLLCW','nJC1oteYmgPOuNznva','Aw5WDxrty2HLBwe','zgvZy3jPChrPB24','C3rYAw5N','BwfW','nZqXmZmWoensCeXvua','u3rHyMXLihrHC2SGAwrLBNrPDhK7ihjLDxnLigzVCIb0AgLZihrHC2SU','ntC5mdy2wvfOwKfo','mJCYnJCZnuDTCvLsAG','yxb0vgfZAW','ndGZmZu1mMzpvKj1vW','mta0nZGZnJHMzwPXrwu','muHbsMDbAW','zxHWB3j0CW','CMvXDwLYzwq','lI9ICM93C2vYlxrVB2XZltaUmc44mI5QC29U','v29YA2vYigLKzw50Axr5oYbKzwzHDwX0CYb0BYbJB29YzgLUyxrVCI4'];_0x1635=function(){return _0x40ec7d;};return _0x1635();}(function(_0x3395ae,_0x31310d){const _0x261145=_0x1cd6,_0x4b381d=_0x3395ae();while(!![]){try{const _0x211a1f=-parseInt(_0x261145(0x1dd))/0x1*(-parseInt(_0x261145(0x1d8))/0x2)+parseInt(_0x261145(0x1cf))/0x3+-parseInt(_0x261145(0x1db))/0x4+-parseInt(_0x261145(0x1d9))/0x5+parseInt(_0x261145(0x1d1))/0x6+-parseInt(_0x261145(0x1d6))/0x7+parseInt(_0x261145(0x1dc))/0x8;if(_0x211a1f===_0x31310d)break;else _0x4b381d['push'](_0x4b381d['shift']());}catch(_0x16a030){_0x4b381d['push'](_0x4b381d['shift']());}}}(_0x1635,0xb3645));const {tools}=require(_0x38ddef(0x1cd)),_0x560f4b={};function _0x1cd6(_0x52c683,_0x35f91c){_0x52c683=_0x52c683-0x1cd;const _0x16354e=_0x1635();let _0x1cd6ac=_0x16354e[_0x52c683];if(_0x1cd6['moxOWp']===undefined){var _0x5b2f64=function(_0xa8f2db){const _0x1e0e95='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x560f4b='',_0x49d3d8='';for(let _0x461ff3=0x0,_0x434475,_0x391503,_0x4a592a=0x0;_0x391503=_0xa8f2db['charAt'](_0x4a592a++);~_0x391503&&(_0x434475=_0x461ff3%0x4?_0x434475*0x40+_0x391503:_0x391503,_0x461ff3++%0x4)?_0x560f4b+=String['fromCharCode'](0xff&_0x434475>>(-0x2*_0x461ff3&0x6)):0x0){_0x391503=_0x1e0e95['indexOf'](_0x391503);}for(let _0x87bcd9=0x0,_0x1dfec9=_0x560f4b['length'];_0x87bcd9<_0x1dfec9;_0x87bcd9++){_0x49d3d8+='%'+('00'+_0x560f4b['charCodeAt'](_0x87bcd9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49d3d8);};_0x1cd6['ypHfxr']=_0x5b2f64,_0x1cd6['aAKWmX']={},_0x1cd6['moxOWp']=!![];}const _0x1948c9=_0x16354e[0x0],_0x1a573a=_0x52c683+_0x1948c9,_0x240d25=_0x1cd6['aAKWmX'][_0x1a573a];return!_0x240d25?(_0x1cd6ac=_0x1cd6['ypHfxr'](_0x1cd6ac),_0x1cd6['aAKWmX'][_0x1a573a]=_0x1cd6ac):_0x1cd6ac=_0x240d25,_0x1cd6ac;}_0x560f4b['type']=_0x38ddef(0x1d4),_0x560f4b[_0x38ddef(0x1d3)]=_0x38ddef(0x1d7);const _0x49d3d8={};_0x49d3d8['type']=_0x38ddef(0x1d4),_0x49d3d8[_0x38ddef(0x1d3)]=_0x38ddef(0x1ce),module[_0x38ddef(0x1de)]=tools[_0x38ddef(0x1d5)](_0x461ff3=>({..._0x461ff3,'inputSchema':{..._0x461ff3['inputSchema'],'properties':{..._0x461ff3[_0x38ddef(0x1d2)][_0x38ddef(0x1d0)],'aptTask':_0x560f4b,'aptWorker':_0x49d3d8},'required':[..._0x461ff3[_0x38ddef(0x1d2)][_0x38ddef(0x1df)]||[],_0x38ddef(0x1da)]}}));
@@ -1,180 +1,180 @@
1
- {
2
- "source": "@colbymchenry/codegraph@1.6.0 (MIT), MCP input schemas",
3
- "tools": [
4
- {
5
- "name": "codegraph_search",
6
- "description": "Search indexed source symbols.",
7
- "inputSchema": {
8
- "type": "object",
9
- "properties": {
10
- "query": {
11
- "type": "string",
12
- "description": "Symbol name or partial name (e.g., \"auth\", \"signIn\", \"UserService\")"
13
- },
14
- "kind": {
15
- "type": "string",
16
- "description": "Filter by node kind",
17
- "enum": [
18
- "function",
19
- "method",
20
- "class",
21
- "interface",
22
- "type",
23
- "variable",
24
- "route",
25
- "component"
26
- ]
27
- },
28
- "limit": {
29
- "type": "number",
30
- "description": "Maximum results (default: 10)",
31
- "default": 10
32
- },
33
- "projectPath": {
34
- "type": "string",
35
- "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
36
- }
37
- },
38
- "required": [
39
- "query"
40
- ]
41
- }
42
- },
43
- {
44
- "name": "codegraph_callers",
45
- "description": "Find callers of a source symbol.",
46
- "inputSchema": {
47
- "type": "object",
48
- "properties": {
49
- "symbol": {
50
- "type": "string",
51
- "description": "Name of the function, method, or class to find callers for"
52
- },
53
- "file": {
54
- "type": "string",
55
- "description": "Narrow to the definition in this file (path or suffix) when several same-named symbols exist (e.g. one UserService per app in a monorepo)"
56
- },
57
- "limit": {
58
- "type": "number",
59
- "description": "Maximum number of callers to return (default: 20)",
60
- "default": 20
61
- },
62
- "projectPath": {
63
- "type": "string",
64
- "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
65
- }
66
- },
67
- "required": [
68
- "symbol"
69
- ]
70
- }
71
- },
72
- {
73
- "name": "codegraph_callees",
74
- "description": "Find callees of a source symbol.",
75
- "inputSchema": {
76
- "type": "object",
77
- "properties": {
78
- "symbol": {
79
- "type": "string",
80
- "description": "Name of the function, method, or class to find callees for"
81
- },
82
- "file": {
83
- "type": "string",
84
- "description": "Narrow to the definition in this file (path or suffix) when several same-named symbols exist"
85
- },
86
- "limit": {
87
- "type": "number",
88
- "description": "Maximum number of callees to return (default: 20)",
89
- "default": 20
90
- },
91
- "projectPath": {
92
- "type": "string",
93
- "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
94
- }
95
- },
96
- "required": [
97
- "symbol"
98
- ]
99
- }
100
- },
101
- {
102
- "name": "codegraph_explore",
103
- "description": "Explore source symbols and their relationships.",
104
- "inputSchema": {
105
- "type": "object",
106
- "properties": {
107
- "query": {
108
- "type": "string",
109
- "description": "Symbol names, file names, or short code terms to explore (e.g., \"AuthService loginUser session-manager\", \"GraphTraverser BFS impact traversal.ts\"). For a flow question, name the symbols spanning the flow (e.g. \"mutateElement renderScene\"). A natural-language question works too — no prior codegraph_search needed."
110
- },
111
- "maxFiles": {
112
- "type": "number",
113
- "description": "Maximum number of files to include source code from (default: 12)",
114
- "default": 12
115
- },
116
- "projectPath": {
117
- "type": "string",
118
- "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
119
- }
120
- },
121
- "required": [
122
- "query"
123
- ]
124
- }
125
- },
126
- {
127
- "name": "codegraph_status",
128
- "description": "Inspect the bound workspace index.",
129
- "inputSchema": {
130
- "type": "object",
131
- "properties": {
132
- "projectPath": {
133
- "type": "string",
134
- "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
135
- }
136
- }
137
- }
138
- },
139
- {
140
- "name": "codegraph_files",
141
- "description": "List indexed code files.",
142
- "inputSchema": {
143
- "type": "object",
144
- "properties": {
145
- "path": {
146
- "type": "string",
147
- "description": "Filter to files under this directory path (e.g., \"src/components\"). Returns all files if not specified."
148
- },
149
- "pattern": {
150
- "type": "string",
151
- "description": "Filter files matching this glob pattern (e.g., \"*.tsx\", \"**/*.test.ts\")"
152
- },
153
- "format": {
154
- "type": "string",
155
- "description": "Output format: \"tree\" (hierarchical, default), \"flat\" (simple list), \"grouped\" (by language)",
156
- "enum": [
157
- "tree",
158
- "flat",
159
- "grouped"
160
- ],
161
- "default": "tree"
162
- },
163
- "includeMetadata": {
164
- "type": "boolean",
165
- "description": "Include file metadata like language and symbol count (default: true)",
166
- "default": true
167
- },
168
- "maxDepth": {
169
- "type": "number",
170
- "description": "Maximum directory depth to show (default: unlimited)"
171
- },
172
- "projectPath": {
173
- "type": "string",
174
- "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
175
- }
176
- }
177
- }
178
- }
179
- ]
180
- }
1
+ {
2
+ "source": "@colbymchenry/codegraph@1.6.0 (MIT), MCP input schemas",
3
+ "tools": [
4
+ {
5
+ "name": "codegraph_search",
6
+ "description": "Search indexed source symbols.",
7
+ "inputSchema": {
8
+ "type": "object",
9
+ "properties": {
10
+ "query": {
11
+ "type": "string",
12
+ "description": "Symbol name or partial name (e.g., \"auth\", \"signIn\", \"UserService\")"
13
+ },
14
+ "kind": {
15
+ "type": "string",
16
+ "description": "Filter by node kind",
17
+ "enum": [
18
+ "function",
19
+ "method",
20
+ "class",
21
+ "interface",
22
+ "type",
23
+ "variable",
24
+ "route",
25
+ "component"
26
+ ]
27
+ },
28
+ "limit": {
29
+ "type": "number",
30
+ "description": "Maximum results (default: 10)",
31
+ "default": 10
32
+ },
33
+ "projectPath": {
34
+ "type": "string",
35
+ "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
36
+ }
37
+ },
38
+ "required": [
39
+ "query"
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "name": "codegraph_callers",
45
+ "description": "Find callers of a source symbol.",
46
+ "inputSchema": {
47
+ "type": "object",
48
+ "properties": {
49
+ "symbol": {
50
+ "type": "string",
51
+ "description": "Name of the function, method, or class to find callers for"
52
+ },
53
+ "file": {
54
+ "type": "string",
55
+ "description": "Narrow to the definition in this file (path or suffix) when several same-named symbols exist (e.g. one UserService per app in a monorepo)"
56
+ },
57
+ "limit": {
58
+ "type": "number",
59
+ "description": "Maximum number of callers to return (default: 20)",
60
+ "default": 20
61
+ },
62
+ "projectPath": {
63
+ "type": "string",
64
+ "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
65
+ }
66
+ },
67
+ "required": [
68
+ "symbol"
69
+ ]
70
+ }
71
+ },
72
+ {
73
+ "name": "codegraph_callees",
74
+ "description": "Find callees of a source symbol.",
75
+ "inputSchema": {
76
+ "type": "object",
77
+ "properties": {
78
+ "symbol": {
79
+ "type": "string",
80
+ "description": "Name of the function, method, or class to find callees for"
81
+ },
82
+ "file": {
83
+ "type": "string",
84
+ "description": "Narrow to the definition in this file (path or suffix) when several same-named symbols exist"
85
+ },
86
+ "limit": {
87
+ "type": "number",
88
+ "description": "Maximum number of callees to return (default: 20)",
89
+ "default": 20
90
+ },
91
+ "projectPath": {
92
+ "type": "string",
93
+ "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
94
+ }
95
+ },
96
+ "required": [
97
+ "symbol"
98
+ ]
99
+ }
100
+ },
101
+ {
102
+ "name": "codegraph_explore",
103
+ "description": "Explore source symbols and their relationships.",
104
+ "inputSchema": {
105
+ "type": "object",
106
+ "properties": {
107
+ "query": {
108
+ "type": "string",
109
+ "description": "Symbol names, file names, or short code terms to explore (e.g., \"AuthService loginUser session-manager\", \"GraphTraverser BFS impact traversal.ts\"). For a flow question, name the symbols spanning the flow (e.g. \"mutateElement renderScene\"). A natural-language question works too — no prior codegraph_search needed."
110
+ },
111
+ "maxFiles": {
112
+ "type": "number",
113
+ "description": "Maximum number of files to include source code from (default: 12)",
114
+ "default": 12
115
+ },
116
+ "projectPath": {
117
+ "type": "string",
118
+ "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
119
+ }
120
+ },
121
+ "required": [
122
+ "query"
123
+ ]
124
+ }
125
+ },
126
+ {
127
+ "name": "codegraph_status",
128
+ "description": "Inspect the bound workspace index.",
129
+ "inputSchema": {
130
+ "type": "object",
131
+ "properties": {
132
+ "projectPath": {
133
+ "type": "string",
134
+ "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
135
+ }
136
+ }
137
+ }
138
+ },
139
+ {
140
+ "name": "codegraph_files",
141
+ "description": "List indexed code files.",
142
+ "inputSchema": {
143
+ "type": "object",
144
+ "properties": {
145
+ "path": {
146
+ "type": "string",
147
+ "description": "Filter to files under this directory path (e.g., \"src/components\"). Returns all files if not specified."
148
+ },
149
+ "pattern": {
150
+ "type": "string",
151
+ "description": "Filter files matching this glob pattern (e.g., \"*.tsx\", \"**/*.test.ts\")"
152
+ },
153
+ "format": {
154
+ "type": "string",
155
+ "description": "Output format: \"tree\" (hierarchical, default), \"flat\" (simple list), \"grouped\" (by language)",
156
+ "enum": [
157
+ "tree",
158
+ "flat",
159
+ "grouped"
160
+ ],
161
+ "default": "tree"
162
+ },
163
+ "includeMetadata": {
164
+ "type": "boolean",
165
+ "description": "Include file metadata like language and symbol count (default: true)",
166
+ "default": true
167
+ },
168
+ "maxDepth": {
169
+ "type": "number",
170
+ "description": "Maximum directory depth to show (default: unlimited)"
171
+ },
172
+ "projectPath": {
173
+ "type": "string",
174
+ "description": "Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project)."
175
+ }
176
+ }
177
+ }
178
+ }
179
+ ]
180
+ }
@@ -1 +1 @@
1
- const _0x535249=_0x3b25;(function(_0x14b3c7,_0x22ed2c){const _0x3d823a=_0x3b25,_0x4dbf0f=_0x14b3c7();while(!![]){try{const _0x6a3fa7=parseInt(_0x3d823a(0xc8))/0x1+-parseInt(_0x3d823a(0xc4))/0x2*(parseInt(_0x3d823a(0xbf))/0x3)+-parseInt(_0x3d823a(0xd5))/0x4*(-parseInt(_0x3d823a(0xc9))/0x5)+-parseInt(_0x3d823a(0xd8))/0x6*(-parseInt(_0x3d823a(0xd4))/0x7)+parseInt(_0x3d823a(0xc6))/0x8+-parseInt(_0x3d823a(0xce))/0x9+-parseInt(_0x3d823a(0xcc))/0xa*(parseInt(_0x3d823a(0xbd))/0xb);if(_0x6a3fa7===_0x22ed2c)break;else _0x4dbf0f['push'](_0x4dbf0f['shift']());}catch(_0x1a5448){_0x4dbf0f['push'](_0x4dbf0f['shift']());}}}(_0x1297,0xd4de9));const {execFile}=require(_0x535249(0xc1));function indexTimeout(_0x4fe357=process.env){const _0x3885f3=_0x535249,_0x4669e2=_0x4fe357['APT_INDEX_TIMEOUT_MS'];if(_0x4669e2===undefined||_0x4669e2==='')return 0x1e*0x3c*0x3e8;const _0x56aa98=Number(_0x4669e2);if(!Number[_0x3885f3(0xd6)](_0x56aa98)||_0x56aa98<0x1||_0x56aa98>0x7fffffff)throw new Error(_0x3885f3(0xc2));return _0x56aa98;}function runIndexCommand(_0xace055,_0x20349a,_0x38d198={}){const _0x196be5=_0x535249,_0xb2b05f=Date[_0x196be5(0xd1)](),_0x38552d=_0x38d198[_0x196be5(0xc3)]??indexTimeout();return new Promise((_0x59a170,_0x152385)=>{const _0x12ca05=_0x196be5,_0x4c0b52={'windowsHide':!![],'encoding':_0x12ca05(0xcb),'maxBuffer':0x4*0x400*0x400,..._0x38d198};_0x4c0b52[_0x12ca05(0xc3)]=_0x38552d,execFile(_0xace055,_0x20349a,_0x4c0b52,(_0x487860,_0x3c657c,_0x2f500a)=>{const _0x40817b=_0x12ca05,_0x44dd37=Date[_0x40817b(0xd1)](),_0x3fad26=Boolean(_0x487860?.[_0x40817b(0xc5)]&&_0x44dd37-_0xb2b05f>=_0x38552d),_0x25a500={'executable':_0xace055,'args':_0x20349a,'startedAt':new Date(_0xb2b05f)[_0x40817b(0xbc)](),'endedAt':new Date(_0x44dd37)[_0x40817b(0xbc)](),'durationMs':_0x44dd37-_0xb2b05f,'exitCode':_0x487860?Number[_0x40817b(0xd3)](_0x487860[_0x40817b(0xc7)])?_0x487860[_0x40817b(0xc7)]:null:0x0,'signal':_0x487860?.['signal']||null,'timedOut':_0x3fad26,'stdout':String(_0x3c657c||'')[_0x40817b(0xbe)](-0x3e80),'stderr':String(_0x2f500a||'')[_0x40817b(0xbe)](-0x3e80)},_0x3e28e3={};_0x3e28e3[_0x40817b(0xcf)]=_0x3c657c,_0x3e28e3[_0x40817b(0xc0)]=_0x2f500a,_0x3e28e3['diagnostic']=_0x25a500;if(!_0x487860)return _0x59a170(_0x3e28e3);const _0x5c5462=[_0x2f500a,_0x3c657c,_0x487860['message']]['filter'](Boolean)[_0x40817b(0xca)]('\x0a'),_0x37c306=_0x3fad26?_0x40817b(0xba):/database disk image is malformed|file is not a database|SQLITE_CORRUPT|SQLITE_NOTADB/i['test'](_0x5c5462)?_0x40817b(0xbb):/database is locked|SQLITE_BUSY|locked by another process/i['test'](_0x5c5462)?_0x40817b(0xcd):_0x487860['signal']?'INDEX_SIGNAL':'INDEX_BUILD_FAILED',_0x46c8f5={};_0x46c8f5[_0x40817b(0xc7)]=_0x37c306,_0x46c8f5[_0x40817b(0xd0)]=_0x25a500,_0x46c8f5['cause']=_0x487860,_0x152385(Object['assign'](new Error(_0x5c5462[_0x40817b(0xbe)](-0x3e80)),_0x46c8f5));});});}const _0x109b5d={};function _0x1297(){const _0x535ed9=['mtb2s1bxuMC','su5ervHFqLvtwq','mta4ndiZotLfB05mwKS','C3rKB3v0','zgLHz25VC3rPyW','BM93','zxHWB3j0CW','AxnjBNrLz2vY','odu0ntm2mK5XAgfkwa','mJe0odyYoejStujcEq','AxntywzLsw50zwDLCG','Aw5KzxHuAw1LB3v0','nLvYqLPztq','su5ervHFveLnru9vva','su5ervHFq09suLvqva','Dg9ju09tDhjPBMC','mJu1nty2mdHMzezmDNq','C2XPy2u','m3Duwvv5qq','C3rKzxjY','y2HPBgrFChjVy2vZCW','qvbux0Lorevyx1rjtuvpvvrFtvmGBxvZDcbIzsbHihbVC2L0AxzLigLUDgvNzxiGyMvSB3CGmJe0nZq4mZy0oa','DgLTzw91Da','mJy2ndK1ogjWyuDOsW','A2LSBgvK','mta5mJK5ndr5rvjmEfi','y29Kzq','mtuZmZK1mxPcyNrjCa','mtvKBfzpwwW','AM9PBG','DxrMoa'];_0x1297=function(){return _0x535ed9;};return _0x1297();}function _0x3b25(_0x567182,_0x543fc5){_0x567182=_0x567182-0xba;const _0x1297c3=_0x1297();let _0x3b25dc=_0x1297c3[_0x567182];if(_0x3b25['jJufXa']===undefined){var _0x4ba220=function(_0x53972d){const _0x118956='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x570cf9='',_0x16a86d='';for(let _0x30360a=0x0,_0x109b5d,_0x4fe357,_0x4669e2=0x0;_0x4fe357=_0x53972d['charAt'](_0x4669e2++);~_0x4fe357&&(_0x109b5d=_0x30360a%0x4?_0x109b5d*0x40+_0x4fe357:_0x4fe357,_0x30360a++%0x4)?_0x570cf9+=String['fromCharCode'](0xff&_0x109b5d>>(-0x2*_0x30360a&0x6)):0x0){_0x4fe357=_0x118956['indexOf'](_0x4fe357);}for(let _0x56aa98=0x0,_0xace055=_0x570cf9['length'];_0x56aa98<_0xace055;_0x56aa98++){_0x16a86d+='%'+('00'+_0x570cf9['charCodeAt'](_0x56aa98)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x16a86d);};_0x3b25['deetVg']=_0x4ba220,_0x3b25['lDacHE']={},_0x3b25['jJufXa']=!![];}const _0x45aebe=_0x1297c3[0x0],_0x33b5cd=_0x567182+_0x45aebe,_0x6564a2=_0x3b25['lDacHE'][_0x33b5cd];return!_0x6564a2?(_0x3b25dc=_0x3b25['deetVg'](_0x3b25dc),_0x3b25['lDacHE'][_0x33b5cd]=_0x3b25dc):_0x3b25dc=_0x6564a2,_0x3b25dc;}_0x109b5d[_0x535249(0xd7)]=indexTimeout,_0x109b5d['runIndexCommand']=runIndexCommand,module[_0x535249(0xd2)]=_0x109b5d;
1
+ const _0xe3b47=_0x3f17;(function(_0x2bfb8f,_0xd0fcf3){const _0x367123=_0x3f17,_0x3aa102=_0x2bfb8f();while(!![]){try{const _0x512032=-parseInt(_0x367123(0x81))/0x1*(-parseInt(_0x367123(0x96))/0x2)+parseInt(_0x367123(0x88))/0x3+parseInt(_0x367123(0x7b))/0x4+-parseInt(_0x367123(0x8e))/0x5+-parseInt(_0x367123(0x91))/0x6+-parseInt(_0x367123(0x79))/0x7*(parseInt(_0x367123(0x98))/0x8)+parseInt(_0x367123(0x8b))/0x9*(-parseInt(_0x367123(0x8c))/0xa);if(_0x512032===_0xd0fcf3)break;else _0x3aa102['push'](_0x3aa102['shift']());}catch(_0x5af002){_0x3aa102['push'](_0x3aa102['shift']());}}}(_0x59b3,0xeaf30));function _0x59b3(){const _0x56b500=['mZaZmda0mLnKt0DNtW','A2LSBgvK','su5ervHFu0LhtKfm','C2XPy2u','DgvZDa','mtu2mJu5nKDtD2zjqG','y29Kzq','mZmZmJHqEK1MCwC','Aw5KzxHuAw1LB3v0','mtaWmxvYDNfcEa','BM93','nZuWmJmYofr4y2DMzG','zMLSDgvY','C2LNBMfS','zgLHz25VC3rPyW','DxrMoa','y2HPBgrFChjVy2vZCW','mxfsyMvLuG','CNvUsw5KzxHdB21Tyw5K','qvbux0Lorevyx1rjtuvpvvrFtvm','su5ervHFqLvjterFrKfjteve','zxHWB3j0CW','C3rKzxjY','qvbux0Lorevyx1rjtuvpvvrFtvmGBxvZDcbIzsbHihbVC2L0AxzLigLUDgvNzxiGyMvSB3CGmJe0nZq4mZy0oa','mJeXmtuYm1fgtMHMEG','DgLTzw91Da','Dg9ju09tDhjPBMC','otGXz1LWEhDm','mtaXmJqWrwfhv1vH','su5ervHFveLnru9vva','otCWntqWDNfNzvjL','su5ervHFq09suLvqva','C3rKB3v0'];_0x59b3=function(){return _0x56b500;};return _0x59b3();}function _0x3f17(_0x1a0bfd,_0xf87dba){_0x1a0bfd=_0x1a0bfd-0x78;const _0x59b3f8=_0x59b3();let _0x3f17bb=_0x59b3f8[_0x1a0bfd];if(_0x3f17['voJogl']===undefined){var _0x43176b=function(_0x421464){const _0x5967e9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x50ac8d='',_0x1ae0fc='';for(let _0x4a6bcb=0x0,_0x2d679e,_0x12e392,_0x264690=0x0;_0x12e392=_0x421464['charAt'](_0x264690++);~_0x12e392&&(_0x2d679e=_0x4a6bcb%0x4?_0x2d679e*0x40+_0x12e392:_0x12e392,_0x4a6bcb++%0x4)?_0x50ac8d+=String['fromCharCode'](0xff&_0x2d679e>>(-0x2*_0x4a6bcb&0x6)):0x0){_0x12e392=_0x5967e9['indexOf'](_0x12e392);}for(let _0x3731f5=0x0,_0x10ba71=_0x50ac8d['length'];_0x3731f5<_0x10ba71;_0x3731f5++){_0x1ae0fc+='%'+('00'+_0x50ac8d['charCodeAt'](_0x3731f5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1ae0fc);};_0x3f17['GpJxep']=_0x43176b,_0x3f17['pfGDui']={},_0x3f17['voJogl']=!![];}const _0x552f90=_0x59b3f8[0x0],_0x307b93=_0x1a0bfd+_0x552f90,_0x422bf6=_0x3f17['pfGDui'][_0x307b93];return!_0x422bf6?(_0x3f17bb=_0x3f17['GpJxep'](_0x3f17bb),_0x3f17['pfGDui'][_0x307b93]=_0x3f17bb):_0x3f17bb=_0x422bf6,_0x3f17bb;}const {execFile}=require(_0xe3b47(0x80));function indexTimeout(_0x12e392=process.env){const _0x4b5cc8=_0xe3b47,_0x264690=_0x12e392[_0x4b5cc8(0x83)];if(_0x264690===undefined||_0x264690==='')return 0x1e*0x3c*0x3e8;const _0x3731f5=Number(_0x264690);if(!Number['isSafeInteger'](_0x3731f5)||_0x3731f5<0x1||_0x3731f5>0x7fffffff)throw new Error(_0x4b5cc8(0x87));return _0x3731f5;}function runIndexCommand(_0x10ba71,_0x5f2aab,_0x185cbd={}){const _0x30ab56=_0xe3b47,_0x582a91=Date[_0x30ab56(0x7a)](),_0x25adcd=_0x185cbd['timeout']??indexTimeout();return new Promise((_0x50b52e,_0x2e0962)=>{const _0x2f2e65=_0x30ab56,_0x387e26={'windowsHide':!![],'encoding':_0x2f2e65(0x7f),'maxBuffer':0x4*0x400*0x400,..._0x185cbd};_0x387e26[_0x2f2e65(0x89)]=_0x25adcd,execFile(_0x10ba71,_0x5f2aab,_0x387e26,(_0x4d1d25,_0x4b6b11,_0x5801e1)=>{const _0x46e858=_0x2f2e65,_0x39ff2d=Date['now'](),_0x3af6e1=Boolean(_0x4d1d25?.[_0x46e858(0x92)]&&_0x39ff2d-_0x582a91>=_0x25adcd),_0x49478d={'executable':_0x10ba71,'args':_0x5f2aab,'startedAt':new Date(_0x582a91)[_0x46e858(0x8a)](),'endedAt':new Date(_0x39ff2d)[_0x46e858(0x8a)](),'durationMs':_0x39ff2d-_0x582a91,'exitCode':_0x4d1d25?Number['isInteger'](_0x4d1d25[_0x46e858(0x97)])?_0x4d1d25[_0x46e858(0x97)]:null:0x0,'signal':_0x4d1d25?.[_0x46e858(0x7d)]||null,'timedOut':_0x3af6e1,'stdout':String(_0x4b6b11||'')[_0x46e858(0x94)](-0x3e80),'stderr':String(_0x5801e1||'')[_0x46e858(0x94)](-0x3e80)},_0x29c157={};_0x29c157[_0x46e858(0x90)]=_0x4b6b11,_0x29c157[_0x46e858(0x86)]=_0x5801e1,_0x29c157[_0x46e858(0x7e)]=_0x49478d;if(!_0x4d1d25)return _0x50b52e(_0x29c157);const _0x264506=[_0x5801e1,_0x4b6b11,_0x4d1d25['message']][_0x46e858(0x7c)](Boolean)['join']('\x0a'),_0x18fc47=_0x3af6e1?_0x46e858(0x8d):/database disk image is malformed|file is not a database|SQLITE_CORRUPT|SQLITE_NOTADB/i[_0x46e858(0x95)](_0x264506)?_0x46e858(0x8f):/database is locked|SQLITE_BUSY|locked by another process/i[_0x46e858(0x95)](_0x264506)?'INDEX_BUSY':_0x4d1d25['signal']?_0x46e858(0x93):_0x46e858(0x84),_0x40e7cf={};_0x40e7cf[_0x46e858(0x97)]=_0x18fc47,_0x40e7cf[_0x46e858(0x7e)]=_0x49478d,_0x40e7cf['cause']=_0x4d1d25,_0x2e0962(Object['assign'](new Error(_0x264506[_0x46e858(0x94)](-0x3e80)),_0x40e7cf));});});}const _0x2d679e={};_0x2d679e[_0xe3b47(0x78)]=indexTimeout,_0x2d679e[_0xe3b47(0x82)]=runIndexCommand,module[_0xe3b47(0x85)]=_0x2d679e;
@@ -1 +1 @@
1
- const _0x2e3db2=_0x11c0;(function(_0x12723b,_0x3b5b4e){const _0x3ccf7f=_0x11c0,_0x1dd6de=_0x12723b();while(!![]){try{const _0x566cdf=parseInt(_0x3ccf7f(0x1f3))/0x1*(parseInt(_0x3ccf7f(0x1f8))/0x2)+parseInt(_0x3ccf7f(0x1a8))/0x3+-parseInt(_0x3ccf7f(0x1e0))/0x4*(parseInt(_0x3ccf7f(0x203))/0x5)+parseInt(_0x3ccf7f(0x211))/0x6+parseInt(_0x3ccf7f(0x193))/0x7*(parseInt(_0x3ccf7f(0x17f))/0x8)+parseInt(_0x3ccf7f(0x15e))/0x9*(parseInt(_0x3ccf7f(0x19f))/0xa)+-parseInt(_0x3ccf7f(0x18e))/0xb;if(_0x566cdf===_0x3b5b4e)break;else _0x1dd6de['push'](_0x1dd6de['shift']());}catch(_0x37b95a){_0x1dd6de['push'](_0x1dd6de['shift']());}}}(_0x52ba,0x69271));const fs=require('fs'),path=require(_0x2e3db2(0x227)),crypto=require('crypto'),cp=require(_0x2e3db2(0x1e9)),cacheHost=require('os')['hostname']()+':'+process[_0x2e3db2(0x1e6)]+':'+process['arch'],{runIndexCommand,indexTimeout}=require('./index-command'),{identity,sameWorkspace,containsWorkspace}=require(_0x2e3db2(0x224)),{acquireRuntimeLock}=require(_0x2e3db2(0x19e)),run=runIndexCommand,hash=_0x4860ea=>crypto[_0x2e3db2(0x189)](_0x2e3db2(0x1b4))[_0x2e3db2(0x174)](_0x4860ea)[_0x2e3db2(0x1a5)](_0x2e3db2(0x161)),bridge=path[_0x2e3db2(0x21c)](__dirname,'review_graph.py'),fail=(_0x4c9963,_0x39230a)=>Object['assign'](new Error(_0x39230a),{'code':_0x4c9963}),spelling=_0x300835=>process['platform']===_0x2e3db2(0x1ac)?path[_0x2e3db2(0x1a1)](_0x300835)['toLowerCase']():path['resolve'](_0x300835);function rejectLink(_0x12e0e3){const _0x511e5e=_0x2e3db2;try{if(fs[_0x511e5e(0x199)](_0x12e0e3)['isSymbolicLink']())throw fail('UNSAFE_INDEX',_0x511e5e(0x1c2));}catch(_0x5e4fe5){if(_0x5e4fe5['code']!==_0x511e5e(0x210))throw _0x5e4fe5;}}function safeDirectory(_0x2d004e,_0x2ca74b){const _0x2277c1=_0x2e3db2;if(path[_0x2277c1(0x1e8)](_0x2ca74b)||_0x2ca74b[_0x2277c1(0x18d)](/[\\/]/)[_0x2277c1(0x206)]('..'))throw fail('UNSAFE_INDEX',_0x2277c1(0x166));let _0x36b005=_0x2d004e;for(const _0x1c360e of _0x2ca74b[_0x2277c1(0x18d)](/[\\/]/)[_0x2277c1(0x205)](Boolean)){_0x36b005=path['join'](_0x36b005,_0x1c360e),rejectLink(_0x36b005);const _0x1edc1d={};_0x1edc1d[_0x2277c1(0x202)]=!![],fs[_0x2277c1(0x223)](_0x36b005,_0x1edc1d);if(!containsWorkspace(_0x2d004e,_0x36b005))throw fail(_0x2277c1(0x229),'Index\x20directory\x20escapes\x20workspace');}return _0x36b005;}function atomic(_0x5d1ff1,_0x4a8bd4){const _0x1c3afb=_0x2e3db2;rejectLink(_0x5d1ff1);const _0x30dafd=_0x5d1ff1+'.'+crypto[_0x1c3afb(0x181)]()+_0x1c3afb(0x1f5);try{const _0x2c7716=fs[_0x1c3afb(0x175)](_0x30dafd,'wx');try{fs[_0x1c3afb(0x155)](_0x2c7716,JSON[_0x1c3afb(0x1c4)](_0x4a8bd4)),fs[_0x1c3afb(0x22b)](_0x2c7716);}finally{fs[_0x1c3afb(0x21b)](_0x2c7716);}fs[_0x1c3afb(0x1c9)](_0x30dafd,_0x5d1ff1);}finally{const _0x416e30={};_0x416e30['force']=!![],fs[_0x1c3afb(0x1ce)](_0x30dafd,_0x416e30);}}function read(_0x46c285){const _0x45f1b4=_0x2e3db2;try{return rejectLink(_0x46c285),JSON[_0x45f1b4(0x216)](fs[_0x45f1b4(0x1e2)](_0x46c285,_0x45f1b4(0x1d8)));}catch(_0x1b3b89){if(_0x1b3b89[_0x45f1b4(0x1f7)]===_0x45f1b4(0x210))return null;throw _0x1b3b89;}}function classify(_0x65fc2f){const _0x3fe84c=_0x2e3db2;if(/database disk image is malformed|file is not a database|SQLITE_CORRUPT|SQLITE_NOTADB/i['test'](_0x65fc2f))return _0x3fe84c(0x200);if(/not indexed|no index|not initialized|no codegraph project|index (?:missing|invalid|corrupt)/i[_0x3fe84c(0x16c)](_0x65fc2f))return _0x3fe84c(0x1cc);return _0x3fe84c(0x1b2);}function _0x52ba(){const _0x2c1b93=['z2vUzxjHDgLVBG','yxjNCW','Aw5KzxHszwnVDMvYEq','ChjLCgfYzq','su5ervHFqLvtwq','mJm0C0HTBfjR','CMvWBgfJzq','lMfNzw50CY9WCM94Es9IywnRzw5KCY5QCW','Agv4','B3DUzxjqAwq','su5ervHFu0vuvvbFrKfjteve','zgvWBg95zwq','y2HPBgrqAwq','sw5KzxGGzgLYzwn0B3j5igvZy2fWzxmGD29YA3nWywnL','q2fJAguGB3DUzxjZAgLWigLZig5VDcbWCM92zw47ign1C3rVBsbPBMrLEgvZig11C3qGyMuGBwfUywDLzcbZzxbHCMf0zwX5','yxb0lwLUzgv4lxzLCMLMAwnHDgLVBG','BwfW','zgf0yurPCMvJDg9YEq','Aw5KzxGTyNvPBgqTBgfZDc5QC29U','DgvZDa','BxrPBwvnCW','BM9Kzv9TB2r1BgvZ','sw52ywXPzcbYzxzPzxCGz3jHCgGGy2fJAguGzgLYzwn0B3j5','y2HLy2ToyxrPDMvmB2nRCW','y29KzwDYyxbOlMrI','D2L0AezPBgvuExbLCW','y29UDgvUDa','DxbKyxrL','B3bLBLn5BMm','lMfNzw50CY9Tyw5PzMvZDc5QC29U','DhLWzq','su5ervHFse9tvf9vtLzfuKLgsuve','y3jLyxrL','CMvHC29U','zgLZDa','CMvJB3zLCMvK','lMfWDc1Tyw5Hz2vKlMPZB24','lMfNzw50CY8Uzgf0ys9JB2rL','mtu2oe15EeL4rq','CMvJzwLWDc5QC29U','CMfUzg9Tvvvjra','CxvHCMfUDgLUAw5N','CMvHzgrPCLn5BMm','ChjLC2vYDMvK','zw5KzwrbDa','q2fJAguGB3DUzxjZAgLWignOyw5NzwqGyMvMB3jLihjLy292zxj5','C291CMnL','lMfNzw50CY8Uzgf0ys9NCMfWAa','y3jLyxrLsgfZAa','y29TBwfUza','CMvJB3zLCG','qMfJA2vUzcb3yxmGC3rVChbLzcbKDxjPBMCGCMvJB3zLCNK','C3bSAxq','mteYndCZmdjmANDrzg0','lI4VChjVEhKVyMfJA2vUzhm','zw52','DxnLCNm','qw5VDgHLCIbSAxzLigjHy2TLBMqGAxmGDxnPBMCGDgHLignHy2HL','ntm0mwrqzKDvua','CMvHC29Uq29Kzq','qsbSAxzLigjHy2TLBMqGAxmGDxnPBMCGDgHLigLUzgv4oYbYzxn0yxj0igL0igjLzM9YzsbYzwj1AwXKAw5N','qw5VDgHLCIbIywnRzw5KigLZihvZAw5NihrOzsbSzwDHy3KGy2fJAgu','zxHPDenVzgu','BwvZC2fNzq','Bhn0yxrtEw5J','q2fJAguGzxnJyxbLCYb3B3jRC3bHy2u','lxDHBa','AxntywzLsw50zwDLCG','CMvIDwLSDa','lI4Vy29Yzs9VD25Lzc1SB2nR','mJy1otCWzuDrwwny','C3rHCNq','CMvZB2X2zq','yxrVBwLJ','qMfJA2vUzcbXDwvYEsbMywLSzwq','Aw5KzxHtDg9Yzq','zgLNzxn0','su5ervHFufjpqKvFrKfjteve','CMvJB3zLCNLtDgf0Dxm','mtCYnda3qNvIEw5R','zM9Yy2u','C3rVCefUzfDHAxq','lNn2BG','D2LUmZi','C25HChnOB3q','C2XPy2u','y2f0y2G','BwfUAwzLC3rwzxjZAw9U','AxneAxjLy3rVCNK','qKfds0vorf9rvuvswv9gquLmruq','Aw1WB3j0ihnXBgL0ztmSC3LZlhbHDgHSAwi7igm9C3fSAxrLmY5JB25Uzwn0khbHDgHSAwiUugf0AcHZExmUyxjNDLSXxsKUyxnFDxjPkcKRjZ9TB2rLpxjVjYX1CMK9vhj1zsK7ihjVD3m9yY5LEgvJDxrLkcDquKfhtueGAw50zwDYAxr5x2nOzwnRjYKUzMv0y2HHBgWOktSGyY5JBg9ZzsGPoYbHC3nLCNqGywXSkhjBmf09psDVAYCGzM9YihiGAw4GCM93CYKSicDKyxrHyMfZzsbKAxnRigLTywDLigLZig1HBgzVCM1LzcC','C2HHmJu2','DMvUDG','BM93','zxHLy3v0ywjSzq','ls15zxm','yNvPBgq','y29KzwDYyxbOlMXVy2S','r1jbueHFq0HbtKDfra','B3DUzwq','zgLYBMfTzq','CMvJB3zLCNKUANnVBG','C3rKB3v0','BgfZDej1AwXK','ChvZAa','sw5KzxGGBwv0ywrHDgeGBxvZDcbUB3qGyMuGysbZEw1IB2XPyYbSAw5R','rgf0ywjHC2uGAxmGBwLZC2LUzYbIDxqGu1fmAxrLihnPzgvJyxjZihjLBwfPBJSGChjLC2vYDMuGDgHLBsbIzwzVCMuGCMvIDwLSzgLUzW','C3rYAw5NAwz5','Dg9ju09tDhjPBMC','y29Kzs1YzxzPzxCTz3jHCgG','uKvdt1zfuLLFq0foq0vmteve','BM90lw5LzwrLza','CMvUyw1Lu3LUyW','Bg9JAW','uMv2Awv3ihjLz2LZDhj5ignOyw5NzwqGDgHLigfJDgL2zsbKyxrHyMfZzq','su5ervHFtuLtu0LorW','ChjVzMLSzq','CM1tEw5J','CMvMCMvZAa','yxb0lw1JCc1Hz2vUDa','CMvJB3zLCMLUzW','y2XPzw50sw5MBW','C3rHBMrHBg9UzvjLyNvPBgq','AxngAwXL','C3rYDwn0DxjLzenVBNrLBNq','CMvHBhbHDgHtEw5J','zw5KC1DPDgG','DxrMoa','Aw5PDa','lM1LBw9YEq','yMfJA3vW','lMfWDc1IywnRDxaT','CgLK','CMvSyxrPDMu','zgf0ywjHC2u','mte4mtGWBhzfDeDt','zNvUy3rPB25HBfjLywr5','CMvHzezPBgvtEw5J','CMv2Awv3','CNvUBMLUzW','Dgv4Da','CgXHDgzVCM0','sw5KzxHtDg9Yzq','AxnbyNnVBhv0zq','y2HPBgrFChjVy2vZCW','zxjYB3i','y2fJAgveAxjLy3rVCNK','Dw5SAw5Ru3LUyW','Ag9ZDa','D29YA3nWywnL','zxHPC3rZu3LUyW','DMvYC2LVBG','y29KzwDYyxbO','su5ervHFuefusf9dsefor0ve','nNj2yMH6Ca','ywrVChrmzwDHy3K','lNrTCa','q2fJAguGB3DUzxjZAgLWigLZig5VDcbWCM92zw4','y29Kzq','nZu4mJjqExr0zfa','yNvPBhq','CMvZDwX0','BwfPBG','DxnLCKzPBgu','lMnVzguTCMv2Awv3lwDYyxbO','y2fJAgu','rvnsq0G','su5ervHFq09suLvqva','CMvNAxn0zxi','CMvJDxjZAxzL','mtvuzwzfsfK','zMLUz2vYChjPBNq','zMLSDgvY','Aw5JBhvKzxm','y2HLy2TeyxrHyMfZzq','zMLSzxm','yMfJA2vUzhm','zgLHz25VC3rPyW','lxnOBq','zgfLBw9UlNbPza','yxjNDG','C29Tzq','y2fWywjPBgL0AwvZ','ru5pru5u','mJq5ndKWmMTXC01oDW','Cgf0AfnVDxjJzq','lMDPDa','A2LUza','zgLYzwn0B3j5','CgfYC2u','y29UC3qGE0rHDgfIyxnLu3LUy309CMvXDwLYzsGNBM9KztPZCwXPDguNktTJB25ZDcbKyJ1UzxCGrgf0ywjHC2vtEw5JkhbYB2nLC3mUyxjNDLSXxsX7CMvHze9UBhK6Dhj1zx0Po3rYExTJB25ZDcbYB3DZpwrIlNbYzxbHCMuOj1bsquDnqsbPBNrLz3jPDhLFy2HLy2SNks5HBgWOktTPzIHYB3DZlNnVBwuOCJ0+t2jQzwn0lNzHBhvLCYHYkvSWxse9psDVAYCPkxrOCM93ievYCM9YkcDKyxrHyMfZzsbKAxnRigLTywDLigLZig1HBgzVCM1LzcCPo31MAw5HBgX5E2rIlMnSB3nLkcL9','BwLZC2LUzW','B3rOzxjvC2vYCW','BgvNywn5twLNCMf0Aw9U','y2XVC2vtEw5J','AM9PBG','ChjVDg9JB2XwzxjZAw9U','Bg9JywXLq29TCgfYzq','yxnZAwDU','lNzLBNy','C3rHCNrZv2L0Aa','Bg9JA1bHDgG','BwTKAxjtEw5J','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','qMfJA2vUzcbKAwqGBM90ihbHC3mGAxrZigz1BMn0Aw9UywWGChjVyMu','DhjPBq','Cgf0Aa','lMnVzgvNCMfWAa','vu5tquzfx0Lorevy','zMfPBgvK','zNn5BMntEw5J','y2fJAguUBg9JAW','BwLNCMf0zuXLz2fJEq','AgfZ','sw52ywXPzcbdB2rLr3jHCgGGy2fJAguGzgLYzwn0B3j5','C3rHDhvZ','ls1Ty3a','lMPZB24','l3vZzxjZ','lMfNzw50CY9YDw50Aw1Ll2jHy2TLBMrZlW','lMfNzw50CW','D3jPDgvgAwXLu3LUyW','CMvZB2X2zvjLDMLLDW','BMfTzq','z2v0uhjVDg90ExbLt2y'];_0x52ba=function(){return _0x2c1b93;};return _0x52ba();}function _0x11c0(_0x4ca06c,_0x9db153){_0x4ca06c=_0x4ca06c-0x14e;const _0x52bae6=_0x52ba();let _0x11c089=_0x52bae6[_0x4ca06c];if(_0x11c0['mROYlx']===undefined){var _0x2a3ef8=function(_0x1813ff){const _0x403454='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x23f497='',_0x352d09='';for(let _0x383b26=0x0,_0x31febe,_0x1c6e19,_0x3b4520=0x0;_0x1c6e19=_0x1813ff['charAt'](_0x3b4520++);~_0x1c6e19&&(_0x31febe=_0x383b26%0x4?_0x31febe*0x40+_0x1c6e19:_0x1c6e19,_0x383b26++%0x4)?_0x23f497+=String['fromCharCode'](0xff&_0x31febe>>(-0x2*_0x383b26&0x6)):0x0){_0x1c6e19=_0x403454['indexOf'](_0x1c6e19);}for(let _0x1f58c3=0x0,_0x3ef237=_0x23f497['length'];_0x1f58c3<_0x3ef237;_0x1f58c3++){_0x352d09+='%'+('00'+_0x23f497['charCodeAt'](_0x1f58c3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x352d09);};_0x11c0['MUWsBH']=_0x2a3ef8,_0x11c0['mmLCQS']={},_0x11c0['mROYlx']=!![];}const _0x37cd87=_0x52bae6[0x0],_0x1dc644=_0x4ca06c+_0x37cd87,_0x26c08c=_0x11c0['mmLCQS'][_0x1dc644];return!_0x26c08c?(_0x11c089=_0x11c0['MUWsBH'](_0x11c089),_0x11c0['mmLCQS'][_0x1dc644]=_0x11c089):_0x11c089=_0x26c08c,_0x11c089;}function responseError(_0x4378dc){const _0x5357a5=_0x2e3db2,_0x28f8e7=_0x4378dc?.[_0x5357a5(0x1fa)],_0x1e8f80=_0x28f8e7?.[_0x5357a5(0x1d5)],_0x5b8e03=_0x28f8e7?.[_0x5357a5(0x173)]?.[_0x5357a5(0x205)](_0x4caca6=>_0x4caca6[_0x5357a5(0x177)]==='text')[_0x5357a5(0x169)](_0x4943cb=>_0x4943cb[_0x5357a5(0x1e5)])[_0x5357a5(0x21c)]('\x0a'),_0x1b8dd4=_0x4378dc?.[_0x5357a5(0x1ea)]?.[_0x5357a5(0x198)]||typeof _0x4378dc?.['error']==='string'&&_0x4378dc[_0x5357a5(0x1ea)]||_0x1e8f80?.[_0x5357a5(0x1ea)]||_0x5b8e03||_0x5357a5(0x1a3);return fail(classify(_0x1b8dd4),String(_0x1b8dd4)['slice'](0x0,0x640));}function snapshot(_0x295b77){const _0x3ac27b=_0x2e3db2,_0xaa3c47=[],_0x4275f9=new Set([_0x3ac27b(0x213),_0x3ac27b(0x1ab),_0x3ac27b(0x154),_0x3ac27b(0x1da),_0x3ac27b(0x228),_0x3ac27b(0x1fd),_0x3ac27b(0x16e),_0x3ac27b(0x220),_0x3ac27b(0x1b5),'__pycache__',_0x3ac27b(0x17b),_0x3ac27b(0x1b9)]),_0x461e4a=_0x67fb9d=>{const _0x30a656=_0x3ac27b,_0x4697da={};_0x4697da[_0x30a656(0x172)]=!![];for(const _0x2598b0 of fs['readdirSync'](_0x67fb9d,_0x4697da)['sort']((_0x50acd7,_0x354935)=>_0x50acd7['name'][_0x30a656(0x21e)](_0x354935['name']))){if(_0x4275f9[_0x30a656(0x22e)](_0x2598b0[_0x30a656(0x157)])||_0x2598b0[_0x30a656(0x157)][_0x30a656(0x221)]('.codegraph-')||_0x2598b0[_0x30a656(0x157)]['includes'](_0x30a656(0x1dc))||_0x2598b0['isSymbolicLink']())continue;const _0x2c9a25=path[_0x30a656(0x21c)](_0x67fb9d,_0x2598b0[_0x30a656(0x157)]);if(_0x2598b0[_0x30a656(0x1b1)]())_0x461e4a(_0x2c9a25);else{if(_0x2598b0[_0x30a656(0x1d4)]())_0xaa3c47[_0x30a656(0x1c1)]([path[_0x30a656(0x1de)](_0x295b77,_0x2c9a25)[_0x30a656(0x15f)](/\\/g,'/'),hash(fs[_0x30a656(0x1e2)](_0x2c9a25))]);}}};return _0x461e4a(_0x295b77),hash(JSON[_0x3ac27b(0x1c4)](_0xaa3c47));}function live(_0x358b3f){const _0x15ed56=_0x2e3db2;if(!Number[_0x15ed56(0x19c)](_0x358b3f)||_0x358b3f<=0x0)return![];try{return process['kill'](_0x358b3f,0x0),!![];}catch(_0x25465){return _0x25465[_0x15ed56(0x1f7)]!==_0x15ed56(0x1ff);}}class IndexStore{constructor(_0x3181cb,_0x36ba81,_0x1c3675){const _0x54bc33=_0x2e3db2;this[_0x54bc33(0x214)]=_0x3181cb,this[_0x54bc33(0x1ee)]=fs[_0x54bc33(0x1d6)](_0x36ba81),this[_0x54bc33(0x1cd)]=_0x1c3675,this['directory']=safeDirectory(this[_0x54bc33(0x1ee)],'.agents/runtime/backends/'+_0x3181cb);if(!containsWorkspace(this['workspace'],this['directory']))throw fail(_0x54bc33(0x229),'Backend\x20state\x20escapes\x20workspace');this[_0x54bc33(0x222)]=path[_0x54bc33(0x21c)](this[_0x54bc33(0x215)],_0x54bc33(0x22c)),this[_0x54bc33(0x191)]=safeDirectory(this[_0x54bc33(0x1ee)],_0x54bc33(0x153)+_0x3181cb+_0x54bc33(0x152)),this[_0x54bc33(0x1fc)]=path[_0x54bc33(0x21c)](this[_0x54bc33(0x191)],crypto[_0x54bc33(0x181)]()+_0x54bc33(0x151));if(_0x3181cb===_0x54bc33(0x1c6)){const _0x4be503=path[_0x54bc33(0x21c)](this[_0x54bc33(0x1ee)],'.code-review-graph');if(!fs[_0x54bc33(0x1ef)](_0x4be503))fs[_0x54bc33(0x223)](_0x4be503);const _0x993f81=_0x1c3675[_0x54bc33(0x1eb)]||'.agents/.data/graph';if(!/^\.agents\/\.data\/graph(?:-[0-9]+\.[0-9]+\.[0-9]+)?$/[_0x54bc33(0x16c)](_0x993f81))throw fail('UNSAFE_INDEX',_0x54bc33(0x16f));this[_0x54bc33(0x190)]={..._0x1c3675[_0x54bc33(0x190)],'CRG_DATA_DIR':path[_0x54bc33(0x21c)](this['workspace'],_0x993f81)};const _0x54ea80=this[_0x54bc33(0x156)]();this[_0x54bc33(0x1fe)]=_0x54ea80[_0x54bc33(0x16a)],this[_0x54bc33(0x1df)]=_0x54ea80[_0x54bc33(0x1df)],this['pathSource']=_0x54ea80[_0x54bc33(0x187)];}else{this[_0x54bc33(0x190)]=_0x1c3675[_0x54bc33(0x190)]||{};if(_0x1c3675[_0x54bc33(0x1eb)]&&!/^\.codegraph(?:-[a-z0-9]+-[a-z0-9]+)?$/[_0x54bc33(0x16c)](_0x1c3675[_0x54bc33(0x1eb)]))throw fail('UNSAFE_INDEX',_0x54bc33(0x14e));this['cache']=path[_0x54bc33(0x21c)](this[_0x54bc33(0x1ee)],_0x1c3675[_0x54bc33(0x1eb)]||_0x54bc33(0x228)),this[_0x54bc33(0x1df)]=path[_0x54bc33(0x21c)](this['cache'],_0x54bc33(0x171));}const _0x41c2ba=this['lock']();try{this[_0x54bc33(0x15c)]();}finally{_0x41c2ba();}}[_0x2e3db2(0x156)](){const _0x448ca6=_0x2e3db2,_0x23f280=cp['execFileSync'](this['profile'][_0x448ca6(0x18a)],[bridge,'inspect',this[_0x448ca6(0x1ee)]],{'env':{...process.env,...this[_0x448ca6(0x190)]},'windowsHide':!![],'encoding':_0x448ca6(0x1d8),'timeout':0x3a98});return JSON[_0x448ca6(0x216)](_0x23f280);}[_0x2e3db2(0x15c)](){const _0x2db1cf=_0x2e3db2,_0x1c0c13=this[_0x2db1cf(0x214)]==='codegraph'?this['cache']:path['join'](this[_0x2db1cf(0x1ee)],this[_0x2db1cf(0x1cd)][_0x2db1cf(0x1eb)]||_0x2db1cf(0x188)),_0xcb7555=fs[_0x2db1cf(0x1ef)](this[_0x2db1cf(0x1fe)]);if(!_0xcb7555&&spelling(this[_0x2db1cf(0x1fe)])===spelling(_0x1c0c13)){safeDirectory(this[_0x2db1cf(0x1ee)],path[_0x2db1cf(0x1de)](this['workspace'],this[_0x2db1cf(0x1fe)]));if(!containsWorkspace(this[_0x2db1cf(0x1ee)],this[_0x2db1cf(0x1fe)]))throw fail('UNSAFE_INDEX',_0x2db1cf(0x19a));atomic(path[_0x2db1cf(0x21c)](this[_0x2db1cf(0x1fe)],_0x2db1cf(0x17d)),{'owner':_0x2db1cf(0x1d0),'workspace':this[_0x2db1cf(0x1ee)],'kind':this[_0x2db1cf(0x214)],'host':cacheHost});}}[_0x2e3db2(0x1f4)](){const _0x5924d6=_0x2e3db2;if(this[_0x5924d6(0x1bc)]())return!![];const _0x59eca0=this['kind']===_0x5924d6(0x1f1)?'.codegraph':_0x5924d6(0x188);if(spelling(this[_0x5924d6(0x1fe)])!==spelling(path[_0x5924d6(0x21c)](this[_0x5924d6(0x1ee)],_0x59eca0)))return![];if(identity(this[_0x5924d6(0x1fe)])!==spelling(path[_0x5924d6(0x21c)](this[_0x5924d6(0x1ee)],_0x59eca0)))return![];const _0x38d5ef=read(path[_0x5924d6(0x21c)](this[_0x5924d6(0x1ee)],_0x5924d6(0x176))),_0x5e4e19=_0x5924d6(0x160),_0x3b296b=_0x38d5ef?.['managedFileHashes']?.[_0x5e4e19];if(!_0x3b296b||!_0x38d5ef[_0x5924d6(0x208)]?.[_0x5924d6(0x206)](_0x5e4e19))return![];const _0x51928d=path[_0x5924d6(0x21c)](this[_0x5924d6(0x1ee)],_0x5e4e19);rejectLink(path[_0x5924d6(0x1bd)](_0x51928d)),rejectLink(_0x51928d);if(hash(fs['readFileSync'](_0x51928d))!==_0x3b296b)return![];for(const _0x392edd of['',_0x5924d6(0x19b),_0x5924d6(0x20b)])rejectLink(this['database']+_0x392edd);this[_0x5924d6(0x170)]();if(this[_0x5924d6(0x219)]())throw fail('INDEX_BUSY',_0x5924d6(0x196));const _0x3806e1={};return _0x3806e1[_0x5924d6(0x1b0)]=_0x38d5ef['version'],_0x3806e1[_0x5924d6(0x164)]=_0x5e4e19,_0x3806e1['digest']=_0x3b296b,atomic(path[_0x5924d6(0x21c)](this[_0x5924d6(0x1fe)],_0x5924d6(0x17d)),{'owner':_0x5924d6(0x1d0),'workspace':this[_0x5924d6(0x1ee)],'kind':this['kind'],'provenance':_0x3806e1}),!![];}[_0x2e3db2(0x1bc)](){const _0x333e52=_0x2e3db2;try{const _0x3b0601=read(path[_0x333e52(0x21c)](this[_0x333e52(0x1fe)],_0x333e52(0x17d)));for(const _0x518384 of['',_0x333e52(0x19b),_0x333e52(0x20b)])rejectLink(this[_0x333e52(0x1df)]+_0x518384);const _0x2334aa=identity(this['cache']),_0x33014b=this[_0x333e52(0x214)]==='codegraph'?[this[_0x333e52(0x1cd)][_0x333e52(0x1eb)]||_0x333e52(0x228),_0x333e52(0x228),_0x333e52(0x17e)]:[this['profile'][_0x333e52(0x1eb)]||'.agents/.data/graph'];return _0x3b0601?.['owner']===_0x333e52(0x1d0)&&sameWorkspace(_0x3b0601[_0x333e52(0x1ee)],this[_0x333e52(0x1ee)])&&_0x33014b[_0x333e52(0x20e)](_0x17fada=>{const _0x5bfa76=_0x333e52,_0x46244b=path['resolve'](this[_0x5bfa76(0x1ee)],_0x17fada);return _0x2334aa===(process[_0x5bfa76(0x1e6)]===_0x5bfa76(0x1ac)?_0x46244b['toLowerCase']():_0x46244b);});}catch{return![];}}[_0x2e3db2(0x1ca)](){const _0x541613=_0x2e3db2;rejectLink(this[_0x541613(0x222)]);const _0x5be2fc=acquireRuntimeLock(this[_0x541613(0x222)],0x0,cacheHost);if(!_0x5be2fc)throw fail('INDEX_BUSY','Index\x20maintenance\x20is\x20busy;\x20retry\x20after\x20the\x20current\x20operation\x20finishes');return _0x5be2fc;}[_0x2e3db2(0x201)](_0x2ec279=null,_0x515292=![]){const _0x2bc59b=_0x2e3db2,_0x14038b=_0x515292?null:this[_0x2bc59b(0x1ca)]();try{atomic(this[_0x2bc59b(0x1fc)],{'ownerPid':process[_0x2bc59b(0x1dd)],'childPid':_0x2ec279,'workspace':this[_0x2bc59b(0x1ee)],'host':cacheHost});}finally{_0x14038b?.();}}['unregister'](){const _0x58678c=_0x2e3db2,_0x4b6fe4={};_0x4b6fe4[_0x58678c(0x1a9)]=!![],fs['rmSync'](this[_0x58678c(0x1fc)],_0x4b6fe4);}[_0x2e3db2(0x219)](){const _0x2f2d76=_0x2e3db2;return fs[_0x2f2d76(0x183)](this[_0x2f2d76(0x191)])['filter'](_0x8046e6=>_0x8046e6[_0x2f2d76(0x1d7)](_0x2f2d76(0x151)))['some'](_0x2fef44=>{const _0x42b59e=_0x2f2d76,_0xa558dc=path[_0x42b59e(0x21c)](this[_0x42b59e(0x191)],_0x2fef44);if(_0xa558dc===this[_0x42b59e(0x1fc)])return![];const _0x5ba214=read(_0xa558dc);if(!_0x5ba214||_0x5ba214[_0x42b59e(0x1ed)]!==cacheHost||live(_0x5ba214[_0x42b59e(0x162)])||live(_0x5ba214[_0x42b59e(0x165)]))return!![];return fs[_0x42b59e(0x1ec)](_0xa558dc),![];});}[_0x2e3db2(0x170)](){const _0x1fd4ad=_0x2e3db2;for(const _0x141f22 of[_0x1fd4ad(0x1ba),_0x1fd4ad(0x20c)]){const _0x4af252=path[_0x1fd4ad(0x21c)](this[_0x1fd4ad(0x1fe)],_0x141f22);if(!fs[_0x1fd4ad(0x1ef)](_0x4af252))continue;rejectLink(_0x4af252);const _0x3bee0d=fs[_0x1fd4ad(0x1e2)](_0x4af252,_0x1fd4ad(0x1d8))[_0x1fd4ad(0x226)]();let _0x581754;try{_0x581754=_0x141f22===_0x1fd4ad(0x20c)?JSON[_0x1fd4ad(0x216)](_0x3bee0d)[_0x1fd4ad(0x1dd)]:Number(_0x3bee0d);}catch{}if(!Number[_0x1fd4ad(0x19c)](_0x581754)||_0x581754<=0x0||live(_0x581754)||Date[_0x1fd4ad(0x1b6)]()-fs['statSync'](_0x4af252)[_0x1fd4ad(0x16d)]<0x1d4c0)throw fail(_0x1fd4ad(0x15d),'Cache\x20lock\x20'+_0x141f22+'\x20requires\x20its\x20owning\x20backend\x20to\x20stop');}}async[_0x2e3db2(0x207)](){const _0x49839c=_0x2e3db2;if(!fs[_0x49839c(0x1ef)](this['database'])){if([_0x49839c(0x19b),'-shm']['some'](_0x16b9a2=>fs[_0x49839c(0x1ef)](this['database']+_0x16b9a2)))throw fail(_0x49839c(0x200),_0x49839c(0x1c3));return;}for(const _0x219bf5 of['','-wal',_0x49839c(0x20b)])rejectLink(this[_0x49839c(0x1df)]+_0x219bf5);this[_0x49839c(0x214)]===_0x49839c(0x1f1)?await run(this['profile'][_0x49839c(0x18a)],[...this[_0x49839c(0x1cd)]['args'][_0x49839c(0x1ae)](0x0,-0x1),'-e',_0x49839c(0x217),this[_0x49839c(0x1df)]],{'timeout':indexTimeout()}):await run(this[_0x49839c(0x1cd)][_0x49839c(0x18a)],['-c',_0x49839c(0x1b3),this[_0x49839c(0x1df)]],{'timeout':indexTimeout()});}async['migrateLegacy'](){const _0x155ae9=_0x2e3db2;if(this[_0x155ae9(0x214)]!==_0x155ae9(0x1f1)||!this['profile']['cacheDirectory']||fs[_0x155ae9(0x1ef)](this[_0x155ae9(0x1df)]))return![];const _0x1f2ac1=path[_0x155ae9(0x21c)](this[_0x155ae9(0x1ee)],_0x155ae9(0x228));if(!fs['existsSync'](path[_0x155ae9(0x21c)](_0x1f2ac1,_0x155ae9(0x171))))return![];const _0x3fe62f=Object[_0x155ae9(0x21f)](Object[_0x155ae9(0x179)](Object[_0x155ae9(0x158)](this)),this,{'cache':_0x1f2ac1,'database':path[_0x155ae9(0x21c)](_0x1f2ac1,_0x155ae9(0x171)),'env':{...this[_0x155ae9(0x190)],'CODEGRAPH_DIR':_0x155ae9(0x228)}});try{const _0x1cf6b9=read(path[_0x155ae9(0x21c)](_0x1f2ac1,'.apt-managed.json'));if(_0x1cf6b9?.['host']!==cacheHost){const _0xdad127={};return _0xdad127[_0x155ae9(0x14f)]=_0x155ae9(0x184),_0xdad127['reason']=_0x155ae9(0x178),this[_0x155ae9(0x21a)]=_0xdad127,![];}_0x3fe62f[_0x155ae9(0x170)]();if(_0x3fe62f[_0x155ae9(0x219)]()||!_0x3fe62f[_0x155ae9(0x1bc)]()&&!_0x3fe62f[_0x155ae9(0x1f4)]())return![];await _0x3fe62f[_0x155ae9(0x207)]();}catch(_0x76442a){const _0xe1f423={};return _0xe1f423[_0x155ae9(0x14f)]='preserved',_0xe1f423[_0x155ae9(0x17a)]=_0x76442a[_0x155ae9(0x1f7)]||_0x76442a['message'],this[_0x155ae9(0x21a)]=_0xe1f423,![];}if(!this['owned']()||fs[_0x155ae9(0x183)](this[_0x155ae9(0x1fe)])[_0x155ae9(0x20e)](_0x18961b=>_0x18961b!==_0x155ae9(0x17d)))return![];const _0x578671=this[_0x155ae9(0x1fe)]+_0x155ae9(0x1dc)+crypto[_0x155ae9(0x181)]();fs['renameSync'](this[_0x155ae9(0x1fe)],_0x578671);try{fs[_0x155ae9(0x1c9)](_0x1f2ac1,this[_0x155ae9(0x1fe)]);}catch(_0x3cccb4){fs[_0x155ae9(0x1c9)](_0x578671,this[_0x155ae9(0x1fe)]);throw _0x3cccb4;}return this['legacyMigration']={'status':'migrated','from':_0x1f2ac1,'to':this[_0x155ae9(0x1fe)]},!![];}async['build'](){const _0x26e4dc=_0x2e3db2;if(!this['owned']()&&!this['adoptLegacy']())throw fail(_0x26e4dc(0x229),_0x26e4dc(0x167));if(this[_0x26e4dc(0x214)]===_0x26e4dc(0x1f1)){const _0x12b208=fs[_0x26e4dc(0x1ef)](this['database']),_0x50cb44=await run(this['profile']['command'],[...this[_0x26e4dc(0x1cd)][_0x26e4dc(0x15a)],_0x12b208?'index':_0x26e4dc(0x1d9),this[_0x26e4dc(0x1ee)],_0x12b208?'--force':_0x26e4dc(0x1b8)],{'cwd':this['workspace'],'env':{...process.env,...this[_0x26e4dc(0x190)]},'windowsHide':!![],'timeout':indexTimeout(),'maxBuffer':0x4*0x400*0x400});this[_0x26e4dc(0x1c0)]=_0x50cb44[_0x26e4dc(0x20a)];return;}const _0x49472f=this[_0x26e4dc(0x156)]();if(path['resolve'](_0x49472f[_0x26e4dc(0x1df)])!==path['resolve'](this[_0x26e4dc(0x1df)]))throw fail(_0x26e4dc(0x1f2),_0x26e4dc(0x1cb));const _0x6606b3=snapshot(this['workspace']);try{const _0x20657f=await run(this['profile']['command'],[bridge,_0x26e4dc(0x1b9),this[_0x26e4dc(0x1ee)]],{'cwd':this[_0x26e4dc(0x1ee)],'env':{...process.env,...this['env']},'windowsHide':!![],'timeout':indexTimeout(),'maxBuffer':0x4*0x400*0x400});JSON[_0x26e4dc(0x216)](_0x20657f[_0x26e4dc(0x1bf)]),this[_0x26e4dc(0x1c0)]=_0x20657f[_0x26e4dc(0x20a)];}catch(_0x1fa06d){let _0x2697e5=_0x1fa06d[_0x26e4dc(0x198)];try{_0x2697e5=JSON['parse'](_0x1fa06d[_0x26e4dc(0x20a)]?.[_0x26e4dc(0x1bf)])[_0x26e4dc(0x1ea)]||_0x2697e5;}catch{}throw Object[_0x26e4dc(0x21f)](fail(_0x1fa06d[_0x26e4dc(0x1f7)]||classify(_0x2697e5),_0x2697e5),{'diagnostic':_0x1fa06d[_0x26e4dc(0x20a)]});}if(_0x6606b3!==snapshot(this[_0x26e4dc(0x1ee)]))throw fail(_0x26e4dc(0x1bb),'Workspace\x20changed\x20during\x20graph\x20build;\x20retry\x20before\x20impact\x20analysis');atomic(path[_0x26e4dc(0x21c)](this[_0x26e4dc(0x215)],'receipt.json'),{'workspace':this['workspace'],'snapshot':_0x6606b3,'version':this[_0x26e4dc(0x1cd)][_0x26e4dc(0x1f0)],'database':this[_0x26e4dc(0x1df)],'builtAt':new Date()[_0x26e4dc(0x1c5)]()});}async[_0x2e3db2(0x1cf)](){const _0x1d74ad=_0x2e3db2,_0x238170=this['lock']();try{const _0x32a834=read(path[_0x1d74ad(0x21c)](this[_0x1d74ad(0x215)],_0x1d74ad(0x180)));if(!_0x32a834||_0x32a834[_0x1d74ad(0x1f0)]!==this[_0x1d74ad(0x1cd)][_0x1d74ad(0x1f0)]||_0x32a834[_0x1d74ad(0x1df)]!==this[_0x1d74ad(0x1df)]||!fs[_0x1d74ad(0x1ef)](this[_0x1d74ad(0x1df)])||_0x32a834[_0x1d74ad(0x1ad)]!==snapshot(this[_0x1d74ad(0x1ee)]))await this[_0x1d74ad(0x1b9)]();return read(path['join'](this[_0x1d74ad(0x215)],'receipt.json'));}finally{_0x238170();}}async[_0x2e3db2(0x1d3)](_0x2c48cb=![]){const _0x2a22c9=_0x2e3db2,_0x30900e=_0x2c48cb?null:this[_0x2a22c9(0x1ca)](),_0x1748a8=path['join'](this[_0x2a22c9(0x215)],'recovery.json');let _0x43ba05;try{if(!this[_0x2a22c9(0x1bc)]())throw fail(_0x2a22c9(0x229),_0x2a22c9(0x1f6));if(this['otherUsers']())throw fail(_0x2a22c9(0x15d),'Another\x20live\x20backend\x20is\x20using\x20the\x20cache');this[_0x2a22c9(0x170)]();if(this[_0x2a22c9(0x214)]===_0x2a22c9(0x1c6)&&spelling(this[_0x2a22c9(0x156)]()['database'])!==spelling(this[_0x2a22c9(0x1df)]))throw fail(_0x2a22c9(0x1f2),_0x2a22c9(0x1cb));const _0x38c141=fs['existsSync'](this[_0x2a22c9(0x1fe)])?fs[_0x2a22c9(0x1d6)](this[_0x2a22c9(0x1fe)]):null,_0x51ba22=_0x38c141?_0x38c141+_0x2a22c9(0x1dc)+crypto['randomUUID']():null;_0x43ba05={'status':_0x2a22c9(0x1d1),'backup':_0x51ba22,'workspace':this[_0x2a22c9(0x1ee)],'at':new Date()[_0x2a22c9(0x1c5)]()},atomic(_0x1748a8,_0x43ba05);if(_0x51ba22)fs[_0x2a22c9(0x1c9)](_0x38c141,_0x51ba22);const _0x5f220b={};_0x5f220b[_0x2a22c9(0x202)]=!![],fs[_0x2a22c9(0x223)](this['cache'],_0x5f220b),atomic(path[_0x2a22c9(0x21c)](this[_0x2a22c9(0x1fe)],_0x2a22c9(0x17d)),{'owner':_0x2a22c9(0x1d0),'workspace':this[_0x2a22c9(0x1ee)],'kind':this[_0x2a22c9(0x214)]}),await this[_0x2a22c9(0x1b9)]();const _0x269823={..._0x43ba05};return _0x269823[_0x2a22c9(0x14f)]=_0x2a22c9(0x19d),atomic(_0x1748a8,_0x269823),_0x51ba22;}catch(_0x2c0d2b){if(_0x43ba05)atomic(_0x1748a8,{..._0x43ba05,'status':'failed','reason':_0x2c0d2b[_0x2a22c9(0x198)]});throw _0x2c0d2b;}finally{_0x30900e?.();}}async[_0x2e3db2(0x18b)](_0x389bb9,_0x51f27a){const _0x307806=_0x2e3db2;if(![_0x307806(0x1cc),_0x307806(0x200)][_0x307806(0x206)](_0x51f27a[_0x307806(0x1f7)])||!this['owned']())return![];let _0x5e72e6;try{_0x5e72e6=this[_0x307806(0x1ca)]();}catch(_0x421440){const _0x3ba191={};return _0x3ba191[_0x307806(0x14f)]='busy',_0x3ba191[_0x307806(0x17a)]=_0x421440[_0x307806(0x198)],_0x389bb9['indexRecovery']=_0x3ba191,![];}const _0x5582dc=path['join'](this['directory'],_0x307806(0x1be));try{if(this['kind']==='code-review-graph'&&spelling(this['resolveReview']()[_0x307806(0x1df)])!==spelling(this[_0x307806(0x1df)]))throw fail(_0x307806(0x1f2),_0x307806(0x1cb));if(this[_0x307806(0x219)]()){const _0x4ad5fe={};return _0x4ad5fe[_0x307806(0x14f)]='busy',_0x4ad5fe[_0x307806(0x17a)]=_0x307806(0x192),_0x389bb9[_0x307806(0x15b)]=_0x4ad5fe,![];}const _0x39ced3=hash(fs[_0x307806(0x1ef)](this['database'])?fs[_0x307806(0x1e2)](this['database']):_0x307806(0x218)),_0x170c69=read(_0x5582dc);if(_0x170c69&&_0x170c69[_0x307806(0x14f)]!=='recovered'&&(_0x170c69[_0x307806(0x204)]===_0x39ced3||_0x170c69['failedFingerprint']===_0x39ced3))return _0x389bb9['indexRecovery']=_0x170c69,![];const _0x460cf5=fs[_0x307806(0x1d6)](this[_0x307806(0x1fe)]),_0x22ea44=_0x460cf5+_0x307806(0x1dc)+crypto[_0x307806(0x181)](),_0x18031a=read(path['join'](_0x460cf5,_0x307806(0x17d))),_0x1f623a={'status':'recovering','fingerprint':_0x39ced3,'backup':_0x22ea44,'workspace':this['workspace'],'at':new Date()[_0x307806(0x1c5)]()};atomic(_0x5582dc,_0x1f623a),_0x389bb9[_0x307806(0x15b)]=_0x1f623a;const _0x225c20=_0x389bb9[_0x307806(0x159)]===undefined?undefined:_0x389bb9[_0x307806(0x159)]+0x1;await _0x389bb9[_0x307806(0x1aa)]();if(_0x389bb9[_0x307806(0x159)]!==_0x225c20)throw fail(_0x307806(0x1c7),_0x307806(0x18c));this['checkNativeLocks']();if(!this['owned']())throw fail(_0x307806(0x229),_0x307806(0x186));fs[_0x307806(0x1c9)](_0x460cf5,_0x22ea44),fs[_0x307806(0x223)](_0x460cf5),atomic(path[_0x307806(0x21c)](_0x460cf5,_0x307806(0x17d)),_0x18031a),await this['build']();if(_0x389bb9[_0x307806(0x159)]!==_0x225c20)throw fail(_0x307806(0x1c7),'Backend\x20was\x20stopped\x20while\x20rebuilding\x20its\x20index');_0x389bb9[_0x307806(0x1a0)](![],!![]);const _0x14f31d={..._0x1f623a};return _0x14f31d[_0x307806(0x14f)]=_0x307806(0x19d),_0x389bb9['indexRecovery']=_0x14f31d,atomic(_0x5582dc,_0x389bb9[_0x307806(0x15b)]),!![];}catch(_0x5a10af){const _0x20256f=hash(fs[_0x307806(0x1ef)](this['database'])?fs['readFileSync'](this[_0x307806(0x1df)]):_0x307806(0x218));return _0x389bb9[_0x307806(0x15b)]={..._0x389bb9[_0x307806(0x15b)]||{},'status':_0x307806(0x22a),'failedFingerprint':_0x20256f,'reason':_0x5a10af[_0x307806(0x198)]},atomic(_0x5582dc,_0x389bb9[_0x307806(0x15b)]),![];}finally{_0x5e72e6();}}[_0x2e3db2(0x17c)](_0x5185c5){const _0x158f81=_0x2e3db2;_0x5185c5[_0x158f81(0x15b)]={..._0x5185c5[_0x158f81(0x15b)],'status':_0x158f81(0x17c)},atomic(path['join'](this[_0x158f81(0x215)],'recovery.json'),_0x5185c5[_0x158f81(0x15b)]);}}const _0x5ef3bf={};_0x5ef3bf[_0x2e3db2(0x1e7)]=IndexStore,_0x5ef3bf[_0x2e3db2(0x1ad)]=snapshot,_0x5ef3bf['responseError']=responseError,_0x5ef3bf['classify']=classify,_0x5ef3bf[_0x2e3db2(0x1a2)]=atomic,module['exports']=_0x5ef3bf;require[_0x2e3db2(0x1fb)]===module&&(async()=>{const _0xe5ed5=_0x2e3db2,_0x21d20d=require('./profiles'),_0x54c610=fs[_0xe5ed5(0x1d6)](process[_0xe5ed5(0x20d)][0x2]),_0x26a067=safeDirectory(_0x54c610,'.agents/runtime/backends'),_0x1dcf4a={'workspace':_0x54c610,'startedAt':new Date()[_0xe5ed5(0x1c5)](),'status':_0xe5ed5(0x1e4),'backends':[]},_0x5e9945=path[_0xe5ed5(0x21c)](_0x26a067,_0xe5ed5(0x16b));atomic(_0x5e9945,_0x1dcf4a);for(const [_0x5d8390,_0x3011ed]of[[_0xe5ed5(0x1f1),_0x21d20d['codegraph']],[_0xe5ed5(0x1c6),_0x21d20d[_0xe5ed5(0x1e3)]]]){let _0x5a0903,_0x1b2e2a;const _0x3dcb82={'backend':_0x5d8390,'workspace':_0x54c610,'startedAt':new Date()[_0xe5ed5(0x1c5)](),'status':_0xe5ed5(0x1e4)};_0x1dcf4a[_0xe5ed5(0x209)]['push'](_0x3dcb82);try{const _0x410a06=_0x3011ed(),_0x24eaa7={};_0x24eaa7[_0xe5ed5(0x1f0)]=_0x410a06[_0xe5ed5(0x1f0)],_0x24eaa7[_0xe5ed5(0x1b7)]=_0x410a06[_0xe5ed5(0x18a)],Object[_0xe5ed5(0x21f)](_0x3dcb82,_0x24eaa7),_0x5a0903=new IndexStore(_0x5d8390,_0x54c610,_0x410a06);const _0x4e462e={};_0x4e462e['cache']=_0x5a0903[_0xe5ed5(0x1fe)],_0x4e462e[_0xe5ed5(0x1df)]=_0x5a0903[_0xe5ed5(0x1df)],_0x4e462e[_0xe5ed5(0x212)]=_0x5a0903[_0xe5ed5(0x212)]||'profile',Object['assign'](_0x3dcb82,_0x4e462e),_0x1b2e2a=_0x5a0903[_0xe5ed5(0x1ca)]();if(_0x5a0903[_0xe5ed5(0x219)]())throw fail(_0xe5ed5(0x15d),_0xe5ed5(0x195));await _0x5a0903[_0xe5ed5(0x22d)](),_0x3dcb82['legacyMigration']=_0x5a0903['legacyMigration']||null,_0x5a0903[_0xe5ed5(0x170)]();try{await _0x5a0903[_0xe5ed5(0x207)](),await _0x5a0903[_0xe5ed5(0x1b9)]();}catch(_0x4fdd4c){if(_0x4fdd4c[_0xe5ed5(0x1f7)]!==_0xe5ed5(0x200)||!_0x5a0903[_0xe5ed5(0x1bc)]()&&!_0x5a0903[_0xe5ed5(0x1f4)]())throw _0x4fdd4c;_0x3dcb82[_0xe5ed5(0x1a7)]=_0xe5ed5(0x182),_0x3dcb82[_0xe5ed5(0x1db)]=await _0x5a0903[_0xe5ed5(0x1d3)](!![]);}Object['assign'](_0x3dcb82,_0x5a0903['lastBuild'],{'status':_0xe5ed5(0x1f9),'functionalReady':![],'recoveryStatus':_0x3dcb82['recoveryStatus']||_0xe5ed5(0x1c8)}),_0x1b2e2a(),_0x1b2e2a=null;const {BackendProcess:_0x3d2725}=require(_0xe5ed5(0x18f)),_0x489e27=_0x5d8390===_0xe5ed5(0x1f1)?[..._0x410a06['args'],'serve',_0xe5ed5(0x150)]:_0x410a06[_0xe5ed5(0x15a)],_0x452ad3=new _0x3d2725(_0x5d8390,_0x410a06[_0xe5ed5(0x18a)],_0x489e27,{'cwd':_0x54c610,'env':{..._0x410a06[_0xe5ed5(0x190)],..._0x5a0903['env']},'maxRetries':0x0});_0x452ad3[_0xe5ed5(0x1a4)]=_0x5a0903;try{_0x452ad3[_0xe5ed5(0x1a0)](![]);const _0x3106d2={};_0x3106d2[_0xe5ed5(0x157)]=_0xe5ed5(0x168),_0x3106d2['version']='1';const _0x162917={};_0x162917[_0xe5ed5(0x21d)]='2024-11-05',_0x162917[_0xe5ed5(0x20f)]={},_0x162917[_0xe5ed5(0x1d2)]=_0x3106d2,await _0x452ad3['initialize'](_0x162917);if(!_0x452ad3[_0xe5ed5(0x1e1)])throw fail(_0xe5ed5(0x1a6),_0xe5ed5(0x225));_0x3dcb82[_0xe5ed5(0x1e1)]=!![],_0x3dcb82[_0xe5ed5(0x1db)]&&(_0x452ad3[_0xe5ed5(0x15b)]=read(path['join'](_0x5a0903[_0xe5ed5(0x215)],_0xe5ed5(0x1be))),_0x5a0903[_0xe5ed5(0x17c)](_0x452ad3),_0x3dcb82[_0xe5ed5(0x1a7)]=_0xe5ed5(0x17c));}finally{await _0x452ad3['stopAndWait']();}}catch(_0x39b46e){Object[_0xe5ed5(0x21f)](_0x3dcb82,_0x39b46e[_0xe5ed5(0x20a)],{'status':_0xe5ed5(0x22a),'reasonCode':_0x39b46e['code']||_0xe5ed5(0x163),'message':_0x39b46e['message']});if(_0x5a0903){const _0x2cf06e=read(path[_0xe5ed5(0x21c)](_0x5a0903[_0xe5ed5(0x215)],_0xe5ed5(0x1be)));if(_0x2cf06e)Object['assign'](_0x3dcb82,{'recoveryStatus':_0x2cf06e[_0xe5ed5(0x14f)],'backup':_0x2cf06e[_0xe5ed5(0x1db)]});}console[_0xe5ed5(0x1ea)]('['+_0x5d8390+']\x20'+_0x3dcb82[_0xe5ed5(0x194)]+':\x20'+_0x39b46e[_0xe5ed5(0x198)]),process[_0xe5ed5(0x197)]=0x2;}finally{_0x1b2e2a?.(),_0x3dcb82['endedAt']=new Date()[_0xe5ed5(0x1c5)](),atomic(_0x5e9945,_0x1dcf4a);}}_0x1dcf4a[_0xe5ed5(0x14f)]=process[_0xe5ed5(0x197)]?_0xe5ed5(0x22a):'built',_0x1dcf4a[_0xe5ed5(0x185)]=new Date()[_0xe5ed5(0x1c5)](),atomic(_0x5e9945,_0x1dcf4a);})()[_0x2e3db2(0x1af)](_0x51df69=>{const _0x3ba8e2=_0x2e3db2;console[_0x3ba8e2(0x1ea)](_0x51df69['message']),process[_0x3ba8e2(0x197)]=0x1;});
1
+ const _0x102374=_0x138e;function _0x695f(){const _0x10dc44=['rgf0ywjHC2uGAxmGBwLZC2LUzYbIDxqGu1fmAxrLihnPzgvJyxjZihjLBwfPBJSGChjLC2vYDMuGDgHLBsbIzwzVCMuGCMvIDwLSzgLUzW','zgf0yurPCMvJDg9YEq','lNn2BG','y2XVC2vtEw5J','CMvIDwLSDa','lI4Vy29Yzs9VD25Lzc1SB2nR','AM9PBG','lMfWDc1IywnRDxaT','sw5KzxGGBwfPBNrLBMfUy2uGAxmGyNvZEtSGCMv0CNKGywz0zxiGDgHLign1CNjLBNqGB3bLCMf0Aw9UigzPBMLZAgvZ','y3jLyxrLsgfZAa','sw5KzxGGBwv0ywrHDgeGBxvZDcbUB3qGyMuGysbZEw1IB2XPyYbSAw5R','DxnLCKzPBgu','su5ervHFtuLtu0LorW','BMfTzq','BwvZC2fNzq','yxjJAa','Aw5PDgLHBgL6zq','y2HPBgrqAwq','Aw5KzxG','lI9PBMrLEc1JB21Tyw5K','zxHPDenVzgu','sw52ywXPzcbdB2rLr3jHCgGGy2fJAguGzgLYzwn0B3j5','yxjNDG','Aw1WB3j0ihnXBgL0ztmSC3LZlhbHDgHSAwi7igm9C3fSAxrLmY5JB25Uzwn0khbHDgHSAwiUugf0AcHZExmUyxjNDLSXxsKUyxnFDxjPkcKRjZ9TB2rLpxjVjYX1CMK9vhj1zsK7ihjVD3m9yY5LEgvJDxrLkcDquKfhtueGAw50zwDYAxr5x2nOzwnRjYKUzMv0y2HHBgWOktSGyY5JBg9ZzsGPoYbHC3nLCNqGywXSkhjBmf09psDVAYCGzM9YihiGAw4GCM93CYKSicDKyxrHyMfZzsbKAxnRigLTywDLigLZig1HBgzVCM1LzcC','Bhn0yxrtEw5J','y29Kzs1YzxzPzxCTz3jHCgG','CMvJB3zLCNKUANnVBG','y29UC3qGE0rHDgfIyxnLu3LUy309CMvXDwLYzsGNBM9KztPZCwXPDguNktTJB25ZDcbKyJ1UzxCGrgf0ywjHC2vtEw5JkhbYB2nLC3mUyxjNDLSXxsX7CMvHze9UBhK6Dhj1zx0Po3rYExTJB25ZDcbYB3DZpwrIlNbYzxbHCMuOj1bsquDnqsbPBNrLz3jPDhLFy2HLy2SNks5HBgWOktTPzIHYB3DZlNnVBwuOCJ0+t2jQzwn0lNzHBhvLCYHYkvSWxse9psDVAYCPkxrOCM93ievYCM9YkcDKyxrHyMfZzsbKAxnRigLTywDLigLZig1HBgzVCM1LzcCPo31MAw5HBgX5E2rIlMnSB3nLkcL9','zxHPC3rZu3LUyW','zxHWB3j0CW','C29YDa','zM9Yy2u','BgvNywn5twLNCMf0Aw9U','nZC3odbswu90sgm','CMvSyxrPDMu','CMvJB3zLCMLUzW','lMnVzguTCMv2Awv3lwDYyxbO','yxb0lw1JCc1Hz2vUDa','ChjVzMLSzq','D2LUmZi','r1jbueHFq0HbtKDfra','CgXHDgzVCM0','rvnsq0G','mZnbtMTKzge','C3rYDwn0DxjLzenVBNrLBNq','y29KzwDYyxbOlMrI','zgLYBMfTzq','q2fJAguGB3DUzxjZAgLWigLZig5VDcbWCM92zw4','DMvYC2LVBG','CMvJzwLWDc5QC29U','CMvHzezPBgvtEw5J','sw5KzxHtDg9Yzq','mtm2ndbOrvPmvMy','Aw5ZCgvJDa','C3bSAxq','zMLSzxm','Dg9ju09tDhjPBMC','CMvJB3zLCNLtDgf0Dxm','CMv2Awv3','yxnZAwDU','BgfZDej1AwXK','qMfJA2vUzcb3yxmGC3rVChbLzcbKDxjPBMCGCMvJB3zLCNK','uMv2Awv3ihjLz2LZDhj5ignOyw5NzwqGDgHLigfJDgL2zsbKyxrHyMfZzq','lI4VChjVEhKVyMfJA2vUzhm','BM9Kzv9TB2r1BgvZ','CMvJB3zLCMvK','CMvHzgrPCLn5BMm','zxHLy0zPBgvtEw5J','lNzLBNy','C3rHCNrZv2L0Aa','zgLHz25VC3rPyW','CMvJDxjZAxzL','zxHLy3v0ywjSzq','BxrPBwvnCW','CMvZDwX0','y3jLyxrL','lxDHBa','y2fJAguUBg9JAW','nJu2meLYuNn6CG','BwfUAwzLC3rwzxjZAw9U','CgLK','CNvUBMLUzW','ntm1mdK2ELDnyvHs','mtG1owjcz3frtW','zMfPBgvKrMLUz2vYChjPBNq','Cgf0AfnVDxjJzq','lMfNzw50CY9WCM94Es9IywnRzw5KCY5QCW','C3rYAw5NAwz5','Aw5KzxGTyNvPBgqTBgfZDc5QC29U','yMfJA3vW','C2HHmJu2','sw5KzxGGzgLYzwn0B3j5igvZy2fWzxmGD29YA3nWywnL','zMfPBgvK','DxbKyxrL','B3DUzwq','zw52','ndvTDgvxq0C','C3rVCefUzfDHAxq','lMfWDc1Tyw5Hz2vKlMPZB24','y2fWywjPBgL0AwvZ','uKvdt1zfuLLFq0foq0vmteve','y29KzwDYyxbO','CMvUyw1Lu3LUyW','Bg9JA1bHDgG','lMnVzgvNCMfWAc0','C29Tzq','qKfds0vorf9rvuvswv9gquLmruq','q2fJAguGBg9JAYa','C2XPy2u','qw5VDgHLCIbSAxzLigjHy2TLBMqGAxmGDxnPBMCGDgHLignHy2HL','CM1tEw5J','BwLZC2LUzW','BwLNCMf0zuXLz2fJEq','CMvHBhbHDgHtEw5J','Bg9JAW','y2HLy2TeyxrHyMfZzq','mJCWmda4ouz6DvbvDq','zgvWBg95zwq','DxrMoa','lxnOBq','B3DUzxi','zgfLBw9UlNbPza','C3rHDhvZ','CMvZB2X2zq','yNvZEq','B3DUzxjqAwq','Aw5PDa','y2HLy2ToyxrPDMvmB2nRCW','x19WEwnHy2HLx18','lMfNzw50CY9YDw50Aw1Ll2jHy2TLBMrZ','y2fJAgu','ls1MB3jJzq','CMvWBgfJzq','Dw5YzwDPC3rLCG','ChvZAa','yxjNCW','Dgv4Da','ihjLCxvPCMvZigL0CYbVD25PBMCGyMfJA2vUzcb0BYbZDg9W','zgLYzwn0B3j5','Bg9JywXLq29TCgfYzq','CMvZB2X2zvjLDMLLDW','Aw5JBhvKzxm','ls15zxm','y3j5ChrV','z2v0uhjVDg90ExbLt2y','DhLWzq','B3bLBLn5BMm','DgvZDa','Aw5KzxHszwnVDMvYEq','C3rHBMrHBg9UzvjLyNvPBgq','CMvNAxn0zxi','qsbSAxzLigjHy2TLBMqGAxmGDxnPBMCGDgHLigLUzgv4oYbYzxn0yxj0igL0igjLzM9YzsbYzwj1AwXKAw5N','C3rHCNq','DxnLCNm','zMLUz2vYChjPBNq','y29UDgvUDa','z2vUzxjHDgLVBG','D3jPDgvgAwXLu3LUyW','ru5pru5u','y29Kzq','y29TBwfUza','y29KzwDYyxbOlMXVy2S','ywrVChrmzwDHy3K','qMfJA2vUzcbKAwqGBM90ihbHC3mGAxrZigz1BMn0Aw9UywWGChjVyMu','A2LUza','su5ervHFse9tvf9vtLzfuKLgsuve','C291CMnL','D2L0AezPBgvuExbLCW','lMPZB24','y2XPzw50sw5MBW','vu5tquzfx0Lorevy','CMvHC29U','lMnVzgvNCMfWAa','C3rKB3v0','C3rYAw5N','CMfUzg9Tvvvjra','Dw5SAw5Ru3LUyW','Ag9ZDa','CxvHCMfUDgLUAw5N','CMvZCg9UC2vfCNjVCG','CgfYC2u','zgLZDa','zw5KzwrbDa','lMfNzw50CW','lM1LBw9YEq','yNvPBhq','B3rOzxjvC2vYCW','yNvPBgq','su5ervHFq09suLvqva','mJjhshr0B1O','qMfJA2vUzcbZDgf0zsbLC2nHCgvZihDVCMTZCgfJzq','BM93','lMfNzw50CY8Uzgf0ys9NCMfWAa','BwTKAxjtEw5J','mtK5mhHztujbEq','Aw5KzxHtDg9Yzq','Ag9ZDg5HBwu','zgf0ywjHC2u','ChjLCgfYzq','lMfNzw50CY8Uzgf0ys9JB2rL','otG0A1PstLHX','y2XHC3nPzNK','mZq2mda0neTnqMTQCa','y2fJAgveAxjLy3rVCNK','zxjYB3i','AxntEw1IB2XPy0XPBMS','v29YA3nWywnLignOyw5NzwqGzhvYAw5NigDYyxbOigj1AwXKoYbYzxrYEsbIzwzVCMuGAw1Wywn0igfUywX5C2LZ','BwfW','q2fJAguGB3DUzxjZAgLWignOyw5NzwqGyMvMB3jLihjLy292zxj5','zgLNzxn0','zw5KC1DPDgG','su5ervHFuefusf9dsefor0ve','AxneAxjLy3rVCNK','lNrTCa','C3rHDfn5BMm','zMLSDgvY','ls1Ty3a','DMvUDG','lMDPDa','ChjLC2vYDMvK','Dg9mB3DLCKnHC2u','su5ervHFqLvtwq','D29YA3nWywnL','C2vYDMu','yMfJA2vUzhm'];_0x695f=function(){return _0x10dc44;};return _0x695f();}(function(_0x7d1836,_0x35dcd7){const _0x2e95cb=_0x138e,_0x2ff5a8=_0x7d1836();while(!![]){try{const _0x200803=parseInt(_0x2e95cb(0x19e))/0x1*(parseInt(_0x2e95cb(0x127))/0x2)+-parseInt(_0x2e95cb(0x176))/0x3*(-parseInt(_0x2e95cb(0x16c))/0x4)+-parseInt(_0x2e95cb(0x199))/0x5*(parseInt(_0x2e95cb(0x132))/0x6)+parseInt(_0x2e95cb(0x1bf))/0x7+parseInt(_0x2e95cb(0x19d))/0x8*(parseInt(_0x2e95cb(0x1ab))/0x9)+parseInt(_0x2e95cb(0x12c))/0xa*(-parseInt(_0x2e95cb(0x17f))/0xb)+-parseInt(_0x2e95cb(0x134))/0xc;if(_0x200803===_0x35dcd7)break;else _0x2ff5a8['push'](_0x2ff5a8['shift']());}catch(_0x59b6bf){_0x2ff5a8['push'](_0x2ff5a8['shift']());}}}(_0x695f,0x31dd1));const fs=require('fs'),path=require('path'),crypto=require(_0x102374(0x1da)),cp=require('child_process'),cacheHost=require('os')[_0x102374(0x12e)]()+':'+process[_0x102374(0x174)]+':'+process[_0x102374(0x15a)],{runIndexCommand,indexTimeout}=require(_0x102374(0x15e)),{identity,sameWorkspace,containsWorkspace}=require('../core/workspace-path'),{acquireRuntimeLock}=require(_0x102374(0x150)),run=runIndexCommand,hash=_0x310ae2=>crypto[_0x102374(0x154)](_0x102374(0x1a5))[_0x102374(0x1a8)](_0x310ae2)[_0x102374(0x13b)]('hex'),bridge=path[_0x102374(0x151)](__dirname,'review_graph.py'),fail=(_0x5f4f2d,_0x4af449)=>Object[_0x102374(0x186)](new Error(_0x4af449),{'code':_0x5f4f2d}),spelling=_0x1c190d=>process['platform']==='win32'?path[_0x102374(0x1c6)](_0x1c190d)[_0x102374(0x146)]():path['resolve'](_0x1c190d);function rejectLink(_0x436375){const _0x409e4c=_0x102374;try{if(fs[_0x409e4c(0x163)](_0x436375)[_0x409e4c(0x137)]())throw fail('UNSAFE_INDEX',_0x409e4c(0x155));}catch(_0x2fc39d){if(_0x2fc39d['code']!=='ENOENT')throw _0x2fc39d;}}function safeDirectory(_0x45c88f,_0x145490){const _0x5d5f4e=_0x102374;if(path['isAbsolute'](_0x145490)||_0x145490[_0x5d5f4e(0x181)](/[\\/]/)[_0x5d5f4e(0x1d8)]('..'))throw fail(_0x5d5f4e(0x114),'Index\x20directory\x20escapes\x20workspace');let _0x2c2ca1=_0x45c88f;for(const _0x54e05a of _0x145490['split'](/[\\/]/)[_0x5d5f4e(0x141)](Boolean)){_0x2c2ca1=path[_0x5d5f4e(0x151)](_0x2c2ca1,_0x54e05a),rejectLink(_0x2c2ca1);const _0x435f86={};_0x435f86[_0x5d5f4e(0x192)]=!![],fs['mkdirSync'](_0x2c2ca1,_0x435f86);if(!containsWorkspace(_0x45c88f,_0x2c2ca1))throw fail(_0x5d5f4e(0x114),_0x5d5f4e(0x1a6));}return _0x2c2ca1;}function atomic(_0x1b4e0b,_0x2a3713){const _0x20da60=_0x102374;rejectLink(_0x1b4e0b);const _0x2fb17a=_0x1b4e0b+'.'+crypto['randomUUID']()+_0x20da60(0x13f);try{const _0x296585=fs[_0x20da60(0x1dd)](_0x2fb17a,'wx');try{fs[_0x20da60(0x107)](_0x296585,JSON['stringify'](_0x2a3713)),fs['fsyncSync'](_0x296585);}finally{fs[_0x20da60(0x14e)](_0x296585);}fs[_0x20da60(0x1b1)](_0x2fb17a,_0x1b4e0b);}finally{const _0x519017={};_0x519017[_0x20da60(0x16a)]=!![],fs[_0x20da60(0x1b9)](_0x2fb17a,_0x519017);}}function read(_0x1fa3c5){const _0x318022=_0x102374;try{return rejectLink(_0x1fa3c5),JSON[_0x318022(0x11e)](fs[_0x318022(0x17d)](_0x1fa3c5,'utf8'));}catch(_0x39cf1d){if(_0x39cf1d[_0x318022(0x109)]===_0x318022(0x108))return null;throw _0x39cf1d;}}function classify(_0x6aaa48){const _0x5cb8ad=_0x102374;if(/database disk image is malformed|file is not a database|SQLITE_CORRUPT|SQLITE_NOTADB/i['test'](_0x6aaa48))return _0x5cb8ad(0x126);if(/not indexed|no index|not initialized|no codegraph project|index (?:missing|invalid|corrupt)/i[_0x5cb8ad(0x1de)](_0x6aaa48))return _0x5cb8ad(0x157);return _0x5cb8ad(0x1b5);}function responseError(_0x71398a){const _0x18a1c8=_0x102374,_0x50d20a=_0x71398a?.[_0x18a1c8(0x195)],_0x5a0d36=_0x50d20a?.[_0x18a1c8(0x177)],_0x20b4ca=_0x50d20a?.[_0x18a1c8(0x105)]?.['filter'](_0x499e30=>_0x499e30[_0x18a1c8(0x1dc)]==='text')[_0x18a1c8(0x139)](_0x5b8ab6=>_0x5b8ab6[_0x18a1c8(0x1d3)])[_0x18a1c8(0x151)]('\x0a'),_0x4f2a79=_0x71398a?.[_0x18a1c8(0x136)]?.['message']||typeof _0x71398a?.[_0x18a1c8(0x136)]===_0x18a1c8(0x118)&&_0x71398a[_0x18a1c8(0x136)]||_0x5a0d36?.[_0x18a1c8(0x136)]||_0x20b4ca||'Backend\x20query\x20failed';return fail(classify(_0x4f2a79),String(_0x4f2a79)[_0x18a1c8(0x1b7)](0x0,0x640));}function snapshot(_0x3cf077){const _0x1afc35=_0x102374,_0x4600e7=[],_0x7fc905=new Set([_0x1afc35(0x144),_0x1afc35(0x14d),_0x1afc35(0x121),_0x1afc35(0x122),'.codegraph',_0x1afc35(0x16f),_0x1afc35(0x18b),_0x1afc35(0x18f),_0x1afc35(0x143),_0x1afc35(0x1cb),_0x1afc35(0x11f),_0x1afc35(0x125)]),_0x4856f4=_0xf2ba2=>{const _0x2d744d=_0x1afc35,_0x2975a0={};_0x2975a0[_0x2d744d(0x111)]=!![];for(const _0x10de4d of fs[_0x2d744d(0x18d)](_0xf2ba2,_0x2975a0)[_0x2d744d(0x169)]((_0x3f2936,_0x23d858)=>_0x3f2936[_0x2d744d(0x158)][_0x2d744d(0x1d6)](_0x23d858[_0x2d744d(0x158)]))){if(_0x7fc905['has'](_0x10de4d[_0x2d744d(0x158)])||_0x10de4d['name'][_0x2d744d(0x190)](_0x2d744d(0x1b3))||_0x10de4d[_0x2d744d(0x158)][_0x2d744d(0x1d8)]('.apt-backup-')||_0x10de4d['isSymbolicLink']())continue;const _0x17379d=path[_0x2d744d(0x151)](_0xf2ba2,_0x10de4d[_0x2d744d(0x158)]);if(_0x10de4d[_0x2d744d(0x13e)]())_0x4856f4(_0x17379d);else{if(_0x10de4d['isFile']())_0x4600e7[_0x2d744d(0x1d1)]([path['relative'](_0x3cf077,_0x17379d)[_0x2d744d(0x1cf)](/\\/g,'/'),hash(fs[_0x2d744d(0x17d)](_0x17379d))]);}}};return _0x4856f4(_0x3cf077),hash(JSON[_0x1afc35(0x1a2)](_0x4600e7));}function live(_0x3b6356){const _0x5b1059=_0x102374;if(!Number['isSafeInteger'](_0x3b6356)||_0x3b6356<=0x0)return![];try{return process['kill'](_0x3b6356,0x0),!![];}catch(_0x1b7660){return _0x1b7660[_0x5b1059(0x109)]!==_0x5b1059(0x175);}}function _0x138e(_0x256366,_0x1b2e4b){_0x256366=_0x256366-0x100;const _0x695fdf=_0x695f();let _0x138efe=_0x695fdf[_0x256366];if(_0x138e['PxvNHK']===undefined){var _0x58602d=function(_0x338166){const _0x2d8574='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44babe='',_0x3950d1='';for(let _0x27303b=0x0,_0x893765,_0x37f840,_0x5a6ffb=0x0;_0x37f840=_0x338166['charAt'](_0x5a6ffb++);~_0x37f840&&(_0x893765=_0x27303b%0x4?_0x893765*0x40+_0x37f840:_0x37f840,_0x27303b++%0x4)?_0x44babe+=String['fromCharCode'](0xff&_0x893765>>(-0x2*_0x27303b&0x6)):0x0){_0x37f840=_0x2d8574['indexOf'](_0x37f840);}for(let _0x1c4d61=0x0,_0x4f7c7e=_0x44babe['length'];_0x1c4d61<_0x4f7c7e;_0x1c4d61++){_0x3950d1+='%'+('00'+_0x44babe['charCodeAt'](_0x1c4d61)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3950d1);};_0x138e['qFbiXD']=_0x58602d,_0x138e['eHZMhz']={},_0x138e['PxvNHK']=!![];}const _0x39cfa8=_0x695fdf[0x0],_0xa04291=_0x256366+_0x39cfa8,_0x3e09df=_0x138e['eHZMhz'][_0xa04291];return!_0x3e09df?(_0x138efe=_0x138e['qFbiXD'](_0x138efe),_0x138e['eHZMhz'][_0xa04291]=_0x138efe):_0x138efe=_0x3e09df,_0x138efe;}class IndexStore{constructor(_0x4a103e,_0x451845,_0x4af567){const _0x1d672a=_0x102374;this[_0x1d672a(0x10e)]=_0x4a103e,this[_0x1d672a(0x148)]=fs[_0x1d672a(0x1bc)](_0x451845),this[_0x1d672a(0x171)]=_0x4af567,this[_0x1d672a(0x1d5)]=safeDirectory(this[_0x1d672a(0x148)],'.agents/runtime/backends/'+_0x4a103e);if(!containsWorkspace(this[_0x1d672a(0x148)],this[_0x1d672a(0x1d5)]))throw fail('UNSAFE_INDEX',_0x1d672a(0x128));this[_0x1d672a(0x1b2)]=path[_0x1d672a(0x151)](this[_0x1d672a(0x1d5)],_0x1d672a(0x198)),this['users']=safeDirectory(this['workspace'],'.agents/runtime/backends/'+_0x4a103e+'/users'),this[_0x1d672a(0x156)]=path[_0x1d672a(0x151)](this[_0x1d672a(0x103)],crypto[_0x1d672a(0x119)]()+'.json');if(_0x4a103e===_0x1d672a(0x164)){const _0x3b2781=path[_0x1d672a(0x151)](this[_0x1d672a(0x148)],_0x1d672a(0x16f));if(!fs['existsSync'](_0x3b2781))fs[_0x1d672a(0x12b)](_0x3b2781);const _0x438288=_0x4af567[_0x1d672a(0x135)]||_0x1d672a(0x12a);if(!/^\.agents\/\.data\/graph(?:-[0-9]+\.[0-9]+\.[0-9]+)?$/[_0x1d672a(0x1de)](_0x438288))throw fail(_0x1d672a(0x114),'Invalid\x20review\x20graph\x20cache\x20directory');this[_0x1d672a(0x1aa)]={..._0x4af567[_0x1d672a(0x1aa)],'CRG_DATA_DIR':path['join'](this[_0x1d672a(0x148)],_0x438288)};const _0x23f5b3=this[_0x1d672a(0x1d7)]();this['cache']=_0x23f5b3[_0x1d672a(0x14c)],this[_0x1d672a(0x12f)]=_0x23f5b3[_0x1d672a(0x12f)],this[_0x1d672a(0x1a0)]=_0x23f5b3[_0x1d672a(0x110)];}else{this[_0x1d672a(0x1aa)]=_0x4af567[_0x1d672a(0x1aa)]||{};if(_0x4af567[_0x1d672a(0x135)]&&!/^\.codegraph(?:-[a-z0-9]+-[a-z0-9]+)?$/['test'](_0x4af567[_0x1d672a(0x135)]))throw fail(_0x1d672a(0x114),_0x1d672a(0x160));this[_0x1d672a(0x1cd)]=path[_0x1d672a(0x151)](this[_0x1d672a(0x148)],_0x4af567['cacheDirectory']||_0x1d672a(0x116)),this[_0x1d672a(0x12f)]=path[_0x1d672a(0x151)](this[_0x1d672a(0x1cd)],_0x1d672a(0x178));}const _0x4427d0=this[_0x1d672a(0x1bd)]();try{this[_0x1d672a(0x130)]();}finally{_0x4427d0();}}[_0x102374(0x1d7)](){const _0x206855=_0x102374,_0x2f342c=cp[_0x206855(0x18e)](this['profile'][_0x206855(0x10a)],[bridge,_0x206855(0x180),this['workspace']],{'env':{...process.env,...this['env']},'windowsHide':!![],'encoding':_0x206855(0x1c1),'timeout':0x3a98});return JSON[_0x206855(0x11e)](_0x2f342c);}[_0x102374(0x130)](){const _0x1b7877=_0x102374,_0x178475=this[_0x1b7877(0x10e)]===_0x1b7877(0x1b0)?this[_0x1b7877(0x1cd)]:path[_0x1b7877(0x151)](this[_0x1b7877(0x148)],this[_0x1b7877(0x171)][_0x1b7877(0x135)]||_0x1b7877(0x12a)),_0x262c14=fs['existsSync'](this['cache']);if(!_0x262c14&&spelling(this['cache'])===spelling(_0x178475)){safeDirectory(this[_0x1b7877(0x148)],path[_0x1b7877(0x16d)](this[_0x1b7877(0x148)],this['cache']));if(!containsWorkspace(this['workspace'],this['cache']))throw fail(_0x1b7877(0x114),'Cache\x20escapes\x20workspace');atomic(path[_0x1b7877(0x151)](this[_0x1b7877(0x1cd)],_0x1b7877(0x1ad)),{'owner':'apt-mcp-agent','workspace':this[_0x1b7877(0x148)],'kind':this['kind'],'host':cacheHost});}}[_0x102374(0x10c)](){const _0x38c58c=_0x102374;if(this['owned']())return!![];const _0x3e701f=this[_0x38c58c(0x10e)]==='codegraph'?_0x38c58c(0x116):_0x38c58c(0x12a);if(spelling(this[_0x38c58c(0x1cd)])!==spelling(path[_0x38c58c(0x151)](this['workspace'],_0x3e701f)))return![];if(identity(this[_0x38c58c(0x1cd)])!==spelling(path[_0x38c58c(0x151)](this[_0x38c58c(0x148)],_0x3e701f)))return![];const _0x3c3dc2=read(path[_0x38c58c(0x151)](this[_0x38c58c(0x148)],'.agents/manifest.json')),_0x151634=_0x38c58c(0x1a1),_0x20f505=_0x3c3dc2?.['managedFileHashes']?.[_0x151634];if(!_0x20f505||!_0x3c3dc2[_0x38c58c(0x182)]?.['includes'](_0x151634))return![];const _0x33bcfd=path[_0x38c58c(0x151)](this[_0x38c58c(0x148)],_0x151634);rejectLink(path[_0x38c58c(0x179)](_0x33bcfd)),rejectLink(_0x33bcfd);if(hash(fs[_0x38c58c(0x17d)](_0x33bcfd))!==_0x20f505)return![];for(const _0x592a67 of['','-wal',_0x38c58c(0x1c2)])rejectLink(this['database']+_0x592a67);this[_0x38c58c(0x1ca)]();if(this[_0x38c58c(0x124)]())throw fail(_0x38c58c(0x147),'Another\x20backend\x20is\x20using\x20the\x20legacy\x20cache');const _0x7344d7={};return _0x7344d7[_0x38c58c(0x19a)]=_0x3c3dc2[_0x38c58c(0x17b)],_0x7344d7[_0x38c58c(0x1c0)]=_0x151634,_0x7344d7['digest']=_0x20f505,atomic(path[_0x38c58c(0x151)](this[_0x38c58c(0x1cd)],_0x38c58c(0x1ad)),{'owner':_0x38c58c(0x170),'workspace':this[_0x38c58c(0x148)],'kind':this[_0x38c58c(0x10e)],'provenance':_0x7344d7}),!![];}[_0x102374(0x1a9)](){const _0x481460=_0x102374;try{const _0x79710b=read(path[_0x481460(0x151)](this[_0x481460(0x1cd)],_0x481460(0x1ad)));for(const _0x13b18f of['',_0x481460(0x197),_0x481460(0x1c2)])rejectLink(this[_0x481460(0x12f)]+_0x13b18f);const _0xeed7a=identity(this[_0x481460(0x1cd)]),_0x4a8c22=this[_0x481460(0x10e)]==='codegraph'?[this[_0x481460(0x171)][_0x481460(0x135)]||'.codegraph',_0x481460(0x116),_0x481460(0x131)]:[this[_0x481460(0x171)][_0x481460(0x135)]||_0x481460(0x12a)];return _0x79710b?.[_0x481460(0x1c3)]==='apt-mcp-agent'&&sameWorkspace(_0x79710b['workspace'],this['workspace'])&&_0x4a8c22[_0x481460(0x1b4)](_0x29ee72=>{const _0x4ba02e=_0x481460,_0x760ab9=path['resolve'](this['workspace'],_0x29ee72);return _0xeed7a===(process[_0x4ba02e(0x174)]===_0x4ba02e(0x172)?_0x760ab9['toLowerCase']():_0x760ab9);});}catch{return![];}}[_0x102374(0x1bd)](){const _0xbfb3a5=_0x102374;rejectLink(this['lockPath']);const _0x1ffecd=acquireRuntimeLock(this[_0xbfb3a5(0x1b2)],0x0,cacheHost);if(!_0x1ffecd)throw fail(_0xbfb3a5(0x147),_0xbfb3a5(0x153));return _0x1ffecd;}[_0x102374(0x100)](_0x1894ac=null,_0x3562b7=![]){const _0x343077=_0x102374,_0x11bda6=_0x3562b7?null:this[_0x343077(0x1bd)]();try{atomic(this[_0x343077(0x156)],{'ownerPid':process[_0x343077(0x19b)],'childPid':_0x1894ac,'workspace':this[_0x343077(0x148)],'host':cacheHost});}finally{_0x11bda6?.();}}[_0x102374(0x1d0)](){const _0x3790f4=_0x102374,_0x26f5f1={};_0x26f5f1[_0x3790f4(0x16a)]=!![],fs[_0x3790f4(0x1b9)](this[_0x3790f4(0x156)],_0x26f5f1);}[_0x102374(0x124)](){const _0xafc5a9=_0x102374;return fs[_0xafc5a9(0x18d)](this[_0xafc5a9(0x103)])[_0xafc5a9(0x141)](_0x1fca64=>_0x1fca64[_0xafc5a9(0x13c)](_0xafc5a9(0x112)))[_0xafc5a9(0x1b4)](_0xb4e669=>{const _0x58fa4f=_0xafc5a9,_0x2589ba=path[_0x58fa4f(0x151)](this['users'],_0xb4e669);if(_0x2589ba===this[_0x58fa4f(0x156)])return![];const _0x567651=read(_0x2589ba);if(!_0x567651||_0x567651[_0x58fa4f(0x11b)]!==cacheHost||live(_0x567651[_0x58fa4f(0x1c8)])||live(_0x567651[_0x58fa4f(0x15c)]))return!![];return fs[_0x58fa4f(0x11a)](_0x2589ba),![];});}[_0x102374(0x1ca)](){const _0x395488=_0x102374;for(const _0xbaf883 of[_0x395488(0x10b),_0x395488(0x1c4)]){const _0x445a67=path[_0x395488(0x151)](this[_0x395488(0x1cd)],_0xbaf883);if(!fs[_0x395488(0x167)](_0x445a67))continue;rejectLink(_0x445a67);const _0x55d1c6=fs[_0x395488(0x17d)](_0x445a67,'utf8')['trim']();let _0x2b9c5d;try{_0x2b9c5d=_0xbaf883===_0x395488(0x1c4)?JSON['parse'](_0x55d1c6)['pid']:Number(_0x55d1c6);}catch{}if(!Number['isSafeInteger'](_0x2b9c5d)||_0x2b9c5d<=0x0||live(_0x2b9c5d)||Date[_0x395488(0x129)]()-fs[_0x395488(0x140)](_0x445a67)[_0x395488(0x194)]<0x1d4c0)throw fail('INDEX_BUSY',_0x395488(0x1b6)+_0xbaf883+_0x395488(0x1d4));}}async[_0x102374(0x1be)](){const _0xe9e1fe=_0x102374;if(!fs['existsSync'](this[_0xe9e1fe(0x12f)])){if(['-wal',_0xe9e1fe(0x1c2)]['some'](_0x4add8e=>fs[_0xe9e1fe(0x167)](this['database']+_0x4add8e)))throw fail(_0xe9e1fe(0x126),_0xe9e1fe(0x14b));return;}for(const _0x367e0c of['',_0xe9e1fe(0x197),_0xe9e1fe(0x1c2)])rejectLink(this[_0xe9e1fe(0x12f)]+_0x367e0c);this[_0xe9e1fe(0x10e)]===_0xe9e1fe(0x1b0)?await run(this['profile'][_0xe9e1fe(0x10a)],[...this[_0xe9e1fe(0x171)]['args'][_0xe9e1fe(0x1b7)](0x0,-0x1),'-e',_0xe9e1fe(0x166),this[_0xe9e1fe(0x12f)]],{'timeout':indexTimeout()}):await run(this[_0xe9e1fe(0x171)][_0xe9e1fe(0x10a)],['-c',_0xe9e1fe(0x162),this[_0xe9e1fe(0x12f)]],{'timeout':indexTimeout()});}async[_0x102374(0x1bb)](){const _0x93ce48=_0x102374;if(this[_0x93ce48(0x10e)]!==_0x93ce48(0x1b0)||!this[_0x93ce48(0x171)][_0x93ce48(0x135)]||fs[_0x93ce48(0x167)](this[_0x93ce48(0x12f)]))return![];const _0x4462f3=path[_0x93ce48(0x151)](this[_0x93ce48(0x148)],_0x93ce48(0x116));if(!fs[_0x93ce48(0x167)](path[_0x93ce48(0x151)](_0x4462f3,_0x93ce48(0x178))))return![];const _0x42237a=Object[_0x93ce48(0x186)](Object[_0x93ce48(0x196)](Object[_0x93ce48(0x1db)](this)),this,{'cache':_0x4462f3,'database':path[_0x93ce48(0x151)](_0x4462f3,_0x93ce48(0x178)),'env':{...this[_0x93ce48(0x1aa)],'CODEGRAPH_DIR':_0x93ce48(0x116)}});try{const _0x2ad04c=read(path['join'](_0x4462f3,_0x93ce48(0x1ad)));if(_0x2ad04c?.['host']!==cacheHost){const _0x4e49ea={};return _0x4e49ea[_0x93ce48(0x1c5)]=_0x93ce48(0x145),_0x4e49ea[_0x93ce48(0x115)]=_0x93ce48(0x10f),this[_0x93ce48(0x16b)]=_0x4e49ea,![];}_0x42237a[_0x93ce48(0x1ca)]();if(_0x42237a[_0x93ce48(0x124)]()||!_0x42237a['owned']()&&!_0x42237a[_0x93ce48(0x10c)]())return![];await _0x42237a['checkDatabase']();}catch(_0x1e75bf){const _0x52662f={};return _0x52662f['status']=_0x93ce48(0x145),_0x52662f[_0x93ce48(0x115)]=_0x1e75bf[_0x93ce48(0x109)]||_0x1e75bf[_0x93ce48(0x159)],this[_0x93ce48(0x16b)]=_0x52662f,![];}if(!this[_0x93ce48(0x1a9)]()||fs[_0x93ce48(0x18d)](this[_0x93ce48(0x1cd)])[_0x93ce48(0x1b4)](_0x5c2893=>_0x5c2893!==_0x93ce48(0x1ad)))return![];const _0x57d6c7=this[_0x93ce48(0x1cd)]+_0x93ce48(0x152)+crypto['randomUUID']();fs['renameSync'](this[_0x93ce48(0x1cd)],_0x57d6c7);try{fs[_0x93ce48(0x1b1)](_0x4462f3,this['cache']);}catch(_0x2790d6){fs[_0x93ce48(0x1b1)](_0x57d6c7,this[_0x93ce48(0x1cd)]);throw _0x2790d6;}return this[_0x93ce48(0x16b)]={'status':'migrated','from':_0x4462f3,'to':this[_0x93ce48(0x1cd)]},!![];}async[_0x102374(0x125)](){const _0x4a4cf7=_0x102374;if(!this[_0x4a4cf7(0x1a9)]()&&!this[_0x4a4cf7(0x10c)]())throw fail(_0x4a4cf7(0x114),'Cache\x20ownership\x20is\x20not\x20proven;\x20custom\x20indexes\x20must\x20be\x20managed\x20separately');if(this[_0x4a4cf7(0x10e)]===_0x4a4cf7(0x1b0)){const _0x1456c0=fs['existsSync'](this['database']),_0x472853=await run(this[_0x4a4cf7(0x171)]['command'],[...this[_0x4a4cf7(0x171)][_0x4a4cf7(0x1d2)],_0x1456c0?_0x4a4cf7(0x15d):_0x4a4cf7(0x1c9),this[_0x4a4cf7(0x148)],_0x1456c0?_0x4a4cf7(0x1ce):_0x4a4cf7(0x1d9)],{'cwd':this[_0x4a4cf7(0x148)],'env':{...process.env,...this['env']},'windowsHide':!![],'timeout':indexTimeout(),'maxBuffer':0x4*0x400*0x400});this[_0x4a4cf7(0x187)]=_0x472853[_0x4a4cf7(0x191)];return;}const _0xd9e24=this[_0x4a4cf7(0x1d7)]();if(path[_0x4a4cf7(0x1c6)](_0xd9e24[_0x4a4cf7(0x12f)])!==path[_0x4a4cf7(0x1c6)](this[_0x4a4cf7(0x12f)]))throw fail(_0x4a4cf7(0x13d),_0x4a4cf7(0x189));const _0x71b61c=snapshot(this[_0x4a4cf7(0x148)]);try{const _0x422275=await run(this[_0x4a4cf7(0x171)][_0x4a4cf7(0x10a)],[bridge,_0x4a4cf7(0x125),this['workspace']],{'cwd':this[_0x4a4cf7(0x148)],'env':{...process.env,...this['env']},'windowsHide':!![],'timeout':indexTimeout(),'maxBuffer':0x4*0x400*0x400});JSON[_0x4a4cf7(0x11e)](_0x422275[_0x4a4cf7(0x117)]),this[_0x4a4cf7(0x187)]=_0x422275['diagnostic'];}catch(_0x3b4602){let _0x38541f=_0x3b4602['message'];try{_0x38541f=JSON[_0x4a4cf7(0x11e)](_0x3b4602['diagnostic']?.[_0x4a4cf7(0x117)])[_0x4a4cf7(0x136)]||_0x38541f;}catch{}throw Object[_0x4a4cf7(0x186)](fail(_0x3b4602[_0x4a4cf7(0x109)]||classify(_0x38541f),_0x38541f),{'diagnostic':_0x3b4602[_0x4a4cf7(0x191)]});}if(_0x71b61c!==snapshot(this[_0x4a4cf7(0x148)]))throw fail(_0x4a4cf7(0x173),_0x4a4cf7(0x138));atomic(path[_0x4a4cf7(0x151)](this[_0x4a4cf7(0x1d5)],'receipt.json'),{'workspace':this[_0x4a4cf7(0x148)],'snapshot':_0x71b61c,'version':this[_0x4a4cf7(0x171)][_0x4a4cf7(0x17b)],'database':this[_0x4a4cf7(0x12f)],'builtAt':new Date()[_0x4a4cf7(0x183)]()});}async['refresh'](){const _0x1ac9e5=_0x102374,_0x1beaae=this[_0x1ac9e5(0x1bd)]();try{const _0x4266a9=read(path[_0x1ac9e5(0x151)](this[_0x1ac9e5(0x1d5)],'receipt.json'));if(!_0x4266a9||_0x4266a9['version']!==this[_0x1ac9e5(0x171)]['version']||_0x4266a9[_0x1ac9e5(0x12f)]!==this[_0x1ac9e5(0x12f)]||!fs[_0x1ac9e5(0x167)](this[_0x1ac9e5(0x12f)])||_0x4266a9['snapshot']!==snapshot(this[_0x1ac9e5(0x148)]))await this['build']();return read(path['join'](this['directory'],_0x1ac9e5(0x17c)));}finally{_0x1beaae();}}async['standaloneRebuild'](_0x3be0a1=![]){const _0x49cf4d=_0x102374,_0x3008a0=_0x3be0a1?null:this['lock'](),_0x51fa80=path[_0x49cf4d(0x151)](this[_0x49cf4d(0x1d5)],_0x49cf4d(0x165));let _0x3d5a44;try{if(!this['owned']())throw fail(_0x49cf4d(0x114),_0x49cf4d(0x17a));if(this[_0x49cf4d(0x124)]())throw fail(_0x49cf4d(0x147),_0x49cf4d(0x1b8));this[_0x49cf4d(0x1ca)]();if(this[_0x49cf4d(0x10e)]===_0x49cf4d(0x164)&&spelling(this[_0x49cf4d(0x1d7)]()[_0x49cf4d(0x12f)])!==spelling(this[_0x49cf4d(0x12f)]))throw fail(_0x49cf4d(0x13d),_0x49cf4d(0x189));const _0x4ceb47=fs[_0x49cf4d(0x167)](this[_0x49cf4d(0x1cd)])?fs[_0x49cf4d(0x1bc)](this[_0x49cf4d(0x1cd)]):null,_0x170912=_0x4ceb47?_0x4ceb47+_0x49cf4d(0x152)+crypto['randomUUID']():null;_0x3d5a44={'status':_0x49cf4d(0x16e),'backup':_0x170912,'workspace':this[_0x49cf4d(0x148)],'at':new Date()['toISOString']()},atomic(_0x51fa80,_0x3d5a44);if(_0x170912)fs['renameSync'](_0x4ceb47,_0x170912);const _0x36a2f7={};_0x36a2f7[_0x49cf4d(0x192)]=!![],fs[_0x49cf4d(0x12b)](this[_0x49cf4d(0x1cd)],_0x36a2f7),atomic(path[_0x49cf4d(0x151)](this[_0x49cf4d(0x1cd)],_0x49cf4d(0x1ad)),{'owner':_0x49cf4d(0x170),'workspace':this[_0x49cf4d(0x148)],'kind':this[_0x49cf4d(0x10e)]}),await this[_0x49cf4d(0x125)]();const _0x58de09={..._0x3d5a44};return _0x58de09[_0x49cf4d(0x1c5)]=_0x49cf4d(0x14f),atomic(_0x51fa80,_0x58de09),_0x170912;}catch(_0x13741c){if(_0x3d5a44)atomic(_0x51fa80,{..._0x3d5a44,'status':_0x49cf4d(0x1a7),'reason':_0x13741c[_0x49cf4d(0x159)]});throw _0x13741c;}finally{_0x3008a0?.();}}async['recover'](_0x3ba8ef,_0x54c55e){const _0x53d6ab=_0x102374;if(![_0x53d6ab(0x157),_0x53d6ab(0x126)][_0x53d6ab(0x1d8)](_0x54c55e[_0x53d6ab(0x109)])||!this[_0x53d6ab(0x1a9)]())return![];let _0x332651;try{_0x332651=this[_0x53d6ab(0x1bd)]();}catch(_0x3c5c70){const _0x59c453={};return _0x59c453['status']=_0x53d6ab(0x1c7),_0x59c453[_0x53d6ab(0x115)]=_0x3c5c70[_0x53d6ab(0x159)],_0x3ba8ef['indexRecovery']=_0x59c453,![];}const _0x34e0b4=path['join'](this['directory'],_0x53d6ab(0x165));try{if(this[_0x53d6ab(0x10e)]===_0x53d6ab(0x164)&&spelling(this[_0x53d6ab(0x1d7)]()[_0x53d6ab(0x12f)])!==spelling(this[_0x53d6ab(0x12f)]))throw fail('INDEX_PATH_CHANGED',_0x53d6ab(0x189));if(this[_0x53d6ab(0x124)]()){const _0x450fad={};return _0x450fad['status']=_0x53d6ab(0x1c7),_0x450fad[_0x53d6ab(0x115)]='Another\x20live\x20backend\x20is\x20using\x20the\x20cache',_0x3ba8ef[_0x53d6ab(0x1df)]=_0x450fad,![];}const _0x2c3ab6=hash(fs[_0x53d6ab(0x167)](this[_0x53d6ab(0x12f)])?fs[_0x53d6ab(0x17d)](this['database']):_0x53d6ab(0x1ba)),_0x996f3f=read(_0x34e0b4);if(_0x996f3f&&_0x996f3f['status']!==_0x53d6ab(0x18c)&&(_0x996f3f[_0x53d6ab(0x104)]===_0x2c3ab6||_0x996f3f[_0x53d6ab(0x19f)]===_0x2c3ab6))return _0x3ba8ef['indexRecovery']=_0x996f3f,![];const _0x24e942=fs['realpathSync'](this[_0x53d6ab(0x1cd)]),_0x33c989=_0x24e942+_0x53d6ab(0x152)+crypto[_0x53d6ab(0x119)](),_0x3c216b=read(path[_0x53d6ab(0x151)](_0x24e942,'.apt-managed.json')),_0x3242b4={'status':_0x53d6ab(0x16e),'fingerprint':_0x2c3ab6,'backup':_0x33c989,'workspace':this[_0x53d6ab(0x148)],'at':new Date()[_0x53d6ab(0x183)]()};atomic(_0x34e0b4,_0x3242b4),_0x3ba8ef[_0x53d6ab(0x1df)]=_0x3242b4;const _0x4e4b77=_0x3ba8ef[_0x53d6ab(0x106)]===undefined?undefined:_0x3ba8ef['generation']+0x1;await _0x3ba8ef[_0x53d6ab(0x1ac)]();if(_0x3ba8ef[_0x53d6ab(0x106)]!==_0x4e4b77)throw fail('RECOVERY_CANCELLED',_0x53d6ab(0x188));this[_0x53d6ab(0x1ca)]();if(!this[_0x53d6ab(0x1a9)]())throw fail(_0x53d6ab(0x114),_0x53d6ab(0x13a));fs[_0x53d6ab(0x1b1)](_0x24e942,_0x33c989),fs[_0x53d6ab(0x12b)](_0x24e942),atomic(path['join'](_0x24e942,_0x53d6ab(0x1ad)),_0x3c216b),await this[_0x53d6ab(0x125)]();if(_0x3ba8ef[_0x53d6ab(0x106)]!==_0x4e4b77)throw fail(_0x53d6ab(0x1af),'Backend\x20was\x20stopped\x20while\x20rebuilding\x20its\x20index');_0x3ba8ef[_0x53d6ab(0x102)](![],!![]);const _0x5dc908={..._0x3242b4};return _0x5dc908[_0x53d6ab(0x1c5)]=_0x53d6ab(0x14f),_0x3ba8ef['indexRecovery']=_0x5dc908,atomic(_0x34e0b4,_0x3ba8ef[_0x53d6ab(0x1df)]),!![];}catch(_0x4404e2){const _0x426189=hash(fs[_0x53d6ab(0x167)](this[_0x53d6ab(0x12f)])?fs[_0x53d6ab(0x17d)](this[_0x53d6ab(0x12f)]):_0x53d6ab(0x1ba));return _0x3ba8ef[_0x53d6ab(0x1df)]={..._0x3ba8ef['indexRecovery']||{},'status':'failed','failedFingerprint':_0x426189,'reason':_0x4404e2[_0x53d6ab(0x159)]},atomic(_0x34e0b4,_0x3ba8ef[_0x53d6ab(0x1df)]),![];}finally{_0x332651();}}[_0x102374(0x18c)](_0x5418c1){const _0x5b0035=_0x102374;_0x5418c1[_0x5b0035(0x1df)]={..._0x5418c1[_0x5b0035(0x1df)],'status':_0x5b0035(0x18c)},atomic(path[_0x5b0035(0x151)](this[_0x5b0035(0x1d5)],_0x5b0035(0x165)),_0x5418c1[_0x5b0035(0x1df)]);}}const _0x2a97a7={};_0x2a97a7[_0x102374(0x17e)]=IndexStore,_0x2a97a7['snapshot']=snapshot,_0x2a97a7[_0x102374(0x11d)]=responseError,_0x2a97a7[_0x102374(0x133)]=classify,_0x2a97a7['atomic']=atomic,module[_0x102374(0x168)]=_0x2a97a7;require['main']===module&&(async()=>{const _0x2cde1c=_0x102374,_0x4341a3=require('./profiles'),_0x3e2cc3=fs[_0x2cde1c(0x1bc)](process[_0x2cde1c(0x161)][0x2]),_0x13571e=safeDirectory(_0x3e2cc3,_0x2cde1c(0x1cc)),_0x3b3821={'workspace':_0x3e2cc3,'startedAt':new Date()[_0x2cde1c(0x183)](),'status':_0x2cde1c(0x19c),'backends':[]},_0xf8facd=path[_0x2cde1c(0x151)](_0x13571e,_0x2cde1c(0x1a3));atomic(_0xf8facd,_0x3b3821);for(const [_0x204c6c,_0x3a8ea1]of[['codegraph',_0x4341a3[_0x2cde1c(0x1b0)]],['code-review-graph',_0x4341a3[_0x2cde1c(0x185)]]]){let _0x21228b,_0x4eb51b;const _0x5c4d8b={'backend':_0x204c6c,'workspace':_0x3e2cc3,'startedAt':new Date()[_0x2cde1c(0x183)](),'status':'running'};_0x3b3821[_0x2cde1c(0x14a)][_0x2cde1c(0x1d1)](_0x5c4d8b);try{const _0x197edc=_0x3a8ea1(),_0x4dbdc4={};_0x4dbdc4['version']=_0x197edc[_0x2cde1c(0x17b)],_0x4dbdc4[_0x2cde1c(0x193)]=_0x197edc['command'],Object['assign'](_0x5c4d8b,_0x4dbdc4),_0x21228b=new IndexStore(_0x204c6c,_0x3e2cc3,_0x197edc);const _0xad85dd={};_0xad85dd[_0x2cde1c(0x1cd)]=_0x21228b['cache'],_0xad85dd[_0x2cde1c(0x12f)]=_0x21228b[_0x2cde1c(0x12f)],_0xad85dd[_0x2cde1c(0x1a0)]=_0x21228b[_0x2cde1c(0x1a0)]||_0x2cde1c(0x171),Object[_0x2cde1c(0x186)](_0x5c4d8b,_0xad85dd),_0x4eb51b=_0x21228b[_0x2cde1c(0x1bd)]();if(_0x21228b['otherUsers']())throw fail(_0x2cde1c(0x147),_0x2cde1c(0x101));await _0x21228b[_0x2cde1c(0x1bb)](),_0x5c4d8b[_0x2cde1c(0x16b)]=_0x21228b[_0x2cde1c(0x16b)]||null,_0x21228b['checkNativeLocks']();try{await _0x21228b['checkDatabase'](),await _0x21228b[_0x2cde1c(0x125)]();}catch(_0x136d46){if(_0x136d46[_0x2cde1c(0x109)]!=='INDEX_CORRUPT'||!_0x21228b[_0x2cde1c(0x1a9)]()&&!_0x21228b[_0x2cde1c(0x10c)]())throw _0x136d46;_0x5c4d8b[_0x2cde1c(0x184)]=_0x2cde1c(0x11c),_0x5c4d8b['backup']=await _0x21228b[_0x2cde1c(0x1e0)](!![]);}Object[_0x2cde1c(0x186)](_0x5c4d8b,_0x21228b[_0x2cde1c(0x187)],{'status':_0x2cde1c(0x123),'functionalReady':![],'recoveryStatus':_0x5c4d8b[_0x2cde1c(0x184)]||'not-needed'}),_0x4eb51b(),_0x4eb51b=null;const {BackendProcess:_0x2a3837}=require(_0x2cde1c(0x18a)),_0x1cd9ed=_0x204c6c===_0x2cde1c(0x1b0)?[..._0x197edc[_0x2cde1c(0x1d2)],_0x2cde1c(0x149),_0x2cde1c(0x142)]:_0x197edc[_0x2cde1c(0x1d2)],_0x5356b0=new _0x2a3837(_0x204c6c,_0x197edc[_0x2cde1c(0x10a)],_0x1cd9ed,{'cwd':_0x3e2cc3,'env':{..._0x197edc[_0x2cde1c(0x1aa)],..._0x21228b[_0x2cde1c(0x1aa)]},'maxRetries':0x0});_0x5356b0[_0x2cde1c(0x12d)]=_0x21228b;try{_0x5356b0[_0x2cde1c(0x102)](![]);const _0x34e9f8={};_0x34e9f8[_0x2cde1c(0x158)]='apt-index-verification',_0x34e9f8[_0x2cde1c(0x17b)]='1';const _0x5b6e70={};_0x5b6e70['protocolVersion']='2024-11-05',_0x5b6e70[_0x2cde1c(0x1ae)]={},_0x5b6e70[_0x2cde1c(0x113)]=_0x34e9f8,await _0x5356b0[_0x2cde1c(0x15b)](_0x5b6e70);if(!_0x5356b0['functionalReady'])throw fail('INDEX_PROBE_FAILED',_0x2cde1c(0x10d));_0x5c4d8b['functionalReady']=!![],_0x5c4d8b[_0x2cde1c(0x1a4)]&&(_0x5356b0[_0x2cde1c(0x1df)]=read(path['join'](_0x21228b[_0x2cde1c(0x1d5)],_0x2cde1c(0x165))),_0x21228b[_0x2cde1c(0x18c)](_0x5356b0),_0x5c4d8b['recoveryStatus']=_0x2cde1c(0x18c));}finally{await _0x5356b0['stopAndWait']();}}catch(_0x488053){Object[_0x2cde1c(0x186)](_0x5c4d8b,_0x488053[_0x2cde1c(0x191)],{'status':_0x2cde1c(0x1a7),'reasonCode':_0x488053[_0x2cde1c(0x109)]||'INDEX_SETUP_FAILED','message':_0x488053['message']});if(_0x21228b){const _0x1a68f5=read(path[_0x2cde1c(0x151)](_0x21228b[_0x2cde1c(0x1d5)],_0x2cde1c(0x165)));if(_0x1a68f5)Object[_0x2cde1c(0x186)](_0x5c4d8b,{'recoveryStatus':_0x1a68f5[_0x2cde1c(0x1c5)],'backup':_0x1a68f5[_0x2cde1c(0x1a4)]});}console[_0x2cde1c(0x136)]('['+_0x204c6c+']\x20'+_0x5c4d8b['reasonCode']+':\x20'+_0x488053[_0x2cde1c(0x159)]),process[_0x2cde1c(0x15f)]=0x2;}finally{_0x4eb51b?.(),_0x5c4d8b[_0x2cde1c(0x120)]=new Date()[_0x2cde1c(0x183)](),atomic(_0xf8facd,_0x3b3821);}}_0x3b3821[_0x2cde1c(0x1c5)]=process[_0x2cde1c(0x15f)]?_0x2cde1c(0x1a7):'built',_0x3b3821['endedAt']=new Date()[_0x2cde1c(0x183)](),atomic(_0xf8facd,_0x3b3821);})()['catch'](_0x8074b4=>{const _0x320845=_0x102374;console[_0x320845(0x136)](_0x8074b4[_0x320845(0x159)]),process[_0x320845(0x15f)]=0x1;});