takomi 2.1.30 → 2.1.32
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/.pi/extensions/notify-sound/index.ts +262 -262
- package/.pi/extensions/oauth-router/README.md +2 -1
- package/.pi/extensions/oauth-router/index.ts +130 -41
- package/.pi/extensions/oauth-router/provider.ts +115 -3
- package/.pi/extensions/oauth-router/types.ts +18 -0
- package/.pi/extensions/takomi-context-manager/diagnostics-tools.ts +1 -1
- package/.pi/extensions/takomi-context-manager/index.ts +1 -1
- package/.pi/extensions/takomi-context-manager/model-policy-gate.ts +1 -1
- package/.pi/extensions/takomi-context-manager/policy-tools.ts +1 -1
- package/.pi/extensions/takomi-context-manager/prerequisite-gates.ts +1 -1
- package/.pi/extensions/takomi-context-manager/skill-tools.ts +1 -1
- package/.pi/extensions/takomi-runtime/commands.ts +1 -1
- package/.pi/extensions/takomi-runtime/context-panel.ts +708 -708
- package/.pi/extensions/takomi-runtime/index.ts +2 -2
- package/.pi/extensions/takomi-runtime/shared.ts +1 -1
- package/.pi/extensions/takomi-runtime/subagent-controller.ts +1 -1
- package/.pi/extensions/takomi-runtime/subagent-render.ts +1 -1
- package/.pi/extensions/takomi-runtime/subagent-types.ts +11 -11
- package/.pi/extensions/takomi-runtime/ui.ts +2 -2
- package/.pi/extensions/takomi-subagents/agents.ts +1 -1
- package/.pi/extensions/takomi-subagents/index.ts +1 -1
- package/.pi/extensions/takomi-subagents/native-render.ts +3 -3
- package/.pi/extensions/takomi-subagents/pi-subagents-engine.ts +2 -2
- package/.pi/extensions/takomi-subagents/tool-runner.ts +1 -1
- package/package.json +5 -9
- package/src/doctor.js +1 -1
- package/src/pi-harness.js +34 -11
- package/src/pi-optional-features.js +1 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mkdir, readdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
import type { ExtensionAPI, ExtensionContext } from "@
|
|
5
|
-
import { StringEnum } from "@
|
|
4
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
5
|
+
import { StringEnum } from "@earendil-works/pi-ai";
|
|
6
6
|
import { Type } from "typebox";
|
|
7
7
|
import {
|
|
8
8
|
buildSessionState,
|
|
@@ -10,7 +10,7 @@ import { mkdir, writeFile } from "node:fs/promises";
|
|
|
10
10
|
import { spawn } from "node:child_process";
|
|
11
11
|
import os from "node:os";
|
|
12
12
|
import path from "node:path";
|
|
13
|
-
import type { ExtensionContext } from "@
|
|
13
|
+
import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
14
14
|
|
|
15
15
|
// ─── ANSI / String Utilities ────────────────────────────────────────
|
|
16
16
|
|
|
@@ -67,18 +67,18 @@ export interface TakomiSubagentController {
|
|
|
67
67
|
hasRuns(): boolean;
|
|
68
68
|
getStatusSummary(): string;
|
|
69
69
|
getViewMode(): SubagentViewMode;
|
|
70
|
-
start(ctx: import("@
|
|
71
|
-
update(ctx: import("@
|
|
72
|
-
appendLog(ctx: import("@
|
|
73
|
-
complete(ctx: import("@
|
|
74
|
-
block(ctx: import("@
|
|
75
|
-
reset(ctx?: import("@
|
|
70
|
+
start(ctx: import("@earendil-works/pi-coding-agent").ExtensionContext, state: TakomiSubagentRunInit, runKey?: string): Promise<void>;
|
|
71
|
+
update(ctx: import("@earendil-works/pi-coding-agent").ExtensionContext, patch: TakomiSubagentRunPatch, runKey?: string): Promise<void>;
|
|
72
|
+
appendLog(ctx: import("@earendil-works/pi-coding-agent").ExtensionContext, chunk: string, runKey?: string): Promise<void>;
|
|
73
|
+
complete(ctx: import("@earendil-works/pi-coding-agent").ExtensionContext, patch?: TakomiSubagentRunPatch, runKey?: string): Promise<void>;
|
|
74
|
+
block(ctx: import("@earendil-works/pi-coding-agent").ExtensionContext, patch?: TakomiSubagentRunPatch, runKey?: string): Promise<void>;
|
|
75
|
+
reset(ctx?: import("@earendil-works/pi-coding-agent").ExtensionContext): void;
|
|
76
76
|
refresh(): void;
|
|
77
|
-
refreshWithContext(ctx: import("@
|
|
78
|
-
cycleFocus(direction: SubagentFocusDirection, ctx?: import("@
|
|
79
|
-
setViewMode(mode: SubagentViewMode, ctx?: import("@
|
|
80
|
-
cycleViewMode(ctx?: import("@
|
|
81
|
-
closeFullscreen(ctx?: import("@
|
|
77
|
+
refreshWithContext(ctx: import("@earendil-works/pi-coding-agent").ExtensionContext): void;
|
|
78
|
+
cycleFocus(direction: SubagentFocusDirection, ctx?: import("@earendil-works/pi-coding-agent").ExtensionContext): boolean;
|
|
79
|
+
setViewMode(mode: SubagentViewMode, ctx?: import("@earendil-works/pi-coding-agent").ExtensionContext): SubagentViewMode | undefined;
|
|
80
|
+
cycleViewMode(ctx?: import("@earendil-works/pi-coding-agent").ExtensionContext): SubagentViewMode | undefined;
|
|
81
|
+
closeFullscreen(ctx?: import("@earendil-works/pi-coding-agent").ExtensionContext): SubagentViewMode;
|
|
82
82
|
getKnownParentRunKey(parentTaskId: string): string | undefined;
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AssistantMessage } from "@
|
|
2
|
-
import type { ExtensionContext, ReadonlyFooterDataProvider, Theme } from "@
|
|
1
|
+
import type { AssistantMessage } from "@earendil-works/pi-ai";
|
|
2
|
+
import type { ExtensionContext, ReadonlyFooterDataProvider, Theme } from "@earendil-works/pi-coding-agent";
|
|
3
3
|
import {
|
|
4
4
|
ellipsizeMiddle,
|
|
5
5
|
formatFooterNumber,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as fs from "node:fs";
|
|
2
2
|
import * as path from "node:path";
|
|
3
|
-
import { getAgentDir, parseFrontmatter } from "@
|
|
3
|
+
import { getAgentDir, parseFrontmatter } from "@earendil-works/pi-coding-agent";
|
|
4
4
|
import type { TakomiThinkingLevel } from "../../../src/pi-takomi-core";
|
|
5
5
|
|
|
6
6
|
export type TakomiAgentScope = "user" | "project" | "both";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@
|
|
1
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { Type } from "typebox";
|
|
3
3
|
import { renderTakomiSubagentCall, renderTakomiSubagentResult } from "./native-render";
|
|
4
4
|
import { executeTakomiSubagentTool } from "./tool-runner";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AgentToolResult } from "@
|
|
2
|
-
import type { Theme } from "@
|
|
3
|
-
import { Text } from "@
|
|
1
|
+
import type { AgentToolResult } from "@earendil-works/pi-agent-core";
|
|
2
|
+
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
3
|
+
import { Text } from "@earendil-works/pi-tui";
|
|
4
4
|
import type { TakomiSubagentToolParams } from "./tool-runner";
|
|
5
5
|
import { renderNativeSubagentResult, type Details } from "./pi-subagents-internal";
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as fs from "node:fs";
|
|
2
2
|
import * as os from "node:os";
|
|
3
3
|
import * as path from "node:path";
|
|
4
|
-
import type { AgentToolResult } from "@
|
|
5
|
-
import type { ExtensionAPI, ExtensionContext } from "@
|
|
4
|
+
import type { AgentToolResult } from "@earendil-works/pi-agent-core";
|
|
5
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
6
6
|
import {
|
|
7
7
|
loadPiSubagentsInternals,
|
|
8
8
|
type AgentConfig,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import type { ExtensionAPI, ExtensionContext } from "@
|
|
2
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
3
3
|
import type { TakomiThinkingLevel } from "../../../src/pi-takomi-core";
|
|
4
4
|
import { loadTakomiProfile } from "../takomi-runtime/profile";
|
|
5
5
|
import { applyTakomiRoutingDefaults, loadTakomiModelRoutingSnapshot } from "../takomi-runtime/model-routing-defaults";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "takomi",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.32",
|
|
4
4
|
"description": "🎯 Stop wrestling with AI. Start building with purpose. The artisan's toolkit for agent workflows, Codex skills, and original Takomi capabilities like 21st.dev integration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -45,11 +45,6 @@
|
|
|
45
45
|
"author": "J StaR Films Studios",
|
|
46
46
|
"license": "ISC",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@earendil-works/pi-ai": "^0.78.1",
|
|
49
|
-
"@mariozechner/pi-agent-core": "^0.70.6",
|
|
50
|
-
"@mariozechner/pi-ai": "^0.70.2",
|
|
51
|
-
"@mariozechner/pi-coding-agent": "^0.70.2",
|
|
52
|
-
"@mariozechner/pi-tui": "^0.70.6",
|
|
53
48
|
"commander": "^13.1.0",
|
|
54
49
|
"figlet": "^1.8.0",
|
|
55
50
|
"fs-extra": "^11.3.0",
|
|
@@ -62,9 +57,10 @@
|
|
|
62
57
|
},
|
|
63
58
|
"homepage": "https://github.com/JStaRFilms/VibeCode-Protocol-Suite#readme",
|
|
64
59
|
"devDependencies": {
|
|
65
|
-
"@earendil-works/pi-agent-core": "^0.
|
|
66
|
-
"@earendil-works/pi-
|
|
67
|
-
"@earendil-works/pi-
|
|
60
|
+
"@earendil-works/pi-agent-core": "^0.79.1",
|
|
61
|
+
"@earendil-works/pi-ai": "^0.79.1",
|
|
62
|
+
"@earendil-works/pi-coding-agent": "^0.79.1",
|
|
63
|
+
"@earendil-works/pi-tui": "^0.79.1",
|
|
68
64
|
"@types/node": "^25.5.2",
|
|
69
65
|
"typebox": "^1.1.33",
|
|
70
66
|
"typescript": "^6.0.2"
|
package/src/doctor.js
CHANGED
|
@@ -49,7 +49,7 @@ export async function runDoctor({ version, cwd = process.cwd() } = {}) {
|
|
|
49
49
|
console.log(pc.cyan('\nRecommendations\n'));
|
|
50
50
|
|
|
51
51
|
if (!report.pi.installed) {
|
|
52
|
-
console.log(pc.white(' - Install Pi first: npm install -g @
|
|
52
|
+
console.log(pc.white(' - Install Pi first: npm install -g @earendil-works/pi-coding-agent'));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
if (!report.bundled.packageIncluded) {
|
package/src/pi-harness.js
CHANGED
|
@@ -209,8 +209,26 @@ export async function inspectInstalledTakomiPiHarness(home = HOME) {
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
function
|
|
213
|
-
|
|
212
|
+
function quoteWindowsCommandArg(value) {
|
|
213
|
+
const text = String(value);
|
|
214
|
+
if (text.length === 0) return '""';
|
|
215
|
+
if (!/[\s"&|<>^()%!]/.test(text)) return text;
|
|
216
|
+
return `"${text.replace(/"/g, '\\"')}"`;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function resolveCommandForSpawn(command, args = []) {
|
|
220
|
+
if (process.platform !== 'win32') return { command, args };
|
|
221
|
+
if (/\.(exe|com)$/i.test(command)) return { command, args };
|
|
222
|
+
|
|
223
|
+
return {
|
|
224
|
+
command: 'cmd.exe',
|
|
225
|
+
args: ['/d', '/s', '/c', [command, ...args].map(quoteWindowsCommandArg).join(' ')],
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function runCommand(command, args) {
|
|
230
|
+
const resolved = resolveCommandForSpawn(command, args);
|
|
231
|
+
return spawnSync(resolved.command, resolved.args, { stdio: 'pipe', encoding: 'utf8', shell: false });
|
|
214
232
|
}
|
|
215
233
|
|
|
216
234
|
function runCommandWithTimeout(command, args, timeoutMs) {
|
|
@@ -220,9 +238,10 @@ function runCommandWithTimeout(command, args, timeoutMs) {
|
|
|
220
238
|
let settled = false;
|
|
221
239
|
let timedOut = false;
|
|
222
240
|
|
|
223
|
-
const
|
|
241
|
+
const resolved = resolveCommandForSpawn(command, args);
|
|
242
|
+
const child = spawn(resolved.command, resolved.args, {
|
|
224
243
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
225
|
-
shell:
|
|
244
|
+
shell: false,
|
|
226
245
|
windowsHide: true,
|
|
227
246
|
});
|
|
228
247
|
|
|
@@ -235,10 +254,17 @@ function runCommandWithTimeout(command, args, timeoutMs) {
|
|
|
235
254
|
|
|
236
255
|
const timer = setTimeout(() => {
|
|
237
256
|
timedOut = true;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
257
|
+
if (process.platform === 'win32' && child.pid) {
|
|
258
|
+
try { spawnSync('taskkill', ['/pid', String(child.pid), '/t', '/f'], { stdio: 'ignore' }); } catch {}
|
|
259
|
+
} else {
|
|
260
|
+
try { child.kill(); } catch {}
|
|
261
|
+
setTimeout(() => {
|
|
262
|
+
try { child.kill('SIGKILL'); } catch {}
|
|
263
|
+
}, 1500).unref?.();
|
|
264
|
+
}
|
|
265
|
+
try { child.stdout?.destroy(); } catch {}
|
|
266
|
+
try { child.stderr?.destroy(); } catch {}
|
|
267
|
+
finish({ status: null });
|
|
242
268
|
}, timeoutMs);
|
|
243
269
|
timer.unref?.();
|
|
244
270
|
|
|
@@ -258,9 +284,6 @@ export async function ensurePiInstalled() {
|
|
|
258
284
|
const attempts = [
|
|
259
285
|
{ command: 'npm', args: ['install', '-g', '@earendil-works/pi-coding-agent'] },
|
|
260
286
|
{ command: 'npm.cmd', args: ['install', '-g', '@earendil-works/pi-coding-agent'] },
|
|
261
|
-
// Legacy fallback for older environments that still publish under the original namespace.
|
|
262
|
-
{ command: 'npm', args: ['install', '-g', '@mariozechner/pi-coding-agent'] },
|
|
263
|
-
{ command: 'npm.cmd', args: ['install', '-g', '@mariozechner/pi-coding-agent'] },
|
|
264
287
|
];
|
|
265
288
|
|
|
266
289
|
let lastError = 'Unknown install failure.';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import fs from 'fs-extra';
|
|
2
|
-
import { spawnSync } from 'child_process';
|
|
3
2
|
import prompts from 'prompts';
|
|
4
3
|
import pc from 'picocolors';
|
|
5
|
-
import { detectPiCommand, getPiGlobalTargets } from './pi-harness.js';
|
|
4
|
+
import { detectPiCommand, getPiGlobalTargets, runCommand } from './pi-harness.js';
|
|
6
5
|
|
|
7
6
|
export const TAKOMI_PI_OPTIONAL_FEATURES = [
|
|
8
7
|
{
|
|
@@ -43,10 +42,6 @@ export const TAKOMI_PI_OPTIONAL_FEATURES = [
|
|
|
43
42
|
},
|
|
44
43
|
];
|
|
45
44
|
|
|
46
|
-
function runCommand(command, args) {
|
|
47
|
-
return spawnSync(command, args, { stdio: 'pipe', encoding: 'utf8', shell: process.platform === 'win32' });
|
|
48
|
-
}
|
|
49
|
-
|
|
50
45
|
function packageIdentity(packageSpec) {
|
|
51
46
|
if (!packageSpec.startsWith('npm:')) return packageSpec;
|
|
52
47
|
const withoutPrefix = packageSpec.slice(4);
|