@deepseek-ai/dsh-webhook 0.1.3-alpha.2 → 0.1.5-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 +1 -4
- package/lib/types/session.js +1 -5
- package/package.json +21 -21
package/lib/index.js
CHANGED
|
@@ -66,11 +66,8 @@ function reportRollbackFailure(ctx, subject, error) {
|
|
|
66
66
|
}
|
|
67
67
|
/** Apply the creation-time selection until its first durable request header exists. */
|
|
68
68
|
function installInitialModelSelection(agentCtx, selection) {
|
|
69
|
-
agentCtx.on("agent/request", async (
|
|
69
|
+
agentCtx.on("agent/request", async ({ agent }, next) => {
|
|
70
70
|
const resolved = await next();
|
|
71
|
-
const agent = agentCtx.agent;
|
|
72
|
-
/* v8 ignore next -- AgentRegistry setup always provides the unpublished scoped Agent. */
|
|
73
|
-
if (agent === void 0) throw new Error("webhook Session setup has no scoped Agent");
|
|
74
71
|
if (agent.session.requestHeader() !== void 0 || resolved.provider !== selection.provider || resolved.model !== selection.model) return resolved;
|
|
75
72
|
const { reasoningEffort: _inheritedEffort, ...withoutInheritedEffort } = resolved;
|
|
76
73
|
return {
|
package/lib/types/session.js
CHANGED
|
@@ -61,12 +61,8 @@ function reportRollbackFailure(ctx, subject, error) {
|
|
|
61
61
|
}
|
|
62
62
|
/** Apply the creation-time selection until its first durable request header exists. */
|
|
63
63
|
function installInitialModelSelection(agentCtx, selection) {
|
|
64
|
-
agentCtx.on('agent/request', async (
|
|
64
|
+
agentCtx.on('agent/request', async ({ agent }, next) => {
|
|
65
65
|
const resolved = await next();
|
|
66
|
-
const agent = agentCtx.agent;
|
|
67
|
-
/* v8 ignore next -- AgentRegistry setup always provides the unpublished scoped Agent. */
|
|
68
|
-
if (agent === undefined)
|
|
69
|
-
throw new Error('webhook Session setup has no scoped Agent');
|
|
70
66
|
if (agent.session.requestHeader() !== undefined
|
|
71
67
|
|| resolved.provider !== selection.provider
|
|
72
68
|
|| resolved.model !== selection.model)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-webhook",
|
|
3
3
|
"description": "Fire-and-forget webhook rule runtime that creates Workspace-backed DeepSeek Harness Sessions",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -37,33 +37,33 @@
|
|
|
37
37
|
],
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@deepseek-ai/dsh-agent-default-model": "^0.1.3-alpha.2",
|
|
41
40
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
42
|
-
"@deepseek-ai/dsh-agent
|
|
43
|
-
"@deepseek-ai/dsh-
|
|
44
|
-
"@deepseek-ai/dsh-
|
|
45
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
46
|
-
"@deepseek-ai/dsh-permission-presets": "^0.1.
|
|
47
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
48
|
-
"@deepseek-ai/dsh-session-title": "^0.1.
|
|
49
|
-
"@deepseek-ai/dsh-workspace": "^0.1.
|
|
41
|
+
"@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
|
|
42
|
+
"@deepseek-ai/dsh-agent-default-model": "^0.1.5-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-invariants": "^0.1.5-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-permission-presets": "^0.1.5-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-session-title": "^0.1.5-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-workspace": "^0.1.5-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-agent-presets": "^0.1.5-alpha.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
53
53
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
54
|
+
"@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
|
|
54
55
|
"@deepseek-ai/cordis-plugin-include": "^1.0.7",
|
|
55
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
56
|
-
"@deepseek-ai/dsh-agent-
|
|
57
|
-
"@deepseek-ai/dsh-invariants": "^0.1.
|
|
58
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
59
|
-
"@deepseek-ai/dsh-
|
|
60
|
-
"@deepseek-ai/dsh-
|
|
61
|
-
"@deepseek-ai/dsh-
|
|
62
|
-
"@deepseek-ai/dsh-
|
|
63
|
-
"@deepseek-ai/dsh-agent-presets": "^0.1.3-alpha.2"
|
|
56
|
+
"@deepseek-ai/dsh-agent-default-model": "^0.1.5-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-agent-presets": "^0.1.5-alpha.2",
|
|
58
|
+
"@deepseek-ai/dsh-invariants": "^0.1.5-alpha.2",
|
|
59
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
|
|
60
|
+
"@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
|
|
61
|
+
"@deepseek-ai/dsh-session-title": "^0.1.5-alpha.2",
|
|
62
|
+
"@deepseek-ai/dsh-permission-presets": "^0.1.5-alpha.2",
|
|
63
|
+
"@deepseek-ai/dsh-workspace": "^0.1.5-alpha.2"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@deepseek-ai/dsh-
|
|
67
|
-
"@deepseek-ai/dsh-
|
|
66
|
+
"@deepseek-ai/dsh-brand": "^0.1.5-alpha.2",
|
|
67
|
+
"@deepseek-ai/dsh-util-values": "^0.1.5-alpha.2"
|
|
68
68
|
}
|
|
69
69
|
}
|