refactor(models): convert to json format per database-table-definition-spec
This commit is contained in:
parent
92f5552561
commit
74e14831ec
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "harnessed_agent_config",
|
"name": "harnessed_agent_config",
|
||||||
"title": "Hermes Agent module configuration settings",
|
"title": "Hermes Agent module configuration settings",
|
||||||
"primary": "id"
|
"primary": [
|
||||||
|
"id"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
@ -32,7 +34,7 @@
|
|||||||
{
|
{
|
||||||
"name": "skills_path",
|
"name": "skills_path",
|
||||||
"title": "Skills directory path",
|
"title": "Skills directory path",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"length": 255,
|
"length": 255,
|
||||||
"nullable": "no",
|
"nullable": "no",
|
||||||
"default": "~/.hermes/skills"
|
"default": "~/.hermes/skills"
|
||||||
@ -69,7 +71,7 @@
|
|||||||
"name": "auto_cleanup_enabled",
|
"name": "auto_cleanup_enabled",
|
||||||
"title": "Enable automatic memory cleanup",
|
"title": "Enable automatic memory cleanup",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"length": "1",
|
"length": 1,
|
||||||
"nullable": "no",
|
"nullable": "no",
|
||||||
"default": "1"
|
"default": "1"
|
||||||
},
|
},
|
||||||
@ -110,7 +112,7 @@
|
|||||||
"name": "enable_streaming",
|
"name": "enable_streaming",
|
||||||
"title": "Enable streaming response for LLM calls",
|
"title": "Enable streaming response for LLM calls",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"length": "1",
|
"length": 1,
|
||||||
"nullable": "no",
|
"nullable": "no",
|
||||||
"default": "1"
|
"default": "1"
|
||||||
},
|
},
|
||||||
@ -166,7 +168,9 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_user_agent_config",
|
"name": "idx_user_agent_config",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id"]
|
"idxfields": [
|
||||||
|
"user_id"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
|
|||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "hermes_executions",
|
"name": "hermes_executions",
|
||||||
"title": "Task execution records with user isolation",
|
"title": "Task execution records with user isolation",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "relation"
|
"catelog": "relation"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -111,23 +113,35 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_hermes_executions_workflow",
|
"name": "idx_hermes_executions_workflow",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["workflow_id", "created_at"]
|
"idxfields": [
|
||||||
|
"workflow_id",
|
||||||
|
"created_at"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_executions_task",
|
"name": "idx_hermes_executions_task",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["task_id", "created_at"]
|
"idxfields": [
|
||||||
|
"task_id",
|
||||||
|
"created_at"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_executions_user",
|
"name": "idx_hermes_executions_user",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id", "created_at"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"created_at"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_executions_status",
|
"name": "idx_hermes_executions_status",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["execution_status", "created_at"]
|
"idxfields": [
|
||||||
|
"execution_status",
|
||||||
|
"created_at"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
}
|
}
|
||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "hermes_memory",
|
"name": "hermes_memory",
|
||||||
"title": "Persistent memory storage with user isolation and intelligent filtering",
|
"title": "Persistent memory storage with user isolation and intelligent filtering",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -82,17 +84,25 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_hermes_memory_user",
|
"name": "idx_hermes_memory_user",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id", "priority"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"priority"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_memory_target",
|
"name": "idx_hermes_memory_target",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["target"]
|
"idxfields": [
|
||||||
|
"target"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_memory_priority",
|
"name": "idx_hermes_memory_priority",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["priority", "last_accessed"]
|
"idxfields": [
|
||||||
|
"priority",
|
||||||
|
"last_accessed"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
|
|||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "harnessed_remote_skills",
|
"name": "harnessed_remote_skills",
|
||||||
"title": "Remote skills SSH configuration with user isolation",
|
"title": "Remote skills SSH configuration with user isolation",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -155,18 +157,25 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_remote_skills_user",
|
"name": "idx_remote_skills_user",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id"]
|
"idxfields": [
|
||||||
|
"user_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_remote_skills_user_name",
|
"name": "idx_remote_skills_user_name",
|
||||||
"idxtype": "unique",
|
"idxtype": "unique",
|
||||||
"idxfields": ["user_id", "name"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"name"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_remote_skills_host",
|
"name": "idx_remote_skills_host",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["host"]
|
"idxfields": [
|
||||||
|
"host"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
}
|
}
|
||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "hermes_sessions",
|
"name": "hermes_sessions",
|
||||||
"title": "Session metadata with user isolation",
|
"title": "Session metadata with user isolation",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -95,13 +97,19 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_hermes_sessions_user",
|
"name": "idx_hermes_sessions_user",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id", "started_at"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"started_at"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_sessions_active",
|
"name": "idx_hermes_sessions_active",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id", "is_active"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"is_active"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
}
|
}
|
||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "hermes_skills",
|
"name": "hermes_skills",
|
||||||
"title": "Skills repository with user isolation",
|
"title": "Skills repository with user isolation",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -91,18 +93,26 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_hermes_skills_user",
|
"name": "idx_hermes_skills_user",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id", "name"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"name"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_skills_name",
|
"name": "idx_hermes_skills_name",
|
||||||
"idxtype": "unique",
|
"idxtype": "unique",
|
||||||
"idxfields": ["user_id", "name"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"name"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_skills_category",
|
"name": "idx_hermes_skills_category",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["category"]
|
"idxfields": [
|
||||||
|
"category"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
}
|
}
|
||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "hermes_tasks",
|
"name": "hermes_tasks",
|
||||||
"title": "Task definitions within workflows with user isolation",
|
"title": "Task definitions within workflows with user isolation",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -130,18 +132,26 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_hermes_tasks_workflow",
|
"name": "idx_hermes_tasks_workflow",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["workflow_id", "order_index"]
|
"idxfields": [
|
||||||
|
"workflow_id",
|
||||||
|
"order_index"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_tasks_user",
|
"name": "idx_hermes_tasks_user",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id", "workflow_id"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"workflow_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_tasks_depends",
|
"name": "idx_hermes_tasks_depends",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["depends_on"]
|
"idxfields": [
|
||||||
|
"depends_on"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
}
|
}
|
||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "hermes_workflows",
|
"name": "hermes_workflows",
|
||||||
"title": "Workflow definitions with user isolation",
|
"title": "Workflow definitions with user isolation",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -100,13 +102,19 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_hermes_workflows_user",
|
"name": "idx_hermes_workflows_user",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id", "created_at"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"created_at"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_hermes_workflows_status",
|
"name": "idx_hermes_workflows_status",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["user_id", "status"]
|
"idxfields": [
|
||||||
|
"user_id",
|
||||||
|
"status"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
}
|
}
|
||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "task_dependencies",
|
"name": "task_dependencies",
|
||||||
"title": "Task dependency relationships within workflows",
|
"title": "Task dependency relationships within workflows",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "relation"
|
"catelog": "relation"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -76,23 +78,32 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_task_dep_workflow",
|
"name": "idx_task_dep_workflow",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["workflow_id"]
|
"idxfields": [
|
||||||
|
"workflow_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_task_dep_dependent",
|
"name": "idx_task_dep_dependent",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["dependent_task_id"]
|
"idxfields": [
|
||||||
|
"dependent_task_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_task_dep_dependency",
|
"name": "idx_task_dep_dependency",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"idxfields": ["dependency_task_id"]
|
"idxfields": [
|
||||||
|
"dependency_task_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_task_dep_unique",
|
"name": "idx_task_dep_unique",
|
||||||
"idxtype": "unique",
|
"idxtype": "unique",
|
||||||
"idxfields": ["dependent_task_id", "dependency_task_id"]
|
"idxfields": [
|
||||||
|
"dependent_task_id",
|
||||||
|
"dependency_task_id"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user