@project-ava-supernova/core 0.2.147 → 0.2.148

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/request-shaping/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,eAAe,EACf,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,iBAAiB,EACjB,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhE,MAAM,WAAW,sBAAuB,SAAQ,eAAe;IAC7D,gFAAgF;IAChF,QAAQ,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAClD;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQ5F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/request-shaping/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,eAAe,EACf,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,iBAAiB,EACjB,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhE,MAAM,WAAW,sBAAuB,SAAQ,eAAe;IAC7D,gFAAgF;IAChF,QAAQ,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAClD;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAU5F"}
@@ -24,7 +24,9 @@ export function shapeOpenAICompatBody(input) {
24
24
  const hasImages = messagesHaveImages(messages);
25
25
  return {
26
26
  model: resolveApiModel(model, hasImages),
27
- messages: shapeMessages(provider, messages),
27
+ // The model goes with it: a custom provider pointed at DeepSeek is not
28
+ // called 'deepseek', and it is the model that decides who serves this.
29
+ messages: shapeMessages(provider, messages, model),
28
30
  ...shapeParams(provider, model, params),
29
31
  };
30
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/providers/request-shaping/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,eAAe,EACf,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,iBAAiB,EACjB,WAAW,GACZ,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAwB,MAAM,aAAa,CAAC;AAUhE;;;;;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CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;QAClD,GAAG,WAAW,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC;KACxC,CAAC;AACJ,CAAC"}
@@ -17,11 +17,29 @@
17
17
  */
18
18
  type LooseMessage = Record<string, unknown>;
19
19
  /**
20
- * reasoning_content is an OUTPUT-only field that reasoning models EMIT — they
21
- * reject it as INPUT (Qwen + Mistral 422 `extra_forbidden`, DeepSeek 400). No
22
- * provider needs its own prior thinking replayed. Strip it for every provider.
20
+ * reasoning_content is an OUTPUT-only field that reasoning models EMIT, and
21
+ * most of them reject it as INPUT: Qwen and Mistral 422 `extra_forbidden`.
22
+ * So it is stripped by default.
23
+ *
24
+ * DEEPSEEK IN THINKING MODE IS THE EXACT OPPOSITE, and that is what this
25
+ * parameter exists for. An assistant turn that produced tool_calls must carry
26
+ * its reasoning_content back on every later request or the API answers 400:
27
+ * "The `reasoning_content` in the thinking mode must be passed back to the
28
+ * API."
29
+ *
30
+ * Both halves of that were already known and written down — in two files that
31
+ * never met. trimOldToolResults in agent.ts deliberately PRESERVES the field
32
+ * on tool-calling turns, quoting that very 400, and then this function threw
33
+ * it away again on the way out of the door. The agent's care was undone on
34
+ * every single request, on the BYOK path through base-provider and on the
35
+ * platform path through /api/chat alike.
36
+ *
37
+ * Narrow on purpose. Only assistant turns, only with tool_calls, only with
38
+ * something actually in the field — which is precisely the set DeepSeek
39
+ * demands and no wider, so nothing extra is replayed and no other provider
40
+ * sees a field it would refuse.
23
41
  */
24
- export declare function stripReasoningContent<T extends LooseMessage>(messages: ReadonlyArray<T>): T[];
42
+ export declare function stripReasoningContent<T extends LooseMessage>(messages: ReadonlyArray<T>, keepOnToolCalls?: boolean): T[];
25
43
  /**
26
44
  * Qwen (DashScope) requires system messages at the very start of the array.
27
45
  * Merge multiple system messages into one leading block; if a single system
@@ -52,10 +70,14 @@ export declare function reorderSystemForQwen<T extends LooseMessage>(messages: R
52
70
  */
53
71
  export declare function markTrailingAssistantPrefix<T extends LooseMessage>(provider: string, messages: ReadonlyArray<T>): T[];
54
72
  /**
55
- * The shared OpenAI-compatible message pipeline: always strip reasoning_content,
56
- * reorder system messages for Qwen, and mark a trailing assistant as a Mistral
57
- * prefix continuation. Provider-aware.
73
+ * The shared OpenAI-compatible message pipeline: strip reasoning_content
74
+ * (except where DeepSeek requires it back), reorder system messages for Qwen,
75
+ * and mark a trailing assistant as a Mistral prefix continuation.
76
+ *
77
+ * `model` is optional only so existing callers keep compiling. Pass it —
78
+ * without it a custom provider pointed at DeepSeek cannot be recognised, and
79
+ * that is the case this was written for.
58
80
  */
59
- export declare function shapeMessages<T extends LooseMessage>(provider: string, messages: ReadonlyArray<T>): T[];
81
+ export declare function shapeMessages<T extends LooseMessage>(provider: string, messages: ReadonlyArray<T>, model?: string): T[];
60
82
  export {};
61
83
  //# sourceMappingURL=messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/providers/request-shaping/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAS7F;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,YAAY,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAW5F;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,YAAY,EAChE,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,CAAC,EAAE,CA8BL;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,YAAY,EAClD,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,CAAC,EAAE,CAIL"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/providers/request-shaping/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,EAC1D,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAC1B,eAAe,UAAQ,GACtB,CAAC,EAAE,CAQL;AAwBD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,YAAY,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAW5F;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,YAAY,EAChE,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,CAAC,EAAE,CA8BL;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,YAAY,EAClD,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAC1B,KAAK,CAAC,EAAE,MAAM,GACb,CAAC,EAAE,CAIL"}
@@ -17,20 +17,62 @@
17
17
  */
18
18
  import { logger } from '../../core/logger.js';
19
19
  /**
20
- * reasoning_content is an OUTPUT-only field that reasoning models EMIT — they
21
- * reject it as INPUT (Qwen + Mistral 422 `extra_forbidden`, DeepSeek 400). No
22
- * provider needs its own prior thinking replayed. Strip it for every provider.
20
+ * reasoning_content is an OUTPUT-only field that reasoning models EMIT, and
21
+ * most of them reject it as INPUT: Qwen and Mistral 422 `extra_forbidden`.
22
+ * So it is stripped by default.
23
+ *
24
+ * DEEPSEEK IN THINKING MODE IS THE EXACT OPPOSITE, and that is what this
25
+ * parameter exists for. An assistant turn that produced tool_calls must carry
26
+ * its reasoning_content back on every later request or the API answers 400:
27
+ * "The `reasoning_content` in the thinking mode must be passed back to the
28
+ * API."
29
+ *
30
+ * Both halves of that were already known and written down — in two files that
31
+ * never met. trimOldToolResults in agent.ts deliberately PRESERVES the field
32
+ * on tool-calling turns, quoting that very 400, and then this function threw
33
+ * it away again on the way out of the door. The agent's care was undone on
34
+ * every single request, on the BYOK path through base-provider and on the
35
+ * platform path through /api/chat alike.
36
+ *
37
+ * Narrow on purpose. Only assistant turns, only with tool_calls, only with
38
+ * something actually in the field — which is precisely the set DeepSeek
39
+ * demands and no wider, so nothing extra is replayed and no other provider
40
+ * sees a field it would refuse.
23
41
  */
24
- export function stripReasoningContent(messages) {
42
+ export function stripReasoningContent(messages, keepOnToolCalls = false) {
25
43
  return messages.map((m) => {
26
- if ('reasoning_content' in m) {
27
- const { reasoning_content: _rc, ...rest } = m;
28
- void _rc;
29
- return rest;
30
- }
31
- return m;
44
+ if (!('reasoning_content' in m))
45
+ return m;
46
+ if (keepOnToolCalls && keepsReasoning(m))
47
+ return m;
48
+ const { reasoning_content: _rc, ...rest } = m;
49
+ void _rc;
50
+ return rest;
32
51
  });
33
52
  }
53
+ /** An assistant tool-call turn whose reasoning DeepSeek requires back. */
54
+ function keepsReasoning(m) {
55
+ if (m.role !== 'assistant')
56
+ return false;
57
+ if (!Array.isArray(m.tool_calls) || m.tool_calls.length === 0)
58
+ return false;
59
+ const rc = m.reasoning_content;
60
+ return typeof rc === 'string' && rc.length > 0;
61
+ }
62
+ /**
63
+ * Is this request bound for a DeepSeek model?
64
+ *
65
+ * The provider key alone is not enough. A CUSTOM provider pointed at
66
+ * DeepSeek's endpoint arrives here as 'generic' (or whatever the user named
67
+ * it), and that is the configuration the 400 was first reported from — the
68
+ * error read "Custom Provider API error", not "deepseek". So the model id is
69
+ * checked too, which is the thing that actually decides who serves the call.
70
+ */
71
+ function isDeepSeekTarget(provider, model) {
72
+ if (provider.toLowerCase() === 'deepseek')
73
+ return true;
74
+ return typeof model === 'string' && /deepseek/i.test(model);
75
+ }
34
76
  /**
35
77
  * Qwen (DashScope) requires system messages at the very start of the array.
36
78
  * Merge multiple system messages into one leading block; if a single system
@@ -102,12 +144,16 @@ export function markTrailingAssistantPrefix(provider, messages) {
102
144
  return [...messages.slice(0, -1), { ...last, prefix: true }];
103
145
  }
104
146
  /**
105
- * The shared OpenAI-compatible message pipeline: always strip reasoning_content,
106
- * reorder system messages for Qwen, and mark a trailing assistant as a Mistral
107
- * prefix continuation. Provider-aware.
147
+ * The shared OpenAI-compatible message pipeline: strip reasoning_content
148
+ * (except where DeepSeek requires it back), reorder system messages for Qwen,
149
+ * and mark a trailing assistant as a Mistral prefix continuation.
150
+ *
151
+ * `model` is optional only so existing callers keep compiling. Pass it —
152
+ * without it a custom provider pointed at DeepSeek cannot be recognised, and
153
+ * that is the case this was written for.
108
154
  */
109
- export function shapeMessages(provider, messages) {
110
- const stripped = stripReasoningContent(messages);
155
+ export function shapeMessages(provider, messages, model) {
156
+ const stripped = stripReasoningContent(messages, isDeepSeekTarget(provider, model));
111
157
  const ordered = provider === 'qwen' ? reorderSystemForQwen(stripped) : stripped;
112
158
  return markTrailingAssistantPrefix(provider, ordered);
113
159
  }
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/providers/request-shaping/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAI9C;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAyB,QAA0B;IACtF,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACxB,IAAI,mBAAmB,IAAI,CAAC,EAAE,CAAC;YAC7B,MAAM,EAAE,iBAAiB,EAA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AAI,QAAQ,IAAI,IAAI;QAAE,OAAO,QAAe,CAAC;IAC3E,uEAAuE;IACvE,4EAA4E;IAC5E,2DAA2D;IAC3D,EAAE;IACF,0EAA0E;IAC1E,6BAA6B;IAC7B,EAAE;IACF,mEAAmE;IACnE,kEAAkE;IAClE,EAAE;IACF,6EAA6E;IAC7E,oEAAoE;IACpE,6EAA6E;IAC7E,kDAAkD;IAClD,EAAE;IACF,sEAAsE;IACtE,8EAA8E;IAC9E,6EAA6E;IAC7E,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;IAClF,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,CAAC,IAAI,CACT,iFAAiF;YACjF,8DAA8D,CAC/D,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,IAAI,EAAO,CAAC,CAAC;AACpE,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CAC3B,QAAgB,EAChB,QAA0B,EAC1B,KAAc;IAEd,MAAM,QAAQ,GAAG,qBAAqB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IACpF,MAAM,OAAO,GAAG,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IAChF,OAAO,2BAA2B,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACxD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@project-ava-supernova/core",
3
- "version": "0.2.147",
3
+ "version": "0.2.148",
4
4
  "description": "Core engine for Ava Supernova — agent, providers, tools, config",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",