@feelingmindful/thinking-graph 1.7.0 → 1.8.1
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/storage/sqlite.js
CHANGED
|
@@ -30,6 +30,9 @@ export class SQLiteAdapter {
|
|
|
30
30
|
this.db = new SQL.Database();
|
|
31
31
|
}
|
|
32
32
|
this.db.run('PRAGMA foreign_keys = ON');
|
|
33
|
+
// sql.js uses db.export() which serializes the full DB — WAL mode is not
|
|
34
|
+
// supported and causes data loss. Force DELETE journal mode.
|
|
35
|
+
this.db.run('PRAGMA journal_mode = DELETE');
|
|
33
36
|
// Run migration (multi-statement)
|
|
34
37
|
const sql = readFileSync(MIGRATION_PATH, 'utf-8');
|
|
35
38
|
this.db.exec(sql);
|
|
@@ -71,6 +71,15 @@ export async function recommendSkillsHandler(graph, input) {
|
|
|
71
71
|
example: { skill: 'learn', content: '<skill findings>', type: 'skill_result' },
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
+
// If no local matches, suggest external skill discovery
|
|
75
|
+
if (skills.length === 0) {
|
|
76
|
+
const searchQuery = input.query ?? input.area ?? input.verb ?? '';
|
|
77
|
+
suggestions.push({
|
|
78
|
+
tool: 'skill',
|
|
79
|
+
when: 'No installed skills match — search the marketplace for skills to install',
|
|
80
|
+
example: { skill: 'find-skills', args: searchQuery },
|
|
81
|
+
});
|
|
82
|
+
}
|
|
74
83
|
return {
|
|
75
84
|
content: [{
|
|
76
85
|
type: 'text',
|
package/package.json
CHANGED