chore: reworked some specs and did small addition to database schema based on gaps in spec, also rechecked the core plan
This commit is contained in:
@@ -154,7 +154,7 @@ entity Script {
|
||||
entrypoint: String -- Default: "render" for macros, "main" otherwise
|
||||
enabled: Boolean
|
||||
version: Integer -- Incremented on each update
|
||||
file_path: String -- scripts/{slug}.{extension}
|
||||
file_path: String -- scripts/{slug}.lua
|
||||
status: ScriptStatus
|
||||
content: String? -- Draft body (null when published)
|
||||
created_at: Timestamp
|
||||
@@ -239,6 +239,8 @@ entity ChatMessage {
|
||||
content: String?
|
||||
tool_call_id: String? -- For tool responses
|
||||
tool_calls: String? -- JSON array of tool calls
|
||||
token_usage_input: Integer?
|
||||
token_usage_output: Integer?
|
||||
cache_read_tokens: Integer?
|
||||
cache_write_tokens: Integer?
|
||||
created_at: Timestamp
|
||||
@@ -524,6 +526,8 @@ surface ChatMessageRecordSurface {
|
||||
message.content when message.content != null
|
||||
message.tool_call_id when message.tool_call_id != null
|
||||
message.tool_calls when message.tool_calls != null
|
||||
message.token_usage_input when message.token_usage_input != null
|
||||
message.token_usage_output when message.token_usage_output != null
|
||||
message.cache_read_tokens when message.cache_read_tokens != null
|
||||
message.cache_write_tokens when message.cache_write_tokens != null
|
||||
message.created_at
|
||||
|
||||
Reference in New Issue
Block a user