@jskit-ai/assistant-core 0.2.19 → 0.2.21
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 +8 -2
- package/examples/conversation/package.json +1 -1
- package/locales/en.json +1 -0
- package/package.json +6 -1
- package/src/server/conversation/claudeProcess.js +13 -6
- package/src/server/conversation/codexConfiguration.js +22 -4
- package/src/server/conversation/codexHistoryAdapter.js +49 -13
- package/src/server/conversation/codexNotificationObserver.js +3 -3
- package/src/server/conversation/codexProcess.js +4 -2
- package/src/server/conversation/codexPromptDispatch.js +3 -3
- package/src/server/conversation/codexResultSettlement.js +2 -5
- package/src/server/conversation/codexRunJournal.js +55 -3
- package/src/server/conversation/codexThreadStatus.js +6 -2
- package/src/server/conversation/codexTurnEndings.js +3 -3
- package/src/server/conversation/codexTurnRecovery.js +16 -11
- package/src/server/conversation/codexTurnState.js +14 -1
- package/src/server/conversation/customEndpoint.js +188 -0
- package/src/server/conversation/providers/claudeDriver.js +5 -4
- package/src/server/conversation/providers/codexDriverConnection.js +3 -3
- package/src/server/hosts/codexConfiguration.js +1 -0
- package/src/server/hosts/customEndpoint.js +7 -0
- package/src/shared/nativeProviders.js +47 -1
- package/test/codexTurn.test.js +76 -0
- package/test/customEndpoint.test.js +218 -0
- package/test/fixtures/customEndpoint/ollama-0.40.15.json +90 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "Ollama 0.40.15 serving qwen3.5:4b-q4_K_M on 2026-11-06. Recorded: the Messages reply Claude Code 2.1.317 saved in its proof run, the chat completion and both /api/ps replies (read with curl before and after OLLAMA_CONTEXT_LENGTH=65536), and OpenCode 1.18.31's error once the server had stopped. Constructed: the Responses reply (the fields Codex 0.163.0 reads) and the model-missing 404 body.",
|
|
3
|
+
"model": "qwen3.5:4b-q4_K_M",
|
|
4
|
+
"messages": {
|
|
5
|
+
"id": "msg_ac8a55117ab9c4d3ec25734f",
|
|
6
|
+
"type": "message",
|
|
7
|
+
"role": "assistant",
|
|
8
|
+
"model": "qwen3.5:4b-q4_K_M",
|
|
9
|
+
"content": [
|
|
10
|
+
{
|
|
11
|
+
"type": "tool_use",
|
|
12
|
+
"id": "call_4wnyqz70",
|
|
13
|
+
"name": "Bash",
|
|
14
|
+
"input": {
|
|
15
|
+
"command": "cat greeting.txt && echo SHELL-OK"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"stop_reason": "tool_use",
|
|
20
|
+
"usage": {
|
|
21
|
+
"input_tokens": 11114,
|
|
22
|
+
"output_tokens": 138
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"chatCompletion": {
|
|
26
|
+
"id": "chatcmpl-128",
|
|
27
|
+
"object": "chat.completion",
|
|
28
|
+
"created": 1793950047,
|
|
29
|
+
"model": "qwen3.5:4b-q4_K_M",
|
|
30
|
+
"system_fingerprint": "fp_ollama",
|
|
31
|
+
"choices": [
|
|
32
|
+
{
|
|
33
|
+
"index": 0,
|
|
34
|
+
"message": {
|
|
35
|
+
"role": "assistant",
|
|
36
|
+
"content": "OK",
|
|
37
|
+
"reasoning": "Thinking Process:\n\n1. **Analyze the Request:**"
|
|
38
|
+
},
|
|
39
|
+
"finish_reason": "stop"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"response": {
|
|
44
|
+
"id": "resp_128",
|
|
45
|
+
"object": "response",
|
|
46
|
+
"status": "completed",
|
|
47
|
+
"model": "qwen3.5:4b-q4_K_M",
|
|
48
|
+
"output": [
|
|
49
|
+
{
|
|
50
|
+
"type": "message",
|
|
51
|
+
"role": "assistant",
|
|
52
|
+
"content": [
|
|
53
|
+
{
|
|
54
|
+
"type": "output_text",
|
|
55
|
+
"text": "OK"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"psDefaultContext": {
|
|
62
|
+
"models": [
|
|
63
|
+
{
|
|
64
|
+
"name": "qwen3.5:4b-q4_K_M",
|
|
65
|
+
"model": "qwen3.5:4b-q4_K_M",
|
|
66
|
+
"size": 3085046905,
|
|
67
|
+
"size_vram": 3085046905,
|
|
68
|
+
"context_length": 4096
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"psRaisedContext": {
|
|
73
|
+
"models": [
|
|
74
|
+
{
|
|
75
|
+
"name": "qwen3.5:4b-q4_K_M",
|
|
76
|
+
"model": "qwen3.5:4b-q4_K_M",
|
|
77
|
+
"size": 4466021497,
|
|
78
|
+
"size_vram": 4466021497,
|
|
79
|
+
"context_length": 65536
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"modelMissing": {
|
|
84
|
+
"error": {
|
|
85
|
+
"message": "model 'qwen9:1b' not found",
|
|
86
|
+
"type": "not_found_error"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"openCodeServerDown": "Cannot connect to API: Unable to connect. Is the computer able to access the url?"
|
|
90
|
+
}
|