@code-yeongyu/lazycodex 0.1.1 → 0.1.2
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/bin/oh-my-opencode.js +2 -1
- package/bin/oh-my-opencode.test.ts +27 -2
- package/bin/platform.d.ts +2 -0
- package/bin/platform.js +6 -1
- package/bin/platform.test.ts +25 -0
- package/dist/cli/index.js +4 -4
- package/dist/index.js +224 -224
- package/package.json +3 -3
- package/packages/ast-grep-mcp/dist/cli.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-yeongyu/lazycodex",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -110,9 +110,9 @@
|
|
|
110
110
|
"vscode-jsonrpc": "^8.2.1"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
+
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
113
114
|
"@oh-my-opencode/ast-grep-core": "workspace:*",
|
|
114
115
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
115
|
-
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
116
116
|
"@oh-my-opencode/boulder-state": "workspace:*",
|
|
117
117
|
"@oh-my-opencode/comment-checker-core": "workspace:*",
|
|
118
118
|
"@oh-my-opencode/hashline-core": "workspace:*",
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
"@oh-my-opencode/rules-engine": "workspace:*",
|
|
123
123
|
"@oh-my-opencode/shared-skills": "workspace:*",
|
|
124
124
|
"@oh-my-opencode/utils": "workspace:*",
|
|
125
|
-
"@typescript/native-preview": "7.0.0-dev.20260518.1",
|
|
126
125
|
"@types/js-yaml": "^4.0.9",
|
|
127
126
|
"@types/picomatch": "^4.0.3",
|
|
127
|
+
"@typescript/native-preview": "7.0.0-dev.20260518.1",
|
|
128
128
|
"bun-types": "1.3.14",
|
|
129
129
|
"typescript": "^6.0.3",
|
|
130
130
|
"zod": "^4.4.3"
|
|
@@ -36,7 +36,7 @@ function rotateLogIfNeeded(path) {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
//
|
|
39
|
+
// ../ast-grep-core/src/language-support.ts
|
|
40
40
|
var CLI_LANGUAGES = [
|
|
41
41
|
"bash",
|
|
42
42
|
"c",
|
|
@@ -67,7 +67,7 @@ var CLI_LANGUAGES = [
|
|
|
67
67
|
var DEFAULT_TIMEOUT_MS = 300000;
|
|
68
68
|
var DEFAULT_MAX_OUTPUT_BYTES = 1 * 1024 * 1024;
|
|
69
69
|
var DEFAULT_MAX_MATCHES = 500;
|
|
70
|
-
//
|
|
70
|
+
// ../ast-grep-core/src/pattern-hints.ts
|
|
71
71
|
function detectRegexMisuse(pattern) {
|
|
72
72
|
const src = pattern.trim();
|
|
73
73
|
if (/\\[wWdDsSbB]/.test(src)) {
|
|
@@ -114,7 +114,7 @@ function detectLanguageSpecificMistake(pattern, lang) {
|
|
|
114
114
|
function getPatternHint(pattern, lang) {
|
|
115
115
|
return detectRegexMisuse(pattern) ?? detectLanguageSpecificMistake(pattern, lang);
|
|
116
116
|
}
|
|
117
|
-
//
|
|
117
|
+
// ../ast-grep-core/src/result-formatter.ts
|
|
118
118
|
function formatSearchResult(result) {
|
|
119
119
|
if (result.error) {
|
|
120
120
|
return `Error: ${result.error}`;
|
|
@@ -167,7 +167,7 @@ function formatReplaceResult(result, isDryRun) {
|
|
|
167
167
|
return lines.join(`
|
|
168
168
|
`);
|
|
169
169
|
}
|
|
170
|
-
//
|
|
170
|
+
// ../ast-grep-core/src/sg-compact-json-output.ts
|
|
171
171
|
function createSgResultFromStdout(stdout) {
|
|
172
172
|
if (!stdout.trim()) {
|
|
173
173
|
return { matches: [], totalMatches: 0, truncated: false };
|
|
@@ -211,7 +211,7 @@ function createSgResultFromStdout(stdout) {
|
|
|
211
211
|
truncatedReason: outputTruncated ? "max_output_bytes" : matchesTruncated ? "max_matches" : undefined
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
//
|
|
214
|
+
// ../ast-grep-core/src/runner.ts
|
|
215
215
|
var SG_BINARY_NOT_FOUND_MESSAGE = `ast-grep (sg) binary not found.
|
|
216
216
|
|
|
217
217
|
` + `Install options:
|