Started implementing profile system.

This commit is contained in:
Jakob Friedl
2025-08-13 19:32:51 +02:00
parent b7622dd72f
commit 415cd7ebf8
6 changed files with 75 additions and 19 deletions

View File

@@ -2,6 +2,7 @@ import prompt
import tables
import times
import streams
import parsetoml
# Custom Binary Task structure
const
@@ -149,18 +150,25 @@ type
Protocol* = enum
HTTP = "http"
Listener* = ref object
Listener* = ref object of RootObj
listenerId*: string
address*: string
port*: int
protocol*: Protocol
HttpListener* = ref object of Listener
register_endpoint*: string
get_endpoint*: string
post_endpoint*: string
# Server context structure
type
KeyPair* = object
privateKey*: Key
publicKey*: Key
Profile* = TomlTableRef
Conquest* = ref object
prompt*: Prompt
dbPath*: string
@@ -168,6 +176,7 @@ type
agents*: Table[string, Agent]
interactAgent*: Agent
keyPair*: KeyPair
profile*: Profile
# Agent config
type