tarsk 0.5.38 → 0.5.40
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/dist/index.js +11 -10
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -1637,8 +1637,8 @@ import path5 from "path";
|
|
|
1637
1637
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
1638
1638
|
|
|
1639
1639
|
// src/agent/agent.executor.ts
|
|
1640
|
-
import { Agent as Agent2 } from "@
|
|
1641
|
-
import { streamSimple } from "@
|
|
1640
|
+
import { Agent as Agent2 } from "@earendil-works/pi-agent-core";
|
|
1641
|
+
import { streamSimple } from "@earendil-works/pi-ai";
|
|
1642
1642
|
import { resolve as resolve3, isAbsolute as isAbsolute3 } from "path";
|
|
1643
1643
|
|
|
1644
1644
|
// src/features/mcp/mcp.status.ts
|
|
@@ -5651,8 +5651,9 @@ var MCPManagerImpl = class {
|
|
|
5651
5651
|
parameters: mcpTool.inputSchema,
|
|
5652
5652
|
label: `${mcpTool.serverName}: ${mcpTool.name}`,
|
|
5653
5653
|
execute: async (_toolCallId, params) => {
|
|
5654
|
+
const args2 = params !== null && typeof params === "object" ? params : {};
|
|
5654
5655
|
try {
|
|
5655
|
-
const result = await this.executeTool(mcpTool.name,
|
|
5656
|
+
const result = await this.executeTool(mcpTool.name, args2, projectPath);
|
|
5656
5657
|
return {
|
|
5657
5658
|
content: [
|
|
5658
5659
|
{
|
|
@@ -6774,7 +6775,7 @@ var runWebWorkerTool = createRunWebWorkerTool();
|
|
|
6774
6775
|
import { Type as Type17 } from "@sinclair/typebox";
|
|
6775
6776
|
|
|
6776
6777
|
// src/features/web-fetch/content-processor.ts
|
|
6777
|
-
import { completeSimple as completeSimple2 } from "@
|
|
6778
|
+
import { completeSimple as completeSimple2 } from "@earendil-works/pi-ai";
|
|
6778
6779
|
|
|
6779
6780
|
// src/features/git/git.utils.ts
|
|
6780
6781
|
init_utils();
|
|
@@ -6886,7 +6887,7 @@ function getDataDir() {
|
|
|
6886
6887
|
}
|
|
6887
6888
|
|
|
6888
6889
|
// src/agent/agent.model-resolver.ts
|
|
6889
|
-
import { getModel } from "@
|
|
6890
|
+
import { getModel } from "@earendil-works/pi-ai";
|
|
6890
6891
|
var DEFAULT_HEADERS = {
|
|
6891
6892
|
"HTTP-Referer": "https://tarsk.io",
|
|
6892
6893
|
"X-Title": "Tarsk.io"
|
|
@@ -6945,7 +6946,7 @@ function resolveModel(providerName, modelId, providerConfig) {
|
|
|
6945
6946
|
}
|
|
6946
6947
|
|
|
6947
6948
|
// src/features/git/git.utils.ts
|
|
6948
|
-
import { completeSimple } from "@
|
|
6949
|
+
import { completeSimple } from "@earendil-works/pi-ai";
|
|
6949
6950
|
async function resolveModelAndKey(provider, modelId, metadataManager) {
|
|
6950
6951
|
const providerConfig = await resolveProviderConfig(provider);
|
|
6951
6952
|
if (!providerConfig) return null;
|
|
@@ -9067,7 +9068,7 @@ async function* loadCodingToolsWithMcpStatus(cwd, options) {
|
|
|
9067
9068
|
import { Type as Type19 } from "@sinclair/typebox";
|
|
9068
9069
|
|
|
9069
9070
|
// src/agent/agent.subagent-executor.ts
|
|
9070
|
-
import { Agent } from "@
|
|
9071
|
+
import { Agent } from "@earendil-works/pi-agent-core";
|
|
9071
9072
|
|
|
9072
9073
|
// src/agent/agent.event-transformer.ts
|
|
9073
9074
|
function extractTextFromAssistantMessage(msg) {
|
|
@@ -13020,7 +13021,7 @@ ${result.output}`;
|
|
|
13020
13021
|
}
|
|
13021
13022
|
|
|
13022
13023
|
// src/features/chat/chat-compact.route.ts
|
|
13023
|
-
import { completeSimple as completeSimple3 } from "@
|
|
13024
|
+
import { completeSimple as completeSimple3 } from "@earendil-works/pi-ai";
|
|
13024
13025
|
|
|
13025
13026
|
// src/features/threads/threads-messages.mapper.ts
|
|
13026
13027
|
function resolveGeneratedImageFields(events, storedImageUrl, rawContent) {
|
|
@@ -22164,7 +22165,7 @@ async function handleGetThread(c, threadManager) {
|
|
|
22164
22165
|
}
|
|
22165
22166
|
|
|
22166
22167
|
// src/features/threads/threads-messages.route.ts
|
|
22167
|
-
import { getModels } from "@
|
|
22168
|
+
import { getModels } from "@earendil-works/pi-ai";
|
|
22168
22169
|
function addCatalogPricing(pricingByModelId, providerId, models) {
|
|
22169
22170
|
for (const model of Object.values(models)) {
|
|
22170
22171
|
const inputCost = model.cost?.input ?? 0;
|
|
@@ -26196,7 +26197,7 @@ function createAgentRoutes() {
|
|
|
26196
26197
|
// src/features/project-todos/project-todos.routes.ts
|
|
26197
26198
|
init_database();
|
|
26198
26199
|
import { Hono as Hono18 } from "hono";
|
|
26199
|
-
import { completeSimple as completeSimple4 } from "@
|
|
26200
|
+
import { completeSimple as completeSimple4 } from "@earendil-works/pi-ai";
|
|
26200
26201
|
var VALID_STATUSES = ["Ready", "Plan", "Build", "Test", "Review", "Done"];
|
|
26201
26202
|
async function generateTodoTitle(description, metadataManager) {
|
|
26202
26203
|
const prompt = `Generate a concise 5-8 word title for this todo item.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tarsk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.40",
|
|
4
4
|
"description": "CLI for Tarsk - Project Threads Manager",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"sync-models": "cd ../ai-data && bun run sync-models",
|
|
27
27
|
"dev:watch": "bun run build:app-assets && electrobun dev --watch",
|
|
28
28
|
"build": "bun run build:app-assets && bun run build:server && electrobun build --targets macos-arm64",
|
|
29
|
+
"build:npm": "bun run build:app-assets && bun run build:server",
|
|
29
30
|
"start": "bun run dev",
|
|
30
31
|
"lint": "bunx tsgo --noEmit",
|
|
31
32
|
"test": "env -u TARSK_DEBUG vp test run",
|
|
@@ -38,14 +39,13 @@
|
|
|
38
39
|
"website": "cd ../site && bunx serve . -l 8080"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
42
|
+
"@earendil-works/pi-agent-core": "0.79.6",
|
|
43
|
+
"@earendil-works/pi-ai": "0.79.6",
|
|
41
44
|
"@hono/node-server": "1.19.13",
|
|
42
45
|
"@libsql/client": "0.17.2",
|
|
43
|
-
"@mariozechner/pi-agent-core": "0.65.2",
|
|
44
|
-
"@mariozechner/pi-ai": "0.65.2",
|
|
45
46
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
46
47
|
"@sinclair/typebox": "0.34.49",
|
|
47
48
|
"diff": "8.0.4",
|
|
48
|
-
"electrobun": "1.18.1",
|
|
49
49
|
"glob": "^13.0.1",
|
|
50
50
|
"hono": "4.12.25",
|
|
51
51
|
"ignore": "^7.0.5",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@tarsk/shared": "workspace:*",
|
|
57
57
|
"@types/node": "20.19.39",
|
|
58
58
|
"@typescript/native-preview": "7.0.0-dev.20260408.1",
|
|
59
|
+
"electrobun": "1.18.1",
|
|
59
60
|
"esbuild": "0.28.0",
|
|
60
61
|
"fast-check": "4.6.0",
|
|
61
62
|
"tsx": "^4.7.0",
|