apt-mcp-agent-setup 3.0.9 → 3.2.6
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.
- package/README.md +109 -109
- package/bin/cli.js +1 -1
- package/bundle/NOTICES.md +0 -0
- package/bundle/core.enc +0 -0
- package/bundle/mcp-rules.enc +0 -0
- package/bundle/skills-aso.enc +0 -0
- package/bundle/skills-ba.enc +0 -0
- package/bundle/skills-base.enc +0 -0
- package/bundle/skills-be.enc +0 -0
- package/bundle/skills-design.enc +0 -0
- package/bundle/skills-fe.enc +0 -0
- package/bundle/skills-mobile.enc +0 -0
- package/bundle/skills-pm.enc +0 -0
- package/integrity-manifest.json +78 -73
- package/package.json +1 -1
- package/release-check.js +305 -80
- package/src/backends/browser-tools-0.0.82.json +375 -375
- package/src/backends/browser-tools.js +1 -1
- package/src/backends/codegraph-1.6.0.json +180 -180
- package/src/backends/index-command.js +1 -1
- package/src/backends/index-store.js +1 -1
- package/src/backends/profiles.js +1 -1
- package/src/backends/review_graph.py +30 -30
- package/src/core/aso-import.js +1 -1
- package/src/core/catalog.js +1 -1
- package/src/core/codex-host-metadata.js +1 -0
- package/src/core/context-metrics.js +1 -1
- package/src/core/doctor.js +1 -1
- package/src/core/execution.js +1 -1
- package/src/core/hook-bridge.js +1 -1
- package/src/core/host-adapters.js +1 -1
- package/src/core/memory-store.js +1 -1
- package/src/core/model-inventory.js +1 -0
- package/src/core/model-routing.js +1 -1
- package/src/core/npm-cli.js +1 -0
- package/src/core/owned-lock.js +1 -1
- package/src/core/presentations.js +1 -1
- package/src/core/quality.js +1 -0
- package/src/core/runtime-info.js +1 -0
- package/src/core/session.js +1 -1
- package/src/core/skill-names.js +1 -1
- package/src/core/workspace-path.js +1 -1
- package/src/core/xlsx-reader.py +62 -62
- package/src/installer/bounded-command.js +1 -1
- package/src/installer/context-legacy-hashes.json +42 -42
- package/src/installer/global-setup.js +1 -1
- package/src/installer/host-hooks.js +1 -1
- package/src/installer/managed-config.js +1 -1
- package/src/installer/platform-config.js +1 -1
- package/src/installer/prerequisites.js +1 -1
- package/src/installer/presentations-requirements.txt +14 -14
- package/src/installer/presentations.js +1 -1
- package/src/installer/project-setup.js +1 -1
- package/src/installer/runtime-lock.js +1 -1
- package/src/installer/runtime-store.js +1 -1
- package/src/installer/setup-wizard.js +1 -1
- package/src/license/crypto.js +1 -1
- package/src/license/fingerprint.js +1 -1
- package/src/license/terms.js +1 -1
- package/src/license/verify.js +1 -1
- package/src/presets/index.js +1 -1
- package/src/proxy/backends.js +1 -1
- package/src/proxy/browser-sessions.js +1 -1
- package/src/proxy/core-tools.js +1 -1
- package/src/proxy/pipeline.js +1 -1
- package/src/proxy/router.config.js +1 -1
- package/src/proxy/router.js +1 -1
- package/src/proxy/server.js +1 -1
- package/src/templates/AGENTS.md +13 -13
- package/src/templates/CLAUDE.md +13 -13
- package/src/templates/GEMINI.md +13 -13
- package/src/templates/apt-runtime.md +16 -16
- package/src/templates/copilot-instructions.md +13 -13
- package/src/templates/cursorrules.mdc +18 -18
- package/src/templates/design-config.md +52 -52
- package/src/templates/gdrive-config.md +57 -57
- package/src/templates/mcp-tools.md +17 -27
- package/src/templates/windsurfrules.md +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1fa83a=_0x33f7;(function(_0x291a79,_0xb78fc1){const _0x774d05=_0x33f7,_0x1abc48=_0x291a79();while(!![]){try{const _0x561978=-parseInt(_0x774d05(0x190))/0x1+-parseInt(_0x774d05(0x191))/0x2+-parseInt(_0x774d05(0x189))/0x3*(parseInt(_0x774d05(0x18f))/0x4)+parseInt(_0x774d05(0x18d))/0x5+parseInt(_0x774d05(0x18b))/0x6+parseInt(_0x774d05(0x18a))/0x7+parseInt(_0x774d05(0x188))/0x8;if(_0x561978===_0xb78fc1)break;else _0x1abc48['push'](_0x1abc48['shift']());}catch(_0x227b76){_0x1abc48['push'](_0x1abc48['shift']());}}}(_0x478b,0x1f2f5));function _0x33f7(_0xeca9c0,_0x2177b9){_0xeca9c0=_0xeca9c0-0x183;const _0x478b10=_0x478b();let _0x33f768=_0x478b10[_0xeca9c0];if(_0x33f7['BAJFvz']===undefined){var _0x3c827d=function(_0x3034fc){const _0x41729f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4a9682='',_0x1d75fc='';for(let _0x2eec78=0x0,_0x2f2add,_0x2b7c25,_0xed004b=0x0;_0x2b7c25=_0x3034fc['charAt'](_0xed004b++);~_0x2b7c25&&(_0x2f2add=_0x2eec78%0x4?_0x2f2add*0x40+_0x2b7c25:_0x2b7c25,_0x2eec78++%0x4)?_0x4a9682+=String['fromCharCode'](0xff&_0x2f2add>>(-0x2*_0x2eec78&0x6)):0x0){_0x2b7c25=_0x41729f['indexOf'](_0x2b7c25);}for(let _0x7f9c3c=0x0,_0x3495a2=_0x4a9682['length'];_0x7f9c3c<_0x3495a2;_0x7f9c3c++){_0x1d75fc+='%'+('00'+_0x4a9682['charCodeAt'](_0x7f9c3c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1d75fc);};_0x33f7['VolNEo']=_0x3c827d,_0x33f7['uwaEyV']={},_0x33f7['BAJFvz']=!![];}const _0x6e21a6=_0x478b10[0x0],_0x1ee17c=_0xeca9c0+_0x6e21a6,_0x51466e=_0x33f7['uwaEyV'][_0x1ee17c];return!_0x51466e?(_0x33f768=_0x33f7['VolNEo'](_0x33f768),_0x33f7['uwaEyV'][_0x1ee17c]=_0x33f768):_0x33f768=_0x51466e,_0x33f768;}const {tools}=require('./browser-tools-0.0.82.json'),_0x4a9682={};_0x4a9682[_0x1fa83a(0x18e)]=_0x1fa83a(0x18c),_0x4a9682[_0x1fa83a(0x185)]='Stable\x20task\x20identity;\x20reuse\x20for\x20this\x20task.';const _0x1d75fc={};_0x1d75fc[_0x1fa83a(0x18e)]='string',_0x1d75fc[_0x1fa83a(0x185)]=_0x1fa83a(0x187),module['exports']=tools['map'](_0x2eec78=>({..._0x2eec78,'inputSchema':{..._0x2eec78['inputSchema'],'properties':{..._0x2eec78[_0x1fa83a(0x183)][_0x1fa83a(0x186)],'aptTask':_0x4a9682,'aptWorker':_0x1d75fc},'required':[..._0x2eec78['inputSchema'][_0x1fa83a(0x184)]||[],'aptTask']}}));function _0x478b(){const _0x222047=['ChjVCgvYDgLLCW','v29YA2vYigLKzw50Axr5oYbKzwzHDwX0CYb0BYbJB29YzgLUyxrVCI4','mtuXmZe2mgflzMf4wG','mJa1otjnB3Lhzvi','nZe0nZqYBu1QBNz1','mtmZmdi0mK9qCvLesW','C3rYAw5N','mtmXmty1ugHLseDq','DhLWzq','mti0swPgyxjK','mJi1mJngqMfRDey','mZuYmZaYyKjfDfn3','Aw5WDxrty2HLBwe','CMvXDwLYzwq','zgvZy3jPChrPB24'];_0x478b=function(){return _0x222047;};return _0x478b();}
|
|
@@ -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
|
|
1
|
+
const _0x3be193=_0x3ed0;(function(_0x10de1e,_0x97621e){const _0x2ee67d=_0x3ed0,_0x1b47b3=_0x10de1e();while(!![]){try{const _0x23113c=parseInt(_0x2ee67d(0x197))/0x1*(parseInt(_0x2ee67d(0x19a))/0x2)+parseInt(_0x2ee67d(0x17d))/0x3+-parseInt(_0x2ee67d(0x18e))/0x4+-parseInt(_0x2ee67d(0x194))/0x5+-parseInt(_0x2ee67d(0x195))/0x6*(parseInt(_0x2ee67d(0x191))/0x7)+parseInt(_0x2ee67d(0x18d))/0x8*(-parseInt(_0x2ee67d(0x17e))/0x9)+-parseInt(_0x2ee67d(0x183))/0xa*(-parseInt(_0x2ee67d(0x182))/0xb);if(_0x23113c===_0x97621e)break;else _0x1b47b3['push'](_0x1b47b3['shift']());}catch(_0x5f4dc3){_0x1b47b3['push'](_0x1b47b3['shift']());}}}(_0x44c1,0x2eeb7));const {execFile}=require(_0x3be193(0x181));function _0x3ed0(_0x40419e,_0x5e9c86){_0x40419e=_0x40419e-0x17d;const _0x44c12f=_0x44c1();let _0x3ed020=_0x44c12f[_0x40419e];if(_0x3ed0['bbbszt']===undefined){var _0x3bae3e=function(_0x2f5233){const _0x62eef6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30b459='',_0x3e83a2='';for(let _0x41f38e=0x0,_0x1d0f0b,_0x29f249,_0x4da05e=0x0;_0x29f249=_0x2f5233['charAt'](_0x4da05e++);~_0x29f249&&(_0x1d0f0b=_0x41f38e%0x4?_0x1d0f0b*0x40+_0x29f249:_0x29f249,_0x41f38e++%0x4)?_0x30b459+=String['fromCharCode'](0xff&_0x1d0f0b>>(-0x2*_0x41f38e&0x6)):0x0){_0x29f249=_0x62eef6['indexOf'](_0x29f249);}for(let _0x4f9900=0x0,_0xe40298=_0x30b459['length'];_0x4f9900<_0xe40298;_0x4f9900++){_0x3e83a2+='%'+('00'+_0x30b459['charCodeAt'](_0x4f9900)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e83a2);};_0x3ed0['tHVcbd']=_0x3bae3e,_0x3ed0['yEMjbz']={},_0x3ed0['bbbszt']=!![];}const _0x201635=_0x44c12f[0x0],_0x2e17ff=_0x40419e+_0x201635,_0x3796ec=_0x3ed0['yEMjbz'][_0x2e17ff];return!_0x3796ec?(_0x3ed020=_0x3ed0['tHVcbd'](_0x3ed020),_0x3ed0['yEMjbz'][_0x2e17ff]=_0x3ed020):_0x3ed020=_0x3796ec,_0x3ed020;}function _0x44c1(){const _0x409487=['qvbux0Lorevyx1rjtuvpvvrFtvmGBxvZDcbIzsbHihbVC2L0AxzLigLUDgvNzxiGyMvSB3CGmJe0nZq4mZy0oa','ofPpufLntq','C2LNBMfS','qvbux0Lorevyx1rjtuvpvvrFtvm','y29Kzq','otq5mJC1CKzXvKfl','mtm4odK0m1DHAhHYEq','zgLHz25VC3rPyW','DgLTzw91Da','y2HPBgrFChjVy2vZCW','odq5nZeYnLrSAe16va','mtb1B1rlCNm','C3rKB3v0','AM9PBG','su5ervHFqLvjterFrKfjteve','C3rKzxjY','su5ervHFveLnru9vva','DgvZDa','su5ervHFu0LhtKfm','C2XPy2u','BwvZC2fNzq','ohH3uLbfCa','nZm5nJG4A0Ppww1J','Dg9ju09tDhjPBMC','zMLSDgvY','nti3nZm3B0DurKLm','Aw5KzxHuAw1LB3v0','AxnjBNrLz2vY','mtGXndmXnwjNA095wa','mJrUCfjLweq','su5ervHFq09suLvqva','mJy3ndjMBNL2rva','BM93'];_0x44c1=function(){return _0x409487;};return _0x44c1();}function indexTimeout(_0x29f249=process.env){const _0x2af6fe=_0x3be193,_0x4da05e=_0x29f249[_0x2af6fe(0x19c)];if(_0x4da05e===undefined||_0x4da05e==='')return 0x1e*0x3c*0x3e8;const _0x4f9900=Number(_0x4da05e);if(!Number['isSafeInteger'](_0x4f9900)||_0x4f9900<0x1||_0x4f9900>0x7fffffff)throw new Error(_0x2af6fe(0x199));return _0x4f9900;}function runIndexCommand(_0xe40298,_0x89e503,_0x2f5d2e={}){const _0x941125=_0x3be193,_0x3e4a0d=Date[_0x941125(0x198)](),_0xffb41e=_0x2f5d2e[_0x941125(0x180)]??indexTimeout();return new Promise((_0x18fa2a,_0x5e0de2)=>{const _0x3745f0=_0x941125,_0x11628e={'windowsHide':!![],'encoding':'utf8','maxBuffer':0x4*0x400*0x400,..._0x2f5d2e};_0x11628e[_0x3745f0(0x180)]=_0xffb41e,execFile(_0xe40298,_0x89e503,_0x11628e,(_0x371b58,_0x5b56d0,_0x593a7c)=>{const _0x4a375d=_0x3745f0,_0x4fe19d=Date[_0x4a375d(0x198)](),_0xcd2a84=Boolean(_0x371b58?.['killed']&&_0x4fe19d-_0x3e4a0d>=_0xffb41e),_0x253dfa={'executable':_0xe40298,'args':_0x89e503,'startedAt':new Date(_0x3e4a0d)[_0x4a375d(0x18f)](),'endedAt':new Date(_0x4fe19d)[_0x4a375d(0x18f)](),'durationMs':_0x4fe19d-_0x3e4a0d,'exitCode':_0x371b58?Number[_0x4a375d(0x193)](_0x371b58[_0x4a375d(0x19d)])?_0x371b58[_0x4a375d(0x19d)]:null:0x0,'signal':_0x371b58?.['signal']||null,'timedOut':_0xcd2a84,'stdout':String(_0x5b56d0||'')['slice'](-0x3e80),'stderr':String(_0x593a7c||'')[_0x4a375d(0x18b)](-0x3e80)},_0x547d45={};_0x547d45[_0x4a375d(0x184)]=_0x5b56d0,_0x547d45[_0x4a375d(0x187)]=_0x593a7c,_0x547d45[_0x4a375d(0x17f)]=_0x253dfa;if(!_0x371b58)return _0x18fa2a(_0x547d45);const _0x3b106d=[_0x593a7c,_0x5b56d0,_0x371b58[_0x4a375d(0x18c)]][_0x4a375d(0x190)](Boolean)[_0x4a375d(0x185)]('\x0a'),_0x2b46b0=_0xcd2a84?_0x4a375d(0x188):/database disk image is malformed|file is not a database|SQLITE_CORRUPT|SQLITE_NOTADB/i[_0x4a375d(0x189)](_0x3b106d)?_0x4a375d(0x196):/database is locked|SQLITE_BUSY|locked by another process/i[_0x4a375d(0x189)](_0x3b106d)?'INDEX_BUSY':_0x371b58[_0x4a375d(0x19b)]?_0x4a375d(0x18a):_0x4a375d(0x186),_0x12f0cf={};_0x12f0cf['code']=_0x2b46b0,_0x12f0cf[_0x4a375d(0x17f)]=_0x253dfa,_0x12f0cf['cause']=_0x371b58,_0x5e0de2(Object['assign'](new Error(_0x3b106d['slice'](-0x3e80)),_0x12f0cf));});});}const _0x1d0f0b={};_0x1d0f0b[_0x3be193(0x192)]=indexTimeout,_0x1d0f0b['runIndexCommand']=runIndexCommand,module['exports']=_0x1d0f0b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5e1a1f=_0x125b;(function(_0x399fa3,_0x1f5d63){const _0x59a7cf=_0x125b,_0x2ae078=_0x399fa3();while(!![]){try{const _0x1897cc=parseInt(_0x59a7cf(0x1e8))/0x1+-parseInt(_0x59a7cf(0x234))/0x2*(-parseInt(_0x59a7cf(0x1a1))/0x3)+-parseInt(_0x59a7cf(0x16b))/0x4*(-parseInt(_0x59a7cf(0x160))/0x5)+-parseInt(_0x59a7cf(0x17d))/0x6+-parseInt(_0x59a7cf(0x1dd))/0x7+parseInt(_0x59a7cf(0x15c))/0x8*(parseInt(_0x59a7cf(0x213))/0x9)+parseInt(_0x59a7cf(0x210))/0xa*(-parseInt(_0x59a7cf(0x1a6))/0xb);if(_0x1897cc===_0x1f5d63)break;else _0x2ae078['push'](_0x2ae078['shift']());}catch(_0x365e64){_0x2ae078['push'](_0x2ae078['shift']());}}}(_0x5a28,0x24568));const fs=require('fs'),path=require(_0x5e1a1f(0x1e4)),crypto=require(_0x5e1a1f(0x20f)),cp=require(_0x5e1a1f(0x159)),cacheHost=require('os')[_0x5e1a1f(0x1f0)]()+':'+process[_0x5e1a1f(0x1ab)]+':'+process['arch'],{runIndexCommand,indexTimeout}=require(_0x5e1a1f(0x1a8)),{identity,sameWorkspace,containsWorkspace}=require(_0x5e1a1f(0x197)),{acquireRuntimeLock}=require('../core/owned-lock'),run=runIndexCommand,hash=_0x4b02b4=>crypto['createHash'](_0x5e1a1f(0x1e2))['update'](_0x4b02b4)[_0x5e1a1f(0x21c)](_0x5e1a1f(0x1ce)),bridge=path['join'](__dirname,_0x5e1a1f(0x22f)),fail=(_0x49e557,_0x55d1a1)=>Object[_0x5e1a1f(0x1b8)](new Error(_0x55d1a1),{'code':_0x49e557}),spelling=_0x357a40=>process[_0x5e1a1f(0x1ab)]===_0x5e1a1f(0x17c)?path[_0x5e1a1f(0x218)](_0x357a40)[_0x5e1a1f(0x1a2)]():path['resolve'](_0x357a40);function rejectLink(_0x4fc001){const _0x4fbafb=_0x5e1a1f;try{if(fs[_0x4fbafb(0x229)](_0x4fc001)[_0x4fbafb(0x1d2)]())throw fail(_0x4fbafb(0x1c9),'Index\x20metadata\x20must\x20not\x20be\x20a\x20symbolic\x20link');}catch(_0x3bc7e8){if(_0x3bc7e8['code']!==_0x4fbafb(0x171))throw _0x3bc7e8;}}function safeDirectory(_0xbdab23,_0x1ccc04){const _0x4f3082=_0x5e1a1f;if(path[_0x4f3082(0x1ba)](_0x1ccc04)||_0x1ccc04['split'](/[\\/]/)[_0x4f3082(0x22e)]('..'))throw fail(_0x4f3082(0x1c9),_0x4f3082(0x204));let _0x334b39=_0xbdab23;for(const _0x378061 of _0x1ccc04[_0x4f3082(0x1aa)](/[\\/]/)['filter'](Boolean)){_0x334b39=path[_0x4f3082(0x226)](_0x334b39,_0x378061),rejectLink(_0x334b39);const _0x13f0e4={};_0x13f0e4[_0x4f3082(0x16d)]=!![],fs['mkdirSync'](_0x334b39,_0x13f0e4);if(!containsWorkspace(_0xbdab23,_0x334b39))throw fail(_0x4f3082(0x1c9),_0x4f3082(0x204));}return _0x334b39;}function atomic(_0x2930e0,_0x2592a1){const _0x192219=_0x5e1a1f;rejectLink(_0x2930e0);const _0x703707=_0x2930e0+'.'+crypto[_0x192219(0x184)]()+_0x192219(0x1ec);try{const _0x10e936=fs[_0x192219(0x1c7)](_0x703707,'wx');try{fs[_0x192219(0x18a)](_0x10e936,JSON['stringify'](_0x2592a1)),fs[_0x192219(0x1f5)](_0x10e936);}finally{fs['closeSync'](_0x10e936);}fs[_0x192219(0x196)](_0x703707,_0x2930e0);}finally{const _0x275d65={};_0x275d65[_0x192219(0x228)]=!![],fs[_0x192219(0x169)](_0x703707,_0x275d65);}}function read(_0x3ef1b1){const _0x5d6ff8=_0x5e1a1f;try{return rejectLink(_0x3ef1b1),JSON[_0x5d6ff8(0x182)](fs[_0x5d6ff8(0x206)](_0x3ef1b1,_0x5d6ff8(0x1c4)));}catch(_0x31ceef){if(_0x31ceef[_0x5d6ff8(0x202)]==='ENOENT')return null;throw _0x31ceef;}}function classify(_0x21813f){const _0x315b73=_0x5e1a1f;if(/database disk image is malformed|file is not a database|SQLITE_CORRUPT|SQLITE_NOTADB/i[_0x315b73(0x1a5)](_0x21813f))return'INDEX_CORRUPT';if(/not indexed|no index|not initialized|no codegraph project|index (?:missing|invalid|corrupt)/i[_0x315b73(0x1a5)](_0x21813f))return _0x315b73(0x1b4);return _0x315b73(0x207);}function responseError(_0x42f5d0){const _0x74bca5=_0x5e1a1f,_0x1c9a54=_0x42f5d0?.[_0x74bca5(0x1c2)],_0x402c7d=_0x1c9a54?.[_0x74bca5(0x195)],_0x47029d=_0x1c9a54?.[_0x74bca5(0x1ea)]?.[_0x74bca5(0x205)](_0x320986=>_0x320986[_0x74bca5(0x181)]==='text')['map'](_0x5a327f=>_0x5a327f['text'])[_0x74bca5(0x226)]('\x0a'),_0x51264f=_0x42f5d0?.[_0x74bca5(0x166)]?.[_0x74bca5(0x1bc)]||typeof _0x42f5d0?.[_0x74bca5(0x166)]===_0x74bca5(0x1d1)&&_0x42f5d0[_0x74bca5(0x166)]||_0x402c7d?.[_0x74bca5(0x166)]||_0x47029d||_0x74bca5(0x17e);return fail(classify(_0x51264f),String(_0x51264f)[_0x74bca5(0x212)](0x0,0x640));}function snapshot(_0x4def6a){const _0x3cc381=_0x5e1a1f,_0xfa4173=[],_0x1cb4da=new Set([_0x3cc381(0x175),'.svn','.agents',_0x3cc381(0x1db),_0x3cc381(0x1ee),_0x3cc381(0x190),_0x3cc381(0x216),_0x3cc381(0x16e),_0x3cc381(0x215),_0x3cc381(0x1c0),'dist','build']),_0x447eb8=_0x2e80d9=>{const _0x866fb9=_0x3cc381,_0x1c2c56={};_0x1c2c56['withFileTypes']=!![];for(const _0x30d2da of fs[_0x866fb9(0x15d)](_0x2e80d9,_0x1c2c56)[_0x866fb9(0x180)]((_0x1ba5be,_0x514c16)=>_0x1ba5be[_0x866fb9(0x193)][_0x866fb9(0x158)](_0x514c16[_0x866fb9(0x193)]))){if(_0x1cb4da[_0x866fb9(0x199)](_0x30d2da[_0x866fb9(0x193)])||_0x30d2da[_0x866fb9(0x193)][_0x866fb9(0x1af)](_0x866fb9(0x1fa))||_0x30d2da['name'][_0x866fb9(0x22e)](_0x866fb9(0x1b0))||_0x30d2da[_0x866fb9(0x1d2)]())continue;const _0x3f7916=path[_0x866fb9(0x226)](_0x2e80d9,_0x30d2da[_0x866fb9(0x193)]);if(_0x30d2da[_0x866fb9(0x1ae)]())_0x447eb8(_0x3f7916);else{if(_0x30d2da[_0x866fb9(0x19a)]())_0xfa4173[_0x866fb9(0x1bd)]([path[_0x866fb9(0x20b)](_0x4def6a,_0x3f7916)[_0x866fb9(0x236)](/\\/g,'/'),hash(fs['readFileSync'](_0x3f7916))]);}}};return _0x447eb8(_0x4def6a),hash(JSON['stringify'](_0xfa4173));}function live(_0x4401b3){const _0x27e495=_0x5e1a1f;if(!Number[_0x27e495(0x15b)](_0x4401b3)||_0x4401b3<=0x0)return![];try{return process[_0x27e495(0x1bf)](_0x4401b3,0x0),!![];}catch(_0x2d97ee){return _0x2d97ee[_0x27e495(0x202)]!==_0x27e495(0x157);}}function _0x125b(_0x43cda8,_0x32eac5){_0x43cda8=_0x43cda8-0x154;const _0x5a28e1=_0x5a28();let _0x125bd9=_0x5a28e1[_0x43cda8];if(_0x125b['MYQmEA']===undefined){var _0x5026b4=function(_0x49205c){const _0x3fb68a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x9f0daf='',_0x50d16b='';for(let _0x289b2f=0x0,_0x1330ec,_0x1ad4c0,_0x5b104d=0x0;_0x1ad4c0=_0x49205c['charAt'](_0x5b104d++);~_0x1ad4c0&&(_0x1330ec=_0x289b2f%0x4?_0x1330ec*0x40+_0x1ad4c0:_0x1ad4c0,_0x289b2f++%0x4)?_0x9f0daf+=String['fromCharCode'](0xff&_0x1330ec>>(-0x2*_0x289b2f&0x6)):0x0){_0x1ad4c0=_0x3fb68a['indexOf'](_0x1ad4c0);}for(let _0x2e9a06=0x0,_0x148896=_0x9f0daf['length'];_0x2e9a06<_0x148896;_0x2e9a06++){_0x50d16b+='%'+('00'+_0x9f0daf['charCodeAt'](_0x2e9a06)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50d16b);};_0x125b['DNKUWN']=_0x5026b4,_0x125b['jtDOlQ']={},_0x125b['MYQmEA']=!![];}const _0x52dcf5=_0x5a28e1[0x0],_0x3bef00=_0x43cda8+_0x52dcf5,_0x516a86=_0x125b['jtDOlQ'][_0x3bef00];return!_0x516a86?(_0x125bd9=_0x125b['DNKUWN'](_0x125bd9),_0x125b['jtDOlQ'][_0x3bef00]=_0x125bd9):_0x125bd9=_0x516a86,_0x125bd9;}class IndexStore{constructor(_0x40ab6a,_0x1af962,_0x2dcb2a){const _0x1fea3d=_0x5e1a1f;this[_0x1fea3d(0x18b)]=_0x40ab6a,this['workspace']=fs[_0x1fea3d(0x15e)](_0x1af962),this[_0x1fea3d(0x20a)]=_0x2dcb2a,this[_0x1fea3d(0x154)]=safeDirectory(this[_0x1fea3d(0x170)],_0x1fea3d(0x20c)+_0x40ab6a);if(!containsWorkspace(this['workspace'],this[_0x1fea3d(0x154)]))throw fail('UNSAFE_INDEX',_0x1fea3d(0x1be));this['lockPath']=path[_0x1fea3d(0x226)](this[_0x1fea3d(0x154)],'cache.lock'),this['users']=safeDirectory(this[_0x1fea3d(0x170)],'.agents/runtime/backends/'+_0x40ab6a+_0x1fea3d(0x188)),this['userFile']=path[_0x1fea3d(0x226)](this[_0x1fea3d(0x1e9)],crypto['randomUUID']()+'.json');if(_0x40ab6a===_0x1fea3d(0x20e)){const _0xe181bc=path['join'](this['workspace'],_0x1fea3d(0x190));if(!fs['existsSync'](_0xe181bc))fs[_0x1fea3d(0x179)](_0xe181bc);this['env']={'CRG_DATA_DIR':path[_0x1fea3d(0x226)](this[_0x1fea3d(0x170)],_0x1fea3d(0x221),_0x1fea3d(0x21d),_0x1fea3d(0x1e7))};const _0x10dd10=this[_0x1fea3d(0x191)]();this['cache']=_0x10dd10[_0x1fea3d(0x1fd)],this[_0x1fea3d(0x1c8)]=_0x10dd10[_0x1fea3d(0x1c8)],this[_0x1fea3d(0x183)]=_0x10dd10[_0x1fea3d(0x235)];}else{this['env']=_0x2dcb2a[_0x1fea3d(0x22c)]||{};if(_0x2dcb2a[_0x1fea3d(0x168)]&&!/^\.codegraph(?:-[a-z0-9]+-[a-z0-9]+)?$/[_0x1fea3d(0x1a5)](_0x2dcb2a[_0x1fea3d(0x168)]))throw fail(_0x1fea3d(0x1c9),_0x1fea3d(0x1f3));this[_0x1fea3d(0x15a)]=path[_0x1fea3d(0x226)](this[_0x1fea3d(0x170)],_0x2dcb2a[_0x1fea3d(0x168)]||_0x1fea3d(0x1ee)),this[_0x1fea3d(0x1c8)]=path['join'](this[_0x1fea3d(0x15a)],_0x1fea3d(0x231));}const _0x43196c=this[_0x1fea3d(0x19e)]();try{this['prepare']();}finally{_0x43196c();}}['resolveReview'](){const _0x18cd42=_0x5e1a1f,_0x1f2bf7=cp['execFileSync'](this[_0x18cd42(0x20a)][_0x18cd42(0x192)],[bridge,_0x18cd42(0x18c),this[_0x18cd42(0x170)]],{'env':{...process.env,...this[_0x18cd42(0x22c)]},'windowsHide':!![],'encoding':'utf8','timeout':0x3a98});return JSON[_0x18cd42(0x182)](_0x1f2bf7);}['prepare'](){const _0xc40ff2=_0x5e1a1f,_0x3720b5=this['kind']===_0xc40ff2(0x22b)?this['cache']:path[_0xc40ff2(0x226)](this[_0xc40ff2(0x170)],_0xc40ff2(0x221),_0xc40ff2(0x21d),_0xc40ff2(0x1e7)),_0x3f99de=fs[_0xc40ff2(0x1da)](this[_0xc40ff2(0x15a)]);if(!_0x3f99de&&spelling(this[_0xc40ff2(0x15a)])===spelling(_0x3720b5)){safeDirectory(this[_0xc40ff2(0x170)],path[_0xc40ff2(0x20b)](this[_0xc40ff2(0x170)],this[_0xc40ff2(0x15a)]));if(!containsWorkspace(this['workspace'],this[_0xc40ff2(0x15a)]))throw fail(_0xc40ff2(0x1c9),'Cache\x20escapes\x20workspace');atomic(path['join'](this['cache'],'.apt-managed.json'),{'owner':_0xc40ff2(0x17f),'workspace':this['workspace'],'kind':this['kind'],'host':cacheHost});}}['adoptLegacy'](){const _0x1d822f=_0x5e1a1f;if(this[_0x1d822f(0x201)]())return!![];const _0x109515=this['kind']===_0x1d822f(0x22b)?'.codegraph':_0x1d822f(0x217);if(spelling(this[_0x1d822f(0x15a)])!==spelling(path[_0x1d822f(0x226)](this[_0x1d822f(0x170)],_0x109515)))return![];if(identity(this[_0x1d822f(0x15a)])!==spelling(path['join'](this[_0x1d822f(0x170)],_0x109515)))return![];const _0xf05ba1=read(path[_0x1d822f(0x226)](this['workspace'],_0x1d822f(0x214))),_0x5e2a14=_0x1d822f(0x178),_0x215a52=_0xf05ba1?.[_0x1d822f(0x1de)]?.[_0x5e2a14];if(!_0x215a52||!_0xf05ba1[_0x1d822f(0x227)]?.[_0x1d822f(0x22e)](_0x5e2a14))return![];const _0x4bc609=path['join'](this[_0x1d822f(0x170)],_0x5e2a14);rejectLink(path[_0x1d822f(0x1d6)](_0x4bc609)),rejectLink(_0x4bc609);if(hash(fs[_0x1d822f(0x206)](_0x4bc609))!==_0x215a52)return![];for(const _0x2e58bd of['',_0x1d822f(0x1cc),_0x1d822f(0x189)])rejectLink(this[_0x1d822f(0x1c8)]+_0x2e58bd);this[_0x1d822f(0x1fb)]();if(this[_0x1d822f(0x1cf)]())throw fail('INDEX_BUSY','Another\x20backend\x20is\x20using\x20the\x20legacy\x20cache');const _0x5d65b9={};return _0x5d65b9[_0x1d822f(0x194)]=_0xf05ba1[_0x1d822f(0x1ed)],_0x5d65b9[_0x1d822f(0x223)]=_0x5e2a14,_0x5d65b9['digest']=_0x215a52,atomic(path[_0x1d822f(0x226)](this[_0x1d822f(0x15a)],_0x1d822f(0x16f)),{'owner':_0x1d822f(0x17f),'workspace':this[_0x1d822f(0x170)],'kind':this[_0x1d822f(0x18b)],'provenance':_0x5d65b9}),!![];}[_0x5e1a1f(0x201)](){const _0x3f0400=_0x5e1a1f;try{const _0x395442=read(path[_0x3f0400(0x226)](this['cache'],_0x3f0400(0x16f)));for(const _0x38e344 of['','-wal',_0x3f0400(0x189)])rejectLink(this[_0x3f0400(0x1c8)]+_0x38e344);const _0x3d89fd=identity(this[_0x3f0400(0x15a)]),_0x3e6a09=this[_0x3f0400(0x18b)]==='codegraph'?[this[_0x3f0400(0x20a)]['cacheDirectory']||_0x3f0400(0x1ee),_0x3f0400(0x1ee),_0x3f0400(0x1fe)]:[_0x3f0400(0x217)];return _0x395442?.['owner']===_0x3f0400(0x17f)&&sameWorkspace(_0x395442['workspace'],this['workspace'])&&_0x3e6a09[_0x3f0400(0x167)](_0x3c60b8=>{const _0x7cea85=_0x3f0400,_0x202130=path[_0x7cea85(0x218)](this[_0x7cea85(0x170)],_0x3c60b8);return _0x3d89fd===(process[_0x7cea85(0x1ab)]===_0x7cea85(0x17c)?_0x202130[_0x7cea85(0x1a2)]():_0x202130);});}catch{return![];}}[_0x5e1a1f(0x19e)](){const _0x45a99b=_0x5e1a1f;rejectLink(this[_0x45a99b(0x1b3)]);const _0x4f7281=acquireRuntimeLock(this[_0x45a99b(0x1b3)],0x0,cacheHost);if(!_0x4f7281)throw fail(_0x45a99b(0x1e0),_0x45a99b(0x1b6));return _0x4f7281;}[_0x5e1a1f(0x22d)](_0xd276fd=null,_0x2ee403=![]){const _0x460581=_0x5e1a1f,_0x391363=_0x2ee403?null:this[_0x460581(0x19e)]();try{atomic(this[_0x460581(0x1f1)],{'ownerPid':process['pid'],'childPid':_0xd276fd,'workspace':this[_0x460581(0x170)],'host':cacheHost});}finally{_0x391363?.();}}[_0x5e1a1f(0x186)](){const _0x54d943=_0x5e1a1f,_0xff263b={};_0xff263b['force']=!![],fs['rmSync'](this[_0x54d943(0x1f1)],_0xff263b);}[_0x5e1a1f(0x1cf)](){const _0x51b8bc=_0x5e1a1f;return fs['readdirSync'](this[_0x51b8bc(0x1e9)])['filter'](_0x1c919c=>_0x1c919c[_0x51b8bc(0x1bb)]('.json'))['some'](_0x411eef=>{const _0x70cb45=_0x51b8bc,_0xbb886a=path['join'](this[_0x70cb45(0x1e9)],_0x411eef);if(_0xbb886a===this['userFile'])return![];const _0x2141b3=read(_0xbb886a);if(!_0x2141b3||_0x2141b3[_0x70cb45(0x1d8)]!==cacheHost||live(_0x2141b3[_0x70cb45(0x1e6)])||live(_0x2141b3[_0x70cb45(0x176)]))return!![];return fs[_0x70cb45(0x162)](_0xbb886a),![];});}[_0x5e1a1f(0x1fb)](){const _0x2005c5=_0x5e1a1f;for(const _0x59f182 of[_0x2005c5(0x1dc),_0x2005c5(0x1a7)]){const _0x7c7c62=path[_0x2005c5(0x226)](this[_0x2005c5(0x15a)],_0x59f182);if(!fs[_0x2005c5(0x1da)](_0x7c7c62))continue;rejectLink(_0x7c7c62);const _0x117cc5=fs[_0x2005c5(0x206)](_0x7c7c62,'utf8')[_0x2005c5(0x19b)]();let _0x2ba7b6;try{_0x2ba7b6=_0x59f182===_0x2005c5(0x1a7)?JSON[_0x2005c5(0x182)](_0x117cc5)[_0x2005c5(0x1eb)]:Number(_0x117cc5);}catch{}if(!Number[_0x2005c5(0x15b)](_0x2ba7b6)||_0x2ba7b6<=0x0||live(_0x2ba7b6)||Date[_0x2005c5(0x224)]()-fs['statSync'](_0x7c7c62)[_0x2005c5(0x174)]<0x1d4c0)throw fail(_0x2005c5(0x1e0),'Cache\x20lock\x20'+_0x59f182+_0x2005c5(0x161));}}async['checkDatabase'](){const _0x2b62ec=_0x5e1a1f;if(!fs['existsSync'](this['database'])){if([_0x2b62ec(0x1cc),'-shm'][_0x2b62ec(0x167)](_0x5672e3=>fs[_0x2b62ec(0x1da)](this[_0x2b62ec(0x1c8)]+_0x5672e3)))throw fail(_0x2b62ec(0x219),_0x2b62ec(0x1a3));return;}for(const _0x5984cc of['',_0x2b62ec(0x1cc),_0x2b62ec(0x189)])rejectLink(this[_0x2b62ec(0x1c8)]+_0x5984cc);this[_0x2b62ec(0x18b)]==='codegraph'?await run(this[_0x2b62ec(0x20a)][_0x2b62ec(0x192)],[...this[_0x2b62ec(0x20a)][_0x2b62ec(0x1ad)][_0x2b62ec(0x212)](0x0,-0x1),'-e',_0x2b62ec(0x164),this['database']],{'timeout':indexTimeout()}):await run(this[_0x2b62ec(0x20a)][_0x2b62ec(0x192)],['-c',_0x2b62ec(0x1b5),this['database']],{'timeout':indexTimeout()});}async[_0x5e1a1f(0x17a)](){const _0x56c6b0=_0x5e1a1f;if(this[_0x56c6b0(0x18b)]!==_0x56c6b0(0x22b)||!this['profile'][_0x56c6b0(0x168)]||fs[_0x56c6b0(0x1da)](this[_0x56c6b0(0x1c8)]))return![];const _0x420103=path['join'](this[_0x56c6b0(0x170)],_0x56c6b0(0x1ee));if(!fs['existsSync'](path[_0x56c6b0(0x226)](_0x420103,'codegraph.db')))return![];const _0x157286=Object[_0x56c6b0(0x1b8)](Object['create'](Object[_0x56c6b0(0x18f)](this)),this,{'cache':_0x420103,'database':path[_0x56c6b0(0x226)](_0x420103,_0x56c6b0(0x231)),'env':{...this[_0x56c6b0(0x22c)],'CODEGRAPH_DIR':_0x56c6b0(0x1ee)}});try{const _0x20d18b=read(path[_0x56c6b0(0x226)](_0x420103,_0x56c6b0(0x16f)));if(_0x20d18b?.[_0x56c6b0(0x1d8)]!==cacheHost){const _0x4b11da={};return _0x4b11da[_0x56c6b0(0x156)]=_0x56c6b0(0x1e5),_0x4b11da['reason']='INDEX_HOST_UNVERIFIED',this[_0x56c6b0(0x1c3)]=_0x4b11da,![];}_0x157286[_0x56c6b0(0x1fb)]();if(_0x157286[_0x56c6b0(0x1cf)]()||!_0x157286[_0x56c6b0(0x201)]()&&!_0x157286[_0x56c6b0(0x1c1)]())return![];await _0x157286[_0x56c6b0(0x1a9)]();}catch(_0x47b792){const _0x19add5={};return _0x19add5[_0x56c6b0(0x156)]=_0x56c6b0(0x1e5),_0x19add5['reason']=_0x47b792['code']||_0x47b792[_0x56c6b0(0x1bc)],this['legacyMigration']=_0x19add5,![];}if(!this[_0x56c6b0(0x201)]()||fs['readdirSync'](this['cache'])[_0x56c6b0(0x167)](_0x222006=>_0x222006!==_0x56c6b0(0x16f)))return![];const _0x42e10a=this[_0x56c6b0(0x15a)]+_0x56c6b0(0x1b0)+crypto[_0x56c6b0(0x184)]();fs['renameSync'](this['cache'],_0x42e10a);try{fs[_0x56c6b0(0x196)](_0x420103,this['cache']);}catch(_0x525936){fs[_0x56c6b0(0x196)](_0x42e10a,this[_0x56c6b0(0x15a)]);throw _0x525936;}return this['legacyMigration']={'status':_0x56c6b0(0x1a0),'from':_0x420103,'to':this[_0x56c6b0(0x15a)]},!![];}async[_0x5e1a1f(0x16a)](){const _0x1357e7=_0x5e1a1f;if(!this[_0x1357e7(0x201)]()&&!this['adoptLegacy']())throw fail(_0x1357e7(0x1c9),_0x1357e7(0x1cb));if(this[_0x1357e7(0x18b)]===_0x1357e7(0x22b)){const _0x418fce=fs[_0x1357e7(0x1da)](this[_0x1357e7(0x1c8)]),_0x346abe=await run(this[_0x1357e7(0x20a)][_0x1357e7(0x192)],[...this[_0x1357e7(0x20a)][_0x1357e7(0x1ad)],_0x418fce?_0x1357e7(0x1ca):_0x1357e7(0x1c5),this['workspace'],_0x418fce?_0x1357e7(0x185):_0x1357e7(0x1f2)],{'cwd':this['workspace'],'env':{...process.env,...this['env']},'windowsHide':!![],'timeout':indexTimeout(),'maxBuffer':0x4*0x400*0x400});this['lastBuild']=_0x346abe[_0x1357e7(0x211)];return;}const _0x307a2f=this['resolveReview']();if(path[_0x1357e7(0x218)](_0x307a2f[_0x1357e7(0x1c8)])!==path[_0x1357e7(0x218)](this['database']))throw fail(_0x1357e7(0x177),_0x1357e7(0x172));const _0x38b589=snapshot(this['workspace']);try{const _0x4fda65=await run(this[_0x1357e7(0x20a)][_0x1357e7(0x192)],[bridge,_0x1357e7(0x16a),this[_0x1357e7(0x170)]],{'cwd':this[_0x1357e7(0x170)],'env':{...process.env,...this[_0x1357e7(0x22c)]},'windowsHide':!![],'timeout':indexTimeout(),'maxBuffer':0x4*0x400*0x400});JSON[_0x1357e7(0x182)](_0x4fda65['stdout']),this['lastBuild']=_0x4fda65[_0x1357e7(0x211)];}catch(_0x193c74){let _0x385617=_0x193c74[_0x1357e7(0x1bc)];try{_0x385617=JSON['parse'](_0x193c74[_0x1357e7(0x211)]?.['stdout'])[_0x1357e7(0x166)]||_0x385617;}catch{}throw Object[_0x1357e7(0x1b8)](fail(_0x193c74[_0x1357e7(0x202)]||classify(_0x385617),_0x385617),{'diagnostic':_0x193c74[_0x1357e7(0x211)]});}if(_0x38b589!==snapshot(this['workspace']))throw fail(_0x1357e7(0x16c),_0x1357e7(0x209));atomic(path[_0x1357e7(0x226)](this[_0x1357e7(0x154)],_0x1357e7(0x18e)),{'workspace':this[_0x1357e7(0x170)],'snapshot':_0x38b589,'version':this['profile'][_0x1357e7(0x1ed)],'database':this[_0x1357e7(0x1c8)],'builtAt':new Date()['toISOString']()});}async['refresh'](){const _0x41f6a2=_0x5e1a1f,_0x5a8dcb=this[_0x41f6a2(0x19e)]();try{const _0x42296d=read(path[_0x41f6a2(0x226)](this[_0x41f6a2(0x154)],_0x41f6a2(0x18e)));if(!_0x42296d||_0x42296d['version']!==this[_0x41f6a2(0x20a)]['version']||_0x42296d[_0x41f6a2(0x1c8)]!==this['database']||!fs[_0x41f6a2(0x1da)](this[_0x41f6a2(0x1c8)])||_0x42296d['snapshot']!==snapshot(this[_0x41f6a2(0x170)]))await this[_0x41f6a2(0x16a)]();return read(path['join'](this[_0x41f6a2(0x154)],_0x41f6a2(0x18e)));}finally{_0x5a8dcb();}}async[_0x5e1a1f(0x1b9)](_0x47c335=![]){const _0x16794c=_0x5e1a1f,_0x44814b=_0x47c335?null:this['lock'](),_0x49ef1c=path['join'](this[_0x16794c(0x154)],_0x16794c(0x1f4));let _0x516846;try{if(!this[_0x16794c(0x201)]())throw fail(_0x16794c(0x1c9),'Cache\x20ownership\x20is\x20not\x20proven');if(this[_0x16794c(0x1cf)]())throw fail(_0x16794c(0x1e0),'Another\x20live\x20backend\x20is\x20using\x20the\x20cache');this[_0x16794c(0x1fb)]();if(this[_0x16794c(0x18b)]===_0x16794c(0x20e)&&spelling(this['resolveReview']()[_0x16794c(0x1c8)])!==spelling(this[_0x16794c(0x1c8)]))throw fail(_0x16794c(0x177),'Review\x20registry\x20changed\x20the\x20active\x20database');const _0x1fc1a1=fs['existsSync'](this[_0x16794c(0x15a)])?fs['realpathSync'](this['cache']):null,_0x5e52fe=_0x1fc1a1?_0x1fc1a1+_0x16794c(0x1b0)+crypto[_0x16794c(0x184)]():null;_0x516846={'status':_0x16794c(0x1f6),'backup':_0x5e52fe,'workspace':this[_0x16794c(0x170)],'at':new Date()['toISOString']()},atomic(_0x49ef1c,_0x516846);if(_0x5e52fe)fs[_0x16794c(0x196)](_0x1fc1a1,_0x5e52fe);const _0x353367={};_0x353367['recursive']=!![],fs[_0x16794c(0x179)](this[_0x16794c(0x15a)],_0x353367),atomic(path[_0x16794c(0x226)](this['cache'],_0x16794c(0x16f)),{'owner':_0x16794c(0x17f),'workspace':this[_0x16794c(0x170)],'kind':this[_0x16794c(0x18b)]}),await this[_0x16794c(0x16a)]();const _0x560528={..._0x516846};return _0x560528[_0x16794c(0x156)]='rebuilt',atomic(_0x49ef1c,_0x560528),_0x5e52fe;}catch(_0x3a046a){if(_0x516846)atomic(_0x49ef1c,{..._0x516846,'status':_0x16794c(0x222),'reason':_0x3a046a[_0x16794c(0x1bc)]});throw _0x3a046a;}finally{_0x44814b?.();}}async['recover'](_0x58a60d,_0x24b2e1){const _0x164627=_0x5e1a1f;if(![_0x164627(0x1b4),'INDEX_CORRUPT'][_0x164627(0x22e)](_0x24b2e1[_0x164627(0x202)])||!this[_0x164627(0x201)]())return![];let _0x29718c;try{_0x29718c=this[_0x164627(0x19e)]();}catch(_0x2c3610){const _0x3aca5a={};return _0x3aca5a[_0x164627(0x156)]='busy',_0x3aca5a[_0x164627(0x1e3)]=_0x2c3610[_0x164627(0x1bc)],_0x58a60d[_0x164627(0x1d0)]=_0x3aca5a,![];}const _0x580558=path[_0x164627(0x226)](this[_0x164627(0x154)],_0x164627(0x1f4));try{if(this['kind']===_0x164627(0x20e)&&spelling(this['resolveReview']()['database'])!==spelling(this[_0x164627(0x1c8)]))throw fail(_0x164627(0x177),_0x164627(0x172));if(this['otherUsers']()){const _0x37341d={};return _0x37341d['status']=_0x164627(0x1f7),_0x37341d[_0x164627(0x1e3)]=_0x164627(0x187),_0x58a60d[_0x164627(0x1d0)]=_0x37341d,![];}const _0x5ed6e0=hash(fs[_0x164627(0x1da)](this[_0x164627(0x1c8)])?fs[_0x164627(0x206)](this[_0x164627(0x1c8)]):_0x164627(0x163)),_0x1a4c4e=read(_0x580558);if(_0x1a4c4e&&_0x1a4c4e[_0x164627(0x156)]!=='recovered'&&(_0x1a4c4e[_0x164627(0x17b)]===_0x5ed6e0||_0x1a4c4e['failedFingerprint']===_0x5ed6e0))return _0x58a60d[_0x164627(0x1d0)]=_0x1a4c4e,![];const _0x15dec8=fs[_0x164627(0x15e)](this[_0x164627(0x15a)]),_0x25156a=_0x15dec8+_0x164627(0x1b0)+crypto[_0x164627(0x184)](),_0x8cdbe4=read(path[_0x164627(0x226)](_0x15dec8,_0x164627(0x16f))),_0x5d3727={'status':_0x164627(0x1f6),'fingerprint':_0x5ed6e0,'backup':_0x25156a,'workspace':this[_0x164627(0x170)],'at':new Date()[_0x164627(0x21e)]()};atomic(_0x580558,_0x5d3727),_0x58a60d[_0x164627(0x1d0)]=_0x5d3727;const _0x49c775=_0x58a60d['generation']===undefined?undefined:_0x58a60d[_0x164627(0x21b)]+0x1;await _0x58a60d[_0x164627(0x1c6)]();if(_0x58a60d['generation']!==_0x49c775)throw fail(_0x164627(0x15f),'Backend\x20was\x20stopped\x20during\x20recovery');this['checkNativeLocks']();if(!this[_0x164627(0x201)]())throw fail(_0x164627(0x1c9),_0x164627(0x19f));fs['renameSync'](_0x15dec8,_0x25156a),fs['mkdirSync'](_0x15dec8),atomic(path[_0x164627(0x226)](_0x15dec8,_0x164627(0x16f)),_0x8cdbe4),await this[_0x164627(0x16a)]();if(_0x58a60d[_0x164627(0x21b)]!==_0x49c775)throw fail(_0x164627(0x15f),_0x164627(0x232));_0x58a60d[_0x164627(0x21f)](![],!![]);const _0x38232b={..._0x5d3727};return _0x38232b[_0x164627(0x156)]='rebuilt',_0x58a60d[_0x164627(0x1d0)]=_0x38232b,atomic(_0x580558,_0x58a60d['indexRecovery']),!![];}catch(_0x4d3338){const _0x4fc70f=hash(fs[_0x164627(0x1da)](this[_0x164627(0x1c8)])?fs[_0x164627(0x206)](this['database']):_0x164627(0x163));return _0x58a60d[_0x164627(0x1d0)]={..._0x58a60d['indexRecovery']||{},'status':_0x164627(0x222),'failedFingerprint':_0x4fc70f,'reason':_0x4d3338[_0x164627(0x1bc)]},atomic(_0x580558,_0x58a60d[_0x164627(0x1d0)]),![];}finally{_0x29718c();}}['recovered'](_0x3aa238){const _0x2933f0=_0x5e1a1f;_0x3aa238[_0x2933f0(0x1d0)]={..._0x3aa238[_0x2933f0(0x1d0)],'status':_0x2933f0(0x1a4)},atomic(path[_0x2933f0(0x226)](this[_0x2933f0(0x154)],_0x2933f0(0x1f4)),_0x3aa238[_0x2933f0(0x1d0)]);}}const _0x489a73={};function _0x5a28(){const _0x5a06a9=['CMvJB3zLCMvK','DgvZDa','ndrWChzOq0O','zgfLBw9UlNbPza','lI9PBMrLEc1JB21Tyw5K','y2HLy2TeyxrHyMfZzq','C3bSAxq','CgXHDgzVCM0','yxjNDG','yxjNCW','AxneAxjLy3rVCNK','C3rHCNrZv2L0Aa','lMfWDc1IywnRDxaT','zNvUy3rPB25HBfjLywr5','CxvHCMfUDgLUAw5N','Bg9JA1bHDgG','su5ervHFtuLtu0LorW','Aw1WB3j0ihnXBgL0ztmSC3LZlhbHDgHSAwi7igm9C3fSAxrLmY5JB25Uzwn0khbHDgHSAwiUugf0AcHZExmUyxjNDLSXxsKUyxnFDxjPkcKRjZ9TB2rLpxjVjYX1CMK9vhj1zsK7ihjVD3m9yY5LEgvJDxrLkcDquKfhtueGAw50zwDYAxr5x2nOzwnRjYKUzMv0y2HHBgWOktSGyY5JBg9ZzsGPoYbHC3nLCNqGywXSkhjBmf09psDVAYCGzM9YihiGAw4GCM93CYKSicDKyxrHyMfZzsbKAxnRigLTywDLigLZig1HBgzVCM1LzcC','sw5KzxGGBwfPBNrLBMfUy2uGAxmGyNvZEtSGCMv0CNKGywz0zxiGDgHLign1CNjLBNqGB3bLCMf0Aw9UigzPBMLZAgvZ','y2XPzw50sw5MBW','yxnZAwDU','C3rHBMrHBg9UzvjLyNvPBgq','AxnbyNnVBhv0zq','zw5KC1DPDgG','BwvZC2fNzq','ChvZAa','qMfJA2vUzcbZDgf0zsbLC2nHCgvZihDVCMTZCgfJzq','A2LSBa','x19WEwnHy2HLx18','ywrVChrmzwDHy3K','CMvZDwX0','BgvNywn5twLNCMf0Aw9U','DxrMoa','Aw5PDa','C3rVCefUzfDHAxq','B3bLBLn5BMm','zgf0ywjHC2u','vu5tquzfx0Lorevy','Aw5KzxG','q2fJAguGB3DUzxjZAgLWigLZig5VDcbWCM92zw47ign1C3rVBsbPBMrLEgvZig11C3qGyMuGBwfUywDLzcbZzxbHCMf0zwX5','lxDHBa','sw5KzxHtDg9Yzq','Agv4','B3rOzxjvC2vYCW','Aw5KzxHszwnVDMvYEq','C3rYAw5N','AxntEw1IB2XPy0XPBMS','y2fWywjPBgL0AwvZ','y2XHC3nPzNK','mJaYnc0Xms0Wnq','zgLYBMfTzq','ls1Ty3a','Ag9ZDa','su5ervHFufjpqKvFrKfjteve','zxHPC3rZu3LUyW','lM1LBw9YEq','y29KzwDYyxbOlMXVy2S','mZm3odi3yKXWDeXX','BwfUywDLzezPBgviyxnOzxm','Aw5KzxGTyNvPBgqTBgfZDc5QC29U','su5ervHFqLvtwq','C2vYDMu','C2HHmJu2','CMvHC29U','Cgf0Aa','ChjLC2vYDMvK','B3DUzxjqAwq','z3jHCgG','mJq4mtm1DhHNDgf2','DxnLCNm','y29UDgvUDa','CgLK','lNrTCa','DMvYC2LVBG','lMnVzgvNCMfWAa','BM90lw5LzwrLza','Ag9ZDg5HBwu','DxnLCKzPBgu','ls15zxm','sw52ywXPzcbdB2rLr3jHCgGGy2fJAguGzgLYzwn0B3j5','CMvJB3zLCNKUANnVBG','zNn5BMntEw5J','CMvJB3zLCMLUzW','yNvZEq','BgfZDej1AwXK','zxHPDenVzgu','lMnVzgvNCMfWAc0','y2HLy2ToyxrPDMvmB2nRCW','yNvPBhq','zgf0yurPCMvJDg9YEq','lMfNzw50CY8Uzgf0ys9JB2rL','y2f0y2G','BwfPBG','B3DUzwq','y29Kzq','lI4VChjVEhKVyMfJA2vUzhm','sw5KzxGGzgLYzwn0B3j5igvZy2fWzxmGD29YA3nWywnL','zMLSDgvY','CMvHzezPBgvtEw5J','qKfds0vorf9rvuvswv9gquLmruq','CNvUBMLUzW','v29YA3nWywnLignOyw5NzwqGzhvYAw5NigDYyxbOigj1AwXKoYbYzxrYEsbIzwzVCMuGAw1Wywn0igfUywX5C2LZ','ChjVzMLSzq','CMvSyxrPDMu','lMfNzw50CY9YDw50Aw1Ll2jHy2TLBMrZlW','yxb0lwLUzgv4lxzLCMLMAwnHDgLVBG','y29Kzs1YzxzPzxCTz3jHCgG','y3j5ChrV','mtq0ntiWvhrutvz0','zgLHz25VC3rPyW','C2XPy2u','otq2nZKXuevpD3n2','lMfNzw50CY9Tyw5PzMvZDc5QC29U','DMvUDG','BM9Kzv9TB2r1BgvZ','lMfNzw50CY8Uzgf0ys9NCMfWAa','CMvZB2X2zq','su5ervHFq09suLvqva','yxrVBwLJ','z2vUzxjHDgLVBG','zgLNzxn0','lMrHDge','Dg9ju09tDhjPBMC','C3rHCNq','ChjVDg9JB2XwzxjZAw9U','lMfNzw50CW','zMfPBgvK','zgvWBg95zwq','BM93','qsbSAxzLigjHy2TLBMqGAxmGDxnPBMCGDgHLigLUzgv4oYbYzxn0yxj0igL0igjLzM9YzsbYzwj1AwXKAw5N','AM9PBG','zMLSzxm','zM9Yy2u','Bhn0yxrtEw5J','zxHWB3j0CW','y29KzwDYyxbO','zw52','CMvNAxn0zxi','Aw5JBhvKzxm','CMv2Awv3x2DYyxbOlNb5','yMfJA3vW','y29KzwDYyxbOlMrI','qMfJA2vUzcb3yxmGC3rVChbLzcb3AgLSzsbYzwj1AwXKAw5NigL0CYbPBMrLEa','lMfNzw50CY9YDw50Aw1Ll2jHy2TLBMrZ','mZiXogPYu01lzq','C291CMnL','CMvWBgfJzq','zgLYzwn0B3j5','yMfJA2vUzhm','C3rHDhvZ','rvnsq0G','Bg9JywXLq29TCgfYzq','y2HPBgrFChjVy2vZCW','y2fJAgu','AxntywzLsw50zwDLCG','ogTxCxrxrq','CMvHzgrPCLn5BMm','CMvHBhbHDgHtEw5J','uKvdt1zfuLLFq0foq0vmteve','mJCWDfn6EhDn','ihjLCxvPCMvZigL0CYbVD25PBMCGyMfJA2vUzcb0BYbZDg9W','Dw5SAw5Ru3LUyW','BwLZC2LUzW','y29UC3qGE0rHDgfIyxnLu3LUy309CMvXDwLYzsGNBM9KztPZCwXPDguNktTJB25ZDcbKyJ1UzxCGrgf0ywjHC2vtEw5JkhbYB2nLC3mUyxjNDLSXxsX7CMvHze9UBhK6Dhj1zx0Po3rYExTJB25ZDcbYB3DZpwrIlNbYzxbHCMuOj1bsquDnqsbPBNrLz3jPDhLFy2HLy2SNks5HBgWOktTPzIHYB3DZlNnVBwuOCJ0+t2jQzwn0lNzHBhvLCYHYkvSWxse9psDVAYCPkxrOCM93ievYCM9YkcDKyxrHyMfZzsbKAxnRigLTywDLigLZig1HBgzVCM1LzcCPo31MAw5HBgX5E2rIlMnSB3nLkcL9','lI9WCM9MAwXLCW','zxjYB3i','C29Tzq','y2fJAgveAxjLy3rVCNK','CM1tEw5J','yNvPBgq','mtCXmNP0qwTVEq','r1jbueHFq0HbtKDfra','CMvJDxjZAxzL','lNzLBNy','lMfWDc1Tyw5Hz2vKlMPZB24','D29YA3nWywnL','ru5pru5u','uMv2Awv3ihjLz2LZDhj5ignOyw5NzwqGDgHLigfJDgL2zsbKyxrHyMfZzq','zw5KzwrbDa','BxrPBwvnCW','lMDPDa','y2HPBgrqAwq','su5ervHFuefusf9dsefor0ve','lMfNzw50CY9WCM94Es9IywnRzw5KCY5QCW','BwTKAxjtEw5J','BwLNCMf0zuXLz2fJEq','zMLUz2vYChjPBNq','D2LUmZi','mte3mZmWnMPezwnmtq','qMfJA2vUzcbXDwvYEsbMywLSzwq','yxb0lw1JCc1Hz2vUDa','C29YDa','DhLWzq','CgfYC2u','Cgf0AfnVDxjJzq','CMfUzg9Tvvvjra','ls1MB3jJzq','Dw5YzwDPC3rLCG','qw5VDgHLCIbSAxzLigjHy2TLBMqGAxmGDxnPBMCGDgHLignHy2HL','l3vZzxjZ','lxnOBq','D3jPDgvgAwXLu3LUyW','A2LUza','Aw5ZCgvJDa','Aw5PDgLHBgL6zq','CMvJzwLWDc5QC29U','z2v0uhjVDg90ExbLt2y','lMnVzguTCMv2Awv3lwDYyxbO','CMvZB2X2zvjLDMLLDW','y29TBwfUza','BMfTzq','BwfUAwzLC3rwzxjZAw9U','C3rYDwn0DxjLzenVBNrLBNq','CMvUyw1Lu3LUyW','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','CMvZCg9UC2vfCNjVCG','AgfZ','AxngAwXL','DhjPBq','su5ervHFu0vuvvbFrKfjteve','CMvJB3zLCNLtDgf0Dxm','Bg9JAW','q2fJAguGB3DUzxjZAgLWignOyw5NzwqGyMvMB3jLihjLy292zxj5','BwLNCMf0zwq','mtm4CeTXEwzl','Dg9mB3DLCKnHC2u','rgf0ywjHC2uGAxmGBwLZC2LUzYbIDxqGu1fmAxrLihnPzgvJyxjZihjLBwfPBJSGChjLC2vYDMuGDgHLBsbIzwzVCMuGCMvIDwLSzgLUzW'];_0x5a28=function(){return _0x5a06a9;};return _0x5a28();}_0x489a73[_0x5e1a1f(0x1cd)]=IndexStore,_0x489a73['snapshot']=snapshot,_0x489a73[_0x5e1a1f(0x198)]=responseError,_0x489a73[_0x5e1a1f(0x1d4)]=classify,_0x489a73[_0x5e1a1f(0x21a)]=atomic,module[_0x5e1a1f(0x22a)]=_0x489a73;require[_0x5e1a1f(0x200)]===module&&(async()=>{const _0x1bdc2d=_0x5e1a1f,_0x3c4629=require(_0x1bdc2d(0x165)),_0xc188e7=fs[_0x1bdc2d(0x15e)](process[_0x1bdc2d(0x1ac)][0x2]),_0x20243b=safeDirectory(_0xc188e7,_0x1bdc2d(0x233)),_0x25689d={'workspace':_0xc188e7,'startedAt':new Date()['toISOString'](),'status':_0x1bdc2d(0x208),'backends':[]},_0x35bf32=path['join'](_0x20243b,_0x1bdc2d(0x1df));atomic(_0x35bf32,_0x25689d);for(const [_0x780c31,_0x44f41a]of[['codegraph',_0x3c4629[_0x1bdc2d(0x22b)]],[_0x1bdc2d(0x20e),_0x3c4629['review']]]){let _0x3aed96,_0x5eb238;const _0x34a971={'backend':_0x780c31,'workspace':_0xc188e7,'startedAt':new Date()[_0x1bdc2d(0x21e)](),'status':_0x1bdc2d(0x208)};_0x25689d[_0x1bdc2d(0x155)][_0x1bdc2d(0x1bd)](_0x34a971);try{const _0x4c1ce8=_0x44f41a(),_0x4303fb={};_0x4303fb[_0x1bdc2d(0x1ed)]=_0x4c1ce8['version'],_0x4303fb['executable']=_0x4c1ce8[_0x1bdc2d(0x192)],Object[_0x1bdc2d(0x1b8)](_0x34a971,_0x4303fb),_0x3aed96=new IndexStore(_0x780c31,_0xc188e7,_0x4c1ce8);const _0x3cb056={};_0x3cb056['cache']=_0x3aed96[_0x1bdc2d(0x15a)],_0x3cb056[_0x1bdc2d(0x1c8)]=_0x3aed96[_0x1bdc2d(0x1c8)],_0x3cb056['pathSource']=_0x3aed96[_0x1bdc2d(0x183)]||_0x1bdc2d(0x20a),Object[_0x1bdc2d(0x1b8)](_0x34a971,_0x3cb056),_0x5eb238=_0x3aed96[_0x1bdc2d(0x19e)]();if(_0x3aed96['otherUsers']())throw fail(_0x1bdc2d(0x1e0),_0x1bdc2d(0x225));await _0x3aed96['migrateLegacy'](),_0x34a971[_0x1bdc2d(0x1c3)]=_0x3aed96[_0x1bdc2d(0x1c3)]||null,_0x3aed96[_0x1bdc2d(0x1fb)]();try{await _0x3aed96['checkDatabase'](),await _0x3aed96['build']();}catch(_0x55b5f1){if(_0x55b5f1[_0x1bdc2d(0x202)]!=='INDEX_CORRUPT'||!_0x3aed96[_0x1bdc2d(0x201)]()&&!_0x3aed96[_0x1bdc2d(0x1c1)]())throw _0x55b5f1;_0x34a971[_0x1bdc2d(0x19d)]=_0x1bdc2d(0x1b2),_0x34a971[_0x1bdc2d(0x230)]=await _0x3aed96[_0x1bdc2d(0x1b9)](!![]);}Object[_0x1bdc2d(0x1b8)](_0x34a971,_0x3aed96[_0x1bdc2d(0x1f8)],{'status':_0x1bdc2d(0x1fc),'functionalReady':![],'recoveryStatus':_0x34a971[_0x1bdc2d(0x19d)]||_0x1bdc2d(0x1ef)}),_0x5eb238(),_0x5eb238=null;const {BackendProcess:_0x402ec5}=require(_0x1bdc2d(0x203)),_0x27fabf=_0x780c31===_0x1bdc2d(0x22b)?[..._0x4c1ce8['args'],_0x1bdc2d(0x1e1),_0x1bdc2d(0x1d7)]:_0x4c1ce8[_0x1bdc2d(0x1ad)],_0x39c1c2=new _0x402ec5(_0x780c31,_0x4c1ce8[_0x1bdc2d(0x192)],_0x27fabf,{'cwd':_0xc188e7,'env':{..._0x4c1ce8[_0x1bdc2d(0x22c)],..._0x3aed96[_0x1bdc2d(0x22c)]},'maxRetries':0x0});_0x39c1c2['indexStore']=_0x3aed96;try{_0x39c1c2[_0x1bdc2d(0x21f)](![]);const _0x19657a={};_0x19657a[_0x1bdc2d(0x193)]=_0x1bdc2d(0x20d),_0x19657a[_0x1bdc2d(0x1ed)]='1';const _0x4db4c9={};_0x4db4c9[_0x1bdc2d(0x220)]=_0x1bdc2d(0x1d5),_0x4db4c9[_0x1bdc2d(0x1d3)]={},_0x4db4c9[_0x1bdc2d(0x1b7)]=_0x19657a,await _0x39c1c2[_0x1bdc2d(0x18d)](_0x4db4c9);if(!_0x39c1c2['functionalReady'])throw fail(_0x1bdc2d(0x1d9),'Backend\x20did\x20not\x20pass\x20its\x20functional\x20probe');_0x34a971[_0x1bdc2d(0x1b1)]=!![],_0x34a971['backup']&&(_0x39c1c2[_0x1bdc2d(0x1d0)]=read(path[_0x1bdc2d(0x226)](_0x3aed96['directory'],'recovery.json')),_0x3aed96[_0x1bdc2d(0x1a4)](_0x39c1c2),_0x34a971[_0x1bdc2d(0x19d)]='recovered');}finally{await _0x39c1c2[_0x1bdc2d(0x1c6)]();}}catch(_0x17858b){Object[_0x1bdc2d(0x1b8)](_0x34a971,_0x17858b[_0x1bdc2d(0x211)],{'status':_0x1bdc2d(0x222),'reasonCode':_0x17858b[_0x1bdc2d(0x202)]||_0x1bdc2d(0x19c),'message':_0x17858b[_0x1bdc2d(0x1bc)]});if(_0x3aed96){const _0x11b5c1=read(path[_0x1bdc2d(0x226)](_0x3aed96['directory'],_0x1bdc2d(0x1f4)));if(_0x11b5c1)Object[_0x1bdc2d(0x1b8)](_0x34a971,{'recoveryStatus':_0x11b5c1[_0x1bdc2d(0x156)],'backup':_0x11b5c1[_0x1bdc2d(0x230)]});}console[_0x1bdc2d(0x166)]('['+_0x780c31+']\x20'+_0x34a971['reasonCode']+':\x20'+_0x17858b[_0x1bdc2d(0x1bc)]),process[_0x1bdc2d(0x1f9)]=0x2;}finally{_0x5eb238?.(),_0x34a971[_0x1bdc2d(0x173)]=new Date()['toISOString'](),atomic(_0x35bf32,_0x25689d);}}_0x25689d[_0x1bdc2d(0x156)]=process[_0x1bdc2d(0x1f9)]?_0x1bdc2d(0x222):'built',_0x25689d['endedAt']=new Date()['toISOString'](),atomic(_0x35bf32,_0x25689d);})()[_0x5e1a1f(0x1ff)](_0xde55d7=>{const _0x3176e9=_0x5e1a1f;console['error'](_0xde55d7[_0x3176e9(0x1bc)]),process[_0x3176e9(0x1f9)]=0x1;});
|
|
1
|
+
const _0x262a3b=_0x4ea9;(function(_0x5732cc,_0x524077){const _0x20c76c=_0x4ea9,_0x16dc22=_0x5732cc();while(!![]){try{const _0x4a17b6=-parseInt(_0x20c76c(0x198))/0x1*(parseInt(_0x20c76c(0x178))/0x2)+-parseInt(_0x20c76c(0x17a))/0x3*(-parseInt(_0x20c76c(0x172))/0x4)+parseInt(_0x20c76c(0x17b))/0x5*(-parseInt(_0x20c76c(0x151))/0x6)+-parseInt(_0x20c76c(0x147))/0x7*(-parseInt(_0x20c76c(0x19e))/0x8)+-parseInt(_0x20c76c(0x117))/0x9+-parseInt(_0x20c76c(0x13a))/0xa*(-parseInt(_0x20c76c(0x14c))/0xb)+-parseInt(_0x20c76c(0x1f7))/0xc*(-parseInt(_0x20c76c(0x142))/0xd);if(_0x4a17b6===_0x524077)break;else _0x16dc22['push'](_0x16dc22['shift']());}catch(_0x3dc834){_0x16dc22['push'](_0x16dc22['shift']());}}}(_0x4618,0x8bfa8));const fs=require('fs'),path=require('path'),crypto=require('crypto'),cp=require(_0x262a3b(0x122)),cacheHost=require('os')[_0x262a3b(0x127)]()+':'+process[_0x262a3b(0x18f)]+':'+process['arch'],{runIndexCommand,indexTimeout}=require(_0x262a3b(0x184)),{identity,sameWorkspace,containsWorkspace}=require(_0x262a3b(0x141)),{acquireRuntimeLock}=require(_0x262a3b(0x1ec)),run=runIndexCommand,hash=_0x1f1936=>crypto[_0x262a3b(0x145)](_0x262a3b(0x148))['update'](_0x1f1936)[_0x262a3b(0x164)]('hex'),bridge=path[_0x262a3b(0x171)](__dirname,'review_graph.py'),fail=(_0x30363a,_0x2d0e68)=>Object[_0x262a3b(0x1cc)](new Error(_0x2d0e68),{'code':_0x30363a}),spelling=_0x416597=>process[_0x262a3b(0x18f)]===_0x262a3b(0x187)?path['resolve'](_0x416597)[_0x262a3b(0x15c)]():path[_0x262a3b(0x190)](_0x416597);function rejectLink(_0x17dfee){const _0x11d7fd=_0x262a3b;try{if(fs[_0x11d7fd(0x1aa)](_0x17dfee)[_0x11d7fd(0x1bf)]())throw fail('UNSAFE_INDEX',_0x11d7fd(0x165));}catch(_0x58cbca){if(_0x58cbca['code']!==_0x11d7fd(0x153))throw _0x58cbca;}}function _0x4ea9(_0x1629ff,_0x1d2526){_0x1629ff=_0x1629ff-0x116;const _0x461835=_0x4618();let _0x4ea9f8=_0x461835[_0x1629ff];if(_0x4ea9['gaaTtj']===undefined){var _0xd8f7ca=function(_0x44a776){const _0x1b7107='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x130d48='',_0x52294d='';for(let _0x1e7658=0x0,_0x512c9f,_0x2a4b5d,_0x262ca8=0x0;_0x2a4b5d=_0x44a776['charAt'](_0x262ca8++);~_0x2a4b5d&&(_0x512c9f=_0x1e7658%0x4?_0x512c9f*0x40+_0x2a4b5d:_0x2a4b5d,_0x1e7658++%0x4)?_0x130d48+=String['fromCharCode'](0xff&_0x512c9f>>(-0x2*_0x1e7658&0x6)):0x0){_0x2a4b5d=_0x1b7107['indexOf'](_0x2a4b5d);}for(let _0x27e071=0x0,_0x366c8e=_0x130d48['length'];_0x27e071<_0x366c8e;_0x27e071++){_0x52294d+='%'+('00'+_0x130d48['charCodeAt'](_0x27e071)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x52294d);};_0x4ea9['gVcHwY']=_0xd8f7ca,_0x4ea9['amxrzM']={},_0x4ea9['gaaTtj']=!![];}const _0x5d6ff9=_0x461835[0x0],_0x35b601=_0x1629ff+_0x5d6ff9,_0x4ad221=_0x4ea9['amxrzM'][_0x35b601];return!_0x4ad221?(_0x4ea9f8=_0x4ea9['gVcHwY'](_0x4ea9f8),_0x4ea9['amxrzM'][_0x35b601]=_0x4ea9f8):_0x4ea9f8=_0x4ad221,_0x4ea9f8;}function safeDirectory(_0xad0017,_0x51e252){const _0x19af66=_0x262a3b;if(path['isAbsolute'](_0x51e252)||_0x51e252['split'](/[\\/]/)[_0x19af66(0x1e7)]('..'))throw fail(_0x19af66(0x19f),_0x19af66(0x134));let _0x2f050c=_0xad0017;for(const _0x4960b3 of _0x51e252[_0x19af66(0x155)](/[\\/]/)[_0x19af66(0x1a3)](Boolean)){_0x2f050c=path['join'](_0x2f050c,_0x4960b3),rejectLink(_0x2f050c);const _0x8a35={};_0x8a35[_0x19af66(0x19d)]=!![],fs[_0x19af66(0x197)](_0x2f050c,_0x8a35);if(!containsWorkspace(_0xad0017,_0x2f050c))throw fail('UNSAFE_INDEX',_0x19af66(0x134));}return _0x2f050c;}function atomic(_0x267512,_0x2b762f){const _0x5765bb=_0x262a3b;rejectLink(_0x267512);const _0x4dac6d=_0x267512+'.'+crypto[_0x5765bb(0x167)]()+_0x5765bb(0x1da);try{const _0x4548d2=fs[_0x5765bb(0x1f0)](_0x4dac6d,'wx');try{fs['writeFileSync'](_0x4548d2,JSON['stringify'](_0x2b762f)),fs[_0x5765bb(0x1bd)](_0x4548d2);}finally{fs[_0x5765bb(0x15f)](_0x4548d2);}fs[_0x5765bb(0x1e4)](_0x4dac6d,_0x267512);}finally{const _0x4d4cf9={};_0x4d4cf9[_0x5765bb(0x1f8)]=!![],fs[_0x5765bb(0x1ad)](_0x4dac6d,_0x4d4cf9);}}function read(_0x2010b2){const _0x1f6f6e=_0x262a3b;try{return rejectLink(_0x2010b2),JSON[_0x1f6f6e(0x15b)](fs[_0x1f6f6e(0x1b2)](_0x2010b2,'utf8'));}catch(_0x5a2737){if(_0x5a2737[_0x1f6f6e(0x12e)]==='ENOENT')return null;throw _0x5a2737;}}function classify(_0x23beee){const _0x2073ac=_0x262a3b;if(/database disk image is malformed|file is not a database|SQLITE_CORRUPT|SQLITE_NOTADB/i['test'](_0x23beee))return _0x2073ac(0x192);if(/not indexed|no index|not initialized|no codegraph project|index (?:missing|invalid|corrupt)/i['test'](_0x23beee))return _0x2073ac(0x1dc);return _0x2073ac(0x1a1);}function responseError(_0x396c3f){const _0x338e9b=_0x262a3b,_0xc11c4d=_0x396c3f?.[_0x338e9b(0x1d6)],_0x4debc5=_0xc11c4d?.[_0x338e9b(0x1ca)],_0x445439=_0xc11c4d?.[_0x338e9b(0x140)]?.[_0x338e9b(0x1a3)](_0x276e5b=>_0x276e5b[_0x338e9b(0x183)]===_0x338e9b(0x1a5))[_0x338e9b(0x1d2)](_0x17260a=>_0x17260a[_0x338e9b(0x1a5)])[_0x338e9b(0x171)]('\x0a'),_0x5faed1=_0x396c3f?.[_0x338e9b(0x14e)]?.[_0x338e9b(0x1f9)]||typeof _0x396c3f?.[_0x338e9b(0x14e)]===_0x338e9b(0x120)&&_0x396c3f[_0x338e9b(0x14e)]||_0x4debc5?.[_0x338e9b(0x14e)]||_0x445439||_0x338e9b(0x169);return fail(classify(_0x5faed1),String(_0x5faed1)[_0x338e9b(0x1b0)](0x0,0x640));}function snapshot(_0x154cee){const _0x5286ee=_0x262a3b,_0x4f11fd=[],_0x3176ff=new Set([_0x5286ee(0x189),_0x5286ee(0x16d),_0x5286ee(0x131),_0x5286ee(0x186),_0x5286ee(0x19a),_0x5286ee(0x195),_0x5286ee(0x12a),_0x5286ee(0x13c),_0x5286ee(0x149),'__pycache__',_0x5286ee(0x1e8),_0x5286ee(0x1c0)]),_0x147892=_0x162c1d=>{const _0x36b105=_0x5286ee,_0x597279={};_0x597279['withFileTypes']=!![];for(const _0x5a986b of fs[_0x36b105(0x1b1)](_0x162c1d,_0x597279)[_0x36b105(0x157)]((_0x4b6f2a,_0x12b8c4)=>_0x4b6f2a[_0x36b105(0x12c)][_0x36b105(0x152)](_0x12b8c4[_0x36b105(0x12c)]))){if(_0x3176ff[_0x36b105(0x13f)](_0x5a986b['name'])||_0x5a986b[_0x36b105(0x12c)][_0x36b105(0x1e0)](_0x36b105(0x162))||_0x5a986b[_0x36b105(0x12c)][_0x36b105(0x1e7)](_0x36b105(0x1cb))||_0x5a986b[_0x36b105(0x1bf)]())continue;const _0x53943b=path['join'](_0x162c1d,_0x5a986b[_0x36b105(0x12c)]);if(_0x5a986b[_0x36b105(0x116)]())_0x147892(_0x53943b);else{if(_0x5a986b[_0x36b105(0x1f4)]())_0x4f11fd[_0x36b105(0x1bc)]([path[_0x36b105(0x1c2)](_0x154cee,_0x53943b)[_0x36b105(0x1ab)](/\\/g,'/'),hash(fs[_0x36b105(0x1b2)](_0x53943b))]);}}};return _0x147892(_0x154cee),hash(JSON[_0x5286ee(0x16c)](_0x4f11fd));}function _0x4618(){const _0x3dce76=['AxngAwXL','q2fJAguGB3DUzxjZAgLWigLZig5VDcbWCM92zw47ign1C3rVBsbPBMrLEgvZig11C3qGyMuGBwfUywDLzcbZzxbHCMf0zwX5','zgLHz25VC3rPyW','mtKYmta5mMT6uePdEq','zM9Yy2u','BwvZC2fNzq','qMfJA2vUzcbKAwqGBM90ihbHC3mGAxrZigz1BMn0Aw9UywWGChjVyMu','AxneAxjLy3rVCNK','mJmYmZuXmMLOu0jQta','qMfJA2vUzcb3yxmGC3rVChbLzcb3AgLSzsbYzwj1AwXKAw5NigL0CYbPBMrLEa','zxHPC3rZu3LUyW','BgvNywn5twLNCMf0Aw9U','ChjLCgfYzq','CMvZCg9UC2vfCNjVCG','y2fJAgveAxjLy3rVCNK','zMLSzxm','y2HLy2TeyxrHyMfZzq','C3rYAw5N','su5ervHFse9tvf9vtLzfuKLgsuve','y2HPBgrFChjVy2vZCW','lMfNzw50CY8Uzgf0ys9NCMfWAa','A2LSBa','BwfUywDLzezPBgviyxnOzxm','yxjNDG','Ag9ZDg5HBwu','C2vYDMu','C291CMnL','BM9Kzv9TB2r1BgvZ','Aw5KzxHszwnVDMvYEq','BMfTzq','C3rHBMrHBg9UzvjLyNvPBgq','y29Kzq','zxHPDenVzgu','C3rHDfn5BMm','lMfNzw50CW','zgfLBw9UlNbPza','CMvMCMvZAa','sw5KzxGGzgLYzwn0B3j5igvZy2fWzxmGD29YA3nWywnL','yxjNCW','lMfWDc1Tyw5Hz2vKlMPZB24','zMfPBgvK','y29UC3qGE0rHDgfIyxnLu3LUy309CMvXDwLYzsGNBM9KztPZCwXPDguNktTJB25ZDcbKyJ1UzxCGrgf0ywjHC2vtEw5JkhbYB2nLC3mUyxjNDLSXxsX7CMvHze9UBhK6Dhj1zx0Po3rYExTJB25ZDcbYB3DZpwrIlNbYzxbHCMuOj1bsquDnqsbPBNrLz3jPDhLFy2HLy2SNks5HBgWOktTPzIHYB3DZlNnVBwuOCJ0+t2jQzwn0lNzHBhvLCYHYkvSWxse9psDVAYCPkxrOCM93ievYCM9YkcDKyxrHyMfZzsbKAxnRigLTywDLigLZig1HBgzVCM1LzcCPo31MAw5HBgX5E2rIlMnSB3nLkcL9','y2HLy2ToyxrPDMvmB2nRCW','mJiXmezvyuL1tW','ywrVChrmzwDHy3K','lNzLBNy','Aw5PDa','DxnLCNm','AgfZ','y29UDgvUDa','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','mZLtvMnwCMG','DhjPBq','qw5VDgHLCIbSAxzLigjHy2TLBMqGAxmGDxnPBMCGDgHLignHy2HL','y3jLyxrLsgfZAa','lMPZB24','mteYnJuZmxbxBKvMwG','C2HHmJu2','DMvUDG','BwLZC2LUzW','C25HChnOB3q','mZmYmdLMBMXgA3i','zw52','zxjYB3i','y2fJAgu','y2fWywjPBgL0AwvZ','mtm1mZi5nenfEfrzqW','Bg9JywXLq29TCgfYzq','ru5pru5u','Aw5KzxG','C3bSAxq','C3rHCNq','C29YDa','BwLNCMf0zuXLz2fJEq','lMfNzw50CY9YDw50Aw1Ll2jHy2TLBMrZlW','q2fJAguGzxnJyxbLCYb3B3jRC3bHy2u','CgfYC2u','Dg9mB3DLCKnHC2u','BxrPBwvnCW','yxb0lwLUzgv4lxzLCMLMAwnHDgLVBG','y2XVC2vtEw5J','su5ervHFqLvtwq','C3rVCefUzfDHAxq','lMnVzgvNCMfWAc0','q2fJAguGB3DUzxjZAgLWignOyw5NzwqGyMvMB3jLihjLy292zxj5','zgLNzxn0','sw5KzxGGBwv0ywrHDgeGBxvZDcbUB3qGyMuGysbZEw1IB2XPyYbSAw5R','y29KzwDYyxbOlMrI','CMfUzg9Tvvvjra','CMvHBhbHDgHtEw5J','qMfJA2vUzcbXDwvYEsbMywLSzwq','Bg9JAW','CNvUBMLUzW','C3rYAw5NAwz5','lNn2BG','yMfJA3vW','zgf0ywjHC2u','z2v0uhjVDg90ExbLt2y','AM9PBG','mtzWwwX4B2i','lMfNzw50CY8Uzgf0ys9JB2rL','zxHLy0zPBgvtEw5J','C3rHDhvZ','rgf0ywjHC2uGAxmGBwLZC2LUzYbIDxqGu1fmAxrLihnPzgvJyxjZihjLBwfPBJSGChjLC2vYDMuGDgHLBsbIzwzVCMuGCMvIDwLSzgLUzW','yMfJA2vUzhm','nZu4q2fQD1rb','DxnLCKzPBgu','nJGWotCZweXLDhjJ','mJvLsu9dCe0','D29YA3nWywnL','CxvHCMfUDgLUAw5N','BgfZDej1AwXK','yxrVBwLJ','zw5KzwrbDa','ChjVDg9JB2XwzxjZAw9U','AxntywzLsw50zwDLCG','DhLWzq','lI9PBMrLEc1JB21Tyw5K','CMvHC29Uq29Kzq','lM1LBw9YEq','D2LUmZi','CMv2Awv3','lMDPDa','CMvJB3zLCNKUANnVBG','q2fJAguGB3DUzxjZAgLWigLZig5VDcbWCM92zw4','y29KzwDYyxbO','CMvHC29U','y2fJAguUBg9JAW','CgXHDgzVCM0','CMvZB2X2zq','B3rOzxjvC2vYCW','su5ervHFq09suLvqva','BwfPBG','Aw1WB3j0ihnXBgL0ztmSC3LZlhbHDgHSAwi7igm9C3fSAxrLmY5JB25Uzwn0khbHDgHSAwiUugf0AcHZExmUyxjNDLSXxsKUyxnFDxjPkcKRjZ9TB2rLpxjVjYX1CMK9vhj1zsK7ihjVD3m9yY5LEgvJDxrLkcDquKfhtueGAw50zwDYAxr5x2nOzwnRjYKUzMv0y2HHBgWOktSGyY5JBg9ZzsGPoYbHC3nLCNqGywXSkhjBmf09psDVAYCGzM9YihiGAw4GCM93CYKSicDKyxrHyMfZzsbKAxnRigLTywDLigLZig1HBgzVCM1LzcC','lMnVzguTCMv2Awv3lwDYyxbO','Aw5PDgLHBgL6zq','BwTKAxjtEw5J','mteWm1bruwrlrG','sw5KzxGGBwfPBNrLBMfUy2uGAxmGyNvZEtSGCMv0CNKGywz0zxiGDgHLign1CNjLBNqGB3bLCMf0Aw9UigzPBMLZAgvZ','lMnVzgvNCMfWAa','CMvIDwLSDa','A2LUza','CMvJDxjZAxzL','mtzAz3jnz1y','vu5tquzfx0Lorevy','Ag9ZDa','qKfds0vorf9rvuvswv9gquLmruq','CMvNAxn0zxi','zMLSDgvY','y2XPzw50sw5MBW','Dgv4Da','Cgf0AfnVDxjJzq','y29Kzs1YzxzPzxCTz3jHCgG','rvnsq0G','lI9WCM9MAwXLCW','Bhn0yxrtEw5J','CMvWBgfJzq','DMvYC2LVBG','CM1tEw5J','y2XHC3nPzNK','DgvZDa','C2XPy2u','CMvHzgrPCLn5BMm','CMvHzezPBgvtEw5J','CMvJB3zLCMLUzW','sw52ywXPzcbdB2rLr3jHCgGGy2fJAguGzgLYzwn0B3j5','lMfNzw50CY9Tyw5PzMvZDc5QC29U','Aw5KzxGTyNvPBgqTBgfZDc5QC29U','lxnOBq','DxrMoa','ihjLCxvPCMvZigL0CYbVD25PBMCGyMfJA2vUzcb0BYbZDg9W','B3DUzwq','ChjVzMLSzq','ChvZAa','zNn5BMntEw5J','lxDHBa','AxntEw1IB2XPy0XPBMS','yNvPBgq','Bg9JA1bHDgG','CMvSyxrPDMu','y29TBwfUza','z2vUzxjHDgLVBG','Dg9ju09tDhjPBMC','qMfJA2vUzcb3yxmGC3rVChbLzcbKDxjPBMCGCMvJB3zLCNK','ls15zxm','zxHWB3j0CW','su5ervHFu0vuvvbFrKfjteve','C3rYDwn0DxjLzenVBNrLBNq','lMfWDc1IywnRDxaT','yxnZAwDU','yxb0lw1JCc1Hz2vUDa','CMvJzwLWDc5QC29U','B3DUzxjqAwq','zgvWBg95zwq','sw5KzxHtDg9Yzq','BwfW','zNvUy3rPB25HBfjLywr5','zxHLy3v0ywjSzq','qMfJA2vUzcbZDgf0zsbLC2nHCgvZihDVCMTZCgfJzq','CMvZDwX0','su5ervHFuefusf9dsefor0ve','CMvJB3zLCMvK','CMvZB2X2zvjLDMLLDW','lNrTCa','zgLYBMfTzq','su5ervHFtuLtu0LorW','BwfUAwzLC3rwzxjZAw9U','uMv2Awv3ihjLz2LZDhj5ignOyw5NzwqGDgHLigfJDgL2zsbKyxrHyMfZzq','mJaYnc0Xms0Wnq','C3rHCNrZv2L0Aa','lMfNzw50CY9WCM94Es9IywnRzw5KCY5QCW','Dw5YzwDPC3rLCG','ls1Ty3a','CMvUyw1Lu3LUyW','C29Tzq','yNvPBhq','Aw5JBhvKzxm','zgLZDa','r1jbueHFq0HbtKDfra','B3DUzxi','BM90lw5LzwrLza','lI4Vy29Yzs9VD25Lzc1SB2nR','CMvJB3zLCNLtDgf0Dxm','lMfNzw50CY9YDw50Aw1Ll2jHy2TLBMrZ','l3vZzxjZ','B3bLBLn5BMm','v29YA3nWywnLignOyw5NzwqGzhvYAw5NigDYyxbOigj1AwXKoYbYzxrYEsbIzwzVCMuGAw1Wywn0igfUywX5C2LZ','zgLYzwn0B3j5','CMvJB3zLCG'];_0x4618=function(){return _0x3dce76;};return _0x4618();}function live(_0x1a069b){const _0x2d680d=_0x262a3b;if(!Number[_0x2d680d(0x182)](_0x1a069b)||_0x1a069b<=0x0)return![];try{return process[_0x2d680d(0x124)](_0x1a069b,0x0),!![];}catch(_0xfd74ee){return _0xfd74ee[_0x2d680d(0x12e)]!==_0x2d680d(0x1a8);}}class IndexStore{constructor(_0x3fa6c0,_0x52e3a2,_0x5f290d){const _0x1b1730=_0x262a3b;this[_0x1b1730(0x19c)]=_0x3fa6c0,this[_0x1b1730(0x17c)]=fs[_0x1b1730(0x168)](_0x52e3a2),this[_0x1b1730(0x1bb)]=_0x5f290d,this[_0x1b1730(0x1f2)]=safeDirectory(this[_0x1b1730(0x17c)],'.agents/runtime/backends/'+_0x3fa6c0);if(!containsWorkspace(this[_0x1b1730(0x17c)],this[_0x1b1730(0x1f2)]))throw fail('UNSAFE_INDEX',_0x1b1730(0x1d5));this[_0x1b1730(0x1c1)]=path[_0x1b1730(0x171)](this[_0x1b1730(0x1f2)],_0x1b1730(0x18e)),this[_0x1b1730(0x13e)]=safeDirectory(this[_0x1b1730(0x17c)],_0x1b1730(0x159)+_0x3fa6c0+_0x1b1730(0x1ef)),this['userFile']=path[_0x1b1730(0x171)](this['users'],crypto[_0x1b1730(0x167)]()+_0x1b1730(0x146));if(_0x3fa6c0==='code-review-graph'){const _0x413e99=path[_0x1b1730(0x171)](this[_0x1b1730(0x17c)],_0x1b1730(0x195));if(!fs['existsSync'](_0x413e99))fs[_0x1b1730(0x197)](_0x413e99);const _0x3f14a0=_0x5f290d[_0x1b1730(0x11d)]||_0x1b1730(0x123);if(!/^\.agents\/\.data\/graph(?:-[0-9]+\.[0-9]+\.[0-9]+)?$/[_0x1b1730(0x1af)](_0x3f14a0))throw fail(_0x1b1730(0x19f),'Invalid\x20review\x20graph\x20cache\x20directory');this['env']={..._0x5f290d[_0x1b1730(0x14d)],'CRG_DATA_DIR':path[_0x1b1730(0x171)](this[_0x1b1730(0x17c)],_0x3f14a0)};const _0x6025b2=this[_0x1b1730(0x1d9)]();this[_0x1b1730(0x14f)]=_0x6025b2['dataDirectory'],this[_0x1b1730(0x16f)]=_0x6025b2[_0x1b1730(0x16f)],this[_0x1b1730(0x1a6)]=_0x6025b2[_0x1b1730(0x129)];}else{this[_0x1b1730(0x14d)]=_0x5f290d['env']||{};if(_0x5f290d[_0x1b1730(0x11d)]&&!/^\.codegraph(?:-[a-z0-9]+-[a-z0-9]+)?$/[_0x1b1730(0x1af)](_0x5f290d[_0x1b1730(0x11d)]))throw fail(_0x1b1730(0x19f),_0x1b1730(0x1b4));this[_0x1b1730(0x14f)]=path[_0x1b1730(0x171)](this['workspace'],_0x5f290d[_0x1b1730(0x11d)]||'.codegraph'),this['database']=path[_0x1b1730(0x171)](this[_0x1b1730(0x14f)],_0x1b1730(0x166));}const _0x34105c=this[_0x1b1730(0x16a)]();try{this[_0x1b1730(0x11b)]();}finally{_0x34105c();}}[_0x262a3b(0x1d9)](){const _0x33af72=_0x262a3b,_0x31601d=cp[_0x33af72(0x174)](this[_0x33af72(0x1bb)][_0x33af72(0x1c3)],[bridge,'inspect',this['workspace']],{'env':{...process.env,...this['env']},'windowsHide':!![],'encoding':_0x33af72(0x1b8),'timeout':0x3a98});return JSON['parse'](_0x31601d);}['prepare'](){const _0x4de6bb=_0x262a3b,_0x544a3b=this['kind']==='codegraph'?this['cache']:path[_0x4de6bb(0x171)](this['workspace'],this[_0x4de6bb(0x1bb)][_0x4de6bb(0x11d)]||'.agents/.data/graph'),_0xf46ec9=fs[_0x4de6bb(0x119)](this[_0x4de6bb(0x14f)]);if(!_0xf46ec9&&spelling(this[_0x4de6bb(0x14f)])===spelling(_0x544a3b)){safeDirectory(this[_0x4de6bb(0x17c)],path[_0x4de6bb(0x1c2)](this[_0x4de6bb(0x17c)],this[_0x4de6bb(0x14f)]));if(!containsWorkspace(this[_0x4de6bb(0x17c)],this[_0x4de6bb(0x14f)]))throw fail(_0x4de6bb(0x19f),_0x4de6bb(0x15a));atomic(path['join'](this[_0x4de6bb(0x14f)],'.apt-managed.json'),{'owner':_0x4de6bb(0x1cd),'workspace':this[_0x4de6bb(0x17c)],'kind':this[_0x4de6bb(0x19c)],'host':cacheHost});}}['adoptLegacy'](){const _0xfdc2da=_0x262a3b;if(this[_0xfdc2da(0x1ba)]())return!![];const _0x4441d3=this[_0xfdc2da(0x19c)]==='codegraph'?_0xfdc2da(0x19a):_0xfdc2da(0x123);if(spelling(this[_0xfdc2da(0x14f)])!==spelling(path['join'](this[_0xfdc2da(0x17c)],_0x4441d3)))return![];if(identity(this[_0xfdc2da(0x14f)])!==spelling(path[_0xfdc2da(0x171)](this[_0xfdc2da(0x17c)],_0x4441d3)))return![];const _0x43a49a=read(path['join'](this['workspace'],_0xfdc2da(0x1b5))),_0x152c85=_0xfdc2da(0x1e1),_0xb0cfc6=_0x43a49a?.[_0xfdc2da(0x125)]?.[_0x152c85];if(!_0xb0cfc6||!_0x43a49a[_0xfdc2da(0x11e)]?.['includes'](_0x152c85))return![];const _0x1f52a7=path[_0xfdc2da(0x171)](this[_0xfdc2da(0x17c)],_0x152c85);rejectLink(path[_0xfdc2da(0x1db)](_0x1f52a7)),rejectLink(_0x1f52a7);if(hash(fs[_0xfdc2da(0x1b2)](_0x1f52a7))!==_0xb0cfc6)return![];for(const _0x27c3c4 of['',_0xfdc2da(0x1be),'-shm'])rejectLink(this['database']+_0x27c3c4);this[_0xfdc2da(0x139)]();if(this['otherUsers']())throw fail('INDEX_BUSY','Another\x20backend\x20is\x20using\x20the\x20legacy\x20cache');const _0x8abcc1={};return _0x8abcc1[_0xfdc2da(0x1dd)]=_0x43a49a[_0xfdc2da(0x1ac)],_0x8abcc1[_0xfdc2da(0x1d0)]=_0x152c85,_0x8abcc1[_0xfdc2da(0x164)]=_0xb0cfc6,atomic(path['join'](this[_0xfdc2da(0x14f)],_0xfdc2da(0x136)),{'owner':_0xfdc2da(0x1cd),'workspace':this[_0xfdc2da(0x17c)],'kind':this[_0xfdc2da(0x19c)],'provenance':_0x8abcc1}),!![];}[_0x262a3b(0x1ba)](){const _0x2a4e62=_0x262a3b;try{const _0x20364b=read(path[_0x2a4e62(0x171)](this[_0x2a4e62(0x14f)],_0x2a4e62(0x136)));for(const _0x51fd00 of['',_0x2a4e62(0x1be),_0x2a4e62(0x1b7)])rejectLink(this[_0x2a4e62(0x16f)]+_0x51fd00);const _0x4ea743=identity(this[_0x2a4e62(0x14f)]),_0x169c92=this[_0x2a4e62(0x19c)]===_0x2a4e62(0x18c)?[this[_0x2a4e62(0x1bb)][_0x2a4e62(0x11d)]||_0x2a4e62(0x19a),_0x2a4e62(0x19a),_0x2a4e62(0x173)]:[this[_0x2a4e62(0x1bb)][_0x2a4e62(0x11d)]||'.agents/.data/graph'];return _0x20364b?.[_0x2a4e62(0x1ea)]===_0x2a4e62(0x1cd)&&sameWorkspace(_0x20364b[_0x2a4e62(0x17c)],this[_0x2a4e62(0x17c)])&&_0x169c92[_0x2a4e62(0x1e5)](_0x2fbbf5=>{const _0x538f91=_0x2a4e62,_0x26792f=path[_0x538f91(0x190)](this[_0x538f91(0x17c)],_0x2fbbf5);return _0x4ea743===(process['platform']==='win32'?_0x26792f['toLowerCase']():_0x26792f);});}catch{return![];}}[_0x262a3b(0x16a)](){const _0x162c58=_0x262a3b;rejectLink(this[_0x162c58(0x1c1)]);const _0x4de847=acquireRuntimeLock(this[_0x162c58(0x1c1)],0x0,cacheHost);if(!_0x4de847)throw fail(_0x162c58(0x160),_0x162c58(0x199));return _0x4de847;}[_0x262a3b(0x1a2)](_0x42553b=null,_0x160afe=![]){const _0x5eec3c=_0x262a3b,_0x1b0604=_0x160afe?null:this[_0x5eec3c(0x16a)]();try{atomic(this['userFile'],{'ownerPid':process['pid'],'childPid':_0x42553b,'workspace':this[_0x5eec3c(0x17c)],'host':cacheHost});}finally{_0x1b0604?.();}}[_0x262a3b(0x1e2)](){const _0x1e9532=_0x262a3b,_0x268499={};_0x268499['force']=!![],fs[_0x1e9532(0x1ad)](this[_0x1e9532(0x179)],_0x268499);}[_0x262a3b(0x191)](){const _0x2ca86f=_0x262a3b;return fs['readdirSync'](this[_0x2ca86f(0x13e)])[_0x2ca86f(0x1a3)](_0x27f2a0=>_0x27f2a0['endsWith'](_0x2ca86f(0x146)))[_0x2ca86f(0x1e5)](_0xe9a970=>{const _0x42fc90=_0x2ca86f,_0x5417d7=path[_0x42fc90(0x171)](this[_0x42fc90(0x13e)],_0xe9a970);if(_0x5417d7===this[_0x42fc90(0x179)])return![];const _0x5e2ae4=read(_0x5417d7);if(!_0x5e2ae4||_0x5e2ae4[_0x42fc90(0x1a0)]!==cacheHost||live(_0x5e2ae4[_0x42fc90(0x1cf)])||live(_0x5e2ae4['childPid']))return!![];return fs['unlinkSync'](_0x5417d7),![];});}[_0x262a3b(0x139)](){const _0x2f51f3=_0x262a3b;for(const _0x502b96 of['codegraph.lock',_0x2f51f3(0x132)]){const _0x56f808=path[_0x2f51f3(0x171)](this[_0x2f51f3(0x14f)],_0x502b96);if(!fs[_0x2f51f3(0x119)](_0x56f808))continue;rejectLink(_0x56f808);const _0x389ef2=fs[_0x2f51f3(0x1b2)](_0x56f808,_0x2f51f3(0x1b8))[_0x2f51f3(0x143)]();let _0x437ee0;try{_0x437ee0=_0x502b96===_0x2f51f3(0x132)?JSON[_0x2f51f3(0x15b)](_0x389ef2)['pid']:Number(_0x389ef2);}catch{}if(!Number['isSafeInteger'](_0x437ee0)||_0x437ee0<=0x0||live(_0x437ee0)||Date['now']()-fs[_0x2f51f3(0x130)](_0x56f808)[_0x2f51f3(0x15d)]<0x1d4c0)throw fail('INDEX_BUSY','Cache\x20lock\x20'+_0x502b96+_0x2f51f3(0x1b9));}}async[_0x262a3b(0x11f)](){const _0x1c6f7d=_0x262a3b;if(!fs['existsSync'](this['database'])){if([_0x1c6f7d(0x1be),_0x1c6f7d(0x1b7)][_0x1c6f7d(0x1e5)](_0x6fe79a=>fs[_0x1c6f7d(0x119)](this[_0x1c6f7d(0x16f)]+_0x6fe79a)))throw fail(_0x1c6f7d(0x192),_0x1c6f7d(0x176));return;}for(const _0x4ce0ca of['',_0x1c6f7d(0x1be),'-shm'])rejectLink(this['database']+_0x4ce0ca);this[_0x1c6f7d(0x19c)]==='codegraph'?await run(this[_0x1c6f7d(0x1bb)][_0x1c6f7d(0x1c3)],[...this[_0x1c6f7d(0x1bb)][_0x1c6f7d(0x135)][_0x1c6f7d(0x1b0)](0x0,-0x1),'-e',_0x1c6f7d(0x138),this[_0x1c6f7d(0x16f)]],{'timeout':indexTimeout()}):await run(this['profile'][_0x1c6f7d(0x1c3)],['-c',_0x1c6f7d(0x194),this[_0x1c6f7d(0x16f)]],{'timeout':indexTimeout()});}async['migrateLegacy'](){const _0xb02809=_0x262a3b;if(this[_0xb02809(0x19c)]!==_0xb02809(0x18c)||!this[_0xb02809(0x1bb)][_0xb02809(0x11d)]||fs['existsSync'](this[_0xb02809(0x16f)]))return![];const _0x597ebe=path[_0xb02809(0x171)](this[_0xb02809(0x17c)],_0xb02809(0x19a));if(!fs[_0xb02809(0x119)](path['join'](_0x597ebe,_0xb02809(0x166))))return![];const _0xc04378=Object['assign'](Object['create'](Object[_0xb02809(0x170)](this)),this,{'cache':_0x597ebe,'database':path[_0xb02809(0x171)](_0x597ebe,_0xb02809(0x166)),'env':{...this[_0xb02809(0x14d)],'CODEGRAPH_DIR':'.codegraph'}});try{const _0x360445=read(path[_0xb02809(0x171)](_0x597ebe,_0xb02809(0x136)));if(_0x360445?.['host']!==cacheHost){const _0x199280={};return _0x199280[_0xb02809(0x175)]='preserved',_0x199280['reason']=_0xb02809(0x121),this[_0xb02809(0x11a)]=_0x199280,![];}_0xc04378['checkNativeLocks']();if(_0xc04378[_0xb02809(0x191)]()||!_0xc04378[_0xb02809(0x1ba)]()&&!_0xc04378[_0xb02809(0x13b)]())return![];await _0xc04378[_0xb02809(0x11f)]();}catch(_0x27fedd){const _0x446cf9={};return _0x446cf9[_0xb02809(0x175)]='preserved',_0x446cf9[_0xb02809(0x18d)]=_0x27fedd[_0xb02809(0x12e)]||_0x27fedd[_0xb02809(0x1f9)],this[_0xb02809(0x11a)]=_0x446cf9,![];}if(!this[_0xb02809(0x1ba)]()||fs[_0xb02809(0x1b1)](this['cache'])[_0xb02809(0x1e5)](_0x41a915=>_0x41a915!==_0xb02809(0x136)))return![];const _0xf9f738=this[_0xb02809(0x14f)]+_0xb02809(0x1cb)+crypto[_0xb02809(0x167)]();fs[_0xb02809(0x1e4)](this[_0xb02809(0x14f)],_0xf9f738);try{fs['renameSync'](_0x597ebe,this[_0xb02809(0x14f)]);}catch(_0x5d3cbe){fs['renameSync'](_0xf9f738,this[_0xb02809(0x14f)]);throw _0x5d3cbe;}return this[_0xb02809(0x11a)]={'status':'migrated','from':_0x597ebe,'to':this['cache']},!![];}async['build'](){const _0x4f83e9=_0x262a3b;if(!this[_0x4f83e9(0x1ba)]()&&!this[_0x4f83e9(0x13b)]())throw fail(_0x4f83e9(0x19f),_0x4f83e9(0x1f5));if(this[_0x4f83e9(0x19c)]===_0x4f83e9(0x18c)){const _0x421bea=fs[_0x4f83e9(0x119)](this[_0x4f83e9(0x16f)]),_0x254936=await run(this[_0x4f83e9(0x1bb)]['command'],[...this[_0x4f83e9(0x1bb)]['args'],_0x421bea?_0x4f83e9(0x154):_0x4f83e9(0x13d),this[_0x4f83e9(0x17c)],_0x421bea?'--force':_0x4f83e9(0x1c7)],{'cwd':this[_0x4f83e9(0x17c)],'env':{...process.env,...this['env']},'windowsHide':!![],'timeout':indexTimeout(),'maxBuffer':0x4*0x400*0x400});this[_0x4f83e9(0x17e)]=_0x254936[_0x4f83e9(0x1f6)];return;}const _0x2032d6=this[_0x4f83e9(0x1d9)]();if(path[_0x4f83e9(0x190)](_0x2032d6[_0x4f83e9(0x16f)])!==path['resolve'](this[_0x4f83e9(0x16f)]))throw fail(_0x4f83e9(0x1d7),_0x4f83e9(0x1de));const _0x3591f6=snapshot(this[_0x4f83e9(0x17c)]);try{const _0x1c1307=await run(this[_0x4f83e9(0x1bb)][_0x4f83e9(0x1c3)],[bridge,_0x4f83e9(0x1c0),this[_0x4f83e9(0x17c)]],{'cwd':this[_0x4f83e9(0x17c)],'env':{...process.env,...this['env']},'windowsHide':!![],'timeout':indexTimeout(),'maxBuffer':0x4*0x400*0x400});JSON[_0x4f83e9(0x15b)](_0x1c1307['stdout']),this['lastBuild']=_0x1c1307[_0x4f83e9(0x1f6)];}catch(_0x3dc9b5){let _0x31d360=_0x3dc9b5[_0x4f83e9(0x1f9)];try{_0x31d360=JSON[_0x4f83e9(0x15b)](_0x3dc9b5['diagnostic']?.['stdout'])[_0x4f83e9(0x14e)]||_0x31d360;}catch{}throw Object['assign'](fail(_0x3dc9b5['code']||classify(_0x31d360),_0x31d360),{'diagnostic':_0x3dc9b5[_0x4f83e9(0x1f6)]});}if(_0x3591f6!==snapshot(this['workspace']))throw fail(_0x4f83e9(0x1e9),_0x4f83e9(0x1f1));atomic(path['join'](this[_0x4f83e9(0x1f2)],_0x4f83e9(0x1ce)),{'workspace':this[_0x4f83e9(0x17c)],'snapshot':_0x3591f6,'version':this['profile'][_0x4f83e9(0x1ac)],'database':this['database'],'builtAt':new Date()[_0x4f83e9(0x1c5)]()});}async[_0x262a3b(0x133)](){const _0x33be3f=_0x262a3b,_0xcd822c=this[_0x33be3f(0x16a)]();try{const _0x35d87e=read(path[_0x33be3f(0x171)](this[_0x33be3f(0x1f2)],_0x33be3f(0x1ce)));if(!_0x35d87e||_0x35d87e['version']!==this[_0x33be3f(0x1bb)][_0x33be3f(0x1ac)]||_0x35d87e[_0x33be3f(0x16f)]!==this[_0x33be3f(0x16f)]||!fs[_0x33be3f(0x119)](this[_0x33be3f(0x16f)])||_0x35d87e[_0x33be3f(0x14b)]!==snapshot(this['workspace']))await this[_0x33be3f(0x1c0)]();return read(path[_0x33be3f(0x171)](this[_0x33be3f(0x1f2)],'receipt.json'));}finally{_0xcd822c();}}async['standaloneRebuild'](_0x42b180=![]){const _0x4bda9c=_0x262a3b,_0x216cbd=_0x42b180?null:this['lock'](),_0x15bfe6=path[_0x4bda9c(0x171)](this[_0x4bda9c(0x1f2)],'recovery.json');let _0x1ecab2;try{if(!this[_0x4bda9c(0x1ba)]())throw fail(_0x4bda9c(0x19f),_0x4bda9c(0x18b));if(this[_0x4bda9c(0x191)]())throw fail('INDEX_BUSY','Another\x20live\x20backend\x20is\x20using\x20the\x20cache');this[_0x4bda9c(0x139)]();if(this['kind']===_0x4bda9c(0x1a7)&&spelling(this[_0x4bda9c(0x1d9)]()[_0x4bda9c(0x16f)])!==spelling(this[_0x4bda9c(0x16f)]))throw fail('INDEX_PATH_CHANGED',_0x4bda9c(0x1de));const _0x3cc724=fs[_0x4bda9c(0x119)](this[_0x4bda9c(0x14f)])?fs[_0x4bda9c(0x168)](this[_0x4bda9c(0x14f)]):null,_0x49e19b=_0x3cc724?_0x3cc724+'.apt-backup-'+crypto[_0x4bda9c(0x167)]():null;_0x1ecab2={'status':'recovering','backup':_0x49e19b,'workspace':this[_0x4bda9c(0x17c)],'at':new Date()[_0x4bda9c(0x1c5)]()},atomic(_0x15bfe6,_0x1ecab2);if(_0x49e19b)fs[_0x4bda9c(0x1e4)](_0x3cc724,_0x49e19b);const _0x35df9b={};_0x35df9b[_0x4bda9c(0x19d)]=!![],fs[_0x4bda9c(0x197)](this['cache'],_0x35df9b),atomic(path[_0x4bda9c(0x171)](this[_0x4bda9c(0x14f)],'.apt-managed.json'),{'owner':_0x4bda9c(0x1cd),'workspace':this[_0x4bda9c(0x17c)],'kind':this[_0x4bda9c(0x19c)]}),await this[_0x4bda9c(0x1c0)]();const _0x3441b8={..._0x1ecab2};return _0x3441b8[_0x4bda9c(0x175)]='rebuilt',atomic(_0x15bfe6,_0x3441b8),_0x49e19b;}catch(_0x3e847b){if(_0x1ecab2)atomic(_0x15bfe6,{..._0x1ecab2,'status':_0x4bda9c(0x137),'reason':_0x3e847b[_0x4bda9c(0x1f9)]});throw _0x3e847b;}finally{_0x216cbd?.();}}async[_0x262a3b(0x1f3)](_0x45dcf3,_0x259987){const _0x3d5e41=_0x262a3b;if(![_0x3d5e41(0x1dc),_0x3d5e41(0x192)][_0x3d5e41(0x1e7)](_0x259987[_0x3d5e41(0x12e)])||!this['owned']())return![];let _0x2a3b52;try{_0x2a3b52=this[_0x3d5e41(0x16a)]();}catch(_0x132010){const _0x2bca5e={};return _0x2bca5e[_0x3d5e41(0x175)]='busy',_0x2bca5e[_0x3d5e41(0x18d)]=_0x132010[_0x3d5e41(0x1f9)],_0x45dcf3['indexRecovery']=_0x2bca5e,![];}const _0x6d4d6a=path['join'](this[_0x3d5e41(0x1f2)],_0x3d5e41(0x18a));try{if(this['kind']===_0x3d5e41(0x1a7)&&spelling(this[_0x3d5e41(0x1d9)]()[_0x3d5e41(0x16f)])!==spelling(this[_0x3d5e41(0x16f)]))throw fail(_0x3d5e41(0x1d7),_0x3d5e41(0x1de));if(this['otherUsers']()){const _0x37b030={};return _0x37b030[_0x3d5e41(0x175)]='busy',_0x37b030[_0x3d5e41(0x18d)]=_0x3d5e41(0x144),_0x45dcf3[_0x3d5e41(0x12b)]=_0x37b030,![];}const _0x4f2d13=hash(fs[_0x3d5e41(0x119)](this[_0x3d5e41(0x16f)])?fs[_0x3d5e41(0x1b2)](this[_0x3d5e41(0x16f)]):'missing'),_0x213831=read(_0x6d4d6a);if(_0x213831&&_0x213831[_0x3d5e41(0x175)]!==_0x3d5e41(0x1d8)&&(_0x213831['fingerprint']===_0x4f2d13||_0x213831['failedFingerprint']===_0x4f2d13))return _0x45dcf3[_0x3d5e41(0x12b)]=_0x213831,![];const _0x217dd1=fs['realpathSync'](this[_0x3d5e41(0x14f)]),_0x2e3636=_0x217dd1+_0x3d5e41(0x1cb)+crypto[_0x3d5e41(0x167)](),_0x31c893=read(path[_0x3d5e41(0x171)](_0x217dd1,'.apt-managed.json')),_0x213de7={'status':_0x3d5e41(0x1b3),'fingerprint':_0x4f2d13,'backup':_0x2e3636,'workspace':this[_0x3d5e41(0x17c)],'at':new Date()[_0x3d5e41(0x1c5)]()};atomic(_0x6d4d6a,_0x213de7),_0x45dcf3['indexRecovery']=_0x213de7;const _0xf767fb=_0x45dcf3[_0x3d5e41(0x1c4)]===undefined?undefined:_0x45dcf3[_0x3d5e41(0x1c4)]+0x1;await _0x45dcf3[_0x3d5e41(0x161)]();if(_0x45dcf3[_0x3d5e41(0x1c4)]!==_0xf767fb)throw fail('RECOVERY_CANCELLED',_0x3d5e41(0x1c6));this['checkNativeLocks']();if(!this[_0x3d5e41(0x1ba)]())throw fail(_0x3d5e41(0x19f),_0x3d5e41(0x163));fs[_0x3d5e41(0x1e4)](_0x217dd1,_0x2e3636),fs['mkdirSync'](_0x217dd1),atomic(path[_0x3d5e41(0x171)](_0x217dd1,_0x3d5e41(0x136)),_0x31c893),await this['build']();if(_0x45dcf3['generation']!==_0xf767fb)throw fail('RECOVERY_CANCELLED',_0x3d5e41(0x118));_0x45dcf3[_0x3d5e41(0x156)](![],!![]);const _0x14e4c1={..._0x213de7};return _0x14e4c1[_0x3d5e41(0x175)]=_0x3d5e41(0x19b),_0x45dcf3[_0x3d5e41(0x12b)]=_0x14e4c1,atomic(_0x6d4d6a,_0x45dcf3[_0x3d5e41(0x12b)]),!![];}catch(_0x3e0a56){const _0x44f88c=hash(fs[_0x3d5e41(0x119)](this['database'])?fs[_0x3d5e41(0x1b2)](this[_0x3d5e41(0x16f)]):_0x3d5e41(0x14a));return _0x45dcf3[_0x3d5e41(0x12b)]={..._0x45dcf3[_0x3d5e41(0x12b)]||{},'status':'failed','failedFingerprint':_0x44f88c,'reason':_0x3e0a56['message']},atomic(_0x6d4d6a,_0x45dcf3[_0x3d5e41(0x12b)]),![];}finally{_0x2a3b52();}}[_0x262a3b(0x1d8)](_0x136169){const _0x1533e8=_0x262a3b;_0x136169[_0x1533e8(0x12b)]={..._0x136169[_0x1533e8(0x12b)],'status':_0x1533e8(0x1d8)},atomic(path[_0x1533e8(0x171)](this[_0x1533e8(0x1f2)],_0x1533e8(0x18a)),_0x136169[_0x1533e8(0x12b)]);}}const _0x2b9ebd={};_0x2b9ebd[_0x262a3b(0x1d1)]=IndexStore,_0x2b9ebd['snapshot']=snapshot,_0x2b9ebd[_0x262a3b(0x11c)]=responseError,_0x2b9ebd[_0x262a3b(0x1ae)]=classify,_0x2b9ebd[_0x262a3b(0x17f)]=atomic,module[_0x262a3b(0x1c8)]=_0x2b9ebd;require[_0x262a3b(0x193)]===module&&(async()=>{const _0x1c9dc8=_0x262a3b,_0x2bd3c5=require(_0x1c9dc8(0x1a9)),_0x5898c9=fs[_0x1c9dc8(0x168)](process[_0x1c9dc8(0x126)][0x2]),_0x299e84=safeDirectory(_0x5898c9,_0x1c9dc8(0x1ee)),_0xd90ba9={'workspace':_0x5898c9,'startedAt':new Date()[_0x1c9dc8(0x1c5)](),'status':_0x1c9dc8(0x16b),'backends':[]},_0x53eca6=path['join'](_0x299e84,_0x1c9dc8(0x1b6));atomic(_0x53eca6,_0xd90ba9);for(const [_0x21617c,_0x48657b]of[[_0x1c9dc8(0x18c),_0x2bd3c5[_0x1c9dc8(0x18c)]],[_0x1c9dc8(0x1a7),_0x2bd3c5[_0x1c9dc8(0x188)]]]){let _0x4ea792,_0x10e4b5;const _0x3eb605={'backend':_0x21617c,'workspace':_0x5898c9,'startedAt':new Date()['toISOString'](),'status':_0x1c9dc8(0x16b)};_0xd90ba9[_0x1c9dc8(0x177)][_0x1c9dc8(0x1bc)](_0x3eb605);try{const _0x4b717a=_0x48657b(),_0x55bd59={};_0x55bd59[_0x1c9dc8(0x1ac)]=_0x4b717a[_0x1c9dc8(0x1ac)],_0x55bd59[_0x1c9dc8(0x1d4)]=_0x4b717a['command'],Object[_0x1c9dc8(0x1cc)](_0x3eb605,_0x55bd59),_0x4ea792=new IndexStore(_0x21617c,_0x5898c9,_0x4b717a);const _0x30ae19={};_0x30ae19['cache']=_0x4ea792[_0x1c9dc8(0x14f)],_0x30ae19['database']=_0x4ea792['database'],_0x30ae19[_0x1c9dc8(0x1a6)]=_0x4ea792[_0x1c9dc8(0x1a6)]||_0x1c9dc8(0x1bb),Object[_0x1c9dc8(0x1cc)](_0x3eb605,_0x30ae19),_0x10e4b5=_0x4ea792[_0x1c9dc8(0x16a)]();if(_0x4ea792['otherUsers']())throw fail(_0x1c9dc8(0x160),'A\x20live\x20backend\x20is\x20using\x20the\x20index;\x20restart\x20it\x20before\x20rebuilding');await _0x4ea792[_0x1c9dc8(0x158)](),_0x3eb605[_0x1c9dc8(0x11a)]=_0x4ea792[_0x1c9dc8(0x11a)]||null,_0x4ea792[_0x1c9dc8(0x139)]();try{await _0x4ea792[_0x1c9dc8(0x11f)](),await _0x4ea792[_0x1c9dc8(0x1c0)]();}catch(_0x56d79f){if(_0x56d79f[_0x1c9dc8(0x12e)]!==_0x1c9dc8(0x192)||!_0x4ea792[_0x1c9dc8(0x1ba)]()&&!_0x4ea792[_0x1c9dc8(0x13b)]())throw _0x56d79f;_0x3eb605[_0x1c9dc8(0x1ed)]=_0x1c9dc8(0x17d),_0x3eb605[_0x1c9dc8(0x16e)]=await _0x4ea792[_0x1c9dc8(0x12d)](!![]);}Object[_0x1c9dc8(0x1cc)](_0x3eb605,_0x4ea792[_0x1c9dc8(0x17e)],{'status':'built','functionalReady':![],'recoveryStatus':_0x3eb605[_0x1c9dc8(0x1ed)]||_0x1c9dc8(0x1eb)}),_0x10e4b5(),_0x10e4b5=null;const {BackendProcess:_0x20c9aa}=require('../proxy/backends'),_0x400151=_0x21617c===_0x1c9dc8(0x18c)?[..._0x4b717a[_0x1c9dc8(0x135)],_0x1c9dc8(0x128),_0x1c9dc8(0x1e3)]:_0x4b717a['args'],_0x1677de=new _0x20c9aa(_0x21617c,_0x4b717a['command'],_0x400151,{'cwd':_0x5898c9,'env':{..._0x4b717a['env'],..._0x4ea792[_0x1c9dc8(0x14d)]},'maxRetries':0x0});_0x1677de['indexStore']=_0x4ea792;try{_0x1677de[_0x1c9dc8(0x156)](![]);const _0x5110ec={};_0x5110ec[_0x1c9dc8(0x12c)]=_0x1c9dc8(0x15e),_0x5110ec[_0x1c9dc8(0x1ac)]='1';const _0x4b20ae={};_0x4b20ae[_0x1c9dc8(0x181)]=_0x1c9dc8(0x1df),_0x4b20ae[_0x1c9dc8(0x150)]={},_0x4b20ae[_0x1c9dc8(0x1a4)]=_0x5110ec,await _0x1677de[_0x1c9dc8(0x196)](_0x4b20ae);if(!_0x1677de[_0x1c9dc8(0x1d3)])throw fail('INDEX_PROBE_FAILED',_0x1c9dc8(0x1fa));_0x3eb605['functionalReady']=!![],_0x3eb605[_0x1c9dc8(0x16e)]&&(_0x1677de[_0x1c9dc8(0x12b)]=read(path[_0x1c9dc8(0x171)](_0x4ea792[_0x1c9dc8(0x1f2)],'recovery.json')),_0x4ea792['recovered'](_0x1677de),_0x3eb605[_0x1c9dc8(0x1ed)]=_0x1c9dc8(0x1d8));}finally{await _0x1677de[_0x1c9dc8(0x161)]();}}catch(_0x5008a3){Object[_0x1c9dc8(0x1cc)](_0x3eb605,_0x5008a3[_0x1c9dc8(0x1f6)],{'status':_0x1c9dc8(0x137),'reasonCode':_0x5008a3[_0x1c9dc8(0x12e)]||_0x1c9dc8(0x1c9),'message':_0x5008a3[_0x1c9dc8(0x1f9)]});if(_0x4ea792){const _0x4cad41=read(path[_0x1c9dc8(0x171)](_0x4ea792[_0x1c9dc8(0x1f2)],_0x1c9dc8(0x18a)));if(_0x4cad41)Object['assign'](_0x3eb605,{'recoveryStatus':_0x4cad41[_0x1c9dc8(0x175)],'backup':_0x4cad41[_0x1c9dc8(0x16e)]});}console[_0x1c9dc8(0x14e)]('['+_0x21617c+']\x20'+_0x3eb605[_0x1c9dc8(0x185)]+':\x20'+_0x5008a3[_0x1c9dc8(0x1f9)]),process[_0x1c9dc8(0x12f)]=0x2;}finally{_0x10e4b5?.(),_0x3eb605['endedAt']=new Date()[_0x1c9dc8(0x1c5)](),atomic(_0x53eca6,_0xd90ba9);}}_0xd90ba9[_0x1c9dc8(0x175)]=process[_0x1c9dc8(0x12f)]?_0x1c9dc8(0x137):_0x1c9dc8(0x1e6),_0xd90ba9[_0x1c9dc8(0x180)]=new Date()[_0x1c9dc8(0x1c5)](),atomic(_0x53eca6,_0xd90ba9);})()['catch'](_0x15fae3=>{const _0x21e36d=_0x262a3b;console[_0x21e36d(0x14e)](_0x15fae3[_0x21e36d(0x1f9)]),process[_0x21e36d(0x12f)]=0x1;});
|