opencode-agentic-engine 0.2.0 → 0.2.1
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AA+mG/D,eAAO,MAAM,aAAa,EAAE,MAAqB,CAAA;AAEjD,QAAA,MAAM,YAAY,EAAE,YAGnB,CAAA;AACD,eAAe,YAAY,CAAA;AAG3B,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAC5J,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// opencode-agentic-engine v0.2.
|
|
1
|
+
// opencode-agentic-engine v0.2.1
|
|
2
2
|
// Bundled for zero-install drop-in
|
|
3
3
|
|
|
4
4
|
// src/index.ts
|
|
@@ -6798,7 +6798,7 @@ Call the specific tool (agentic_nav, agentic_execute, etc.) directly.
|
|
|
6798
6798
|
await traceLogger.init();
|
|
6799
6799
|
} catch {
|
|
6800
6800
|
}
|
|
6801
|
-
autoUpdatePlugin("0.2.
|
|
6801
|
+
autoUpdatePlugin("0.2.1");
|
|
6802
6802
|
configLoader.onChange((newConfig) => {
|
|
6803
6803
|
vectorStore.setSearchWeights(newConfig.memory.search.keywordWeight, newConfig.memory.search.vectorWeight);
|
|
6804
6804
|
vectorStore.setStopWordsLanguages(newConfig.memory.stopWordsLanguages);
|
|
@@ -9508,8 +9508,51 @@ ${dataset.data.slice(0, 2e3)}${dataset.data.length > 2e3 ? "\n\u2026 (truncated)
|
|
|
9508
9508
|
}
|
|
9509
9509
|
} catch {
|
|
9510
9510
|
}
|
|
9511
|
+
let codebaseContext = "";
|
|
9512
|
+
try {
|
|
9513
|
+
for (const cfg of ["package.json", "Cargo.toml", "go.mod", "pyproject.toml", "Gemfile", "composer.json"]) {
|
|
9514
|
+
const cfgPath = join6(projectDir, cfg);
|
|
9515
|
+
if (existsSync8(cfgPath)) {
|
|
9516
|
+
codebaseContext += `
|
|
9517
|
+
### ${cfg}
|
|
9518
|
+
\`\`\`
|
|
9519
|
+
${readFileSync6(cfgPath, "utf-8").slice(0, 1e3)}
|
|
9520
|
+
\`\`\`
|
|
9521
|
+
`;
|
|
9522
|
+
}
|
|
9523
|
+
}
|
|
9524
|
+
const srcDirs = ["src", "app", "lib", "server"].filter((d) => existsSync8(join6(projectDir, d)));
|
|
9525
|
+
let filesRead = 0;
|
|
9526
|
+
for (const dir of srcDirs) {
|
|
9527
|
+
const walkDir = (d) => {
|
|
9528
|
+
if (filesRead >= 5) return;
|
|
9529
|
+
try {
|
|
9530
|
+
for (const entry of readdirSync2(d, { withFileTypes: true })) {
|
|
9531
|
+
if (filesRead >= 5) return;
|
|
9532
|
+
const full = join6(d, entry.name);
|
|
9533
|
+
if (entry.isDirectory() && !["node_modules", ".git", "dist"].includes(entry.name)) walkDir(full);
|
|
9534
|
+
else if (entry.isFile() && /\.(ts|js|tsx|jsx|mjs|rs|go|py)$/.test(entry.name)) {
|
|
9535
|
+
const content = readFileSync6(full, "utf-8").slice(0, 500);
|
|
9536
|
+
if (content.trim()) {
|
|
9537
|
+
codebaseContext += `
|
|
9538
|
+
### ${full.replace(projectDir, ".")}
|
|
9539
|
+
\`\`\`
|
|
9540
|
+
${content}
|
|
9541
|
+
\`\`\`
|
|
9542
|
+
`;
|
|
9543
|
+
filesRead++;
|
|
9544
|
+
}
|
|
9545
|
+
}
|
|
9546
|
+
}
|
|
9547
|
+
} catch {
|
|
9548
|
+
}
|
|
9549
|
+
};
|
|
9550
|
+
walkDir(join6(projectDir, dir));
|
|
9551
|
+
}
|
|
9552
|
+
} catch {
|
|
9553
|
+
}
|
|
9511
9554
|
await navigator.scan(projectDir);
|
|
9512
|
-
const summary = navigator.getSummary() + knowledgeContext;
|
|
9555
|
+
const summary = navigator.getSummary() + knowledgeContext + codebaseContext;
|
|
9513
9556
|
let subtasks = [];
|
|
9514
9557
|
try {
|
|
9515
9558
|
const intent = await planner.decomposeWithLLM(llmEngine2, args.goal, summary);
|