@su-record/vibe 2.4.51 → 2.4.53
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/README.md +10 -12
- package/dist/cli/index.d.ts +0 -12
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +7 -30
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/llm.d.ts +1 -1
- package/dist/cli/llm.d.ts.map +1 -1
- package/dist/cli/llm.js +30 -11
- package/dist/cli/llm.js.map +1 -1
- package/dist/cli/postinstall.d.ts +7 -0
- package/dist/cli/postinstall.d.ts.map +1 -0
- package/dist/cli/postinstall.js +136 -0
- package/dist/cli/postinstall.js.map +1 -0
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +12 -5
- package/dist/cli/setup.js.map +1 -1
- package/dist/lib/gemini-api.d.ts.map +1 -1
- package/dist/lib/gemini-api.js +14 -7
- package/dist/lib/gemini-api.js.map +1 -1
- package/dist/lib/gpt-api.d.ts.map +1 -1
- package/dist/lib/gpt-api.js +14 -7
- package/dist/lib/gpt-api.js.map +1 -1
- package/dist/tools/index.d.ts +0 -14
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +0 -19
- package/dist/tools/index.js.map +1 -1
- package/package.json +3 -7
- package/dist/tools/analytics/getUsageAnalytics.d.ts +0 -10
- package/dist/tools/analytics/getUsageAnalytics.d.ts.map +0 -1
- package/dist/tools/analytics/getUsageAnalytics.js +0 -246
- package/dist/tools/analytics/getUsageAnalytics.js.map +0 -1
- package/dist/tools/analytics/index.d.ts +0 -5
- package/dist/tools/analytics/index.d.ts.map +0 -1
- package/dist/tools/analytics/index.js +0 -5
- package/dist/tools/analytics/index.js.map +0 -1
- package/dist/tools/planning/analyzeRequirements.d.ts +0 -9
- package/dist/tools/planning/analyzeRequirements.d.ts.map +0 -1
- package/dist/tools/planning/analyzeRequirements.js +0 -171
- package/dist/tools/planning/analyzeRequirements.js.map +0 -1
- package/dist/tools/planning/createUserStories.d.ts +0 -9
- package/dist/tools/planning/createUserStories.d.ts.map +0 -1
- package/dist/tools/planning/createUserStories.js +0 -124
- package/dist/tools/planning/createUserStories.js.map +0 -1
- package/dist/tools/planning/featureRoadmap.d.ts +0 -10
- package/dist/tools/planning/featureRoadmap.d.ts.map +0 -1
- package/dist/tools/planning/featureRoadmap.js +0 -207
- package/dist/tools/planning/featureRoadmap.js.map +0 -1
- package/dist/tools/planning/generatePrd.d.ts +0 -11
- package/dist/tools/planning/generatePrd.d.ts.map +0 -1
- package/dist/tools/planning/generatePrd.js +0 -161
- package/dist/tools/planning/generatePrd.js.map +0 -1
- package/dist/tools/planning/index.d.ts +0 -8
- package/dist/tools/planning/index.d.ts.map +0 -1
- package/dist/tools/planning/index.js +0 -8
- package/dist/tools/planning/index.js.map +0 -1
- package/dist/tools/prompt/analyzePrompt.d.ts +0 -7
- package/dist/tools/prompt/analyzePrompt.d.ts.map +0 -1
- package/dist/tools/prompt/analyzePrompt.js +0 -150
- package/dist/tools/prompt/analyzePrompt.js.map +0 -1
- package/dist/tools/prompt/enhancePrompt.d.ts +0 -8
- package/dist/tools/prompt/enhancePrompt.d.ts.map +0 -1
- package/dist/tools/prompt/enhancePrompt.js +0 -110
- package/dist/tools/prompt/enhancePrompt.js.map +0 -1
- package/dist/tools/prompt/enhancePromptGemini.d.ts +0 -8
- package/dist/tools/prompt/enhancePromptGemini.d.ts.map +0 -1
- package/dist/tools/prompt/enhancePromptGemini.js +0 -332
- package/dist/tools/prompt/enhancePromptGemini.js.map +0 -1
- package/dist/tools/prompt/index.d.ts +0 -7
- package/dist/tools/prompt/index.d.ts.map +0 -1
- package/dist/tools/prompt/index.js +0 -7
- package/dist/tools/prompt/index.js.map +0 -1
- package/dist/tools/reasoning/applyReasoningFramework.d.ts +0 -8
- package/dist/tools/reasoning/applyReasoningFramework.d.ts.map +0 -1
- package/dist/tools/reasoning/applyReasoningFramework.js +0 -266
- package/dist/tools/reasoning/applyReasoningFramework.js.map +0 -1
- package/dist/tools/reasoning/index.d.ts +0 -5
- package/dist/tools/reasoning/index.d.ts.map +0 -1
- package/dist/tools/reasoning/index.js +0 -5
- package/dist/tools/reasoning/index.js.map +0 -1
- package/dist/tools/thinking/analyzeProblem.d.ts +0 -7
- package/dist/tools/thinking/analyzeProblem.d.ts.map +0 -1
- package/dist/tools/thinking/analyzeProblem.js +0 -55
- package/dist/tools/thinking/analyzeProblem.js.map +0 -1
- package/dist/tools/thinking/breakDownProblem.d.ts +0 -8
- package/dist/tools/thinking/breakDownProblem.d.ts.map +0 -1
- package/dist/tools/thinking/breakDownProblem.js +0 -145
- package/dist/tools/thinking/breakDownProblem.js.map +0 -1
- package/dist/tools/thinking/createThinkingChain.d.ts +0 -7
- package/dist/tools/thinking/createThinkingChain.d.ts.map +0 -1
- package/dist/tools/thinking/createThinkingChain.js +0 -44
- package/dist/tools/thinking/createThinkingChain.js.map +0 -1
- package/dist/tools/thinking/formatAsPlan.d.ts +0 -9
- package/dist/tools/thinking/formatAsPlan.d.ts.map +0 -1
- package/dist/tools/thinking/formatAsPlan.js +0 -78
- package/dist/tools/thinking/formatAsPlan.js.map +0 -1
- package/dist/tools/thinking/index.d.ts +0 -10
- package/dist/tools/thinking/index.d.ts.map +0 -1
- package/dist/tools/thinking/index.js +0 -10
- package/dist/tools/thinking/index.js.map +0 -1
- package/dist/tools/thinking/stepByStepAnalysis.d.ts +0 -8
- package/dist/tools/thinking/stepByStepAnalysis.d.ts.map +0 -1
- package/dist/tools/thinking/stepByStepAnalysis.js +0 -63
- package/dist/tools/thinking/stepByStepAnalysis.js.map +0 -1
- package/dist/tools/thinking/thinkAloudProcess.d.ts +0 -8
- package/dist/tools/thinking/thinkAloudProcess.d.ts.map +0 -1
- package/dist/tools/thinking/thinkAloudProcess.js +0 -80
- package/dist/tools/thinking/thinkAloudProcess.js.map +0 -1
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// Sequential thinking tool - completely independent
|
|
2
|
-
export const formatAsPlanDefinition = {
|
|
3
|
-
name: 'format_as_plan',
|
|
4
|
-
description: '계획으로|정리해줘|체크리스트|format as plan|make a plan|organize this|checklist - Format content into clear plans',
|
|
5
|
-
inputSchema: {
|
|
6
|
-
type: 'object',
|
|
7
|
-
properties: {
|
|
8
|
-
content: { type: 'string', description: 'Content to format as a plan' },
|
|
9
|
-
priority: { type: 'string', description: 'Default priority level', enum: ['high', 'medium', 'low'] },
|
|
10
|
-
includeTimeEstimates: { type: 'boolean', description: 'Include time estimates for each step' },
|
|
11
|
-
includeCheckboxes: { type: 'boolean', description: 'Include checkboxes for tracking progress' }
|
|
12
|
-
},
|
|
13
|
-
required: ['content']
|
|
14
|
-
},
|
|
15
|
-
annotations: {
|
|
16
|
-
title: 'Format as Plan',
|
|
17
|
-
audience: ['user', 'assistant'],
|
|
18
|
-
readOnlyHint: true,
|
|
19
|
-
destructiveHint: false,
|
|
20
|
-
idempotentHint: true,
|
|
21
|
-
openWorldHint: false
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export async function formatAsPlan(args) {
|
|
25
|
-
const { content: planContent, priority = 'medium', includeTimeEstimates = true, includeCheckboxes = true } = args;
|
|
26
|
-
// Parse content into actionable steps
|
|
27
|
-
const sentences = planContent.split(/[.!?]+/).filter(s => s.trim().length > 10);
|
|
28
|
-
const planSteps = sentences.map((sentence, index) => {
|
|
29
|
-
const stepNumber = index + 1;
|
|
30
|
-
const cleanSentence = sentence.trim();
|
|
31
|
-
// Estimate time based on content complexity
|
|
32
|
-
let timeEstimate = '5min';
|
|
33
|
-
if (cleanSentence.length > 100)
|
|
34
|
-
timeEstimate = '15min';
|
|
35
|
-
else if (cleanSentence.length > 50)
|
|
36
|
-
timeEstimate = '10min';
|
|
37
|
-
// Detect priority keywords
|
|
38
|
-
let stepPriority = priority;
|
|
39
|
-
if (cleanSentence.match(/urgent|critical|important|first|must/i))
|
|
40
|
-
stepPriority = 'high';
|
|
41
|
-
else if (cleanSentence.match(/later|eventually|nice|optional/i))
|
|
42
|
-
stepPriority = 'low';
|
|
43
|
-
// Format step
|
|
44
|
-
let formattedStep = includeCheckboxes ? `${stepNumber}. □ ` : `${stepNumber}. `;
|
|
45
|
-
formattedStep += cleanSentence;
|
|
46
|
-
if (includeTimeEstimates)
|
|
47
|
-
formattedStep += ` (${stepPriority.toUpperCase()}, ${timeEstimate})`;
|
|
48
|
-
return {
|
|
49
|
-
number: stepNumber,
|
|
50
|
-
content: cleanSentence,
|
|
51
|
-
priority: stepPriority,
|
|
52
|
-
timeEstimate,
|
|
53
|
-
formatted: formattedStep
|
|
54
|
-
};
|
|
55
|
-
});
|
|
56
|
-
// Calculate total time
|
|
57
|
-
const totalMinutes = planSteps.reduce((total, step) => {
|
|
58
|
-
const minutes = parseInt(step.timeEstimate.replace('min', ''));
|
|
59
|
-
return total + minutes;
|
|
60
|
-
}, 0);
|
|
61
|
-
const planResult = {
|
|
62
|
-
action: 'format_as_plan',
|
|
63
|
-
originalContent: planContent,
|
|
64
|
-
formattedPlan: planSteps.map((s) => s.formatted).join('\n'),
|
|
65
|
-
steps: planSteps.length,
|
|
66
|
-
totalEstimatedTime: `${totalMinutes} minutes`,
|
|
67
|
-
breakdown: {
|
|
68
|
-
high: planSteps.filter((s) => s.priority === 'high').length,
|
|
69
|
-
medium: planSteps.filter((s) => s.priority === 'medium').length,
|
|
70
|
-
low: planSteps.filter((s) => s.priority === 'low').length
|
|
71
|
-
},
|
|
72
|
-
status: 'success'
|
|
73
|
-
};
|
|
74
|
-
return {
|
|
75
|
-
content: [{ type: 'text', text: `${planResult.formattedPlan}\n\nTotal: ${planResult.totalEstimatedTime} | Priority: ${planResult.breakdown.high}H ${planResult.breakdown.medium}M ${planResult.breakdown.low}L` }]
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=formatAsPlan.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatAsPlan.js","sourceRoot":"","sources":["../../../src/tools/thinking/format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AC,CAAC;IAEN,MAAM,UAAU,GAAG;QACjB,MAAM,EAAE,gBAAgB;QACxB,eAAe,EAAE,WAAW;QAC5B,aAAa,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAChE,KAAK,EAAE,SAAS,CAAC,MAAM;QACvB,kBAAkB,EAAE,GAAG,YAAY,UAAU;QAC7C,SAAS,EAAE;YACT,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,MAAM;YAChE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,MAAM;YACpE,GAAG,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,KAAK,CAAC,CAAC,MAAM;SAC/D;QACD,MAAM,EAAE,SAAS;KAClB,CAAC;IAEF,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,aAAa,cAAc,UAAU,CAAC,kBAAkB,gBAAgB,UAAU,CAAC,SAAS,CAAC,IAAI,KAAK,UAAU,CAAC,SAAS,CAAC,MAAM,KAAK,UAAU,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC;KACnN,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Thinking Tools - 사고 체인 및 문제 분석
|
|
3
|
-
*/
|
|
4
|
-
export { createThinkingChain } from './createThinkingChain.js';
|
|
5
|
-
export { analyzeProblem } from './analyzeProblem.js';
|
|
6
|
-
export { stepByStepAnalysis } from './stepByStepAnalysis.js';
|
|
7
|
-
export { formatAsPlan } from './formatAsPlan.js';
|
|
8
|
-
export { breakDownProblem } from './breakDownProblem.js';
|
|
9
|
-
export { thinkAloudProcess } from './thinkAloudProcess.js';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/thinking/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Thinking Tools - 사고 체인 및 문제 분석
|
|
3
|
-
*/
|
|
4
|
-
export { createThinkingChain } from './createThinkingChain.js';
|
|
5
|
-
export { analyzeProblem } from './analyzeProblem.js';
|
|
6
|
-
export { stepByStepAnalysis } from './stepByStepAnalysis.js';
|
|
7
|
-
export { formatAsPlan } from './formatAsPlan.js';
|
|
8
|
-
export { breakDownProblem } from './breakDownProblem.js';
|
|
9
|
-
export { thinkAloudProcess } from './thinkAloudProcess.js';
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/thinking/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ToolResult, ToolDefinition } from '../../types/tool.js';
|
|
2
|
-
export declare const stepByStepAnalysisDefinition: ToolDefinition;
|
|
3
|
-
export declare function stepByStepAnalysis(args: {
|
|
4
|
-
task: string;
|
|
5
|
-
context?: string;
|
|
6
|
-
detailLevel?: string;
|
|
7
|
-
}): Promise<ToolResult>;
|
|
8
|
-
//# sourceMappingURL=stepByStepAnalysis.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepByStepAnalysis.d.ts","sourceRoot":"","sources":["../../../src/tools/thinking/stepByStepAnalysis.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,4BAA4B,EAAE,cAoB1C,CAAC;AAEF,wBAAsB,kBAAkB,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAyC5H"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// Sequential thinking tool - completely independent
|
|
2
|
-
export const stepByStepAnalysisDefinition = {
|
|
3
|
-
name: 'step_by_step_analysis',
|
|
4
|
-
description: '단계별|차근차근|하나씩|step by step|one by one|gradually - Perform detailed step-by-step analysis',
|
|
5
|
-
inputSchema: {
|
|
6
|
-
type: 'object',
|
|
7
|
-
properties: {
|
|
8
|
-
task: { type: 'string', description: 'Task to analyze step by step' },
|
|
9
|
-
context: { type: 'string', description: 'Additional context for the task' },
|
|
10
|
-
detailLevel: { type: 'string', description: 'Level of detail', enum: ['basic', 'detailed', 'comprehensive'] }
|
|
11
|
-
},
|
|
12
|
-
required: ['task']
|
|
13
|
-
},
|
|
14
|
-
annotations: {
|
|
15
|
-
title: 'Step-by-Step Analysis',
|
|
16
|
-
audience: ['user', 'assistant'],
|
|
17
|
-
readOnlyHint: true,
|
|
18
|
-
destructiveHint: false,
|
|
19
|
-
idempotentHint: true,
|
|
20
|
-
openWorldHint: false
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export async function stepByStepAnalysis(args) {
|
|
24
|
-
const { task, context = '', detailLevel = 'detailed' } = args;
|
|
25
|
-
const stepCount = detailLevel === 'basic' ? 3 : detailLevel === 'detailed' ? 5 : 7;
|
|
26
|
-
const stepAnalysis = {
|
|
27
|
-
action: 'step_by_step_analysis',
|
|
28
|
-
task,
|
|
29
|
-
context,
|
|
30
|
-
detailLevel,
|
|
31
|
-
steps: Array.from({ length: stepCount }, (_, i) => {
|
|
32
|
-
const stepNum = i + 1;
|
|
33
|
-
return {
|
|
34
|
-
stepNumber: stepNum,
|
|
35
|
-
title: `Step ${stepNum}: ${task} - Phase ${stepNum}`,
|
|
36
|
-
description: `Detailed analysis of ${task} in step ${stepNum}`,
|
|
37
|
-
actions: [
|
|
38
|
-
`Analyze requirements for step ${stepNum}`,
|
|
39
|
-
`Identify dependencies and prerequisites`,
|
|
40
|
-
`Execute the planned actions`,
|
|
41
|
-
`Validate results and check for issues`,
|
|
42
|
-
`Prepare for next step`
|
|
43
|
-
],
|
|
44
|
-
checkpoints: [
|
|
45
|
-
`Verify step ${stepNum} requirements are met`,
|
|
46
|
-
`Confirm outputs are as expected`,
|
|
47
|
-
`Check for any blocking issues`
|
|
48
|
-
],
|
|
49
|
-
estimatedTime: detailLevel === 'comprehensive' ? `${stepNum * 10} minutes` : `${stepNum * 5} minutes`
|
|
50
|
-
};
|
|
51
|
-
}),
|
|
52
|
-
summary: {
|
|
53
|
-
totalSteps: stepCount,
|
|
54
|
-
estimatedTotalTime: detailLevel === 'comprehensive' ? `${stepCount * 35} minutes` : `${stepCount * 20} minutes`,
|
|
55
|
-
complexity: detailLevel === 'basic' ? 'low' : detailLevel === 'detailed' ? 'medium' : 'high'
|
|
56
|
-
},
|
|
57
|
-
status: 'success'
|
|
58
|
-
};
|
|
59
|
-
return {
|
|
60
|
-
content: [{ type: 'text', text: `Task: ${task}\nDetail: ${detailLevel}\nSteps: ${stepCount}\n\n${stepAnalysis.steps.map(s => `Step ${s.stepNumber}: ${s.title}\n Time: ${s.estimatedTime}\n Actions: ${s.actions.join(', ')}\n Checkpoints: ${s.checkpoints.join(', ')}`).join('\n\n')}\n\nTotal Time: ${stepAnalysis.summary.estimatedTotalTime} | Complexity: ${stepAnalysis.summary.complexity}` }]
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=stepByStepAnalysis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepByStepAnalysis.js","sourceRoot":"","sources":["../../../src/tools/thinking/stepByStepAnalysis.ts"],"names":[],"mappings":"AAAA,oDAAoD;AAIpD,MAAM,CAAC,MAAM,4BAA4B,GAAmB;IAC1D,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,yFAAyF;IACtG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8BAA8B,EAAE;YACrE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iCAAiC,EAAE;YAC3E,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,EAAE;SAC9G;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;IACD,WAAW,EAAE;QACX,KAAK,EAAE,uBAAuB;QAC9B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,OAAO,EAAE;YACP,UAAU,EAAE,SAAS;YACrB,kBAAkB,EAAE,WAAW,KAAK,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,EAAE,UAAU;YAC/G,UAAU,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM;SAC7F;QACD,MAAM,EAAE,SAAS;KAClB,CAAC;IAEF,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,IAAI,aAAa,WAAW,YAAY,SAAS,OAAO,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,KAAK,aAAa,CAAC,CAAC,aAAa,gBAAgB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,YAAY,CAAC,OAAO,CAAC,kBAAkB,kBAAkB,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;KAC1Y,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ToolResult, ToolDefinition } from '../../types/tool.js';
|
|
2
|
-
export declare const thinkAloudProcessDefinition: ToolDefinition;
|
|
3
|
-
export declare function thinkAloudProcess(args: {
|
|
4
|
-
scenario: string;
|
|
5
|
-
perspective?: string;
|
|
6
|
-
verbosity?: string;
|
|
7
|
-
}): Promise<ToolResult>;
|
|
8
|
-
//# sourceMappingURL=thinkAloudProcess.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thinkAloudProcess.d.ts","sourceRoot":"","sources":["../../../src/tools/thinking/thinkAloudProcess.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,2BAA2B,EAAE,cAoBzC,CAAC;AAEF,wBAAsB,iBAAiB,CAAC,IAAI,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CA4DjI"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// Sequential thinking tool - completely independent
|
|
2
|
-
export const thinkAloudProcessDefinition = {
|
|
3
|
-
name: 'think_aloud_process',
|
|
4
|
-
description: '생각해봐|고민해봐|어떻게 생각해|think about it|let me think|reasoning - Generate think-aloud reasoning process',
|
|
5
|
-
inputSchema: {
|
|
6
|
-
type: 'object',
|
|
7
|
-
properties: {
|
|
8
|
-
scenario: { type: 'string', description: 'Scenario or problem to think through' },
|
|
9
|
-
perspective: { type: 'string', description: 'Thinking perspective', enum: ['analytical', 'creative', 'systematic', 'critical'] },
|
|
10
|
-
verbosity: { type: 'string', description: 'Verbosity level', enum: ['concise', 'moderate', 'verbose'] }
|
|
11
|
-
},
|
|
12
|
-
required: ['scenario']
|
|
13
|
-
},
|
|
14
|
-
annotations: {
|
|
15
|
-
title: 'Think Aloud',
|
|
16
|
-
audience: ['user', 'assistant'],
|
|
17
|
-
readOnlyHint: true,
|
|
18
|
-
destructiveHint: false,
|
|
19
|
-
idempotentHint: true,
|
|
20
|
-
openWorldHint: false
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export async function thinkAloudProcess(args) {
|
|
24
|
-
const { scenario, perspective = 'analytical', verbosity = 'moderate' } = args;
|
|
25
|
-
const thoughtCount = verbosity === 'concise' ? 3 : verbosity === 'moderate' ? 5 : 8;
|
|
26
|
-
const thinkAloudProcess = {
|
|
27
|
-
action: 'think_aloud_process',
|
|
28
|
-
scenario,
|
|
29
|
-
perspective,
|
|
30
|
-
verbosity,
|
|
31
|
-
thoughtProcess: Array.from({ length: thoughtCount }, (_, i) => {
|
|
32
|
-
const thoughtNum = i + 1;
|
|
33
|
-
let thoughtStyle = '';
|
|
34
|
-
switch (perspective) {
|
|
35
|
-
case 'analytical':
|
|
36
|
-
thoughtStyle = `Analyzing: Let me examine ${scenario} systematically...`;
|
|
37
|
-
break;
|
|
38
|
-
case 'creative':
|
|
39
|
-
thoughtStyle = `Brainstorming: What if I approach ${scenario} differently...`;
|
|
40
|
-
break;
|
|
41
|
-
case 'systematic':
|
|
42
|
-
thoughtStyle = `Step ${thoughtNum}: Following systematic approach to ${scenario}...`;
|
|
43
|
-
break;
|
|
44
|
-
case 'critical':
|
|
45
|
-
thoughtStyle = `Questioning: What assumptions am I making about ${scenario}...`;
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
stepNumber: thoughtNum,
|
|
50
|
-
thought: thoughtStyle,
|
|
51
|
-
reasoning: `In step ${thoughtNum}, I need to consider the implications of ${scenario} from a ${perspective} perspective`,
|
|
52
|
-
questions: [
|
|
53
|
-
`What do I know about this aspect of ${scenario}?`,
|
|
54
|
-
`What don't I know yet?`,
|
|
55
|
-
`What should I explore next?`
|
|
56
|
-
],
|
|
57
|
-
conclusions: [
|
|
58
|
-
`Based on current analysis...`,
|
|
59
|
-
`This leads me to think that...`,
|
|
60
|
-
`Next I should focus on...`
|
|
61
|
-
],
|
|
62
|
-
confidence: Math.min(95, 60 + (thoughtNum * 5))
|
|
63
|
-
};
|
|
64
|
-
}),
|
|
65
|
-
metacognition: {
|
|
66
|
-
thinkingStyle: perspective,
|
|
67
|
-
processEffectiveness: verbosity === 'verbose' ? 'highly detailed' : verbosity === 'moderate' ? 'balanced' : 'efficient',
|
|
68
|
-
nextSteps: [
|
|
69
|
-
'Review thinking process for gaps',
|
|
70
|
-
'Validate conclusions against evidence',
|
|
71
|
-
'Plan concrete actions based on analysis'
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
status: 'success'
|
|
75
|
-
};
|
|
76
|
-
return {
|
|
77
|
-
content: [{ type: 'text', text: `Scenario: ${scenario}\nPerspective: ${perspective}\nThoughts: ${thoughtCount}\n${thinkAloudProcess.thoughtProcess.map((t, i) => `${i + 1}. ${t.thought} (confidence: ${t.confidence}%)`).join('\n')}\n\nNext: ${thinkAloudProcess.metacognition.nextSteps.join(', ')}` }]
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=thinkAloudProcess.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thinkAloudProcess.js","sourceRoot":"","sources":["../../../src/tools/thinking/thinkAloudProcess.ts"],"names":[],"mappings":"AAAA,oDAAoD;AAIpD,MAAM,CAAC,MAAM,2BAA2B,GAAmB;IACzD,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,kGAAkG;IAC/G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;YACjF,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sBAAsB,EAAE,IAAI,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE;YAChI,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE;SACxG;QACD,QAAQ,EAAE,CAAC,UAAU,CAAC;KACvB;IACD,WAAW,EAAE;QACX,KAAK,EAAE,aAAa;QACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;QAC/B,YAAY,EAAE,IAAI;QACl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