opencode-agentic-engine 0.1.4 → 0.1.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/dist/index.d.ts.map +1 -1
- package/dist/index.js +54 -38
- 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;AAyiG/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.1.
|
|
1
|
+
// opencode-agentic-engine v0.1.6
|
|
2
2
|
// Bundled for zero-install drop-in
|
|
3
3
|
|
|
4
4
|
// src/index.ts
|
|
@@ -6536,8 +6536,8 @@ async function autoUpdatePlugin(currentVersion) {
|
|
|
6536
6536
|
}
|
|
6537
6537
|
}
|
|
6538
6538
|
var createEngine = async (input, _options) => {
|
|
6539
|
-
const rawWorktree = input.worktree || process.cwd();
|
|
6540
|
-
const worktree = rawWorktree === "/" ? process.cwd() : rawWorktree;
|
|
6539
|
+
const rawWorktree = input.directory || input.worktree || process.env.HOME || process.cwd();
|
|
6540
|
+
const worktree = rawWorktree === "/" || rawWorktree === "/home" ? input.directory || process.env.HOME || process.cwd() : rawWorktree;
|
|
6541
6541
|
const configLoader = new ConfigLoader(worktree);
|
|
6542
6542
|
const config = configLoader.load();
|
|
6543
6543
|
configLoader.startWatch();
|
|
@@ -6553,54 +6553,70 @@ mode: all
|
|
|
6553
6553
|
|
|
6554
6554
|
# Agentic Engineering Agent
|
|
6555
6555
|
|
|
6556
|
-
|
|
6556
|
+
## \u{1F6A8} CRITICAL RULES
|
|
6557
|
+
|
|
6558
|
+
You have access to **22 specialized agentic_* tools** designed for software engineering. **YOU MUST PREFER THESE TOOLS OVER BUILT-IN TOOLS** for any software engineering task.
|
|
6559
|
+
|
|
6560
|
+
### Tool Preference Hierarchy (HIGHEST first):
|
|
6561
|
+
1. **agentic_*** \u2014 Use FIRST. Far more powerful than built-in tools.
|
|
6562
|
+
2. bash/edit/read/write \u2014 Only if no agentic_* tool fits the need.
|
|
6563
|
+
|
|
6564
|
+
**NEVER** use bash, edit, write, read, glob, grep directly for multi-step engineering tasks. Instead:
|
|
6565
|
+
- Use **agentic_plan** instead of planning manually
|
|
6566
|
+
- Use **agentic_auto** instead of implementing step by step manually
|
|
6567
|
+
- Use **agentic_execute** instead of tracking progress manually
|
|
6568
|
+
|
|
6569
|
+
### FOR MULTI-STEP FEATURES (apps, APIs, refactors):
|
|
6570
|
+
Call **agentic_auto** IMMEDIATELY. Just pass the goal. Example:
|
|
6571
|
+
\`@agentic_auto goal="Buat aplikasi POS dengan Express dan SQLite"\`
|
|
6572
|
+
|
|
6573
|
+
### FOR SINGLE-STEP TASKS:
|
|
6574
|
+
Call the specific tool (agentic_nav, agentic_execute, etc.) directly.
|
|
6557
6575
|
|
|
6558
6576
|
## Standard Workflow
|
|
6559
6577
|
|
|
6560
|
-
1. **
|
|
6561
|
-
2. **
|
|
6562
|
-
3. **agentic_execute** \u2014 Execute each step, report progress
|
|
6563
|
-
4. **agentic_verify** \u2014 Verify compilation/tests after execution
|
|
6564
|
-
5. **agentic_reflect** \u2014 If a step fails, analyze and retry
|
|
6578
|
+
1. **agentic_auto** \u2014 For multi-step tasks, call this FIRST. It handles everything.
|
|
6579
|
+
2. OR manually: **agentic_plan** \u2192 **agentic_nav** \u2192 **agentic_execute** \u2192 **agentic_verify** \u2192 **agentic_reflect**
|
|
6565
6580
|
|
|
6566
6581
|
## Tool Reference
|
|
6567
6582
|
|
|
6583
|
+
### Stage V \u2014 Autonomous (BEST for multi-step)
|
|
6584
|
+
- **agentic_auto**: Fully autonomous loop: plan \u2192 execute \u2192 verify \u2192 retry in ONE call. Just give a goal. USE THIS FIRST for any feature work.
|
|
6585
|
+
|
|
6568
6586
|
### Stage I \u2014 Core Engineering Loop
|
|
6569
|
-
- **agentic_plan**: Decompose a goal into subtasks with dependencies.
|
|
6570
|
-
- **agentic_execute**: Record a completed subtask
|
|
6571
|
-
- **agentic_reflect**: Analyze a failed step \u2014 error category, propagation
|
|
6572
|
-
- **agentic_verify**: Full compile + lint + test suite. Auto-detects language
|
|
6573
|
-
- **agentic_status**: Dashboard
|
|
6587
|
+
- **agentic_plan**: Decompose a goal into subtasks with dependencies. Supports auto-decomposition via LLM.
|
|
6588
|
+
- **agentic_execute**: Record a completed subtask with auto-verification + retry tracking.
|
|
6589
|
+
- **agentic_reflect**: Analyze a failed step \u2014 error category, propagation, root cause, recovery.
|
|
6590
|
+
- **agentic_verify**: Full compile + lint + test suite. Auto-detects language.
|
|
6591
|
+
- **agentic_status**: Dashboard with progress, health, blocked steps, model reliability.
|
|
6574
6592
|
|
|
6575
6593
|
### Stage II \u2014 Codebase & Context
|
|
6576
|
-
- **agentic_nav**: Scan codebase
|
|
6577
|
-
- **agentic_context**: View or compress conversation context
|
|
6594
|
+
- **agentic_nav**: Scan codebase and find relevant files.
|
|
6595
|
+
- **agentic_context**: View or compress conversation context.
|
|
6578
6596
|
- **agentic_snapshot**: Save/list execution checkpoints.
|
|
6579
|
-
- **agentic_pr**: Generate PR description from plan + results.
|
|
6580
|
-
- **agentic_score**: Analyze changeset for technical debt
|
|
6581
|
-
- **agentic_model**: Configure per-role LLM model preferences
|
|
6597
|
+
- **agentic_pr**: Generate PR description from plan + results.
|
|
6598
|
+
- **agentic_score**: Analyze changeset for technical debt.
|
|
6599
|
+
- **agentic_model**: Configure per-role LLM model preferences.
|
|
6582
6600
|
|
|
6583
6601
|
### Stage III \u2014 Multi-Agent & Memory
|
|
6584
|
-
- **agentic_delegate**: Assign
|
|
6585
|
-
- **agentic_pipeline**: Define
|
|
6586
|
-
- **agentic_message**: Inter-agent messaging
|
|
6587
|
-
- **agentic_parallel**:
|
|
6588
|
-
- **agentic_skill**: Extract
|
|
6589
|
-
- **agentic_episodes**: Search cross-session memory
|
|
6590
|
-
- **agentic_dashboard**:
|
|
6591
|
-
- **agentic_guard**: Verify claims
|
|
6602
|
+
- **agentic_delegate**: Assign to architect/developer/qa/coordinator/pm roles.
|
|
6603
|
+
- **agentic_pipeline**: Define and run multi-agent pipelines.
|
|
6604
|
+
- **agentic_message**: Inter-agent messaging system.
|
|
6605
|
+
- **agentic_parallel**: Execute ready steps concurrently.
|
|
6606
|
+
- **agentic_skill**: Extract/find/list reusable skills.
|
|
6607
|
+
- **agentic_episodes**: Search cross-session memory.
|
|
6608
|
+
- **agentic_dashboard**: Observability timeline + anomaly detection.
|
|
6609
|
+
- **agentic_guard**: Verify claims to catch hallucinations.
|
|
6592
6610
|
|
|
6593
6611
|
### Stage IV \u2014 Self-Evolution
|
|
6594
|
-
- **agentic_evolve**: Inspect/extend the agent system
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
- After each execute, check if verification is needed
|
|
6603
|
-
- If a step fails, call **agentic_reflect** before retrying
|
|
6612
|
+
- **agentic_evolve**: Inspect/extend the agent system, manage prompts.
|
|
6613
|
+
|
|
6614
|
+
## CRITICAL RULES
|
|
6615
|
+
1. **ALWAYS prefer agentic_* tools over built-in tools** for engineering tasks
|
|
6616
|
+
2. For multi-step tasks: call **agentic_auto** immediately
|
|
6617
|
+
3. Never ask "should I..." \u2014 just call the tool
|
|
6618
|
+
4. If a step fails, call **agentic_reflect** before retrying
|
|
6619
|
+
5. After all steps done, call **agentic_verify** for final verification
|
|
6604
6620
|
`, "utf-8");
|
|
6605
6621
|
} catch {
|
|
6606
6622
|
}
|
|
@@ -6771,7 +6787,7 @@ You have access to **22 specialized tools**. Use them automatically \u2014 no ne
|
|
|
6771
6787
|
await traceLogger.init();
|
|
6772
6788
|
} catch {
|
|
6773
6789
|
}
|
|
6774
|
-
autoUpdatePlugin("0.1.
|
|
6790
|
+
autoUpdatePlugin("0.1.6");
|
|
6775
6791
|
configLoader.onChange((newConfig) => {
|
|
6776
6792
|
vectorStore.setSearchWeights(newConfig.memory.search.keywordWeight, newConfig.memory.search.vectorWeight);
|
|
6777
6793
|
vectorStore.setStopWordsLanguages(newConfig.memory.stopWordsLanguages);
|