@tdsoft-tech/aikit 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/CHANGELOG.md +5 -0
- package/dist/cli.js +64 -16
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.js +55 -8
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +3 -6
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -778,9 +778,17 @@ declare class BeadsIntegration {
|
|
|
778
778
|
*/
|
|
779
779
|
isInitialized(): Promise<boolean>;
|
|
780
780
|
/**
|
|
781
|
-
*
|
|
781
|
+
* Install Beads CLI globally
|
|
782
|
+
*/
|
|
783
|
+
install(): Promise<boolean>;
|
|
784
|
+
/**
|
|
785
|
+
* Initialize Beads in project using bd CLI
|
|
782
786
|
*/
|
|
783
787
|
init(): Promise<boolean>;
|
|
788
|
+
/**
|
|
789
|
+
* Initialize local .beads directory (works without global beads CLI)
|
|
790
|
+
*/
|
|
791
|
+
initLocal(): Promise<boolean>;
|
|
784
792
|
/**
|
|
785
793
|
* Get current status
|
|
786
794
|
*/
|
|
@@ -995,6 +1003,6 @@ declare const paths: {
|
|
|
995
1003
|
* Provides skills, agents, commands, tools, and plugins for enhanced AI-assisted development.
|
|
996
1004
|
*/
|
|
997
1005
|
|
|
998
|
-
declare const VERSION = "0.1.
|
|
1006
|
+
declare const VERSION = "0.1.0";
|
|
999
1007
|
|
|
1000
1008
|
export { type AIKitConfig, type Agent, AgentManager, type AgentType, AntiHallucination, BeadsIntegration, type Command, CommandRunner, Config, type Memory, MemoryManager, type Plugin, type PluginEvent, PluginSystem, type Skill, SkillEngine, type Tool, ToolRegistry, VERSION, defineTool, loadConfig, logger, paths };
|
package/dist/index.js
CHANGED
|
@@ -179,10 +179,8 @@ var init_figma_mcp = __esm({
|
|
|
179
179
|
init_logger();
|
|
180
180
|
FigmaMcpClient = class {
|
|
181
181
|
apiKey;
|
|
182
|
-
|
|
183
|
-
constructor(apiKey, configManager) {
|
|
182
|
+
constructor(apiKey, _configManager) {
|
|
184
183
|
this.apiKey = apiKey;
|
|
185
|
-
this.configManager = configManager;
|
|
186
184
|
}
|
|
187
185
|
/**
|
|
188
186
|
* Fetch helper with simple retry/backoff for 429/5xx
|
|
@@ -328,7 +326,6 @@ ${text}`);
|
|
|
328
326
|
if (fill.type === "SOLID" && fill.color) {
|
|
329
327
|
const { r, g, b, a } = fill.color;
|
|
330
328
|
const hex = this.rgbaToHex(r, g, b, a);
|
|
331
|
-
const name = node.name || "Color";
|
|
332
329
|
if (!colorMap.has(hex)) {
|
|
333
330
|
colorMap.set(hex, hex);
|
|
334
331
|
}
|
|
@@ -800,8 +797,8 @@ var init_memory = __esm({
|
|
|
800
797
|
const subDir = type === "observation" ? "observations" : type === "handoff" ? "handoffs" : type === "research" ? "research" : "";
|
|
801
798
|
filePath = join7(memoryPath, subDir, `${key}.md`);
|
|
802
799
|
}
|
|
803
|
-
const { dirname
|
|
804
|
-
await mkdir4(
|
|
800
|
+
const { dirname } = await import("path");
|
|
801
|
+
await mkdir4(dirname(filePath), { recursive: true });
|
|
805
802
|
if (options?.append) {
|
|
806
803
|
try {
|
|
807
804
|
const existing = await readFile5(filePath, "utf-8");
|
|
@@ -3497,7 +3494,19 @@ var BeadsIntegration = class {
|
|
|
3497
3494
|
}
|
|
3498
3495
|
}
|
|
3499
3496
|
/**
|
|
3500
|
-
*
|
|
3497
|
+
* Install Beads CLI globally
|
|
3498
|
+
*/
|
|
3499
|
+
async install() {
|
|
3500
|
+
try {
|
|
3501
|
+
await execAsync("npm install -g beads");
|
|
3502
|
+
return true;
|
|
3503
|
+
} catch (error) {
|
|
3504
|
+
logger.error("Failed to install Beads CLI:", error);
|
|
3505
|
+
return false;
|
|
3506
|
+
}
|
|
3507
|
+
}
|
|
3508
|
+
/**
|
|
3509
|
+
* Initialize Beads in project using bd CLI
|
|
3501
3510
|
*/
|
|
3502
3511
|
async init() {
|
|
3503
3512
|
try {
|
|
@@ -3509,6 +3518,44 @@ var BeadsIntegration = class {
|
|
|
3509
3518
|
return false;
|
|
3510
3519
|
}
|
|
3511
3520
|
}
|
|
3521
|
+
/**
|
|
3522
|
+
* Initialize local .beads directory (works without global beads CLI)
|
|
3523
|
+
*/
|
|
3524
|
+
async initLocal() {
|
|
3525
|
+
try {
|
|
3526
|
+
const beadsDir = paths.beadsDir(this.projectPath);
|
|
3527
|
+
await mkdir7(beadsDir, { recursive: true });
|
|
3528
|
+
const readmeContent = `# Beads - Task Tracking
|
|
3529
|
+
|
|
3530
|
+
This directory contains task beads for tracking work items.
|
|
3531
|
+
|
|
3532
|
+
## How it works
|
|
3533
|
+
- Each file is a task bead (bead-001.md, bead-002.md, etc.)
|
|
3534
|
+
- Status: todo, in-progress, completed, blocked
|
|
3535
|
+
- Use \`/create\` command to create new tasks
|
|
3536
|
+
- Use \`/finish\` command to complete tasks with quality gates
|
|
3537
|
+
|
|
3538
|
+
## Beads CLI
|
|
3539
|
+
For full functionality, install beads globally:
|
|
3540
|
+
\`\`\`bash
|
|
3541
|
+
npm install -g beads
|
|
3542
|
+
bd init
|
|
3543
|
+
\`\`\`
|
|
3544
|
+
|
|
3545
|
+
## Available Commands
|
|
3546
|
+
- \`bd ready\` - Show available work
|
|
3547
|
+
- \`bd show <id>\` - View task details
|
|
3548
|
+
- \`bd update <id> --status in_progress\` - Update task status
|
|
3549
|
+
- \`bd close <id>\` - Complete task
|
|
3550
|
+
- \`bd sync\` - Sync with git
|
|
3551
|
+
`;
|
|
3552
|
+
await writeFile7(join10(beadsDir, "README.md"), readmeContent);
|
|
3553
|
+
return true;
|
|
3554
|
+
} catch (error) {
|
|
3555
|
+
logger.error("Failed to initialize .beads directory:", error);
|
|
3556
|
+
return false;
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3512
3559
|
/**
|
|
3513
3560
|
* Get current status
|
|
3514
3561
|
*/
|
|
@@ -4018,7 +4065,7 @@ List approved dependencies here.
|
|
|
4018
4065
|
// src/index.ts
|
|
4019
4066
|
init_logger();
|
|
4020
4067
|
init_paths();
|
|
4021
|
-
var VERSION = "0.1.
|
|
4068
|
+
var VERSION = "0.1.0";
|
|
4022
4069
|
export {
|
|
4023
4070
|
AgentManager,
|
|
4024
4071
|
AntiHallucination,
|