mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-17 20:51:55 +01:00
merge v0.7.4 and v0.7.5 changes back into main (#644)
This commit is contained in:
parent
5afe233381
commit
9a825761da
@ -6,7 +6,7 @@
|
||||
},
|
||||
"productName": "Wave",
|
||||
"description": "An Open-Source, AI-Native, Terminal Built for Seamless Workflows",
|
||||
"version": "0.7.3",
|
||||
"version": "0.7.5",
|
||||
"main": "dist/emain.js",
|
||||
"license": "Apache-2.0",
|
||||
"repository": {
|
||||
|
@ -172,16 +172,16 @@ class Prompt extends React.Component<
|
||||
</span>
|
||||
);
|
||||
}
|
||||
if (!isBlank(festate["K8SCONTEXT"])) {
|
||||
const k8sContext = festate["K8SCONTEXT"];
|
||||
const k8sNs = festate["K8SNAMESPACE"];
|
||||
k8sElem = (
|
||||
<span title="k8s context:namespace" className="term-prompt-k8s">
|
||||
k8s:({k8sContext}
|
||||
{isBlank(k8sNs) ? "" : ":" + k8sNs}){" "}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
// if (!isBlank(festate["K8SCONTEXT"])) {
|
||||
// const k8sContext = festate["K8SCONTEXT"];
|
||||
// const k8sNs = festate["K8SNAMESPACE"];
|
||||
// k8sElem = (
|
||||
// <span title="k8s context:namespace" className="term-prompt-k8s">
|
||||
// k8s:({k8sContext}
|
||||
// {isBlank(k8sNs) ? "" : ":" + k8sNs}){" "}
|
||||
// </span>
|
||||
// );
|
||||
// }
|
||||
return (
|
||||
<span className={termClassNames}>
|
||||
{remoteElem} {cwdElem} {branchElem} {condaElem} {pythonElem} {k8sElem}
|
||||
|
@ -64,7 +64,11 @@ class InfoMsg extends React.Component<{}, {}> {
|
||||
}
|
||||
|
||||
return (
|
||||
<AuxiliaryCmdView title={titleStr} className="cmd-input-info">
|
||||
<AuxiliaryCmdView
|
||||
title={titleStr}
|
||||
className="cmd-input-info"
|
||||
onClose={() => GlobalModel.inputModel.closeAuxView()}
|
||||
>
|
||||
<If condition={infoMsg?.infomsg}>
|
||||
<div key="infomsg" className="info-msg">
|
||||
<If condition={infoMsg.infomsghtml}>
|
||||
|
@ -617,8 +617,9 @@ class TextAreaInput extends React.Component<{ screen: Screen; onHeightChange: ()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const renderCmdInputKeybindings = inputModel.shouldRenderAuxViewKeybindings(null);
|
||||
const renderCmdInputKeybindings =
|
||||
inputModel.shouldRenderAuxViewKeybindings(null) ||
|
||||
inputModel.shouldRenderAuxViewKeybindings(appconst.InputAuxView_Info);
|
||||
const renderHistoryKeybindings = inputModel.shouldRenderAuxViewKeybindings(appconst.InputAuxView_History);
|
||||
return (
|
||||
<div
|
||||
|
@ -531,8 +531,6 @@ for var in "${(@k)dis_functions_source}"; do
|
||||
done
|
||||
printf "[%SECTIONSEP%]";
|
||||
[%GITBRANCH%]
|
||||
[%K8SCONTEXT%]
|
||||
[%K8SNAMESPACE%]
|
||||
printf "[%SECTIONSEP%]";
|
||||
print -P "$PS1"
|
||||
printf "[%SECTIONSEP%]";
|
||||
|
@ -733,7 +733,6 @@ func HandleRunEphemeralCommand(w http.ResponseWriter, r *http.Request) {
|
||||
WriteJsonError(w, fmt.Errorf(ErrorDecodingJson, err))
|
||||
return
|
||||
}
|
||||
log.Printf("Running ephemeral command: %v\n", commandPk)
|
||||
|
||||
if commandPk.EphemeralOpts == nil {
|
||||
commandPk.EphemeralOpts = &ephemeral.EphemeralRunOpts{}
|
||||
|
@ -1930,10 +1930,6 @@ func RunCommand(ctx context.Context, rcOpts RunCommandOpts, runPacket *packet.Ru
|
||||
return nil, nil, fmt.Errorf("runPacket.StatePtr should not be set, it is set in RunCommand")
|
||||
}
|
||||
|
||||
if rcOpts.EphemeralOpts != nil {
|
||||
log.Printf("[info] running ephemeral command ck: %s\n", runPacket.CK)
|
||||
}
|
||||
|
||||
// pending state command logic
|
||||
// if we are currently running a command that can change the state, we need to wait for it to finish
|
||||
if rcOpts.StatePtr == nil {
|
||||
@ -2186,9 +2182,6 @@ func (wsh *WaveshellProc) HandleFeInput(inputPk *scpacket.FeInputPacketType) err
|
||||
func (wsh *WaveshellProc) AddRunningCmd(rct *RunCmdType) {
|
||||
wsh.Lock.Lock()
|
||||
defer wsh.Lock.Unlock()
|
||||
if rct.EphemeralOpts != nil {
|
||||
log.Printf("[info] adding ephemeral running command: %s\n", rct.CK)
|
||||
}
|
||||
wsh.RunningCmds[rct.RunPacket.CK] = rct
|
||||
}
|
||||
|
||||
@ -2596,7 +2589,6 @@ func (wsh *WaveshellProc) handleDataPacket(rct *RunCmdType, dataPk *packet.DataP
|
||||
return
|
||||
}
|
||||
if rct.EphemeralOpts != nil {
|
||||
log.Printf("ephemeral data packet: %s\n", dataPk.CK)
|
||||
// Write to the response writer if it's set
|
||||
if len(realData) > 0 && rct.EphemeralOpts.ExpectsResponse {
|
||||
switch dataPk.FdNum {
|
||||
|
Loading…
Reference in New Issue
Block a user