dsh-asuta-codex-review 0.1.0 → 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/CHANGELOG.md +5 -0
- package/lib/runtime.js +3 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
- Adapt native review activation to DSH 0.2.2-rc.2: pass parent, prompt, working directory and model options at the top level.
|
|
6
|
+
- Limit the host requirement to the verified rc.2 runtime.
|
|
7
|
+
|
|
3
8
|
## Unreleased
|
|
4
9
|
|
|
5
10
|
- Open scope selection directly from an empty /review command; send only after selection, and send nothing on cancellation. Resolve branch/commit choices using the current working directory.
|
package/lib/runtime.js
CHANGED
|
@@ -59,11 +59,9 @@ export async function runReview(ctx, parent, target, signal, options = {}) {
|
|
|
59
59
|
try {
|
|
60
60
|
activation = await ctx.subagents.startActivation({
|
|
61
61
|
provider: 'spawn', childId, label: '代码审查', delivery: 'caller', signal,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
...(options.model ? { agentOptions: { model: options.model } } : {}),
|
|
66
|
-
},
|
|
62
|
+
parent, cwd,
|
|
63
|
+
prompt: [{ type: 'text', text: prompt }],
|
|
64
|
+
...(options.model ? { agentOptions: { model: options.model } } : {}),
|
|
67
65
|
})
|
|
68
66
|
} finally { stop() }
|
|
69
67
|
const result = await awaitResult(activation, signal)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-asuta-codex-review",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Codex-style code review in the current DSH conversation",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": "^22.19.0 || >=24",
|
|
33
|
-
"dsh": "0.2.2-rc.
|
|
33
|
+
"dsh": "0.2.2-rc.2"
|
|
34
34
|
},
|
|
35
35
|
"dsh": {
|
|
36
36
|
"bundle": {
|