@gotza02/sequential-thinking 10000.0.4 → 10000.0.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/dist/tools/coding.js
CHANGED
|
@@ -60,7 +60,7 @@ export function registerCodingTools(server, graph) {
|
|
|
60
60
|
});
|
|
61
61
|
return matches;
|
|
62
62
|
}
|
|
63
|
-
catch
|
|
63
|
+
catch {
|
|
64
64
|
return [];
|
|
65
65
|
}
|
|
66
66
|
};
|
|
@@ -123,7 +123,7 @@ export function registerCodingTools(server, graph) {
|
|
|
123
123
|
if (runTest) {
|
|
124
124
|
try {
|
|
125
125
|
// Execute the test command
|
|
126
|
-
const { stdout
|
|
126
|
+
const { stdout } = await execAsync(runTest, { cwd: process.cwd() });
|
|
127
127
|
// If we get here, exit code was 0 (success)
|
|
128
128
|
return {
|
|
129
129
|
content: [{
|
|
@@ -137,10 +137,11 @@ export function registerCodingTools(server, graph) {
|
|
|
137
137
|
console.error(`Test failed for ${filePath}:`, testError);
|
|
138
138
|
// Rollback
|
|
139
139
|
await fs.copyFile(backupPath, absolutePath);
|
|
140
|
+
const err = testError;
|
|
140
141
|
return {
|
|
141
142
|
content: [{
|
|
142
143
|
type: "text",
|
|
143
|
-
text: `⛔ TDD SAFETY ROLLBACK TRIGGERED ⛔\n\nThe edit was applied but the test command '${runTest}' failed.\nChanges have been automatically reverted to the original state.\n\nError Output:\n${
|
|
144
|
+
text: `⛔ TDD SAFETY ROLLBACK TRIGGERED ⛔\n\nThe edit was applied but the test command '${runTest}' failed.\nChanges have been automatically reverted to the original state.\n\nError Output:\n${err.stdout || err.message}\n${err.stderr || ''}`
|
|
144
145
|
}],
|
|
145
146
|
isError: true
|
|
146
147
|
};
|
package/dist/tools/filesystem.js
CHANGED
|
@@ -291,7 +291,7 @@ export function registerFileSystemTools(server) {
|
|
|
291
291
|
}
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
|
-
catch
|
|
294
|
+
catch {
|
|
295
295
|
// Ignore read errors (binary files, permissions, etc.)
|
|
296
296
|
}
|
|
297
297
|
};
|
|
@@ -318,7 +318,7 @@ export function registerFileSystemTools(server) {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
catch
|
|
321
|
+
catch {
|
|
322
322
|
// Skip directories we can't read
|
|
323
323
|
}
|
|
324
324
|
};
|
package/dist/tools/knowledge.js
CHANGED
|
@@ -29,7 +29,7 @@ export function registerKnowledgeTools(server, graphManager) {
|
|
|
29
29
|
properties: z.record(z.string(), z.any()).optional().describe("Edge attributes (e.g., { since: '2024' })")
|
|
30
30
|
}, async ({ sourceId, targetId, relation, weight, properties }) => {
|
|
31
31
|
try {
|
|
32
|
-
|
|
32
|
+
await graphManager.addEdge({
|
|
33
33
|
source: sourceId,
|
|
34
34
|
target: targetId,
|
|
35
35
|
relation,
|
package/dist/tools/sports.js
CHANGED
|
@@ -37,7 +37,6 @@ function registerLegacyAnalyzeMatch(server) {
|
|
|
37
37
|
league: z.string().optional().describe("League name (optional, helps with accuracy)"),
|
|
38
38
|
context: z.string().optional().describe("Any specific angle to focus on (e.g., 'betting', 'tactical', 'injury news')")
|
|
39
39
|
}, async ({ homeTeam, awayTeam, league, context }) => {
|
|
40
|
-
const errors = [];
|
|
41
40
|
// Identify available search provider
|
|
42
41
|
let searchProvider = null;
|
|
43
42
|
if (process.env.BRAVE_API_KEY)
|