mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-06 06:58:21 +00:00
* add automatic OSC 7 support to bash and zsh * add new wave OSC 16162 (planck length) to get up-to-date shell information into blockrtinfo. currently implemented only for zsh. bash will not support as rich of data as zsh, but we'll be able to do some. * new rtinfo will be used to provide better context for AI in the future, and to make sure AI is running safe commands. * added a small local machine description to tab context (so AI knows we're running on MacOS, Linux, or Windows)
20 lines
792 B
Go
20 lines
792 B
Go
// Copyright 2025, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package waveobj
|
|
|
|
type ObjRTInfo struct {
|
|
TsunamiTitle string `json:"tsunami:title,omitempty"`
|
|
TsunamiShortDesc string `json:"tsunami:shortdesc,omitempty"`
|
|
TsunamiSchemas any `json:"tsunami:schemas,omitempty"`
|
|
|
|
CmdHasCurCwd bool `json:"cmd:hascurcwd,omitempty"`
|
|
|
|
ShellState string `json:"shell:state,omitempty"`
|
|
ShellType string `json:"shell:type,omitempty"`
|
|
ShellVersion string `json:"shell:version,omitempty"`
|
|
ShellUname string `json:"shell:uname,omitempty"`
|
|
ShellInputEmpty bool `json:"shell:inputempty,omitempty"`
|
|
ShellLastCmd string `json:"shell:lastcmd,omitempty"`
|
|
ShellLastCmdExitCode int `json:"shell:lastcmdexitcode,omitempty"`
|
|
}
|