@shanepadgett/tau-agent 0.42.1 → 0.42.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
|
-
import type
|
|
2
|
+
import { normalizeContext, type Context, type Message, type Model } from "@earendil-works/pi-ai";
|
|
3
3
|
import {
|
|
4
4
|
buildSessionContext,
|
|
5
5
|
convertToLlm,
|
|
@@ -141,7 +141,7 @@ async function runAside(
|
|
|
141
141
|
)
|
|
142
142
|
: buildAsideRequest([], question, undefined);
|
|
143
143
|
const response = await provider
|
|
144
|
-
.streamSimple(model, request, {
|
|
144
|
+
.streamSimple(model, normalizeContext(request), {
|
|
145
145
|
apiKey: auth.apiKey,
|
|
146
146
|
headers: auth.headers,
|
|
147
147
|
env: auth.env,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shanepadgett/tau-agent",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.2",
|
|
4
4
|
"description": "Tau is a custom agentic harness built with pi extensions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@ast-grep/wasm": "0.45.
|
|
38
|
-
"@shanepadgett/tau-tui": "0.42.
|
|
37
|
+
"@ast-grep/wasm": "0.45.3",
|
|
38
|
+
"@shanepadgett/tau-tui": "0.42.2",
|
|
39
39
|
"@vscode/tree-sitter-wasm": "0.3.1",
|
|
40
|
-
"image-size": "2.0.
|
|
40
|
+
"image-size": "2.0.4",
|
|
41
41
|
"smol-toml": "1.8.0",
|
|
42
|
-
"unbash": "4.0.
|
|
42
|
+
"unbash": "4.0.11",
|
|
43
43
|
"web-tree-sitter": "0.26.12"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
|
-
import
|
|
2
|
+
import {
|
|
3
|
+
normalizeContext,
|
|
4
|
+
type Api,
|
|
5
|
+
type AssistantMessage,
|
|
6
|
+
type Message,
|
|
7
|
+
type Model,
|
|
8
|
+
type ThinkingLevel,
|
|
9
|
+
type Tool,
|
|
10
|
+
} from "@earendil-works/pi-ai";
|
|
3
11
|
import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
4
12
|
import { loadTauExtensionSettings, updateTauExtensionSettings } from "../settings/load.ts";
|
|
5
13
|
import { errorText, truncAt } from "../text.ts";
|
|
@@ -246,14 +254,18 @@ function completeCandidate(
|
|
|
246
254
|
tools?: Tool[],
|
|
247
255
|
): Promise<AssistantMessage> {
|
|
248
256
|
return candidate.provider
|
|
249
|
-
.streamSimple(
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
+
.streamSimple(
|
|
258
|
+
candidate.model,
|
|
259
|
+
normalizeContext(tools ? { messages: [...messages], tools } : { messages: [...messages] }),
|
|
260
|
+
{
|
|
261
|
+
apiKey: candidate.apiKey,
|
|
262
|
+
headers: candidate.headers,
|
|
263
|
+
env: candidate.env,
|
|
264
|
+
signal: ctx.signal,
|
|
265
|
+
reasoning: candidate.reasoning,
|
|
266
|
+
sessionId,
|
|
267
|
+
},
|
|
268
|
+
)
|
|
257
269
|
.result();
|
|
258
270
|
}
|
|
259
271
|
|