tabby-eternal-terminal 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +18 -9
  2. package/dist/index.js +195 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -29,12 +29,21 @@ Key design decisions:
29
29
 
30
30
  ## Compatibility
31
31
 
32
- This plugin requires Tabby with the small SSH API changes in PR#11649.
33
- That PR/branch exports `SSHSession` and its keyboard interactive
34
- prompt, makes the prompt component available to plugins, and adds
35
- `SSHSession.openExecChannel()`. A stock Tabby release will not load
36
- the plugin correctly until those changes are accepted and released
37
- upstream.
32
+ This plugin needs a Tabby with the small SSH API changes in
33
+ [Tabby PR #11649](https://github.com/Eugeny/tabby/pull/11649). The PR
34
+ exports `SSHSession` and its keyboard-interactive prompt, makes the
35
+ prompt component available to plugins, and adds
36
+ `SSHSession.openExecChannel()`: 17 added lines in two files. Released
37
+ Tabby does not have them yet.
38
+
39
+ The plugin checks for them each time Tabby starts. On a Tabby without
40
+ them it still installs, but it says so when Tabby starts, in
41
+ **Settings → Eternal Terminal**, and in any Eternal Terminal tab, and
42
+ it does not try to connect.
43
+ [Getting a Tabby that can run Eternal Terminal](docs/tabby-support.md)
44
+ takes you through building one, step by step, and shows how to check
45
+ the change yourself first. Once a Tabby release includes the change,
46
+ update Tabby and the warning goes away.
38
47
 
39
48
  The ET server host must have `etserver` and `etterminal` installed. The plugin uses Tabby's SSH connection to start `etterminal`; it does not invoke a local ET binary.
40
49
 
@@ -49,9 +58,9 @@ connection type.
49
58
  You need a Tabby build with the SSH API changes described under
50
59
  [Compatibility](#compatibility), for example one built from the
51
60
  [`tabby-et-ssh-support`](https://github.com/qoke/tabby/tree/tabby-et-ssh-support)
52
- branch of `qoke/tabby`. A stock Tabby release will install the plugin
53
- but will not load it correctly. This requirement goes away once those
54
- changes are released in mainstream Tabby.
61
+ branch of `qoke/tabby`. [The setup guide](docs/tabby-support.md) shows
62
+ how. A released Tabby installs the plugin, but the plugin cannot open
63
+ connections there and says so.
55
64
 
56
65
  ### From inside Tabby
57
66
 
package/dist/index.js CHANGED
@@ -53,7 +53,7 @@ var pug_match_html=/["&<>]/;function template(locals) {var pug_html = "", pug_mi
53
53
 
54
54
  function pug_attr(t,e,n,r){if(!1===e||null==e||!e&&("class"===t||"style"===t))return"";if(!0===e)return" "+(r?t:t+'="'+t+'"');var f=typeof e;return"object"!==f&&"function"!==f||"function"!=typeof e.toJSON||(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),n||-1===e.indexOf('"'))?(n&&(e=pug_escape(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"&#39;")+"'"}
55
55
  function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r,c,n,s="";for(r=t.index,c=0;r<a.length;r++){switch(a.charCodeAt(r)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}c!==r&&(s+=a.substring(c,r)),c=r+1,s+=n}return c!==r?s+a.substring(c,r):s}
56
- var pug_match_html=/["&<>]/;function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;pug_html = pug_html + "\u003Cul" + (" class=\"nav-tabs\""+pug_attr("ngbNav", true, true, true)+" #nav=\"ngbNav\"") + "\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EGeneral\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EHost\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.host\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EPort\u003C\u002Flabel\u003E\u003Cdiv" + (" class=\"text-muted mb-1\""+pug_attr("translate", true, true, true)) + "\u003EThis is the etserver port, not SSH.\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" placeholder=\"2022\" [(ngModel)]=\"profile.options.port\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EUsername\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"text\" placeholder=\"Ask every time\" [(ngModel)]=\"profile.options.user\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003ESSH profile\u003C\u002Flabel\u003E\u003Cdiv" + (" class=\"text-muted mb-1\""+pug_attr("translate", true, true, true)) + "\u003EReuse an SSH profile for authentication. Leave empty to connect with the host and user above.\u003C\u002Fdiv\u003E\u003Cselect class=\"form-control\" [(ngModel)]=\"profile.options.sshProfile\"\u003E\u003Coption" + (" [ngValue]=\"null\""+pug_attr("translate", true, true, true)) + "\u003E(synthesise from host\u002Fuser)\u003C\u002Foption\u003E\u003Coption [ngValue]=\"x.id\" *ngFor=\"let x of sshProfiles\"\u003E{{getSSHProfileLabel(x)}}\u003C\u002Foption\u003E\u003C\u002Fselect\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\" *ngIf=\"!profile.options.sshProfile\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003ESSH port\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"number\" placeholder=\"22\" [(ngModel)]=\"profile.options.sshPort\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\" *ngIf=\"profile.options.sshProfile || profile.options.jumpSshProfile\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EReuse SSH profile credentials for a different host\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EAllow the linked SSH profile's saved password and keys to authenticate to an ET host other than that profile's own host. Only enable this for hosts you trust.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"profile.options.reuseSshProfileCredentials\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EPorts\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Cet-port-forwarding-config *ngIf=\"profile.options.forwardedPorts\" [model]=\"profile.options.forwardedPorts\" (forwardAdded)=\"onForwardAdded($event)\" (forwardRemoved)=\"onForwardRemoved($event)\"\u003E\u003C\u002Fet-port-forwarding-config\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EAdvanced\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EAgent forwarding\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EOnly enable this for hosts you trust. A compromised host can use your keys while you are connected.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"profile.options.forwardAgent\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003ETerminate other sessions\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003ETerminate your other ET sessions on this host before connecting. Frees orphaned sessions left by earlier Tabby runs.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"profile.options.killOtherSessions\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EWarn when closing\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"profile.options.warnOnClose\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EKeepalive interval (seconds)\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003ESeconds between keepalive probes. A missed probe triggers a resume.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" min=\"1\" max=\"5\" [(ngModel)]=\"profile.options.keepaliveInterval\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EMax reconnect attempts\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003E0 = keep trying forever (recommended).\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" min=\"0\" [(ngModel)]=\"profile.options.maxReconnectAttempts\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003Eetterminal path\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EOnly needed when etterminal is not on the remote PATH (for example \u002Fusr\u002Flocal\u002Fbin\u002Fetterminal on macOS servers).\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.etterminalPath\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EServer fifo\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EPass --serverfifo to etterminal (non-default etserver socket).\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.serverFifo\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EVerbosity\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" min=\"0\" max=\"9\" [(ngModel)]=\"profile.options.verbose\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EBootstrap output cap (bytes)\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EHow much remote stdout\u002Fstderr to keep while waiting for the session key. Empty = 64 KiB.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" min=\"1024\" max=\"16777216\" [(ngModel)]=\"profile.options.bootstrapCaptureLimit\"\u003E\u003C\u002Fdiv\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EJump host\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.jumpHost\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host port\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"number\" placeholder=\"2022\" [(ngModel)]=\"profile.options.jumpPort\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host SSH profile\u003C\u002Flabel\u003E\u003Cselect class=\"form-control\" [(ngModel)]=\"profile.options.jumpSshProfile\"\u003E\u003Coption" + (" [ngValue]=\"null\""+pug_attr("translate", true, true, true)) + "\u003E(synthesise from host\u002Fuser)\u003C\u002Foption\u003E\u003Coption [ngValue]=\"x.id\" *ngFor=\"let x of sshProfiles\"\u003E{{getSSHProfileLabel(x)}}\u003C\u002Foption\u003E\u003C\u002Fselect\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\" *ngIf=\"!profile.options.jumpSshProfile\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host SSH port\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"number\" placeholder=\"22\" [(ngModel)]=\"profile.options.jumpSshPort\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host server fifo\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.jumpServerFifo\"\u003E\u003Cdiv" + (" class=\"text-muted\""+pug_attr("translate", true, true, true)) + "\u003EOnly needed when the etserver of the jump host does not use its default socket.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"alert alert-warning\""+pug_attr("translate", true, true, true)) + "\u003EThe jump host decrypts your session. Unlike SSH ProxyJump, an ET jump host can read all traffic.\u003C\u002Fdiv\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EColors\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E";
56
+ var pug_match_html=/["&<>]/;function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;pug_html = pug_html + "\u003Cet-tabby-support-notice\u003E\u003C\u002Fet-tabby-support-notice\u003E\u003Cul" + (" class=\"nav-tabs\""+pug_attr("ngbNav", true, true, true)+" #nav=\"ngbNav\"") + "\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EGeneral\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EHost\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.host\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EPort\u003C\u002Flabel\u003E\u003Cdiv" + (" class=\"text-muted mb-1\""+pug_attr("translate", true, true, true)) + "\u003EThis is the etserver port, not SSH.\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" placeholder=\"2022\" [(ngModel)]=\"profile.options.port\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EUsername\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"text\" placeholder=\"Ask every time\" [(ngModel)]=\"profile.options.user\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003ESSH profile\u003C\u002Flabel\u003E\u003Cdiv" + (" class=\"text-muted mb-1\""+pug_attr("translate", true, true, true)) + "\u003EReuse an SSH profile for authentication. Leave empty to connect with the host and user above.\u003C\u002Fdiv\u003E\u003Cselect class=\"form-control\" [(ngModel)]=\"profile.options.sshProfile\"\u003E\u003Coption" + (" [ngValue]=\"null\""+pug_attr("translate", true, true, true)) + "\u003E(synthesise from host\u002Fuser)\u003C\u002Foption\u003E\u003Coption [ngValue]=\"x.id\" *ngFor=\"let x of sshProfiles\"\u003E{{getSSHProfileLabel(x)}}\u003C\u002Foption\u003E\u003C\u002Fselect\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\" *ngIf=\"!profile.options.sshProfile\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003ESSH port\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"number\" placeholder=\"22\" [(ngModel)]=\"profile.options.sshPort\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\" *ngIf=\"profile.options.sshProfile || profile.options.jumpSshProfile\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EReuse SSH profile credentials for a different host\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EAllow the linked SSH profile's saved password and keys to authenticate to an ET host other than that profile's own host. Only enable this for hosts you trust.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"profile.options.reuseSshProfileCredentials\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EPorts\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Cet-port-forwarding-config *ngIf=\"profile.options.forwardedPorts\" [model]=\"profile.options.forwardedPorts\" (forwardAdded)=\"onForwardAdded($event)\" (forwardRemoved)=\"onForwardRemoved($event)\"\u003E\u003C\u002Fet-port-forwarding-config\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EAdvanced\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EAgent forwarding\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EOnly enable this for hosts you trust. A compromised host can use your keys while you are connected.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"profile.options.forwardAgent\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003ETerminate other sessions\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003ETerminate your other ET sessions on this host before connecting. Frees orphaned sessions left by earlier Tabby runs.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"profile.options.killOtherSessions\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EWarn when closing\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"profile.options.warnOnClose\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EKeepalive interval (seconds)\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003ESeconds between keepalive probes. A missed probe triggers a resume.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" min=\"1\" max=\"5\" [(ngModel)]=\"profile.options.keepaliveInterval\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EMax reconnect attempts\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003E0 = keep trying forever (recommended).\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" min=\"0\" [(ngModel)]=\"profile.options.maxReconnectAttempts\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003Eetterminal path\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EOnly needed when etterminal is not on the remote PATH (for example \u002Fusr\u002Flocal\u002Fbin\u002Fetterminal on macOS servers).\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.etterminalPath\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EServer fifo\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EPass --serverfifo to etterminal (non-default etserver socket).\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.serverFifo\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EVerbosity\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" min=\"0\" max=\"9\" [(ngModel)]=\"profile.options.verbose\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EBootstrap output cap (bytes)\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EHow much remote stdout\u002Fstderr to keep while waiting for the session key. Empty = 64 KiB.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"number\" min=\"1024\" max=\"16777216\" [(ngModel)]=\"profile.options.bootstrapCaptureLimit\"\u003E\u003C\u002Fdiv\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EJump host\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.jumpHost\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host port\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"number\" placeholder=\"2022\" [(ngModel)]=\"profile.options.jumpPort\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host SSH profile\u003C\u002Flabel\u003E\u003Cselect class=\"form-control\" [(ngModel)]=\"profile.options.jumpSshProfile\"\u003E\u003Coption" + (" [ngValue]=\"null\""+pug_attr("translate", true, true, true)) + "\u003E(synthesise from host\u002Fuser)\u003C\u002Foption\u003E\u003Coption [ngValue]=\"x.id\" *ngFor=\"let x of sshProfiles\"\u003E{{getSSHProfileLabel(x)}}\u003C\u002Foption\u003E\u003C\u002Fselect\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\" *ngIf=\"!profile.options.jumpSshProfile\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host SSH port\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"number\" placeholder=\"22\" [(ngModel)]=\"profile.options.jumpSshPort\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"mb-3\"\u003E\u003Clabel" + (pug_attr("translate", true, true, true)) + "\u003EJump host server fifo\u003C\u002Flabel\u003E\u003Cinput class=\"form-control\" type=\"text\" [(ngModel)]=\"profile.options.jumpServerFifo\"\u003E\u003Cdiv" + (" class=\"text-muted\""+pug_attr("translate", true, true, true)) + "\u003EOnly needed when the etserver of the jump host does not use its default socket.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"alert alert-warning\""+pug_attr("translate", true, true, true)) + "\u003EThe jump host decrypts your session. Unlike SSH ProxyJump, an ET jump host can read all traffic.\u003C\u002Fdiv\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EColors\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E";
57
57
  pug_html = pug_html + "\u003Ccolor-scheme-selector [(model)]=\"profile.terminalColorScheme\"\u003E\u003C\u002Fcolor-scheme-selector\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003ELogin scripts\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Clogin-scripts-settings" + (" [options]=\"profile.options\""+pug_attr("#loginScriptsSettings", true, true, true)) + "\u003E\u003C\u002Flogin-scripts-settings\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003Cli" + (pug_attr("ngbNavItem", true, true, true)) + "\u003E\u003Ca" + (pug_attr("ngbNavLink", true, true, true)+pug_attr("translate", true, true, true)) + "\u003EInput\u003C\u002Fa\u003E\u003Cng-template" + (pug_attr("ngbNavContent", true, true, true)) + "\u003E\u003Cinput-processing-settings [options]=\"profile.options.input\"\u003E\u003C\u002Finput-processing-settings\u003E\u003C\u002Fng-template\u003E\u003C\u002Fli\u003E\u003C\u002Ful\u003E\u003Cdiv [ngbNavOutlet]=\"nav\"\u003E\u003C\u002Fdiv\u003E";;return pug_html;};module.exports=template;
58
58
 
59
59
  /***/ },
@@ -63,7 +63,7 @@ pug_html = pug_html + "\u003Ccolor-scheme-selector [(model)]=\"profile.terminalC
63
63
 
64
64
  function pug_attr(t,e,n,r){if(!1===e||null==e||!e&&("class"===t||"style"===t))return"";if(!0===e)return" "+(r?t:t+'="'+t+'"');var f=typeof e;return"object"!==f&&"function"!==f||"function"!=typeof e.toJSON||(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),n||-1===e.indexOf('"'))?(n&&(e=pug_escape(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"&#39;")+"'"}
65
65
  function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r,c,n,s="";for(r=t.index,c=0;r<a.length;r++){switch(a.charCodeAt(r)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}c!==r&&(s+=a.substring(c,r)),c=r+1,s+=n}return c!==r?s+a.substring(c,r):s}
66
- var pug_match_html=/["&<>]/;function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;pug_html = pug_html + "\u003Ch3\u003EEternal Terminal\u003C\u002Fh3\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EWarn when closing active connections\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"config.store.et.warnOnClose\" (ngModelChange)=\"config.save()\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EDefault etterminal path\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EApplied when a profile does not set its own etterminal path.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"text\" placeholder=\"etterminal\" [(ngModel)]=\"config.store.et.defaultEtterminalPath\" (ngModelChange)=\"config.save()\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EDebug protocol\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003ELogs every packet header and length. Never logs payload bytes or the session passkey.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"config.store.et.debugProtocol\" (ngModelChange)=\"config.save()\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"alert alert-info\""+pug_attr("translate", true, true, true)) + "\u003EEternal Terminal sessions are not resumed across a Tabby restart. Closing and reopening a tab starts a brand-new remote session; the previous one keeps running until its shell exits.\u003C\u002Fdiv\u003E";;return pug_html;};module.exports=template;
66
+ var pug_match_html=/["&<>]/;function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;pug_html = pug_html + "\u003Ch3\u003EEternal Terminal\u003C\u002Fh3\u003E\u003Cet-tabby-support-notice\u003E\u003C\u002Fet-tabby-support-notice\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EWarn when closing active connections\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"config.store.et.warnOnClose\" (ngModelChange)=\"config.save()\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EDefault etterminal path\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003EApplied when a profile does not set its own etterminal path.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Cinput class=\"form-control\" type=\"text\" placeholder=\"etterminal\" [(ngModel)]=\"config.store.et.defaultEtterminalPath\" (ngModelChange)=\"config.save()\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"form-line\"\u003E\u003Cdiv class=\"header\"\u003E\u003Cdiv" + (" class=\"title\""+pug_attr("translate", true, true, true)) + "\u003EDebug protocol\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"description\""+pug_attr("translate", true, true, true)) + "\u003ELogs every packet header and length. Never logs payload bytes or the session passkey.\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E\u003Ctoggle [(ngModel)]=\"config.store.et.debugProtocol\" (ngModelChange)=\"config.save()\"\u003E\u003C\u002Ftoggle\u003E\u003C\u002Fdiv\u003E\u003Cdiv" + (" class=\"alert alert-info\""+pug_attr("translate", true, true, true)) + "\u003EEternal Terminal sessions are not resumed across a Tabby restart. Closing and reopening a tab starts a brand-new remote session; the previous one keeps running until its shell exits.\u003C\u002Fdiv\u003E";;return pug_html;};module.exports=template;
67
67
 
68
68
  /***/ },
69
69
 
@@ -76,6 +76,15 @@ var pug_match_html=/["&<>]/;function template(locals) {var pug_html = "", pug_mi
76
76
 
77
77
  /***/ },
78
78
 
79
+ /***/ 845
80
+ (module) {
81
+
82
+ function pug_attr(t,e,n,r){if(!1===e||null==e||!e&&("class"===t||"style"===t))return"";if(!0===e)return" "+(r?t:t+'="'+t+'"');var f=typeof e;return"object"!==f&&"function"!==f||"function"!=typeof e.toJSON||(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),n||-1===e.indexOf('"'))?(n&&(e=pug_escape(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"&#39;")+"'"}
83
+ function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r,c,n,s="";for(r=t.index,c=0;r<a.length;r++){switch(a.charCodeAt(r)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}c!==r&&(s+=a.substring(c,r)),c=r+1,s+=n}return c!==r?s+a.substring(c,r):s}
84
+ var pug_match_html=/["&<>]/;function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;pug_html = pug_html + "\u003Cdiv class=\"alert alert-warning mb-3\" *ngIf=\"!support.supported\" role=\"alert\"\u003E\u003Ch5" + (" class=\"alert-heading\""+pug_attr("translate", true, true, true)) + "\u003EThis Tabby cannot open Eternal Terminal connections yet\u003C\u002Fh5\u003E\u003Cp" + (pug_attr("translate", true, true, true)) + "\u003EThe Eternal Terminal plugin needs a small addition to Tabby's SSH plugin. It lets other plugins use Tabby's SSH connection to start one command on the server. The addition is in a Tabby pull request that has not been released, so Tabby from tabby.sh or an app store does not have it.\u003C\u002Fp\u003E\u003Cp" + (pug_attr("translate", true, true, true)) + "\u003EUntil it is released, run a Tabby built from source with that change. The setup guide takes you through it step by step and shows the change line by line, so you can check it before you build.\u003C\u002Fp\u003E\u003Cdetails class=\"mb-3\"\u003E\u003Csummary" + (pug_attr("translate", true, true, true)) + "\u003EWhat this Tabby is missing\u003C\u002Fsummary\u003E\u003Cul class=\"mb-0 mt-2\"\u003E\u003Cli *ngFor=\"let item of support.missing\"\u003E{{ item }}\u003C\u002Fli\u003E\u003C\u002Ful\u003E\u003C\u002Fdetails\u003E\u003Cdiv class=\"d-flex flex-wrap gap-2\"\u003E\u003Cbutton class=\"btn btn-warning\" (click)=\"openGuide()\"\u003E\u003Cspan" + (pug_attr("translate", true, true, true)) + "\u003EOpen the setup guide\u003C\u002Fspan\u003E\u003C\u002Fbutton\u003E\u003Cbutton class=\"btn btn-secondary\" (click)=\"openPullRequest()\"\u003E\u003Cspan" + (pug_attr("translate", true, true, true)) + "\u003EView the Tabby pull request\u003C\u002Fspan\u003E\u003C\u002Fbutton\u003E\u003C\u002Fdiv\u003E\u003C\u002Fdiv\u003E";;return pug_html;};module.exports=template;
85
+
86
+ /***/ },
87
+
79
88
  /***/ 775
80
89
  (module, __unused_webpack_exports, __webpack_require__) {
81
90
 
@@ -116,6 +125,14 @@ module.exports = (req['default'] || req).apply(req, [])
116
125
 
117
126
  /***/ },
118
127
 
128
+ /***/ 630
129
+ (module, __unused_webpack_exports, __webpack_require__) {
130
+
131
+ var req = __webpack_require__(845);
132
+ module.exports = (req['default'] || req).apply(req, [])
133
+
134
+ /***/ },
135
+
119
136
  /***/ 967
120
137
  (module, __webpack_exports__, __webpack_require__) {
121
138
 
@@ -2936,6 +2953,11 @@ var etTab_component_namespaceFn = () => {
2936
2953
  return __webpack_require__(460);
2937
2954
  };
2938
2955
 
2956
+ // EXTERNAL MODULE: ./src/components/etTabbySupportNotice.component.pug
2957
+ var etTabbySupportNotice_component_namespaceFn = () => {
2958
+ return __webpack_require__(630);
2959
+ };
2960
+
2939
2961
  // MODULE: ./node_modules/ansi-colors/index.js
2940
2962
  var ansi_colors_namespaceFn = /*#__PURE__*/__webpack_require__.cw((module) => {
2941
2963
 
@@ -8337,6 +8359,103 @@ ETPortForwardingModalComponent = __decorate([
8337
8359
  ], ETPortForwardingModalComponent);
8338
8360
 
8339
8361
 
8362
+ ;// ./src/tabbySupport.ts
8363
+
8364
+ /**
8365
+ * Finds out whether the Tabby running the plugin has what the plugin needs
8366
+ * from it.
8367
+ *
8368
+ * The plugin starts etterminal over Tabby's own SSH connection. Released
8369
+ * Tabby keeps the pieces needed for that inside its SSH plugin: it does not
8370
+ * export `SSHSession` or `KeyboardInteractivePrompt`, has no way to run one
8371
+ * command without a shell, and keeps its keyboard-interactive panel to
8372
+ * itself. Tabby PR #11649 adds all four. A Tabby without them still loads the
8373
+ * plugin, because nothing is looked up until a connection starts, and the
8374
+ * first connection then fails with "SSHSession is not a constructor". This
8375
+ * check runs first, so the plugin can say what is wrong and how to fix it.
8376
+ */
8377
+ /** The step-by-step guide that the notices point to. */
8378
+ const TABBY_SUPPORT_GUIDE_URL = 'https://github.com/qoke/tabby-et/blob/main/docs/tabby-support.md';
8379
+ /** The Tabby pull request that adds what the plugin needs. */
8380
+ const TABBY_SUPPORT_PR_URL = 'https://github.com/Eugeny/tabby/pull/11649';
8381
+ /** The Tabby branch that has the change on top of a Tabby release. */
8382
+ const TABBY_SUPPORT_BRANCH_URL = 'https://github.com/qoke/tabby/tree/tabby-et-ssh-support';
8383
+ /** The selector of the keyboard-interactive panel that tabby-ssh has to export. */
8384
+ const KEYBOARD_INTERACTIVE_PANEL = 'keyboard-interactive-auth-panel';
8385
+ /**
8386
+ * What an Angular module says it exports, or null where the build of Tabby
8387
+ * does not keep that at run time. Tabby compiles its plugins in JIT mode,
8388
+ * which keeps it, but a missing panel is not worth a false alarm.
8389
+ */
8390
+ function exportedSelectors(module) {
8391
+ var _a, _b, _c;
8392
+ try {
8393
+ const exports = (_a = module === null || module === void 0 ? void 0 : module.ɵmod) === null || _a === void 0 ? void 0 : _a.exports;
8394
+ const list = typeof exports === 'function' ? exports() : exports;
8395
+ if (!Array.isArray(list)) {
8396
+ return null;
8397
+ }
8398
+ const selectors = [];
8399
+ for (const type of list) {
8400
+ for (const selector of ((_c = (_b = type === null || type === void 0 ? void 0 : type.ɵcmp) === null || _b === void 0 ? void 0 : _b.selectors) !== null && _c !== void 0 ? _c : [])) {
8401
+ selectors.push(...selector.filter((x) => typeof x === 'string' && x !== ''));
8402
+ }
8403
+ }
8404
+ return selectors;
8405
+ }
8406
+ catch (_d) {
8407
+ return null;
8408
+ }
8409
+ }
8410
+ /** Checks a tabby-ssh module. Exported for the tests; the plugin uses tabbySupport(). */
8411
+ function checkTabbySupport(ssh) {
8412
+ var _a;
8413
+ const missing = [];
8414
+ const session = ssh.SSHSession;
8415
+ if (typeof session !== 'function') {
8416
+ missing.push('tabby-ssh does not export SSHSession');
8417
+ }
8418
+ else if (typeof ((_a = session.prototype) === null || _a === void 0 ? void 0 : _a.openExecChannel) !== 'function') {
8419
+ missing.push('SSHSession has no openExecChannel() method');
8420
+ }
8421
+ if (typeof ssh.KeyboardInteractivePrompt !== 'function') {
8422
+ missing.push('tabby-ssh does not export KeyboardInteractivePrompt');
8423
+ }
8424
+ const selectors = exportedSelectors(ssh.default);
8425
+ if (selectors && !selectors.includes(KEYBOARD_INTERACTIVE_PANEL)) {
8426
+ missing.push(`tabby-ssh does not export its <${KEYBOARD_INTERACTIVE_PANEL}> component`);
8427
+ }
8428
+ return { supported: !missing.length, missing };
8429
+ }
8430
+ let cached = null;
8431
+ /** Whether the running Tabby supports the plugin. Tabby's plugins do not change while it runs. */
8432
+ function tabbySupport() {
8433
+ cached !== null && cached !== void 0 ? cached : (cached = checkTabbySupport(external_tabby_ssh_));
8434
+ return cached;
8435
+ }
8436
+ /**
8437
+ * What a tab says when it cannot connect, as terminal text. Plain lines, so
8438
+ * it can be read and copied from the tab itself.
8439
+ */
8440
+ function unsupportedTabbyTerminalText(support) {
8441
+ return [
8442
+ 'This Tabby cannot open Eternal Terminal connections yet.',
8443
+ '',
8444
+ 'The Eternal Terminal plugin needs a small addition to Tabby\'s SSH plugin.',
8445
+ 'The addition is in a Tabby pull request that has not been released, so',
8446
+ 'Tabby from tabby.sh or an app store does not have it. Until it is released,',
8447
+ 'run a Tabby built from source with the change.',
8448
+ '',
8449
+ 'What this Tabby is missing:',
8450
+ ...support.missing.map(x => ` - ${x}`),
8451
+ '',
8452
+ `Step-by-step guide: ${TABBY_SUPPORT_GUIDE_URL}`,
8453
+ `The Tabby pull request: ${TABBY_SUPPORT_PR_URL}`,
8454
+ '',
8455
+ 'Nothing was sent to the server.',
8456
+ ].join('\r\n') + '\r\n';
8457
+ }
8458
+
8340
8459
  ;// ./src/components/etTab.component.ts
8341
8460
  var etTab_component_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8342
8461
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -8366,6 +8485,7 @@ var etTab_component_a, _b, _c;
8366
8485
 
8367
8486
 
8368
8487
 
8488
+
8369
8489
  /**
8370
8490
  * From when on a request for a new session, made while one is being set up,
8371
8491
  * is one to start over, in ms. Before that it is the same request twice.
@@ -8498,6 +8618,15 @@ let ETTabComponent = class ETTabComponent extends external_tabby_terminal_.Conne
8498
8618
  if (this.closed) {
8499
8619
  return;
8500
8620
  }
8621
+ // A Tabby without the SSH changes would get as far as the bootstrap and
8622
+ // fail there with "SSHSession is not a constructor". Say what is wrong
8623
+ // instead, in the tab, before anything is sent anywhere.
8624
+ const support = tabbySupport();
8625
+ if (!support.supported) {
8626
+ this.notifications.error('This Tabby cannot open Eternal Terminal connections yet. The tab says how to fix it.', this.etNotificationTitle);
8627
+ void this.write(unsupportedTabbyTerminalText(support)).catch(() => undefined);
8628
+ return;
8629
+ }
8501
8630
  // Whatever is still here is being replaced, and must not outlive that.
8502
8631
  const replaced = this.session;
8503
8632
  let session;
@@ -9053,6 +9182,46 @@ ETSettingsTabComponent = etSettingsTab_component_decorate([
9053
9182
  ], ETSettingsTabComponent);
9054
9183
 
9055
9184
 
9185
+ ;// ./src/components/etTabbySupportNotice.component.ts
9186
+ var etTabbySupportNotice_component_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9187
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9188
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9189
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9190
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
9191
+ };
9192
+ var etTabbySupportNotice_component_metadata = (undefined && undefined.__metadata) || function (k, v) {
9193
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9194
+ };
9195
+ var etTabbySupportNotice_component_a;
9196
+
9197
+
9198
+
9199
+ /**
9200
+ * Says, where Eternal Terminal is set up, that this Tabby cannot run it yet,
9201
+ * and how to get a Tabby that can. Shows nothing on a Tabby that can.
9202
+ * @hidden
9203
+ */
9204
+ let ETTabbySupportNoticeComponent = class ETTabbySupportNoticeComponent {
9205
+ constructor(platform) {
9206
+ this.platform = platform;
9207
+ this.support = tabbySupport();
9208
+ }
9209
+ openGuide() {
9210
+ void this.platform.openExternal(TABBY_SUPPORT_GUIDE_URL);
9211
+ }
9212
+ openPullRequest() {
9213
+ void this.platform.openExternal(TABBY_SUPPORT_PR_URL);
9214
+ }
9215
+ };
9216
+ ETTabbySupportNoticeComponent = etTabbySupportNotice_component_decorate([
9217
+ (0,core_.Component)({
9218
+ selector: 'et-tabby-support-notice',
9219
+ template: (etTabbySupportNotice_component_namespaceFn()),
9220
+ }),
9221
+ etTabbySupportNotice_component_metadata("design:paramtypes", [typeof (etTabbySupportNotice_component_a = typeof external_tabby_core_.PlatformService !== "undefined" && external_tabby_core_.PlatformService) === "function" ? etTabbySupportNotice_component_a : Object])
9222
+ ], ETTabbySupportNoticeComponent);
9223
+
9224
+
9056
9225
  ;// ./src/config.ts
9057
9226
 
9058
9227
  /** @hidden */
@@ -9465,6 +9634,12 @@ var src_decorate = (undefined && undefined.__decorate) || function (decorators,
9465
9634
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9466
9635
  return c > 3 && r && Object.defineProperty(target, key, r), r;
9467
9636
  };
9637
+ var src_metadata = (undefined && undefined.__metadata) || function (k, v) {
9638
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9639
+ };
9640
+ var src_a, src_b, src_c, _d;
9641
+
9642
+
9468
9643
 
9469
9644
 
9470
9645
 
@@ -9486,6 +9661,21 @@ var src_decorate = (undefined && undefined.__decorate) || function (decorators,
9486
9661
 
9487
9662
  /** @hidden */
9488
9663
  let ETModule = class ETModule {
9664
+ constructor(app, toastr, platform, log) {
9665
+ // A Tabby without the SSH changes loads the plugin and fails only when
9666
+ // a connection starts. Say so once, as Tabby starts, rather than leave
9667
+ // the first connection to find out.
9668
+ const support = tabbySupport();
9669
+ if (support.supported) {
9670
+ return;
9671
+ }
9672
+ log.create('et').warn(`This Tabby cannot open Eternal Terminal connections: ${support.missing.join('; ')}. See ${TABBY_SUPPORT_GUIDE_URL}`);
9673
+ app.ready$.subscribe(() => {
9674
+ toastr.warning('This Tabby cannot open Eternal Terminal connections yet. Click here for the setup guide, or see Settings → Eternal Terminal.', 'Eternal Terminal', { timeOut: 30000, extendedTimeOut: 10000 }).onTap.subscribe(() => {
9675
+ void platform.openExternal(TABBY_SUPPORT_GUIDE_URL);
9676
+ });
9677
+ });
9678
+ }
9489
9679
  };
9490
9680
  ETModule = src_decorate([
9491
9681
  (0,core_.NgModule)({
@@ -9513,9 +9703,12 @@ ETModule = src_decorate([
9513
9703
  ETPortForwardingConfigComponent,
9514
9704
  ETPortForwardingModalComponent,
9515
9705
  ETSettingsTabComponent,
9706
+ ETTabbySupportNoticeComponent,
9516
9707
  ],
9517
9708
  })
9518
9709
  // eslint-disable-next-line @typescript-eslint/no-extraneous-class
9710
+ ,
9711
+ src_metadata("design:paramtypes", [typeof (src_a = typeof external_tabby_core_.AppService !== "undefined" && external_tabby_core_.AppService) === "function" ? src_a : Object, typeof (src_b = typeof external_ngx_toastr_.ToastrService !== "undefined" && external_ngx_toastr_.ToastrService) === "function" ? src_b : Object, typeof (src_c = typeof external_tabby_core_.PlatformService !== "undefined" && external_tabby_core_.PlatformService) === "function" ? src_c : Object, typeof (_d = typeof external_tabby_core_.LogService !== "undefined" && external_tabby_core_.LogService) === "function" ? _d : Object])
9519
9712
  ], ETModule);
9520
9713
  /* harmony default export */ const src = (ETModule);
9521
9714
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabby-eternal-terminal",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Eternal Terminal plugin for Tabby",
5
5
  "keywords": [
6
6
  "tabby-plugin",