@valni/cli-darwin-x64 0.1.4 → 0.1.5
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/package.json
CHANGED
|
@@ -30,6 +30,8 @@ import {
|
|
|
30
30
|
type Context,
|
|
31
31
|
calculateCost,
|
|
32
32
|
createAssistantMessageEventStream,
|
|
33
|
+
getCurrentSystemPrompt,
|
|
34
|
+
getCurrentTools,
|
|
33
35
|
type ImageContent,
|
|
34
36
|
type Message,
|
|
35
37
|
type Model,
|
|
@@ -392,11 +394,13 @@ function streamCustomAnthropic(
|
|
|
392
394
|
// Build request params
|
|
393
395
|
const params: MessageCreateParamsStreaming = {
|
|
394
396
|
model: model.id,
|
|
395
|
-
messages: convertMessages(context.messages, isOAuth, context.
|
|
397
|
+
messages: convertMessages(context.messages, isOAuth, getCurrentTools(context.messages)),
|
|
396
398
|
max_tokens: options?.maxTokens || Math.floor(model.maxTokens / 3),
|
|
397
399
|
stream: true,
|
|
398
400
|
};
|
|
399
401
|
|
|
402
|
+
const systemPrompt = getCurrentSystemPrompt(context.messages);
|
|
403
|
+
|
|
400
404
|
// System prompt with Claude Code identity for OAuth
|
|
401
405
|
if (isOAuth) {
|
|
402
406
|
params.system = [
|
|
@@ -406,18 +410,18 @@ function streamCustomAnthropic(
|
|
|
406
410
|
cache_control: { type: "ephemeral" },
|
|
407
411
|
},
|
|
408
412
|
];
|
|
409
|
-
if (
|
|
413
|
+
if (systemPrompt) {
|
|
410
414
|
params.system.push({
|
|
411
415
|
type: "text",
|
|
412
|
-
text: sanitizeSurrogates(
|
|
416
|
+
text: sanitizeSurrogates(systemPrompt),
|
|
413
417
|
cache_control: { type: "ephemeral" },
|
|
414
418
|
});
|
|
415
419
|
}
|
|
416
|
-
} else if (
|
|
420
|
+
} else if (systemPrompt) {
|
|
417
421
|
params.system = [
|
|
418
422
|
{
|
|
419
423
|
type: "text",
|
|
420
|
-
text: sanitizeSurrogates(
|
|
424
|
+
text: sanitizeSurrogates(systemPrompt),
|
|
421
425
|
cache_control: { type: "ephemeral" },
|
|
422
426
|
},
|
|
423
427
|
];
|
|
Binary file
|
package/runtime/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valni/cli",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"valniConfig": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"prepublishOnly": "npm run clean && npm run build && npm run shrinkwrap"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@valni/agent-core": "^0.1.
|
|
42
|
-
"@valni/ai": "^0.1.
|
|
43
|
-
"@valni/tui": "^0.1.
|
|
41
|
+
"@valni/agent-core": "^0.1.5",
|
|
42
|
+
"@valni/ai": "^0.1.5",
|
|
43
|
+
"@valni/tui": "^0.1.5",
|
|
44
44
|
"pi-switchboard": "git+https://github.com/Valni-Labs/pi-switchboard.git#b35310164e79b3f99bfd697622527a8458e1719d",
|
|
45
45
|
"switchboard-local": "git+https://github.com/Valni-Labs/switchboard-local.git#bda14d2d85735da4519f4545b598b4c5e97e7d3b",
|
|
46
46
|
"@silvia-odwyer/photon-node": "0.3.4",
|
package/runtime/valni
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/runtime/valni
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 76058832 bytes
|
|
4
|
+
sha256: 9b45d462f5ec1584ac199c4d4056aae97d26bccca546f0040de9724ea86984b1
|