@codex-ultra/cxu 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -0
- package/README.md +64 -0
- package/dist/bun-runtime.d.ts +8 -0
- package/dist/cli-doctor.d.ts +38 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +2 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -0
- package/dist/shared-types.d.ts +99 -0
- package/dist/vendor/saVmApplyPatch.d.ts +29 -0
- package/dist/vendor/saVmPolicy.d.ts +112 -0
- package/dist/vendor/saVmProcess.d.ts +1 -0
- package/dist/vendor/saVmRequest.d.ts +9 -0
- package/dist/vendor/saVmResultKind.d.ts +12 -0
- package/dist/vendor/saVmTool.d.ts +353 -0
- package/dist/vendor/saVmTreeSitter.d.ts +129 -0
- package/package.json +65 -0
- package/wasm/languages/tree-sitter-bash.wasm +0 -0
- package/wasm/languages/tree-sitter-go.wasm +0 -0
- package/wasm/languages/tree-sitter-javascript.wasm +0 -0
- package/wasm/languages/tree-sitter-json.wasm +0 -0
- package/wasm/languages/tree-sitter-python.wasm +0 -0
- package/wasm/languages/tree-sitter-rust.wasm +0 -0
- package/wasm/languages/tree-sitter-toml.wasm +0 -0
- package/wasm/languages/tree-sitter-tsx.wasm +0 -0
- package/wasm/languages/tree-sitter-typescript.wasm +0 -0
- package/wasm/languages/tree-sitter-yaml.wasm +0 -0
- package/wasm/languages/tree-sitter-zig.wasm +0 -0
- package/wasm/tree-sitter.wasm +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# codex-ultra Public License & Commercial Use Policy
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 codex-ultra Project Maintainers / layola13 <sonygodx@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sublicense copies of the Software, subject to the following terms and conditions:
|
|
6
|
+
|
|
7
|
+
## 1. Attribution
|
|
8
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
9
|
+
|
|
10
|
+
## 2. Commercial Use Policy & Free Exemption Thresholds
|
|
11
|
+
- **Free Commercial Use**: Commercial use of this Software is strictly **FREE** and requires no prior authorization for any organization or enterprise that meets **EITHER** of the following criteria:
|
|
12
|
+
1. Annual revenue is **under $1,000,000 USD** (或等值货币); OR
|
|
13
|
+
2. Total headcount is **under 1,000 employees**.
|
|
14
|
+
|
|
15
|
+
- **Commercial Licensing Requirement**: Any enterprise or commercial entity exceeding the above thresholds (annual revenue of $1,000,000 USD or more AND 1,000 employees or more) must obtain express written authorization or a commercial license from the project administrator before deploying or using the Software for commercial purposes.
|
|
16
|
+
- Contact for Commercial Licenses: [sonygodx@gmail.com](mailto:sonygodx@gmail.com)
|
|
17
|
+
|
|
18
|
+
## 3. Disclaimer of Warranty
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# @codex-ultra/cxu
|
|
2
|
+
|
|
3
|
+
Pure-TypeScript, all-platform file and AST toolkit. Zero embedded binaries.
|
|
4
|
+
Bundled with **Bun build**, published to **npm**, installable on
|
|
5
|
+
Windows / Linux / macOS (Intel + Apple Silicon / ARM).
|
|
6
|
+
|
|
7
|
+
- Single-step tools (`read_file`, `edit_file`, `grep_search`, `apply_patch`, 20+ tools) run on plain Node.js. No Bun needed.
|
|
8
|
+
- Complex TS tracks (`run_bun`) detect Bun on demand and print a cross-platform install hint instead of crashing.
|
|
9
|
+
- AST (`web-tree-sitter` + `tree-sitter-wasms`) ships as portable `.wasm`, resolved relative to the published package first.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm i @codex-ultra/cxu
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Check Bun
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx cxu doctor
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Checks bun plus the codex/claude/agy/grok/pi/opencode CLIs (codex is
|
|
24
|
+
REQUIRED; the rest are optional). Missing tools print their official install
|
|
25
|
+
command. Exit code is 2 when Codex CLI is absent.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
cxu install [tool] # print install command only, changes nothing
|
|
29
|
+
cxu install [tool] --yes # run the official installer
|
|
30
|
+
cxu install --all --yes # one-click: install every missing tool
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Windows (PowerShell): `powershell -c "irm bun.sh/install.ps1 | iex"`
|
|
34
|
+
macOS / Linux: `curl -fsSL https://bun.sh/install | bash`
|
|
35
|
+
Other: use your system package manager, or see https://bun.sh
|
|
36
|
+
|
|
37
|
+
## Build (bun-first, esbuild fallback) / publish check
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm --workspace @codex-ultra/cxu run vendor
|
|
41
|
+
npm --workspace @codex-ultra/cxu run build
|
|
42
|
+
npm pack --dry-run --workspace @codex-ultra/cxu
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`scripts/build.mjs` prefers `bun build --minify` (target node, ESM, `web-tree-sitter` /
|
|
46
|
+
`tree-sitter-wasms` external); when Bun is absent it falls back to esbuild with
|
|
47
|
+
`minify: true` so plain-npm users can still build. `prepack` runs build and then
|
|
48
|
+
`scripts/obfuscate.mjs` (javascript-obfuscator, same family of options as
|
|
49
|
+
`scripts/obfuscate-server.mjs`), so both `npm publish` and `bun publish` ship a
|
|
50
|
+
minified + obfuscated bundle.
|
|
51
|
+
|
|
52
|
+
Only `dist/` (+ `.d.ts`), `wasm/`, `README.md`, `LICENSE` ship. No `.exe` /
|
|
53
|
+
`.dll` / `.so` / `.dylib`, no Bun runtime.
|
|
54
|
+
|
|
55
|
+
Current tarball: ~1.2 MB packed, ~10 MB unpacked (`.js` + `.d.ts` + 11
|
|
56
|
+
language wasms).
|
|
57
|
+
|
|
58
|
+
## Wasm languages
|
|
59
|
+
|
|
60
|
+
Bundled: `typescript`, `tsx`, `javascript`, `python`, `rust`, `go`, `zig`,
|
|
61
|
+
`json`, `toml`, `yaml`, `bash` + `tree-sitter.wasm`.
|
|
62
|
+
`c` / `cpp` / `java` / `c_sharp` intentionally fall back to the built-in regex
|
|
63
|
+
outline (same output shape, no crash) to keep the package at a few MB.
|
|
64
|
+
Re-add a grammar by extending the `keep` list in `scripts/build.mjs`.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type DoctorToolId = "bun" | "codex" | "claude" | "agy" | "grok" | "pi" | "opencode";
|
|
2
|
+
export type DoctorStatus = {
|
|
3
|
+
id: DoctorToolId;
|
|
4
|
+
label: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
found: boolean;
|
|
7
|
+
path?: string;
|
|
8
|
+
version?: string;
|
|
9
|
+
installHint: string;
|
|
10
|
+
};
|
|
11
|
+
type InstallSpec = {
|
|
12
|
+
win32?: string;
|
|
13
|
+
posix?: string;
|
|
14
|
+
all?: string;
|
|
15
|
+
manual?: string;
|
|
16
|
+
};
|
|
17
|
+
type ToolDef = {
|
|
18
|
+
id: DoctorToolId;
|
|
19
|
+
label: string;
|
|
20
|
+
required: boolean;
|
|
21
|
+
bins: string[];
|
|
22
|
+
envVars: string[];
|
|
23
|
+
extraDirs: string[];
|
|
24
|
+
install: InstallSpec;
|
|
25
|
+
};
|
|
26
|
+
export declare function installCommandFor(def: ToolDef): string;
|
|
27
|
+
export declare function doctor(): {
|
|
28
|
+
statuses: DoctorStatus[];
|
|
29
|
+
codexReady: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare function printDoctor(): boolean;
|
|
32
|
+
export declare function listToolIds(): DoctorToolId[];
|
|
33
|
+
export declare function runInstall(id: DoctorToolId): {
|
|
34
|
+
ran: boolean;
|
|
35
|
+
command?: string;
|
|
36
|
+
note?: string;
|
|
37
|
+
};
|
|
38
|
+
export {};
|
package/dist/cli.d.ts
ADDED
package/dist/cli.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
(function(_0x264952,_0x5d209b){function _0xd67a63(_0x52076c,_0x4d993c,_0x10d856,_0x2c34fe){return _0x1409(_0x2c34fe- -0x4a,_0x10d856);}const _0x3643cb=_0x264952();function _0x5d8526(_0x2cc203,_0x1a3037,_0x696de1,_0x8fbac9){return _0x1409(_0x2cc203- -0x15,_0x1a3037);}while(!![]){try{const _0x23ae25=parseInt(_0x5d8526(0x208,0x1e0,0x254,0x25a))/0x1*(parseInt(_0x5d8526(0x296,0x315,0x297,0x239))/0x2)+-parseInt(_0xd67a63(0x1a1,0x16c,0x209,0x1e4))/0x3*(-parseInt(_0xd67a63(0x2aa,0x210,0x2b5,0x24e))/0x4)+-parseInt(_0x5d8526(0x1f3,0x25b,0x200,0x20d))/0x5+-parseInt(_0x5d8526(0x253,0x25c,0x219,0x202))/0x6*(parseInt(_0x5d8526(0x22c,0x1b3,0x257,0x1ea))/0x7)+parseInt(_0xd67a63(0x24f,0x1ee,0x23b,0x227))/0x8*(parseInt(_0xd67a63(0x17d,0x212,0x1f3,0x1a1))/0x9)+parseInt(_0x5d8526(0x236,0x1c7,0x23c,0x1f6))/0xa*(parseInt(_0x5d8526(0x27f,0x29c,0x2e5,0x282))/0xb)+-parseInt(_0x5d8526(0x2b0,0x30d,0x282,0x27b))/0xc;if(_0x23ae25===_0x5d209b)break;else _0x3643cb['push'](_0x3643cb['shift']());}catch(_0x18354b){_0x3643cb['push'](_0x3643cb['shift']());}}}(_0x2ef6,0xb48c3));import{spawnSync as _0x993e68}from'node:child_process';import{existsSync as _0x26054a}from'node:fs';import{homedir as _0x4ad7d1}from'node:os';import{delimiter as _0x253eab,join as _0x6e56f0}from'node:path';import{spawnSync as _0x57d84e}from'node:child_process';function m(){function _0xa91218(_0x118661,_0x19b1f1,_0x2d2ff6,_0x1d86ef){return _0x1409(_0x2d2ff6- -0x1f2,_0x118661);}function _0x18437a(_0x167766,_0x592d33,_0x18222f,_0x212934){return _0x1409(_0x18222f- -0x357,_0x212934);}const _0x5a73c8={'IfcCC':function(_0x5d41fc,_0x356458){return _0x5d41fc===_0x356458;},'yTYSQ':_0x18437a(-0x1eb,-0x19a,-0x16e,-0x104)+'n'};try{return _0x5a73c8[_0xa91218(0x103,0xc1,0xcf,0xcf)](_0x57d84e('bun',[_0x5a73c8[_0x18437a(-0x83,-0xaa,-0xfb,-0x132)]],{'stdio':_0x18437a(-0x13c,-0x112,-0x148,-0x153),'timeout':0x7d0,'windowsHide':!0x0})[_0xa91218(-0x56,0x41,0x24,-0x2c)],0x0);}catch{return!0x1;}}function b(){const _0x54c103={'XQTWR':_0x3853af(-0x1c9,-0xfe,-0x17b,-0x16c)+_0x3853af(-0x152,-0x165,-0x18c,-0x117)+_0x3853af(-0xbb,-0x88,-0xde,-0x9d)+'h/instal'+_0x4b4cbf(0x3f7,0x330,0x367,0x38e)+_0x4b4cbf(0x34d,0x2d0,0x2b8,0x326),'PgvKl':_0x3853af(-0x136,-0x1b6,-0x162,-0x154),'Vevah':'curl\x20-fs'+_0x3853af(-0x57,-0xca,-0x58,-0x9e)+_0x3853af(-0x10d,-0x149,-0xad,-0x10e)+_0x3853af(-0xad,-0x142,-0xf9,-0x102)+_0x3853af(-0x13f,-0x70,-0x79,-0xd3)};let _0x4d43d4=process[_0x3853af(-0xdc,-0x115,-0x10e,-0x11a)];if(_0x4d43d4===_0x3853af(-0x12a,-0xaa,-0x64,-0xbf))return _0x54c103[_0x3853af(-0x96,-0xf2,-0xd5,-0xfc)];if(_0x4d43d4===_0x54c103[_0x4b4cbf(0x31e,0x3f6,0x371,0x37d)]||_0x4d43d4===_0x4b4cbf(0x2db,0x333,0x356,0x300))return _0x54c103[_0x3853af(-0xb7,-0xbf,-0xa0,-0xaf)];function _0x3853af(_0x1ec165,_0x1f08b5,_0x5a2802,_0x37f6c8){return _0x1409(_0x37f6c8- -0x342,_0x5a2802);}function _0x4b4cbf(_0xd3cf80,_0x53752d,_0x31b5de,_0x1611a8){return _0x1409(_0x1611a8-0xe1,_0xd3cf80);}return _0x3853af(-0x187,-0x125,-0xd0,-0x135)+_0x3853af(-0x12c,-0x9d,-0x13b,-0x108)+_0x4b4cbf(0x2b9,0x30d,0x301,0x2f5)+_0x4b4cbf(0x349,0x35b,0x2cc,0x306)+_0x4b4cbf(0x2a7,0x2db,0x2f6,0x2d8)+'ge\x20manag'+_0x3853af(-0xc7,-0x163,-0x10a,-0xe4)+_0x4b4cbf(0x2fe,0x29d,0x370,0x31c)+_0x3853af(-0x63,-0x3e,-0x12a,-0xb8)+_0x3853af(-0x18a,-0x10b,-0x107,-0x126)+_0x4b4cbf(0x2b2,0x2ac,0x304,0x31e)+_0x3853af(-0x15d,-0x14b,-0x142,-0x15d);}var c=process.env.HOME||process.env.USERPROFILE||_0x4ad7d1(),f=[{'id':_0x1f0d1b(-0xd9,-0x45,-0x10c,-0x8f),'label':_0x3685c3(-0x7c,-0x99,-0xfa,-0xe5),'required':!0x1,'bins':[_0x1f0d1b(-0xe0,-0x103,-0x20,-0x8f)],'envVars':[],'extraDirs':[_0x6e56f0(c,_0x3685c3(0x68,0x8,0x2,0xa8),_0x1f0d1b(-0x12d,-0xaa,-0xe2,-0xb3))],'install':{'all':b()}},{'id':_0x3685c3(0x74,0x72,0x25,0xf),'label':'Codex\x20CL'+'I','required':!0x0,'bins':[_0x1f0d1b(-0x28,-0x34,0x63,-0x4)],'envVars':[_0x3685c3(0x1b,0x17,-0x54,0x65)+'N'],'extraDirs':[],'install':{'win32':_0x3685c3(-0x70,-0x2a,-0xed,-0xc)+_0x3685c3(0x34,-0x19,0x2d,0xa1)+_0x1f0d1b(-0x2a,-0xb1,-0x2e,-0x8e)+_0x3685c3(-0x1f,0xc,-0x63,0x19)+_0x1f0d1b(-0xbb,-0xad,-0x108,-0x9c)+_0x1f0d1b(-0x10c,-0xdf,-0xdd,-0xc0)+_0x1f0d1b(-0x73,-0x125,-0x3c,-0xa6)+_0x1f0d1b(-0xea,-0xdb,-0x137,-0xf1)+_0x3685c3(-0x65,-0x98,0x12,-0x2e)+_0x1f0d1b(-0x60,-0xb9,-0x1a,-0x6a)+_0x1f0d1b(-0x123,-0xc1,-0xdb,-0xc9),'posix':_0x3685c3(0x1c,0x31,-0x6,-0x4a)+_0x3685c3(-0x8,-0x85,0x19,-0x40)+_0x1f0d1b(-0x9c,-0xb6,-0x6c,-0xb7)+_0x3685c3(-0x74,-0x41,-0x13,-0x6f)+_0x1f0d1b(-0x78,-0x62,-0xef,-0xd7)}},{'id':_0x1f0d1b(-0x1a,-0x73,0x23,-0x2),'label':_0x1f0d1b(0x8,-0xa1,-0xe9,-0x70)+'LI','required':!0x1,'bins':[_0x1f0d1b(-0x1,-0x47,0x58,-0x2)],'envVars':[_0x1f0d1b(-0x147,-0xec,-0x7b,-0xdf)+_0x1f0d1b(-0x35,-0x21,-0x83,-0x77),'CLAUDE_C'+_0x1f0d1b(0x12,0xb,-0x26,-0x1e)],'extraDirs':[_0x6e56f0(c,'.claude','bin')],'install':{'win32':_0x3685c3(-0x70,-0x9f,-0x86,-0xb8)+'ll\x20-Exec'+_0x3685c3(-0x16,-0x22,0x8,-0x9)+_0x1f0d1b(-0x50,-0x108,-0xfa,-0x97)+_0x3685c3(-0x24,0x48,-0x30,-0xc)+'rm\x20https'+'://claud'+_0x1f0d1b(-0x55,-0x9a,-0xc0,-0xa7)+_0x3685c3(0xe,-0x17,0x31,0x2d)+_0x1f0d1b(-0x12f,-0x135,-0x118,-0xc9),'posix':_0x1f0d1b(-0xf,-0x4a,-0x9e,-0x8c)+_0x1f0d1b(0x2,-0x1b,0xb,-0x1a)+_0x1f0d1b(-0xa7,-0xdd,-0xae,-0xd8)+'e.ai/ins'+'tall.sh\x20'+_0x3685c3(0x69,0xc5,0xb8,0xa3)}},{'id':_0x1f0d1b(-0x59,-0x16,-0x5a,-0x2f),'label':_0x1f0d1b(-0x77,0x14,0x40,0x0)+_0x3685c3(-0x5e,-0xbd,-0x9a,-0xd),'required':!0x1,'bins':[_0x1f0d1b(-0xa7,-0x4d,-0x37,-0x2f)],'envVars':[_0x1f0d1b(-0x58,-0x5c,-0x79,-0x7f),_0x1f0d1b(-0x12,-0x7e,-0x2e,-0x3)+_0x1f0d1b(-0x8e,-0x12c,-0x51,-0xcc)],'extraDirs':process[_0x3685c3(-0x1e,0x17,-0x57,0x4c)]===_0x3685c3(0x3d,0x7c,0xa,-0x1d)&&process.env.LOCALAPPDATA?[_0x6e56f0(process.env.LOCALAPPDATA,'agy','bin')]:[],'install':{'win32':'powershe'+'ll\x20-Exec'+_0x3685c3(-0x16,0xe,-0x8f,-0x27)+_0x3685c3(-0x1f,0x5a,-0x61,0x5e)+_0x1f0d1b(-0x53,-0xc0,-0x5c,-0x9c)+_0x3685c3(-0x48,0x23,-0xa6,-0x79)+_0x3685c3(0x20,0x34,0x9c,0x59)+_0x1f0d1b(-0x54,-0x7a,0x2c,-0x35)+'oogle/cl'+_0x1f0d1b(0x22,-0x34,-0x2e,-0x45)+_0x1f0d1b(-0x50,-0x88,-0x3d,-0x11)+_0x3685c3(-0x1,0x70,-0x72,-0x45),'manual':_0x1f0d1b(0x24,0x9,-0x28,-0x1f)+_0x1f0d1b(-0x32,0x25,-0x54,0x0)+_0x3685c3(0x3b,0x2f,0x3f,0xaf)+_0x1f0d1b(-0x7b,-0x3f,-0xb8,-0x6e)+_0x1f0d1b(-0xa7,0x0,-0xdc,-0x6c)+_0x3685c3(-0x2c,-0x75,-0xa1,-0x77)+_0x3685c3(-0x44,-0x4b,-0x26,-0x95)+_0x3685c3(0x24,0xe,0xc,0x6f)}},{'id':_0x3685c3(0x53,0x8c,0x5c,0x9),'label':_0x1f0d1b(-0x6d,-0xaf,-0x77,-0xbe),'required':!0x1,'bins':[_0x1f0d1b(-0x78,-0x99,-0x44,-0x25)],'envVars':[_0x3685c3(-0x64,-0x7f,-0x2a,-0xba),_0x1f0d1b(0x3,-0xe,-0x28,-0x3)+_0x3685c3(-0x4e,-0x9,0x1,-0x97)+'N'],'extraDirs':[_0x6e56f0(c,_0x1f0d1b(-0xc3,-0x12a,-0x46,-0xae),_0x1f0d1b(-0xea,-0xf5,-0x9e,-0xb3))],'install':{'manual':_0x3685c3(0x59,0x93,0xcf,0x71)+_0x1f0d1b(-0xb3,-0x59,-0xf5,-0xbe)+_0x1f0d1b(-0x98,-0xa3,-0x69,-0x29)+_0x3685c3(-0x49,-0x97,-0x45,0x2f)+'t\x20GROK_B'+_0x3685c3(0x41,0xab,0x77,0x0)+_0x1f0d1b(-0x12d,-0x4a,-0xef,-0xc4)+'es\x20on\x20PA'+_0x1f0d1b(-0x71,-0xa2,-0x8a,-0x7c)}},{'id':'pi','label':_0x3685c3(-0x72,-0x72,-0xbd,-0xa4)+_0x1f0d1b(-0x64,-0xa1,0x39,-0x38),'required':!0x1,'bins':['pi'],'envVars':['PI_BIN',_0x1f0d1b(0x77,-0x7d,0x9,-0x3)+_0x3685c3(-0x6a,-0xaf,-0x10,-0xbd)],'extraDirs':[],'install':{'all':_0x1f0d1b(-0x43,-0x5,-0xbd,-0x5c)+_0x3685c3(-0x8,-0x1c,0x33,-0x38)+_0x3685c3(-0x63,-0x7c,0x3,-0xbd)+_0x1f0d1b(-0x69,0x5a,0x21,-0xe)+_0x1f0d1b(0xc,0x63,-0x7b,-0x8)+_0x1f0d1b(-0x96,0x7,-0x57,-0x75)}},{'id':_0x1f0d1b(-0x7a,-0xa3,0x30,-0x33),'label':'OpenCode','required':!0x1,'bins':[_0x1f0d1b(-0x3,-0x50,-0xa6,-0x33)],'envVars':[_0x1f0d1b(0x3,-0xc9,-0x3c,-0x5e)+_0x3685c3(-0x20,-0x92,-0x43,-0x74),_0x3685c3(0x75,0x15,0x12,0x13)+_0x1f0d1b(-0xe,-0x55,-0xc2,-0x67)+_0x3685c3(0x15,0x7d,-0x3d,-0x18)],'extraDirs':[_0x6e56f0(c,_0x3685c3(0x4a,0xb6,0xa2,0x83)+'e',_0x1f0d1b(-0xf7,-0xc6,-0x3c,-0xb3))],'install':{'all':_0x3685c3(0x1c,0x79,-0xe,0x3)+_0x3685c3(-0xe,0x66,-0x7b,-0x44)+_0x3685c3(0x37,0x89,0x4d,-0x43)}}];function _0x3685c3(_0x490e97,_0xc0c9b7,_0x3ef9ba,_0x21b84b){return _0x1409(_0x490e97- -0x246,_0x21b84b);}function O(){function _0x588ca2(_0x12d06f,_0xde8f4a,_0xc94bea,_0x45e2fb){return _0x3685c3(_0xde8f4a-0x56c,_0xde8f4a-0xcb,_0xc94bea-0x166,_0x45e2fb);}function _0x5a1b26(_0xd7f60c,_0x2a9cd1,_0x146703,_0x4081d2){return _0x3685c3(_0x146703-0x230,_0x2a9cd1-0xaa,_0x146703-0x13b,_0x2a9cd1);}return(process.env.PATH??process.env.Path??process.env.path??'')[_0x5a1b26(0x17a,0x1d9,0x1d9,0x1db)](_0x253eab)[_0x5a1b26(0x2e4,0x29c,0x27b,0x266)](Boolean);}function h(_0x180aa9){try{return _0x26054a(_0x180aa9);}catch{return!0x1;}}function k(_0x27266c){const _0x390e4e={'nvWEU':function(_0x3888ee,_0x4a9982){return _0x3888ee===_0x4a9982;},'JLSww':_0x48a3ca(0x431,0x466,0x3f5,0x3bc),'wwEud':_0x15f1af(0x500,0x4d7,0x4b0,0x57b),'HnBdk':_0x48a3ca(0x40b,0x46f,0x3c4,0x445),'wVbWk':function(_0x37aa42){return _0x37aa42();},'dVMZH':function(_0x64c6ad,_0x508a8a,_0x3d0d64){return _0x64c6ad(_0x508a8a,_0x3d0d64);},'xJLnG':function(_0x46539a,_0x560f20){return _0x46539a(_0x560f20);},'iKIsA':_0x48a3ca(0x46a,0x45e,0x48c,0x470)};for(let _0x20ef87 of _0x27266c[_0x48a3ca(0x4e7,0x495,0x4cd,0x506)]){let _0x174541=process.env[_0x20ef87]?.[_0x48a3ca(0x4ad,0x516,0x4c6,0x474)]();if(_0x174541&&h(_0x174541))return _0x174541;}let _0x2cb057=_0x390e4e[_0x15f1af(0x51f,0x58e,0x546,0x4f8)](process[_0x15f1af(0x544,0x4db,0x5a7,0x57b)],_0x15f1af(0x59f,0x54e,0x5c5,0x5c6))?[_0x48a3ca(0x437,0x3cd,0x405,0x492),_0x390e4e['JLSww'],_0x390e4e[_0x15f1af(0x5c4,0x602,0x617,0x5a5)],_0x390e4e[_0x48a3ca(0x495,0x4d5,0x4c7,0x4a9)],'']:[''],_0x7faf71=[..._0x390e4e['wVbWk'](O),..._0x27266c[_0x48a3ca(0x487,0x452,0x421,0x4fa)+'s']];function _0x15f1af(_0x4f58a3,_0x446eae,_0x18c6ac,_0x47ba38){return _0x1f0d1b(_0x47ba38,_0x446eae-0xa4,_0x18c6ac-0x111,_0x4f58a3-0x5da);}for(let _0x1c6032 of _0x7faf71)for(let _0xdcf80a of _0x27266c[_0x15f1af(0x4f4,0x515,0x4de,0x53a)])for(let _0xcc4999 of _0x2cb057){let _0x2451b6=_0x390e4e[_0x48a3ca(0x44e,0x42c,0x3d9,0x3d0)](_0x6e56f0,_0x1c6032,''+_0xdcf80a+_0xcc4999);if(_0x390e4e[_0x48a3ca(0x436,0x483,0x448,0x3b9)](h,_0x2451b6))return _0x2451b6;}function _0x48a3ca(_0x23d37c,_0x2287dc,_0x5aec67,_0x145031){return _0x1f0d1b(_0x145031,_0x2287dc-0x34,_0x5aec67-0x49,_0x23d37c-0x4f9);}if(_0x27266c['id']===_0x48a3ca(0x46a,0x428,0x4a1,0x3f7)&&_0x390e4e[_0x48a3ca(0x4fb,0x569,0x56d,0x4b8)](m))return _0x390e4e[_0x15f1af(0x564,0x51e,0x559,0x5b4)];return;}function P(_0x5ac591){const _0x363afd={'gjwhp':function(_0x1545b3,_0x323b69){return _0x1545b3!==_0x323b69;},'gJzAx':function(_0xa8ef4e,_0x2e410c){return _0xa8ef4e(_0x2e410c);}};function _0xd5ddf1(_0x4eb18a,_0x49ae94,_0x33662b,_0x5c192a){return _0x1f0d1b(_0x5c192a,_0x49ae94-0x15c,_0x33662b-0x24,_0x49ae94-0x2f9);}function _0x238bf0(_0x4490de,_0x3062b0,_0x4d8990,_0x5c8b11){return _0x1f0d1b(_0x5c8b11,_0x3062b0-0x49,_0x4d8990-0x1f1,_0x4d8990-0x328);}let _0x34653f=process['platform']===_0xd5ddf1(0x303,0x2be,0x2e4,0x27b)&&(/\.(cmd|bat)$/i[_0xd5ddf1(0x27a,0x2a8,0x2d1,0x2d7)](_0x5ac591)||!_0x5ac591[_0x238bf0(0x295,0x2b3,0x25e,0x2cf)]('/')&&!_0x5ac591[_0x238bf0(0x23d,0x294,0x25e,0x21e)]('\x5c')),_0x1a225b=_0x34653f?process.env.ComSpec||process.env.COMSPEC||_0x238bf0(0x1f7,0x252,0x273,0x251):_0x5ac591,_0x56eeae=_0x34653f?['/d','/s','/c',_0x238bf0(0x26c,0x2ca,0x2da,0x344)+_0x5ac591+(_0xd5ddf1(0x269,0x22c,0x1f1,0x29f)+_0xd5ddf1(0x2e0,0x2d2,0x299,0x26d))]:[_0xd5ddf1(0x1d2,0x224,0x216,0x1ca)+'n'];try{let _0x3202d8=_0x993e68(_0x1a225b,_0x56eeae,{'encoding':_0x238bf0(0x2ea,0x330,0x2c2,0x284),'windowsHide':!0x0,'windowsVerbatimArguments':_0x34653f,'timeout':0x1f40});if(_0x3202d8[_0xd5ddf1(0x367,0x2fd,0x2b6,0x31c)]||_0x363afd[_0xd5ddf1(0x2a5,0x2d6,0x28d,0x2f5)](_0x3202d8[_0xd5ddf1(0x1df,0x251,0x29f,0x224)],0x0))return;let _0x3bfbd9=_0x363afd['gJzAx'](String,_0x3202d8[_0xd5ddf1(0x2ef,0x274,0x2b5,0x231)]||_0x3202d8[_0xd5ddf1(0x248,0x216,0x1b2,0x1db)]||'')[_0xd5ddf1(0x2e9,0x2ad,0x2b8,0x232)]();return _0x3bfbd9[_0x238bf0(0x2a1,0x273,0x236,0x2aa)](/(\d+\.\d+\.\d+)/)?.[0x1]??_0x3bfbd9[_0x238bf0(0x1f9,0x240,0x259,0x24a)](/\r?\n/)[0x0]?.[_0x238bf0(0x2e0,0x29c,0x2bb,0x2d9)](0x0,0x40)??void 0x0;}catch{return;}}function y(_0xa07ed7){const _0x44293e={'OLvbx':_0xae8bad(0x287,0x2f1,0x2f3,0x2c2)+_0xae8bad(0x297,0x2f9,0x325,0x2e2)+'equired.'};if(_0xa07ed7[_0x575fe0(0x445,0x3b9,0x470,0x402)][_0x575fe0(0x433,0x406,0x3ef,0x42b)])return _0xa07ed7[_0x575fe0(0x460,0x397,0x405,0x402)]['all'];function _0x575fe0(_0x3b3743,_0x233e4e,_0x2767e9,_0x13ae06){return _0x1f0d1b(_0x233e4e,_0x233e4e-0x10a,_0x2767e9-0x1c,_0x13ae06-0x493);}function _0xae8bad(_0x2ef7c7,_0x22c425,_0x454bbd,_0x41786e){return _0x1f0d1b(_0x2ef7c7,_0x22c425-0x1a9,_0x454bbd-0x10f,_0x41786e-0x387);}if(process[_0xae8bad(0x28f,0x2b4,0x32a,0x2f1)]===_0x575fe0(0x42b,0x491,0x438,0x458)&&_0xa07ed7[_0x575fe0(0x415,0x39b,0x3b7,0x402)][_0xae8bad(0x2f7,0x322,0x2e4,0x34c)])return _0xa07ed7[_0x575fe0(0x387,0x44c,0x3ac,0x402)][_0xae8bad(0x36e,0x31e,0x2ed,0x34c)];if(process[_0xae8bad(0x2e1,0x34f,0x350,0x2f1)]!==_0xae8bad(0x3b8,0x3c7,0x2ec,0x34c)&&_0xa07ed7[_0xae8bad(0x2b1,0x31a,0x373,0x2f6)][_0x575fe0(0x4e5,0x48c,0x45b,0x472)])return _0xa07ed7[_0x575fe0(0x3b5,0x45e,0x3ec,0x402)][_0xae8bad(0x395,0x3b8,0x337,0x366)];return _0xa07ed7[_0xae8bad(0x32d,0x2ee,0x300,0x2f6)][_0x575fe0(0x448,0x44b,0x402,0x439)]??_0xa07ed7[_0x575fe0(0x45d,0x3db,0x3b9,0x402)][_0xae8bad(0x346,0x2f7,0x303,0x34c)]??_0xa07ed7[_0xae8bad(0x34a,0x2a9,0x2de,0x2f6)][_0x575fe0(0x4df,0x3f3,0x459,0x472)]??_0x44293e['OLvbx'];}function p(_0x2b10ba){function _0x116c95(_0x4bec40,_0x71f2e2,_0x3228a4,_0x441e0d){return _0x1f0d1b(_0x71f2e2,_0x71f2e2-0x5a,_0x3228a4-0x1dc,_0x3228a4- -0x7);}function _0x3cfabb(_0x48df5c,_0x68cbeb,_0x1549b3,_0x8d8cf0){return _0x1f0d1b(_0x68cbeb,_0x68cbeb-0x11b,_0x1549b3-0x79,_0x1549b3-0x410);}const _0x5e9a63={'yLKpR':function(_0x1ed9c8,_0x263861){return _0x1ed9c8(_0x263861);}};let _0x39f984=_0x5e9a63[_0x116c95(0x5,0x27,-0x47,-0xb)](k,_0x2b10ba);return{'id':_0x2b10ba['id'],'label':_0x2b10ba[_0x3cfabb(0x474,0x44f,0x409,0x3be)],'required':_0x2b10ba[_0x3cfabb(0x30a,0x31e,0x373,0x369)],'found':_0x5e9a63[_0x3cfabb(0x393,0x44b,0x3d0,0x3c6)](Boolean,_0x39f984),'path':_0x39f984,'version':_0x39f984?P(_0x39f984):void 0x0,'installHint':_0x5e9a63[_0x3cfabb(0x3b5,0x3da,0x3d0,0x3c0)](y,_0x2b10ba)};}function u(){let _0x4d0b5c=f[_0x393a94(0x4a5,0x451,0x433,0x435)](p);function _0x5a6b91(_0x468adf,_0x22d504,_0x41ac27,_0x4ff9f0){return _0x1f0d1b(_0x4ff9f0,_0x22d504-0x1cc,_0x41ac27-0xf3,_0x468adf-0xd8);}function _0x393a94(_0x22fc53,_0x3d8b38,_0x53e1a2,_0x351c42){return _0x1f0d1b(_0x22fc53,_0x3d8b38-0x19a,_0x53e1a2-0x6,_0x3d8b38-0x51f);}return{'statuses':_0x4d0b5c,'codexReady':Boolean(_0x4d0b5c[_0x5a6b91(0x24,0x7,0x60,-0x43)](_0x4887cf=>_0x4887cf['id']===_0x5a6b91(0xd4,0xce,0x60,0xb5))?.[_0x5a6b91(0x81,0x45,0x4c,0xba)])};}function w(){const _0x2a4b3f={'cicJs':_0x45ad9c(0x50d,0x4ab,0x496,0x4a1),'sWBgg':_0x45ad9c(0x498,0x4f1,0x435,0x4f2)+_0x22d78f(0x1b2,0x13f,0x14c,0x1a6)+_0x22d78f(0x17f,0x11c,0x12a,0xc5)+_0x22d78f(0xd6,0x117,0x117,0xbf)+_0x45ad9c(0x47c,0x4b3,0x45e,0x4d1)+_0x22d78f(0x121,0x12e,0xd5,0x124)+_0x45ad9c(0x4ca,0x4ba,0x463,0x505)+_0x45ad9c(0x50a,0x52c,0x4a8,0x560)};function _0x22d78f(_0x2b8b40,_0x19b3c7,_0x1eba97,_0x5bd144){return _0x3685c3(_0x1eba97-0xf1,_0x19b3c7-0x143,_0x1eba97-0x107,_0x5bd144);}let {statuses:_0x14454a,codexReady:_0x19dab6}=u();function _0x45ad9c(_0x5ba829,_0x13903b,_0x357b71,_0x3fb0bb){return _0x3685c3(_0x5ba829-0x4ad,_0x13903b-0x59,_0x357b71-0x156,_0x357b71);}for(let _0x5d65ee of _0x14454a){let _0x4c9aed=_0x5d65ee['required']?_0x2a4b3f[_0x22d78f(0x43,0x43,0xbc,0xd7)]:_0x22d78f(0xcb,0x24,0x79,0xc5);if(_0x5d65ee[_0x22d78f(0xc6,0x158,0x112,0x116)])console[_0x45ad9c(0x4a3,0x51b,0x458,0x509)]('ok\x20\x20\x20'+_0x5d65ee[_0x22d78f(0x10d,0x1d2,0x162,0x133)]+'\x20['+_0x4c9aed+']'+(_0x5d65ee['version']?'\x20'+_0x5d65ee[_0x22d78f(0x154,0x103,0x133,0x17b)]:'')+(_0x5d65ee[_0x45ad9c(0x526,0x521,0x4ff,0x544)]?'\x20('+_0x5d65ee[_0x45ad9c(0x526,0x4ef,0x558,0x546)]+')':''));else console[_0x45ad9c(0x4a3,0x4a7,0x4d7,0x48b)](_0x45ad9c(0x50e,0x4e9,0x52b,0x4f5)+_0x5d65ee[_0x45ad9c(0x51e,0x4a7,0x4fd,0x548)]+'\x20['+_0x4c9aed+']'),console['log'](_0x22d78f(0x115,0x114,0x155,0x1b6)+_0x22d78f(0x1a5,0x12b,0x15e,0x16b)+_0x5d65ee['installH'+_0x22d78f(0x21,0xa4,0x82,0xff)]);}if(!_0x19dab6)console['log'](_0x2a4b3f[_0x45ad9c(0x451,0x3df,0x405,0x46a)]);return _0x19dab6;}function _0x2ef6(){const _0x5978ba=['lMnTza','zw0GCgfJA2e','x0Dst0TFqKK','twfUDwfSigK','DcbYzxnVBhy','EePmBKC','lMv4zq','EsaOB3iGC2u','CM0GAhr0Chm','icaGicaGica','r3jVAYbdteK','y3rVCIaGica','su4GDg8GAxq','BNzxrvu','AM9PBG','yvz6zgu','zY4Gygn4Dsa','B3bLBMfPl2m','nZe4mJC1t1z2Ee5x','y21KlMv4zq','zMLUza','yMLU','sw5ZDgfSBgu','ugXLyxnLigK','zwqGka','AwDUB3jL','lMDYB2S','y2LJsNm','B2XRAxqU','zfznwKG','Dw4GDMLHihK','DcWGDgHLBIa','C3rHDhvZ','zs5HAs9PBNm','oI8Vy2HHDgC','BNn0ywXSihi','zxqGquDzx0i','zwqU','ksWGB3iGC2u','odyWnLPACgPlDq','BNvHBgX5oIa','BgLUDxG','sNzwDg8','CMvXDwLYzwq','C3mGlwmGiMK','D2L0AcbLCNi','DgfSBcbJB20','B3vYihn5C3q','x0jjtG','Awn5iej5uge','CgXHDgzVCM0','BgvYlIa','CNvUigbJEhu','BgWGlwmGiMK','igzVCIbLDMu','Aw5ZDgfSBa','mJruww52sMS','yNvU','DxrPB25qB2W','q29KzxGGq0W','y3vYBcaTzNm','ignOyw5Nzxm','oI8VyNvUlNm','C2uGls1HBgW','EwvZycKU','AxrOic0TEwu','ywXSic1Nig8','C3rKB3v0','BNn0ywXSigi','ihbRzYbPBNm','Bg9N','zsbODhrWCZO','ywXSic1Niea','quDzx0jjtG','Ac9PBNn0ywW','ntCWnZCZv2DNwwvN','veGU','lIbdAg9Py2u','CNKGBwLZC2K','Awv4iG','wffuv1i','qKLo','AuTjC0e','lwfNzw50','igfSCMvHzhK','mtbor3b5BLG','zxH0CMfeAxi','BwfUzcaOBM8','q2XHDwrLiem','ihnRAxbWzwq','BwfUDwfSBhK','C2XPy2u','lcb0AgvUihm','EtOG','DgfSBc5WCZe','uhPSChm','ywXS','x09qru5dt0q','DxrMoa','Aw5OzxjPDa','sg5czgS','rv9csu4','Evrzu1e','yxjNDG','zxiGkguUzY4','Aw5ZDgfSBca','t1bftKnpreu','q09ervHFqKK','BNbTigLUC3q','igrVy3rVCMa','BwfUDwfS','y3v0zsaOzs4','oI8Vyw50AwC','zM91BMq','ntrlzKzHBxe','CM9Rl3bPl28','CYbWyxrOlG','Aw5ZDgfSBeG','BNn0ywXSigK','DgvZDa','CMfU','Bcb8igjHC2G','y2fSBcaI','mJrJEgHgqNK','DhjPBq','ihn0AwXSig4','icbJEhuGzg8','q2fSsgO','C3rHBgWGw3q','lIbsDw4GBwe','zxHPDa','As9PBNn0ywW','BgWGluv4zwm','CYb0BYbLEgu','yMfZAa','CgvUy29Kzq','EuXlCfi','DwLYzwqUieK','ywXSzxiGkhu','Axr5ienmssa','zgv4l2nSyxu','D2LUmZi','BgvUz3rO','uMuTCNvUihC','zYbHz2vUDa','su4PihnVigK','DMvYC2LVBG','CMf2Axr5lMC','DgfSBcbIDw4','B3bLBMnVzgu','zcbPBNn0ywW','B29SxsaGica','zs9bu1qGDg8','ywD5','lM9Wzw5JB2q','zMLSDgvY','zguVywD5l2C','vMv2ywG','mJKWmta3nefVre1yuG','ig1HBNvHBgW','CZOG','Aw9U','mJGYmti0q0LZs21t','z3jVAW','y2LHBcbPBNm','z2P3Aha','ugD2s2W','Cg9ZAxG','lunVBw1HBMq','sw5ZDgfSBca','t0rfx0jjtG','ssbPCYbYzxe','CIbMAw5PC2G','igfNywLUlG','u0WGAhr0Chm','CM0GyNvUlNm','uKvrvuLsruq','BwLZCYa','D3DfDwq','ls1HBgW','icaGicbPBNm','nJHPANb3u3y','zw52vMfYCW','Bc5WCZeGFca','lMj1BG','FcbIyxnO','lxDVCMTZl3a','twTYsw0','AfrwBLG','DgfSBdOG','kgnVzgv4ihi','BM90zq','As1JB2rPBMC','BgfIzwW','DgHLig9MzMK','ls15zxm','y29KzxG','q09ervHFvuK','y2XHDwrL','q1P6Efq','qw50AwDYyxy','Cgf0Aa','D1zIv2S','swzJq0m','zxjYB3i','y29KzxHszwe','zg9JDg9Y','ntKXmJm4ohDjuK9yyW','vw5RBM93BIa','y29KzxGGls0','qNvU','yNvUicSGy28','Bwf0y2G','ChqUy29Tl2m','B3b0Aw9UywW','CIbLEgL0zwq','lMnVBq','C0z6zM8','B2rLEebSyxq','y3H1oIbWDxi','ugKGy29KAw4','igLUC3rHBgW','Cg93zxjZAgu','Aw50','yMLUCW','B29SxsaTlxK','uxDhvxq','C3rKzxjY','x1bjx0jjtG','Dg9VBdOG','zxmGifj1BIa','q09erunmsv8','zxf1AxjLzcK','B2rLEc9PBNm','r1jps19csu4','zwfYzw5KAwW','lMjHDa','lY9IDw4UC2G','oI8Vy2XHDwq','zxn0','Axr5ienmsq','ls12zxjZAw8','C1Dcz2C','mJK2nZqYnMTrvfrdBW','icbJEhuGAw4','BgWUzxHL','zgfYD2LU','C3bSAxq','BwfW','iIaTlxzLCNm','x0fhwv9csu4','DgHLigLUC3q','Aw5JBhvKzxm','ihWGAwv4iG'];_0x2ef6=function(){return _0x5978ba;};return _0x2ef6();}function d(){function _0x181816(_0x298de0,_0x2c904e,_0x51f49b,_0xbaf109){return _0x1f0d1b(_0x51f49b,_0x2c904e-0xc6,_0x51f49b-0x16f,_0x2c904e-0x558);}return f[_0x181816(0x4b1,0x48a,0x47d,0x457)](_0x31b0f8=>_0x31b0f8['id']);}function _0x1409(_0x49edc1,_0x5f1af8){_0x49edc1=_0x49edc1-0x1ca;const _0x2ef6b5=_0x2ef6();let _0x14099e=_0x2ef6b5[_0x49edc1];if(_0x1409['dLTdzO']===undefined){var _0x1724da=function(_0x31034f){const _0x2ed453='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14fc32='',_0x2fd2e6='';for(let _0xe50e4f=0x0,_0x166258,_0x397fa0,_0x49e665=0x0;_0x397fa0=_0x31034f['charAt'](_0x49e665++);~_0x397fa0&&(_0x166258=_0xe50e4f%0x4?_0x166258*0x40+_0x397fa0:_0x397fa0,_0xe50e4f++%0x4)?_0x14fc32+=String['fromCharCode'](0xff&_0x166258>>(-0x2*_0xe50e4f&0x6)):0x0){_0x397fa0=_0x2ed453['indexOf'](_0x397fa0);}for(let _0x4d9e9e=0x0,_0x30c40d=_0x14fc32['length'];_0x4d9e9e<_0x30c40d;_0x4d9e9e++){_0x2fd2e6+='%'+('00'+_0x14fc32['charCodeAt'](_0x4d9e9e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2fd2e6);};_0x1409['MuwYwG']=_0x1724da,_0x1409['ovUUkV']={},_0x1409['dLTdzO']=!![];}const _0x91da83=_0x2ef6b5[0x0],_0x590835=_0x49edc1+_0x91da83,_0x39f7bc=_0x1409['ovUUkV'][_0x590835];return!_0x39f7bc?(_0x14099e=_0x1409['MuwYwG'](_0x14099e),_0x1409['ovUUkV'][_0x590835]=_0x14099e):_0x14099e=_0x39f7bc,_0x14099e;}function D(_0x1502fa){const _0x396f5c={'QwGUt':function(_0xebeadd){return _0xebeadd();},'JvVto':function(_0x150e0d,_0x2ab288){return _0x150e0d(_0x2ab288);},'sFzfo':_0xbaf1f5(-0x31,-0x5,-0x74,0x9)+_0x283f88(0x32c,0x322,0x2d2,0x325),'hTVnX':_0xbaf1f5(0xa0,0x43,0x71,0xaf),'MkrIm':_0xbaf1f5(0xfe,0x5b,0xcb,0xb6),'Pzlps':'-NoProfi'+'le','CZzxT':_0x283f88(0x33e,0x3dd,0x32d,0x391)};let _0x3602ea=f[_0x283f88(0x372,0x2ef,0x330,0x342)](_0xda752f=>_0xda752f['id']===_0x1502fa);if(!_0x3602ea)return{'ran':!0x1,'note':_0x283f88(0x418,0x408,0x40d,0x3fe)+'tool:\x20'+_0x1502fa+(_0x283f88(0x38d,0x3c1,0x34e,0x37b)+_0x283f88(0x3de,0x3f3,0x3a6,0x3ce))+_0x396f5c[_0xbaf1f5(0x5,0x33,0x59,0xd)](d)[_0xbaf1f5(-0x40,0x9b,0x84,0x37)](',\x20')};function _0x283f88(_0x2a18b5,_0x34f6ee,_0x4d4fb8,_0x105951){return _0x1f0d1b(_0x4d4fb8,_0x34f6ee-0x1a2,_0x4d4fb8-0x4a,_0x105951-0x3f6);}let _0x448f44=_0x396f5c[_0xbaf1f5(0x60,0x2e,0x5,0x53)](p,_0x3602ea);if(_0x448f44[_0x283f88(0x3c8,0x402,0x418,0x39f)])return{'ran':!0x1,'note':_0x3602ea['label']+(_0xbaf1f5(0x6a,0x6f,0x5b,0x7d)+'\x20install'+_0xbaf1f5(0x7b,0x34,0x74,0x41))+_0x448f44['path']+').'};let _0x4b7d94=y(_0x3602ea);function _0xbaf1f5(_0x2ba8a8,_0x19cd31,_0x453b52,_0x3d7704){return _0x1f0d1b(_0x453b52,_0x19cd31-0x4a,_0x453b52-0x15c,_0x3d7704-0xf1);}if(!_0x3602ea[_0x283f88(0x34c,0x37d,0x393,0x365)][_0xbaf1f5(0xcc,0x3b,0x24,0x89)]&&!_0x3602ea[_0x283f88(0x374,0x3aa,0x2f1,0x365)][_0xbaf1f5(0x42,0x108,0x64,0xb6)]&&!_0x3602ea[_0x283f88(0x3de,0x350,0x32e,0x365)]['posix'])return{'ran':!0x1,'note':_0x3602ea[_0xbaf1f5(0x78,0x103,0x100,0xea)]+('\x20has\x20no\x20'+'automate'+_0xbaf1f5(0x66,0xe0,0x108,0xbf)+_0x283f88(0x2f2,0x3d9,0x30e,0x361))+_0x4b7d94};let _0x349c51=process[_0x283f88(0x34c,0x2f3,0x339,0x360)]===_0x283f88(0x38e,0x426,0x40c,0x3bb)?_0x396f5c[_0xbaf1f5(0x16,-0x2f,0x36,0x4)]:_0x396f5c[_0x283f88(0x3cf,0x3a0,0x39f,0x3ea)],_0x116c94=process[_0x283f88(0x3be,0x2e6,0x2e9,0x360)]===_0x396f5c[_0x283f88(0x3fd,0x3ca,0x41b,0x3e9)]?[_0x396f5c[_0xbaf1f5(0xe3,0xdb,0x14,0x88)],_0x283f88(0x3ae,0x38b,0x3d0,0x3d6),_0x4b7d94]:['-c',_0x4b7d94],_0x538018=_0x993e68(_0x349c51,_0x116c94,{'stdio':_0x396f5c[_0x283f88(0x466,0x39b,0x39f,0x3f5)],'windowsHide':!0x1});if(_0x538018[_0xbaf1f5(0x160,0x9f,0x113,0xf5)]||_0x538018[_0xbaf1f5(0x3e,0x26,0xb3,0x49)]!==0x0)return{'ran':!0x1,'note':_0x283f88(0x2de,0x331,0x376,0x344)+_0xbaf1f5(0x4a,0x1f,0x20,0x2)+'\x20'+(_0x538018[_0xbaf1f5(-0xa,0x23,0x47,0x49)]??_0x283f88(0x3a8,0x312,0x399,0x35b)+'or')+(_0xbaf1f5(0xc2,0x109,0xc3,0xaa)+_0x283f88(0x3d4,0x2e0,0x300,0x356))+_0x4b7d94};let _0x1ae014=p(_0x3602ea);return _0x1ae014[_0xbaf1f5(0xb0,0x68,0x60,0x9a)]?{'ran':!0x0,'command':_0x4b7d94,'note':_0x3602ea['label']+(_0xbaf1f5(-0x6c,0x5f,0x87,0x8)+_0x283f88(0x2ca,0x394,0x357,0x346))+_0x1ae014[_0xbaf1f5(0x137,0xdb,0x14c,0xf2)]+').'}:{'ran':!0x1,'command':_0x4b7d94,'note':'Installe'+_0xbaf1f5(0x9b,0x8b,0x10f,0xd5)+'ed\x20but\x20'+_0x3602ea[_0xbaf1f5(0x97,0x114,0x131,0xea)]+(_0xbaf1f5(0x4e,0x6b,0x5b,0xa6)+'ot\x20detec'+'ted.\x20Run'+'\x20manuall'+_0xbaf1f5(0x40,0x4d,0xeb,0x86))+_0x4b7d94};}var [g,i,v]=process[_0x1f0d1b(-0x81,-0xdd,-0xcc,-0x61)]['slice'](0x2);function E(){const _0x4af8c3={'aVzde':_0x2216e3(-0x7a,-0xc8,-0xb8,-0x105)+'e-TS\x20fil'+_0x2087ff(0x34d,0x306,0x3b1,0x2f5)+_0x2087ff(0x2d1,0x2f2,0x30e,0x349),'CalHj':_0x2216e3(-0x10a,-0x5c,-0x9f,-0x82)+_0x2087ff(0x335,0x349,0x31d,0x370)+_0x2216e3(-0x80,-0x4a,-0xb2,-0x115)+_0x2216e3(-0x11b,-0x5c,-0xad,-0xf7)+_0x2087ff(0x2b2,0x281,0x2f6,0x2f5)+_0x2216e3(0x1e,0x5,-0xb,-0x19)+_0x2216e3(-0xbf,-0xb7,-0x56,0x1c)+_0x2087ff(0x2eb,0x349,0x2ab,0x2e8)+_0x2216e3(-0x45,-0xa4,-0x47,-0x81)+'ng\x20tool)'};function _0x2216e3(_0x2fbde0,_0x105568,_0x4d9dc8,_0x3312bc){return _0x1f0d1b(_0x3312bc,_0x105568-0x6f,_0x4d9dc8-0x1bf,_0x4d9dc8-0x33);}function _0x2087ff(_0x3cd415,_0x1470e7,_0x40089e,_0x11a78c){return _0x1f0d1b(_0x11a78c,_0x1470e7-0x111,_0x40089e-0x17b,_0x3cd415-0x37d);}console[_0x2087ff(0x2fb,0x2d1,0x2c2,0x2c3)](_0x4af8c3[_0x2087ff(0x2c4,0x303,0x292,0x2ba)]),console[_0x2216e3(-0xab,-0x5d,-0x4f,-0x8c)](_0x2216e3(-0x3f,0x1d,-0x17,0x38)+_0x2087ff(0x2c0,0x31f,0x261,0x291)+_0x2216e3(-0x10a,-0xb2,-0x8c,-0x50)+'\x20\x20Check\x20'+_0x2216e3(-0x99,-0x6a,-0xc0,-0xd3)+_0x2087ff(0x341,0x2f2,0x331,0x330)+_0x2087ff(0x351,0x304,0x38b,0x2e6)+_0x2216e3(-0x56,-0x20,-0x22,-0x93)+'pencode\x20'+_0x2216e3(0x36,0x38,0x29,0x18)+_0x2216e3(-0x53,-0x6a,-0xab,-0xf8)),console[_0x2216e3(-0x6d,-0x4e,-0x4f,-0xa3)](_0x2087ff(0x2ab,0x2ff,0x262,0x283)+_0x2216e3(0x4c,-0x86,-0x15,0x3f)+_0x2087ff(0x34c,0x369,0x2d4,0x336)+'\x20\x20Print\x20'+_0x2216e3(-0x20,0x33,0x2d,-0x39)+_0x2216e3(-0x20,-0x5b,0xf,-0x69)+_0x2087ff(0x2e3,0x280,0x30d,0x2ae)+_0x2087ff(0x30c,0x2ec,0x291,0x297)+_0x2216e3(-0x4b,0x17,-0x58,-0xcc)+')'),console[_0x2216e3(-0x86,0x29,-0x4f,-0x9e)](_0x4af8c3[_0x2216e3(0x15,0x2a,-0x16,0x54)]);}if(!g||g===_0x1f0d1b(-0x59,-0x4,-0x3f,0x6))process['exit'](w()?0x0:0x2);if(g===_0x3685c3(-0x19,0xa,-0x36,0x30)){let n=i===_0x3685c3(0x73,0x52,0x33,0x54)||i===_0x3685c3(0x63,0x42,0xb8,-0x4)||v==='--yes',e=i===_0x1f0d1b(-0x4f,0x66,0x28,-0x15)||v===_0x1f0d1b(0x49,0x5b,0x42,-0x15),t=i&&i!==_0x1f0d1b(0x7a,0x3b,0x2b,-0x5)&&i!==_0x1f0d1b(-0x72,-0x85,0xe,-0x15)?i:void 0x0;if(!n){let o=u()['statuses']['filter'](_0x89cb2=>t?_0x89cb2['id']===t:!_0x89cb2[_0x3685c3(0x21,-0x30,0x23,0x68)]);if(t&&o[_0x1f0d1b(0x2e,-0x18,-0x66,-0x3a)]===0x0)console[_0x3685c3(-0xa,-0x55,0x2e,0x39)](_0x3685c3(0x80,0xf1,0xd6,0x6f)+_0x3685c3(-0x69,-0x66,0x7,-0xda)+t+(_0x3685c3(-0x3,-0x65,-0x82,-0x50)+_0x1f0d1b(-0xd,-0x41,0x4b,-0x28))+d()[_0x1f0d1b(-0x88,-0xd6,-0x134,-0xba)](',\x20')),process[_0x3685c3(0x32,0xa8,-0x3a,0x24)](0x1);for(let r of o)console['log'](r['id']+':\x20'+r[_0x1f0d1b(-0x9a,-0x42,-0x69,-0x53)+_0x1f0d1b(-0xbb,-0x102,-0x14a,-0xe7)]);console[_0x3685c3(-0xa,-0x57,0x3b,-0x89)](_0x3685c3(0x3f,0x96,0xa2,0x20)+_0x1f0d1b(-0x32,-0xcd,-0xfd,-0x87)+_0x1f0d1b(-0x86,-0x6e,-0x5f,-0x43)+_0x3685c3(0x1f,-0x15,0x77,0x93)+_0x1f0d1b(-0x58,-0x4a,-0x39,-0xb8)+_0x1f0d1b(-0x42,0x10,-0x71,-0x5f)+_0x1f0d1b(0x39,0x82,-0x4a,0x9)+_0x1f0d1b(-0xd9,-0x42,-0xfb,-0x88)),process['exit'](0x0);}let s=e||!t?d():[t];for(let o of s){let r=D(o);console[_0x1f0d1b(-0xea,-0xb6,-0xf7,-0x82)](r[_0x3685c3(0x6f,0xc8,0x43,0x5)]??(r[_0x1f0d1b(0x4,0x28,-0x59,-0x50)]?o+('\x20install'+_0x3685c3(-0x2b,-0x98,-0x49,-0x90)):o+(_0x3685c3(0x9,0x49,0x27,-0x68)+'.')));}process[_0x1f0d1b(0x2b,0xb,-0x10,-0x46)](u()[_0x3685c3(0x7d,0xd5,0x1,0x1a)+'dy']?0x0:0x2);}function _0x1f0d1b(_0x89169a,_0x23325e,_0xdb85da,_0x2794ba){return _0x1409(_0x2794ba- -0x2be,_0x89169a);}E();
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { isBunAvailable, getBunInstallHint, ensureBunOrHint } from "./bun-runtime.js";
|
|
2
|
+
export * from "./shared-types.js";
|
|
3
|
+
export * from "./vendor/saVmTool.js";
|
|
4
|
+
export * from "./vendor/saVmPolicy.js";
|
|
5
|
+
export * from "./vendor/saVmApplyPatch.js";
|
|
6
|
+
export * from "./vendor/saVmRequest.js";
|
|
7
|
+
export type { SaVmRunResultKind } from "./vendor/saVmResultKind.js";
|
|
8
|
+
export { resultKind as coreResultKind } from "./vendor/saVmResultKind.js";
|
|
9
|
+
export { extractFileOutline, renameSymbolInContent, findDefinitionInContent, getSyntaxDiagnostics, addImportToContent, organizeImportsInContent, analyzeBlockScope, generateTargetImportsForBlock, getTreeSitterWasmPath, getLanguageWasmPath, initTreeSitter, } from "./vendor/saVmTreeSitter.js";
|