From e99312967d8e590528e7a1b775aedad59adb69c4 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 27 May 2026 13:23:27 +0800 Subject: [PATCH] refactor(models): convert to json format per database-table-definition-spec --- models/harnessed_reasoning_config.json | 16 ++++++++++------ models/harnessed_reasoning_sessions.json | 21 ++++++++++++++++----- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/models/harnessed_reasoning_config.json b/models/harnessed_reasoning_config.json index 5e82a6d..b594e79 100644 --- a/models/harnessed_reasoning_config.json +++ b/models/harnessed_reasoning_config.json @@ -3,7 +3,9 @@ { "name": "harnessed_reasoning_config", "title": "Hermes Reasoning module configuration settings", - "primary": "id" + "primary": [ + "id" + ] } ], "fields": [ @@ -39,7 +41,7 @@ "name": "enable_cross_session_search", "title": "Enable automatic session search", "type": "str", - "length": "1", + "length": 1, "nullable": "no", "default": "1" }, @@ -47,7 +49,7 @@ "name": "enable_skill_auto_loading", "title": "Enable automatic skill loading", "type": "str", - "length": "1", + "length": 1, "nullable": "no", "default": "1" }, @@ -55,7 +57,7 @@ "name": "safety_mode", "title": "Safety mode: strict, moderate, lenient", "type": "str", - "length": "20", + "length": 20, "nullable": "no", "default": "strict" }, @@ -70,7 +72,7 @@ "name": "enable_error_recovery", "title": "Enable automatic error recovery", "type": "str", - "length": "1", + "length": 1, "nullable": "no", "default": "1" }, @@ -161,7 +163,9 @@ { "name": "idx_user_config", "idxtype": "index", - "idxfields": ["user_id"] + "idxfields": [ + "user_id" + ] } ], "codes": [] diff --git a/models/harnessed_reasoning_sessions.json b/models/harnessed_reasoning_sessions.json index 1c1734b..d555413 100644 --- a/models/harnessed_reasoning_sessions.json +++ b/models/harnessed_reasoning_sessions.json @@ -3,7 +3,9 @@ { "name": "harnessed_reasoning_sessions", "title": "Reasoning sessions with execution plans and context awareness", - "primary": "id" + "primary": [ + "id" + ] } ], "fields": [ @@ -82,17 +84,26 @@ { "name": "idx_user_status", "idxtype": "index", - "idxfields": ["user_id", "status"] + "idxfields": [ + "user_id", + "status" + ] }, { "name": "idx_user_created", - "idxtype": "index", - "idxfields": ["user_id", "created_at"] + "idxtype": "index", + "idxfields": [ + "user_id", + "created_at" + ] }, { "name": "idx_status_created", "idxtype": "index", - "idxfields": ["status", "created_at"] + "idxfields": [ + "status", + "created_at" + ] } ], "codes": []