apt-mcp-agent-setup 3.2.5 → 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 -77
- package/package.json +1 -1
- package/release-check.js +318 -310
- 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 -1
- 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 -1
- package/src/core/model-routing.js +1 -1
- package/src/core/npm-cli.js +1 -1
- package/src/core/owned-lock.js +1 -1
- package/src/core/presentations.js +1 -1
- package/src/core/quality.js +1 -1
- 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 +18 -18
- 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 _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 _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;});
|