takomi 2.1.2 → 2.1.3

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.
Files changed (49) hide show
  1. package/.pi/README.md +124 -124
  2. package/.pi/agents/architect.md +15 -15
  3. package/.pi/agents/coder.md +14 -14
  4. package/.pi/agents/designer.md +17 -17
  5. package/.pi/agents/orchestrator.md +22 -22
  6. package/.pi/agents/reviewer.md +16 -16
  7. package/.pi/extensions/oauth-router/README.md +125 -125
  8. package/.pi/extensions/oauth-router/commands.ts +380 -380
  9. package/.pi/extensions/oauth-router/config.ts +200 -200
  10. package/.pi/extensions/oauth-router/index.ts +41 -41
  11. package/.pi/extensions/oauth-router/oauth-flow.ts +154 -154
  12. package/.pi/extensions/oauth-router/oauth-store.ts +121 -121
  13. package/.pi/extensions/oauth-router/package.json +14 -14
  14. package/.pi/extensions/oauth-router/policies.ts +27 -27
  15. package/.pi/extensions/oauth-router/provider.ts +492 -492
  16. package/.pi/extensions/oauth-router/scripts/vibe-verify.py +98 -98
  17. package/.pi/extensions/oauth-router/state.ts +174 -174
  18. package/.pi/extensions/oauth-router/types.ts +153 -153
  19. package/.pi/extensions/takomi-runtime/command-text.ts +130 -130
  20. package/.pi/extensions/takomi-runtime/commands.ts +179 -179
  21. package/.pi/extensions/takomi-runtime/context-panel.ts +282 -282
  22. package/.pi/extensions/takomi-runtime/index.ts +1288 -1288
  23. package/.pi/extensions/takomi-runtime/profile.ts +114 -114
  24. package/.pi/extensions/takomi-runtime/routing-policy.ts +105 -105
  25. package/.pi/extensions/takomi-runtime/shared.ts +492 -492
  26. package/.pi/extensions/takomi-runtime/subagent-controller.ts +364 -364
  27. package/.pi/extensions/takomi-runtime/subagent-render.ts +501 -501
  28. package/.pi/extensions/takomi-runtime/subagent-types.ts +83 -83
  29. package/.pi/extensions/takomi-runtime/ui.ts +133 -133
  30. package/.pi/extensions/takomi-subagents/agent-aliases.ts +18 -18
  31. package/.pi/extensions/takomi-subagents/agents.ts +113 -113
  32. package/.pi/extensions/takomi-subagents/delegation-plan.ts +95 -95
  33. package/.pi/extensions/takomi-subagents/dispatch-helpers.ts +26 -26
  34. package/.pi/extensions/takomi-subagents/dispatch.ts +215 -215
  35. package/.pi/extensions/takomi-subagents/index.ts +75 -75
  36. package/.pi/extensions/takomi-subagents/live-updates.ts +83 -83
  37. package/.pi/extensions/takomi-subagents/native-render.ts +174 -174
  38. package/.pi/extensions/takomi-subagents/tool-runner.ts +209 -209
  39. package/.pi/themes/takomi-noir.json +81 -81
  40. package/package.json +59 -59
  41. package/src/doctor.js +87 -84
  42. package/src/pi-harness.js +355 -351
  43. package/src/pi-installer.js +193 -171
  44. package/src/pi-takomi-core/index.ts +4 -4
  45. package/src/pi-takomi-core/orchestration.ts +402 -402
  46. package/src/pi-takomi-core/routing.ts +93 -93
  47. package/src/pi-takomi-core/types.ts +173 -173
  48. package/src/pi-takomi-core/workflows.ts +299 -299
  49. package/src/skills-installer.js +101 -101
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "takomi",
3
- "version": "2.1.2",
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
- "type": "module",
6
- "bin": {
7
- "takomi": "bin/takomi.js"
8
- },
9
- "files": [
10
- "bin",
11
- "src",
12
- "assets",
13
- ".pi/README.md",
14
- ".pi/agents",
15
- ".pi/extensions",
16
- ".pi/prompts",
17
- ".pi/themes"
18
- ],
19
- "scripts": {
20
- "test": "echo \"Error: no test specified\" && exit 1"
21
- },
22
- "repository": {
23
- "type": "git",
24
- "url": "git+https://github.com/JStaRFilms/VibeCode-Protocol-Suite.git"
25
- },
26
- "keywords": [
27
- "takomi",
28
- "ai",
29
- "skills",
30
- "codex",
31
- "agentic",
32
- "21st.dev",
33
- "vibecode",
34
- "cursor",
35
- "windsurf",
36
- "protocols"
37
- ],
38
- "author": "J StaR Films Studios",
39
- "license": "ISC",
40
- "dependencies": {
41
- "commander": "^13.1.0",
42
- "figlet": "^1.8.0",
43
- "fs-extra": "^11.3.0",
44
- "pi-subagents": "^0.24.0",
45
- "picocolors": "^1.1.1",
46
- "prompts": "^2.4.2"
47
- },
48
- "bugs": {
49
- "url": "https://github.com/JStaRFilms/VibeCode-Protocol-Suite/issues"
50
- },
51
- "homepage": "https://github.com/JStaRFilms/VibeCode-Protocol-Suite#readme",
52
- "devDependencies": {
53
- "@mariozechner/pi-ai": "^0.70.2",
54
- "@mariozechner/pi-coding-agent": "^0.70.2",
55
- "@types/node": "^25.5.2",
56
- "typebox": "^1.1.33",
57
- "typescript": "^6.0.2"
58
- }
59
- }
1
+ {
2
+ "name": "takomi",
3
+ "version": "2.1.3",
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
+ "type": "module",
6
+ "bin": {
7
+ "takomi": "bin/takomi.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "src",
12
+ "assets",
13
+ ".pi/README.md",
14
+ ".pi/agents",
15
+ ".pi/extensions",
16
+ ".pi/prompts",
17
+ ".pi/themes"
18
+ ],
19
+ "scripts": {
20
+ "test": "echo \"Error: no test specified\" && exit 1"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/JStaRFilms/VibeCode-Protocol-Suite.git"
25
+ },
26
+ "keywords": [
27
+ "takomi",
28
+ "ai",
29
+ "skills",
30
+ "codex",
31
+ "agentic",
32
+ "21st.dev",
33
+ "vibecode",
34
+ "cursor",
35
+ "windsurf",
36
+ "protocols"
37
+ ],
38
+ "author": "J StaR Films Studios",
39
+ "license": "ISC",
40
+ "dependencies": {
41
+ "commander": "^13.1.0",
42
+ "figlet": "^1.8.0",
43
+ "fs-extra": "^11.3.0",
44
+ "pi-subagents": "^0.24.0",
45
+ "picocolors": "^1.1.1",
46
+ "prompts": "^2.4.2"
47
+ },
48
+ "bugs": {
49
+ "url": "https://github.com/JStaRFilms/VibeCode-Protocol-Suite/issues"
50
+ },
51
+ "homepage": "https://github.com/JStaRFilms/VibeCode-Protocol-Suite#readme",
52
+ "devDependencies": {
53
+ "@mariozechner/pi-ai": "^0.70.2",
54
+ "@mariozechner/pi-coding-agent": "^0.70.2",
55
+ "@types/node": "^25.5.2",
56
+ "typebox": "^1.1.33",
57
+ "typescript": "^6.0.2"
58
+ }
59
+ }
package/src/doctor.js CHANGED
@@ -1,84 +1,87 @@
1
- import fs from 'fs-extra';
2
- import pc from 'picocolors';
3
- import { inspectPiHarnessEnvironment } from './pi-harness.js';
4
- import { getStoreSkills, isStoreInitialized } from './store.js';
5
- import { PI_MANIFEST_PATH } from './pi-installer.js';
6
- import { SKILLS_MANIFEST_PATH, SKILLS_ROOT } from './skills-installer.js';
7
-
8
- function status(ok, label, value) {
9
- const icon = ok ? pc.green('✔') : pc.yellow('✗');
10
- const suffix = value ? ` ${pc.dim(value)}` : '';
11
- return ` ${icon} ${label}${suffix}`;
12
- }
13
-
14
- export async function runDoctor({ version, cwd = process.cwd() } = {}) {
15
- const report = await inspectPiHarnessEnvironment(cwd);
16
- const storeReady = await isStoreInitialized();
17
- const storeSkills = storeReady ? await getStoreSkills() : [];
18
-
19
- console.log(pc.magenta('🩺 Takomi Doctor\n'));
20
- console.log(status(true, 'Takomi CLI', version || 'unknown'));
21
- console.log(status(report.pi.installed, 'Pi command', report.pi.installed ? `${report.pi.path}${report.pi.version ? ` (${report.pi.version})` : ''}` : 'missing'));
22
- console.log(status(report.bundled.packageReady, 'Bundled .pi assets', report.bundled.targets.root));
23
- console.log(status(report.bundled.checks.runtime, 'Bundled takomi-runtime', report.bundled.targets.runtime));
24
- console.log(status(report.bundled.checks.subagents, 'Bundled takomi-subagents', report.bundled.targets.subagents));
25
- console.log(status(report.bundled.packageIncluded, 'Package includes .pi assets', report.bundled.packageIncluded ? 'yes' : 'no'));
26
- console.log(status(report.installed.runtimeInstalled, 'Installed takomi-runtime', report.installed.targets.extensions));
27
- console.log(status(report.installed.subagentsInstalled, 'Installed takomi-subagents', report.installed.targets.extensions));
28
- console.log(status(await fs.pathExists(`${report.installed.targets.extensions}/oauth-router`), 'Installed oauth-router', `${report.installed.targets.extensions}`));
29
- console.log(status(report.installed.agentsInstalled, 'Installed agents dir', report.installed.targets.agents));
30
- console.log(status(report.installed.themesInstalled, 'Installed themes dir', report.installed.targets.themes));
31
- console.log(status(await fs.pathExists(PI_MANIFEST_PATH), 'Pi install manifest', PI_MANIFEST_PATH));
32
- console.log(status(report.piSubagents.declaredVersion !== null, 'pi-subagents dependency declared', report.piSubagents.declaredVersion || 'missing'));
33
- console.log(status(report.piSubagents.localInstalled || report.piSubagents.globalInstalled, 'pi-subagents package available', report.piSubagents.localInstalled
34
- ? `${report.piSubagents.localPackageJson}${report.piSubagents.localVersion ? ` (${report.piSubagents.localVersion})` : ''}`
35
- : report.piSubagents.globalInstalled
36
- ? `${report.piSubagents.globalPackageJson}${report.piSubagents.globalVersion ? ` (${report.piSubagents.globalVersion})` : ''}`
37
- : 'missing'));
38
- console.log(status(report.piSubagents.binaryInstalled, 'pi-subagents installer binary', report.piSubagents.binaryPath || 'missing'));
39
- console.log(status(report.installed.routingPolicyPresent || report.project.routingPolicyPresent, 'Routing policy', report.project.routingPolicyPresent ? report.project.targets.routingPolicy : report.installed.targets.routingPolicy));
40
- console.log(status(await fs.pathExists(SKILLS_ROOT), 'Installed skills root', SKILLS_ROOT));
41
- console.log(status(await fs.pathExists(SKILLS_MANIFEST_PATH), 'Skills install manifest', SKILLS_MANIFEST_PATH));
42
- console.log(status(storeReady, 'Global Takomi store', storeReady ? `${storeSkills.length} skills` : 'missing'));
43
-
44
- console.log(pc.cyan('\nRecommendations\n'));
45
-
46
- if (!report.pi.installed) {
47
- console.log(pc.white(' - Install Pi first: npm install -g @mariozechner/pi-coding-agent'));
48
- }
49
-
50
- if (!report.bundled.packageIncluded) {
51
- console.log(pc.white(' - Package .pi assets before enabling takomi install pi in releases.'));
52
- }
53
-
54
- if (!report.installed.runtimeInstalled || !report.installed.subagentsInstalled) {
55
- console.log(pc.white(' - Run takomi install pi after the package-safe Pi asset layout is finalized.'));
56
- }
57
-
58
- if (!report.piSubagents.declaredVersion) {
59
- console.log(pc.white(' - Add pi-subagents to takomi package dependencies so subagent support is bundled intentionally.'));
60
- }
61
-
62
- if (!report.piSubagents.localInstalled && !report.piSubagents.globalInstalled) {
63
- console.log(pc.white(' - Install pi-subagents: npm install -g pi-subagents'));
64
- }
65
-
66
- if (!report.project.routingPolicyPresent && !report.installed.routingPolicyPresent) {
67
- console.log(pc.white(' - Add a routing policy at .pi/takomi/model-routing.md when ready.'));
68
- }
69
-
70
- if (!await fs.pathExists(PI_MANIFEST_PATH) && report.installed.runtimeInstalled) {
71
- console.log(pc.white(' - Re-run takomi install pi to write the Pi asset manifest.'));
72
- }
73
-
74
- if (!await fs.pathExists(SKILLS_ROOT)) {
75
- console.log(pc.white(' - Run takomi install skills to install the bundled Takomi skills.'));
76
- }
77
-
78
- if (!storeReady) {
79
- console.log(pc.white(' - Legacy global command center is not initialized. Run takomi install for current behavior.'));
80
- }
81
-
82
- console.log('');
83
- return report;
84
- }
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+ import pc from 'picocolors';
4
+ import { inspectPiHarnessEnvironment } from './pi-harness.js';
5
+ import { getStoreSkills, isStoreInitialized } from './store.js';
6
+ import { PI_MANIFEST_PATH } from './pi-installer.js';
7
+ import { SKILLS_MANIFEST_PATH, SKILLS_ROOT } from './skills-installer.js';
8
+
9
+ function status(ok, label, value) {
10
+ const icon = ok ? pc.green('✔') : pc.yellow('');
11
+ const suffix = value ? ` ${pc.dim(value)}` : '';
12
+ return ` ${icon} ${label}${suffix}`;
13
+ }
14
+
15
+ export async function runDoctor({ version, cwd = process.cwd() } = {}) {
16
+ const report = await inspectPiHarnessEnvironment(cwd);
17
+ const storeReady = await isStoreInitialized();
18
+ const storeSkills = storeReady ? await getStoreSkills() : [];
19
+
20
+ console.log(pc.magenta('🩺 Takomi Doctor\n'));
21
+ console.log(status(true, 'Takomi CLI', version || 'unknown'));
22
+ console.log(status(report.pi.installed, 'Pi command', report.pi.installed ? `${report.pi.path}${report.pi.version ? ` (${report.pi.version})` : ''}` : 'missing'));
23
+ console.log(status(report.bundled.packageReady, 'Bundled .pi assets', report.bundled.targets.root));
24
+ console.log(status(report.bundled.checks.runtime, 'Bundled takomi-runtime', report.bundled.targets.runtime));
25
+ console.log(status(report.bundled.checks.subagents, 'Bundled takomi-subagents', report.bundled.targets.subagents));
26
+ console.log(status(report.bundled.packageIncluded, 'Package includes .pi assets', report.bundled.packageIncluded ? 'yes' : 'no'));
27
+ console.log(status(report.installed.runtimeInstalled, 'Installed takomi-runtime', report.installed.targets.extensions));
28
+ console.log(status(report.installed.subagentsInstalled, 'Installed takomi-subagents', report.installed.targets.extensions));
29
+ console.log(status(await fs.pathExists(`${report.installed.targets.extensions}/oauth-router`), 'Installed oauth-router', `${report.installed.targets.extensions}`));
30
+ console.log(status(report.installed.coreInstalled, 'Installed Takomi core', path.join(path.dirname(report.installed.targets.root), 'src', 'pi-takomi-core')));
31
+ console.log(status(report.installed.piSubagentsModuleInstalled, 'Installed pi-subagents module', path.join(report.installed.targets.root, 'node_modules', 'pi-subagents')));
32
+ console.log(status(report.installed.agentsInstalled, 'Installed agents dir', report.installed.targets.agents));
33
+ console.log(status(report.installed.themesInstalled, 'Installed themes dir', report.installed.targets.themes));
34
+ console.log(status(await fs.pathExists(PI_MANIFEST_PATH), 'Pi install manifest', PI_MANIFEST_PATH));
35
+ console.log(status(report.piSubagents.declaredVersion !== null, 'pi-subagents dependency declared', report.piSubagents.declaredVersion || 'missing'));
36
+ console.log(status(report.piSubagents.localInstalled || report.piSubagents.globalInstalled, 'pi-subagents package available', report.piSubagents.localInstalled
37
+ ? `${report.piSubagents.localPackageJson}${report.piSubagents.localVersion ? ` (${report.piSubagents.localVersion})` : ''}`
38
+ : report.piSubagents.globalInstalled
39
+ ? `${report.piSubagents.globalPackageJson}${report.piSubagents.globalVersion ? ` (${report.piSubagents.globalVersion})` : ''}`
40
+ : 'missing'));
41
+ console.log(status(report.piSubagents.binaryInstalled, 'pi-subagents installer binary', report.piSubagents.binaryPath || 'missing'));
42
+ console.log(status(report.installed.routingPolicyPresent || report.project.routingPolicyPresent, 'Routing policy', report.project.routingPolicyPresent ? report.project.targets.routingPolicy : report.installed.targets.routingPolicy));
43
+ console.log(status(await fs.pathExists(SKILLS_ROOT), 'Installed skills root', SKILLS_ROOT));
44
+ console.log(status(await fs.pathExists(SKILLS_MANIFEST_PATH), 'Skills install manifest', SKILLS_MANIFEST_PATH));
45
+ console.log(status(storeReady, 'Global Takomi store', storeReady ? `${storeSkills.length} skills` : 'missing'));
46
+
47
+ console.log(pc.cyan('\nRecommendations\n'));
48
+
49
+ if (!report.pi.installed) {
50
+ console.log(pc.white(' - Install Pi first: npm install -g @mariozechner/pi-coding-agent'));
51
+ }
52
+
53
+ if (!report.bundled.packageIncluded) {
54
+ console.log(pc.white(' - Package .pi assets before enabling takomi install pi in releases.'));
55
+ }
56
+
57
+ if (!report.installed.runtimeInstalled || !report.installed.subagentsInstalled || !report.installed.coreInstalled || !report.installed.piSubagentsModuleInstalled) {
58
+ console.log(pc.white(' - Run takomi install pi to refresh the Pi harness, Takomi core, and pi-subagents runtime module.'));
59
+ }
60
+
61
+ if (!report.piSubagents.declaredVersion) {
62
+ console.log(pc.white(' - Add pi-subagents to takomi package dependencies so subagent support is bundled intentionally.'));
63
+ }
64
+
65
+ if (!report.piSubagents.localInstalled && !report.piSubagents.globalInstalled) {
66
+ console.log(pc.white(' - Install pi-subagents: npm install -g pi-subagents'));
67
+ }
68
+
69
+ if (!report.project.routingPolicyPresent && !report.installed.routingPolicyPresent) {
70
+ console.log(pc.white(' - Add a routing policy at .pi/takomi/model-routing.md when ready.'));
71
+ }
72
+
73
+ if (!await fs.pathExists(PI_MANIFEST_PATH) && report.installed.runtimeInstalled) {
74
+ console.log(pc.white(' - Re-run takomi install pi to write the Pi asset manifest.'));
75
+ }
76
+
77
+ if (!await fs.pathExists(SKILLS_ROOT)) {
78
+ console.log(pc.white(' - Run takomi install skills to install the bundled Takomi skills.'));
79
+ }
80
+
81
+ if (!storeReady) {
82
+ console.log(pc.white(' - Legacy global command center is not initialized. Run takomi install for current behavior.'));
83
+ }
84
+
85
+ console.log('');
86
+ return report;
87
+ }