@deepseek-ai/dsh-repeat-tool-reminder 0.2.1-alpha.1 → 0.2.1-alpha.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/lib/index.js +21 -8
- package/package.json +10 -10
package/lib/index.js
CHANGED
|
@@ -1862,20 +1862,33 @@ var LlmError = class extends HarnessError {
|
|
|
1862
1862
|
* Resolve one call under its current adapter registration. The returned
|
|
1863
1863
|
* one-shot handle keeps that registration across header logging and dispatch,
|
|
1864
1864
|
* so HMR cannot combine one adapter's capability result with another adapter.
|
|
1865
|
-
*
|
|
1865
|
+
* An optional synchronous callback selects concrete controls using captured
|
|
1866
|
+
* model metadata. Defaults and validation apply to its result. Callback
|
|
1867
|
+
* failures and cancellation reject preparation before dispatch.
|
|
1868
|
+
* @param config - provider/model route and optional concrete request controls.
|
|
1866
1869
|
* @param signal - optional cancellation for adapter-owned capability lookup.
|
|
1870
|
+
* @param configure - pure control selection, called once before defaults and validation.
|
|
1867
1871
|
* @returns a prepared config and its registration-bound stream entry point.
|
|
1868
1872
|
*/
|
|
1869
|
-
async prepareCall(config, signal) {
|
|
1870
|
-
|
|
1871
|
-
const
|
|
1872
|
-
const
|
|
1873
|
-
const
|
|
1873
|
+
async prepareCall(config, signal, configure) {
|
|
1874
|
+
signal?.throwIfAborted();
|
|
1875
|
+
const { provider, model, ...controls } = config;
|
|
1876
|
+
const registration = this.registration(provider);
|
|
1877
|
+
const adapterCall = await registration.adapter.prepareCall(provider, model, signal);
|
|
1878
|
+
signal?.throwIfAborted();
|
|
1879
|
+
const modelInfo = this.normalizeModelInfo(registration, model, adapterCall.model);
|
|
1880
|
+
const proposed = configure === void 0 ? config : {
|
|
1881
|
+
...configure(deepFreeze(structuredClone(controls)), deepFreeze(modelInfo)),
|
|
1882
|
+
provider,
|
|
1883
|
+
model
|
|
1884
|
+
};
|
|
1885
|
+
signal?.throwIfAborted();
|
|
1886
|
+
const resolved = this.resolveCallWithInfo(proposed, modelInfo);
|
|
1874
1887
|
const resolvedConfig = deepFreeze(structuredClone(resolved.config));
|
|
1875
1888
|
const context = resolved.context === void 0 ? void 0 : deepFreeze(structuredClone(resolved.context));
|
|
1876
1889
|
const adapterDefaults = deepFreeze({
|
|
1877
|
-
...
|
|
1878
|
-
...
|
|
1890
|
+
...proposed.reasoningEffort === void 0 && resolvedConfig.reasoningEffort !== void 0 ? { reasoningEffort: true } : {},
|
|
1891
|
+
...proposed.maxTokens === void 0 && resolvedConfig.maxTokens !== void 0 ? { maxTokens: true } : {}
|
|
1879
1892
|
});
|
|
1880
1893
|
let dispatched = false;
|
|
1881
1894
|
return Object.freeze({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-repeat-tool-reminder",
|
|
3
3
|
"description": "Repeat-tool-call guard plugin: advisory reminders when an agent loops on identical tool calls",
|
|
4
|
-
"version": "0.2.1-alpha.
|
|
4
|
+
"version": "0.2.1-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"@deepseek-ai/schemastery": "~3.18.5-alpha.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@deepseek-ai/dsh-agent": "0.2.1-alpha.
|
|
34
|
-
"@deepseek-ai/dsh-tools": "0.2.1-alpha.
|
|
33
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.2",
|
|
34
|
+
"@deepseek-ai/dsh-tools": "0.2.1-alpha.2",
|
|
35
35
|
"@deepseek-ai/cordis": "~4.0.5-alpha.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@deepseek-ai/dsh-agent": "0.2.1-alpha.
|
|
39
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.1-alpha.
|
|
40
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-alpha.
|
|
41
|
-
"@deepseek-ai/dsh-llm": "0.2.1-alpha.
|
|
42
|
-
"@deepseek-ai/dsh-session": "0.2.1-alpha.
|
|
43
|
-
"@deepseek-ai/dsh-tools": "0.2.1-alpha.
|
|
38
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.2",
|
|
39
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-alpha.2",
|
|
40
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-alpha.2",
|
|
41
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
|
|
42
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-tools": "0.2.1-alpha.2",
|
|
44
44
|
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
45
|
-
"@deepseek-ai/dsh-session-projection": "0.2.1-alpha.
|
|
45
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-alpha.2"
|
|
46
46
|
}
|
|
47
47
|
}
|