Commit Graph

1390 Commits

Author SHA1 Message Date
Evan Simkowitz
20d333f724
Make menubutton text clip to avoid overflow (#1135) 2024-10-24 23:24:54 -07:00
Mike Sawka
369fababa6
tab updates (#1134) 2024-10-24 23:16:44 -07:00
Evan Simkowitz
d66380d88b
Remove release creation race in build helper (#1133)
There was a race condition in the Build Helper where if multiple runners
got to the "Create draft release" step at the same time, we could get
duplicate releases created. Now, each of the build runners will upload
the artifacts to the workflow artifact feed. Then, a single runner will
create the draft release.
2024-10-24 18:42:48 -07:00
Evan Simkowitz
4fcac60f97
Fix WinGet publish script (#1132) 2024-10-24 18:16:06 -07:00
sawka
e1d538ed8b merge v0.8.13 changes 2024-10-24 17:02:35 -07:00
wave-builder[bot]
4bf0f725f7
chore: bump package version to 0.8.13 2024-10-24 23:59:06 +00:00
wave-builder[bot]
41583a3c3b
chore: bump package version to 0.8.13-beta.3 2024-10-24 23:09:11 +00:00
Mike Sawka
7a90754377
fix shutdown logic for macos/linux (#1128) 2024-10-24 16:07:18 -07:00
Evan Simkowitz
2f5c4a6da7
Make Linux icon match Windows (#1127) 2024-10-24 15:39:45 -07:00
Evan Simkowitz
f197be1f1c
Add Linux packaging instructions to build (#1126) 2024-10-24 14:51:49 -07:00
Evan Simkowitz
94a0a8b632
Update Build Instructions to mention that NodeJS should be 20 (#1125) 2024-10-24 14:25:12 -07:00
Evan Simkowitz
10248b3d58
Fix contains order in Taskfile (#1124)
oops
2024-10-24 13:53:03 -07:00
wave-builder[bot]
6377adae0f
chore: bump package version to 0.8.13-beta.2 2024-10-24 19:48:44 +00:00
Evan Simkowitz
2da51d2c22
Remove snapcraft install action that uses deprecated Node version (#1123) 2024-10-24 12:47:11 -07:00
Evan Simkowitz
e6f9ab7336
Fix task naming to avoid conflicts (#1122) 2024-10-24 12:36:55 -07:00
wave-builder[bot]
6fa0170ebe
chore: bump package version to 0.8.13-beta.1 2024-10-24 19:04:27 +00:00
Evan Simkowitz
be8ae0ef51
Use a different action to download release (#1121) 2024-10-24 12:03:40 -07:00
Evan Simkowitz
4fc65004e9
Fix snap name (#1120) 2024-10-24 11:25:45 -07:00
Evan Simkowitz
8d79539a50
Fix bugs in electron-builder and build-helper (#1119) 2024-10-24 11:20:25 -07:00
wave-builder[bot]
916f7ba15c
chore: bump package version to 0.8.13-beta.0 2024-10-24 18:11:38 +00:00
Mike Sawka
1742c19e13
resize terminal on restoring state (#1100) (backport from dev0.9) (#1116) 2024-10-24 11:01:58 -07:00
Mike Sawka
d65eabe494
termfontsize override (#1118) 2024-10-24 11:01:39 -07:00
Sylvie Crowe
bf5bf6f00c
fix: allow capital letters on host match (#1117)
While matching [user@]host[:port], we previously did not allow capital
letters in host.

While this makes sense for a hostname, it does not make sense to make
that restriction for a host. Since this can match on both, we must widen
it to accept characters allowed in host.
2024-10-24 10:58:31 -07:00
Mike Sawka
7afd19f000
on windows, must close the new temp file before removing it (#1115)
Closes #1114
2024-10-24 09:46:52 -07:00
Mike Sawka
701d93884d
vdom 4 (#1110) 2024-10-23 22:47:29 -07:00
Sylvie Crowe
8248637e00
WSL Integration (#1031)
Adds support for connecting to local WSL installations on Windows.

(also adds wshrpcmmultiproxy / connserver router)
2024-10-23 22:43:17 -07:00
Evan Simkowitz
cafd60fb1e
Add Snap instructions to readme (#1112) 2024-10-23 22:28:34 -07:00
Evan Simkowitz
3bd9249e81
Add steps to publish to Snapcraft (#1102)
Draft until our Snap package is approved for classic confinement:
https://forum.snapcraft.io/t/classic-confinement-request-for-waveterm/43562
2024-10-23 22:24:33 -07:00
Evan Simkowitz
4e86b67936
Merge branch 'main' into dev-v0.9 2024-10-23 14:46:43 -07:00
Evan Simkowitz
fe7d849bfe
Add winget to the readme (#1109) 2024-10-23 14:45:42 -07:00
Evan Simkowitz
8b2805b7fb
Add step to bump Winget package version on publish (#1103)
This will only bump the version when we publish a latest release, not a
beta one. It'll automatically create a PR to the [winget-pkgs
](https://github.com/microsoft/winget-pkgs) repo.

Draft until my New Package PR gets merged:
https://github.com/microsoft/winget-pkgs/pull/185133
2024-10-23 14:04:16 -07:00
Evan Simkowitz
e831f84711
fix for ~/.waveterm getting ignored 2024-10-22 21:23:24 -07:00
Evan Simkowitz
df25c54a31
Merge branch 'main' into dev-v0.9 2024-10-22 21:19:56 -07:00
Evan Simkowitz
fdab5eabd7
Remove extra security policy direction (#1105) 2024-10-22 18:55:44 -07:00
Evan Simkowitz
9cccc585d4
Add config to direct folks to alternative issue sources (#1104) 2024-10-22 18:52:34 -07:00
Evan Simkowitz
ec70ce8c91
Display error message on failed WebView page load (#1072)
closes #1023
2024-10-22 18:17:42 -07:00
Mike Sawka
fa160313ea
resize terminal on restoring state (#1100) 2024-10-22 12:50:44 -07:00
Mike Sawka
bba49fb6db
remove global variables from wconfig so we don't call wavebase (#1098) 2024-10-22 10:02:15 -07:00
sawka
cf1b082c10 Merge remote-tracking branch 'origin/main' into dev-v0.9 2024-10-22 09:59:15 -07:00
Evan Simkowitz
33f05c6e0c
Update data and config paths to match platform defaults (#1047)
Going forward for new installations, config and data files will be
stored at the platform default paths, as defined by
[env-paths](https://www.npmjs.com/package/env-paths).

For backwards compatibility, if the `~/.waveterm` or `WAVETERM_HOME`
directory exists and contains valid data, it will be used. If this check
fails, then `WAVETERM_DATA_HOME` and `WAVETERM_CONFIG_HOME` will be
used. If these are not defined, then `XDG_DATA_HOME` and
`XDG_CONFIG_HOME` will be used. Finally, if none of these are defined,
the [env-paths](https://www.npmjs.com/package/env-paths) defaults will
be used.

As with the existing app, dev instances will write to `waveterm-dev`
directories, while all others will write to `waveterm`.
2024-10-22 09:26:58 -07:00
Evan Simkowitz
81a8a7f3eb
Snap support (#1095)
Adds Snap support, though I'm still waiting to hear back from the
Snapcraft team about getting our package listed.

closes #1092
2024-10-21 18:13:19 -07:00
Evan Simkowitz
39fff9ecfd
Allow separate directories for each config part, add dropdown for editing AI presets (#1074)
Adds new functionality on the backend that will merge any file from the
config directory that matches `<partName>.json` or `<partName>/*.json`
into the corresponding config part (presets, termthemes, etc.). This
lets us separate the AI presets into `presets/ai.json` so that we can
add a dropdown in the AI preset selector that will directly open the
file so a user can edit it more easily. Right now, this will create a
preview block in the layout, but in the future we can look into making
this block disconnected from the layout.

If you put AI presets in the regular presets.json file, it will still
work, since all the presets get merged. Same for any other config part.
2024-10-21 16:51:18 -07:00
Evan Simkowitz
1fc6dd7c1a
Fix code scanning alert no. 50: Size computation for allocation may overflow (#1088)
Fixes
[https://github.com/wavetermdev/waveterm/security/code-scanning/50](https://github.com/wavetermdev/waveterm/security/code-scanning/50)

To fix the problem, we need to ensure that the size computation for the
allocation does not overflow. This can be achieved by validating the
length of `barr` before performing the arithmetic operation. We will set
a maximum allowable size for `barr` to ensure that the sum of
`oscPrefixLen(oscNum)` and `len(barr)` does not exceed the maximum value
for an `int`.

1. Define a maximum allowable size for `barr` (e.g., 64 MB).
2. Check the length of `barr` against this maximum size before
performing the allocation.
3. If `barr` exceeds the maximum size, return an error.


_Suggested fixes powered by Copilot Autofix. Review carefully before
merging._

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-10-21 14:05:52 -07:00
Evan Simkowitz
8dbb1f90d2
Fix path for chrome-sandbox chmod (#1091) 2024-10-21 13:29:15 -07:00
Evan Simkowitz
6f19a3effa
Update run name for manual dispatch (#1090) 2024-10-21 12:55:24 -07:00
Evan Simkowitz
f41a844a38
Attempt to fix chrome-sandbox permissions issue on Linux (#1089)
Also allows for test runs of build-helper, which will not upload to
staging
2024-10-21 12:52:13 -07:00
dependabot[bot]
d1018e852e
Bump the electron group with 2 updates (#1063)
Bumps the electron group with 2 updates:
[electron](https://github.com/electron/electron) and
[electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder).

Updates `electron` from 32.2.0 to 33.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/electron/electron/releases">electron's
releases</a>.</em></p>
<blockquote>
<h2>electron v33.0.1</h2>
<h1>Release Notes for v33.0.1</h1>
<h2>Other Changes</h2>
<ul>
<li>Updated Chromium to 130.0.6723.59. <a
href="https://redirect.github.com/electron/electron/pull/44271">#44271</a></li>
</ul>
<h2>electron v33.0.0</h2>
<h1>Release Notes for 33.0.0</h1>
<h2>Stack Upgrades</h2>
<ul>
<li>Chromium <code>130.0.6723.44</code>
<ul>
<li><a href="https://developer.chrome.com/blog/new-in-chrome-130/">New
in 130</a></li>
<li><a href="https://developer.chrome.com/blog/new-in-chrome-129/">New
in 129</a></li>
</ul>
</li>
<li>Node <code>20.18.0</code>
<ul>
<li><a href="https://nodejs.org/en/blog/release/v20.18.0/">Node 20.18.0
blog post</a></li>
<li><a href="https://nodejs.org/en/blog/release/v20.17.0/">Node 20.17.0
blog post</a></li>
</ul>
</li>
<li>V8 <code>13.0</code></li>
</ul>
<h2>Breaking Changes</h2>
<ul>
<li>Deprecated usage of <code>textured</code> BrowserWindow
<code>type</code> option on macOS. <a
href="https://redirect.github.com/electron/electron/pull/43133">#43133</a></li>
<li>Custom protocol URLs that use Windows file paths will no longer work
correctly with the deprecated <code>protocol.registerFileProtocol</code>
and the <code>baseURLForDataURL</code> property on
<code>BrowserWindow.loadURL</code>, <code>WebContents.loadURL</code>,
and <code>&lt;webview&gt;.loadURL</code>. <a
href="https://redirect.github.com/electron/electron/pull/43977">#43977</a></li>
</ul>
<h2>Features</h2>
<h3>Additions</h3>
<ul>
<li>Added a handler,
<code>app.setClientCertRequestPasswordHandler(handler)</code>, to help
unlock cryptographic devices when a PIN is needed. <a
href="https://redirect.github.com/electron/electron/pull/41205">#41205</a></li>
<li>Added error event in utility process to support diagnostic reports
on V8 fatal errors. <a
href="https://redirect.github.com/electron/electron/pull/43997">#43997</a></li>
<li>Added <code>View.setBorderRadius(radius)</code> for customizing the
border radius of views—with compatibility for
<code>WebContentsView</code>. <a
href="https://redirect.github.com/electron/electron/pull/42320">#42320</a></li>
<li>Added Linux support for the Windows Control Overlay API. <a
href="https://redirect.github.com/electron/electron/pull/41769">#41769</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/42683">30</a>,
<a
href="https://redirect.github.com/electron/electron/pull/42682">31</a>,
<a
href="https://redirect.github.com/electron/electron/pull/42681">32</a>)<!--
raw HTML omitted --></li>
<li>Added support for the macOS system picker in
<code>desktopCapturer</code> and
<code>setDisplayMediaRequestHandler</code>. <a
href="https://redirect.github.com/electron/electron/pull/43680">#43680</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/43679">32</a>)<!--
raw HTML omitted --></li>
<li>Added <code>DownloadItem.getCurrentBytesPerSecond()</code>,
<code>DownloadItem.getPercentComplete()</code>,
<code>DownloadItem.getEndTime()</code>. <a
href="https://redirect.github.com/electron/electron/pull/42805">#42805</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/42914">30</a>,
<a
href="https://redirect.github.com/electron/electron/pull/42915">31</a>,
<a
href="https://redirect.github.com/electron/electron/pull/42913">32</a>)<!--
raw HTML omitted --></li>
<li>Added a new property <code>prefersReducedTransparency</code> to
<code>nativeTheme</code>, which indicates whether the user has chosen to
reduce OS-level transparency via system accessibility settings. <a
href="https://redirect.github.com/electron/electron/pull/42862">#42862</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/43138">30</a>,
<a
href="https://redirect.github.com/electron/electron/pull/43137">31</a>,
<a
href="https://redirect.github.com/electron/electron/pull/43024">32</a>)<!--
raw HTML omitted --></li>
<li>Added support for responding to auth requests initiated from utility
process via <code>app#login</code> event. <a
href="https://redirect.github.com/electron/electron/pull/42631">#42631</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/43317">32</a>)<!--
raw HTML omitted --></li>
</ul>
<h3>Improvements</h3>
<ul>
<li>Extended <code>navigationHistory</code> API with 2 new functions for
better history management. <a
href="https://redirect.github.com/electron/electron/pull/42014">#42014</a></li>
<li>Ensured that the <code>sender-id</code> hint is set when creating
desktop notifications on DBus. <a
href="https://redirect.github.com/electron/electron/pull/43949">#43949</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/43951">31</a>,
<a
href="https://redirect.github.com/electron/electron/pull/43950">32</a>)<!--
raw HTML omitted --></li>
<li>Aligned failure pathway in File System Access API with upstream when
attempting to open a file or directory in a blocked path. <a
href="https://redirect.github.com/electron/electron/pull/42561">#42561</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/43162">30</a>,
<a
href="https://redirect.github.com/electron/electron/pull/42994">31</a>,
<a
href="https://redirect.github.com/electron/electron/pull/42993">32</a>)<!--
raw HTML omitted --></li>
<li>Enabled zstd compression in net http requests. <a
href="https://redirect.github.com/electron/electron/pull/43150">#43150</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/43301">31</a>,
<a
href="https://redirect.github.com/electron/electron/pull/43300">32</a>)<!--
raw HTML omitted --></li>
<li>Expose <code>systemPreferences</code> to
<code>utilityProcess</code>. <a
href="https://redirect.github.com/electron/electron/pull/42203">#42203</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/42600">30</a>,
<a
href="https://redirect.github.com/electron/electron/pull/42598">31</a>,
<a
href="https://redirect.github.com/electron/electron/pull/42599">32</a>)<!--
raw HTML omitted --></li>
</ul>
<h2>Fixes</h2>
<ul>
<li>Fixed a build failure when the <code>enable_plugins</code> build
flag is false. <a
href="https://redirect.github.com/electron/electron/pull/44025">#44025</a></li>
<li>Fixed mouse cursor turning into loading spinner when starting
utility process on Windows. <a
href="https://redirect.github.com/electron/electron/pull/43731">#43731</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="11c2b61011"><code>11c2b61</code></a>
chore: bump chromium to 130.0.6723.59 (33-x-y) (<a
href="https://redirect.github.com/electron/electron/issues/44271">#44271</a>)</li>
<li><a
href="6b458c78b0"><code>6b458c7</code></a>
fix: -Wunsafe-buffer-usage warnings in TaskbarHost::SetThumbarButtons()
(<a
href="https://redirect.github.com/electron/electron/issues/44260">#44260</a>)</li>
<li><a
href="77324ff514"><code>77324ff</code></a>
build: update devcontainer sha (<a
href="https://redirect.github.com/electron/electron/issues/44245">#44245</a>)</li>
<li><a
href="63d1d9cb65"><code>63d1d9c</code></a>
fix: SCContentSharingPicker crash in iframes (<a
href="https://redirect.github.com/electron/electron/issues/44228">#44228</a>)</li>
<li><a
href="dd5bce17cb"><code>dd5bce1</code></a>
docs: update timelines for E34 (<a
href="https://redirect.github.com/electron/electron/issues/44225">#44225</a>)</li>
<li><a
href="258a4a76cf"><code>258a4a7</code></a>
fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (<a
href="https://redirect.github.com/electron/electron/issues/44223">#44223</a>)</li>
<li><a
href="f269ca1d93"><code>f269ca1</code></a>
test: fix visibility-state-spec.ts flaky test (<a
href="https://redirect.github.com/electron/electron/issues/44199">#44199</a>)</li>
<li><a
href="7887395e92"><code>7887395</code></a>
fix: -Wunsafe-buffer-usage warnings when read()ing and write()ing
integers (#...</li>
<li><a
href="9011532b2e"><code>9011532</code></a>
fix: clang variable configuration in generated node headers (<a
href="https://redirect.github.com/electron/electron/issues/44200">#44200</a>)</li>
<li><a
href="afce3ce7c7"><code>afce3ce</code></a>
docs: clarify interplay between utility process events (<a
href="https://redirect.github.com/electron/electron/issues/44203">#44203</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/electron/electron/compare/v32.2.0...v33.0.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `electron-builder` from 25.1.7 to 25.1.8
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/electron-userland/electron-builder/releases">electron-builder's
releases</a>.</em></p>
<blockquote>
<h2>v25.1.8</h2>
<h2>What's Changed</h2>
<ul>
<li>chore: update test snapshot for latest 1.0.4 electron-builder-test
release by <a
href="https://github.com/mmaietta"><code>@​mmaietta</code></a> in <a
href="https://redirect.github.com/electron-userland/electron-builder/pull/8555">electron-userland/electron-builder#8555</a></li>
<li>fix: Path does not end with the package name by <a
href="https://github.com/beyondkmp"><code>@​beyondkmp</code></a> in <a
href="https://redirect.github.com/electron-userland/electron-builder/pull/8560">electron-userland/electron-builder#8560</a></li>
<li>chore(deploy): Release by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>
in <a
href="https://redirect.github.com/electron-userland/electron-builder/pull/8561">electron-userland/electron-builder#8561</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/electron-userland/electron-builder/compare/electron-builder@25.1.7...electron-builder@25.1.8">https://github.com/electron-userland/electron-builder/compare/electron-builder@25.1.7...electron-builder@25.1.8</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md">electron-builder's
changelog</a>.</em></p>
<blockquote>
<h2>25.1.8</h2>
<h3>Patch Changes</h3>
<ul>
<li>Updated dependencies [<a
href="4ff778eefd"><code>4ff778eefd9089b3b38b67156eb39e8cf57fdd83</code></a>]:
<ul>
<li>app-builder-lib@25.1.8</li>
<li>dmg-builder@25.1.8</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="1d61d6f590"><code>1d61d6f</code></a>
chore(deploy): Release v25.1.8 (<a
href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder/issues/8561">#8561</a>)</li>
<li>See full diff in <a
href="https://github.com/electron-userland/electron-builder/commits/electron-builder@25.1.8/packages/electron-builder">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-21 12:01:19 -07:00
Evan Simkowitz
a173468e02
Fix telemetry link in TOS (#1087)
closes #1085
2024-10-21 11:56:29 -07:00
sawka
613a583513 add the use version of settingskeyatom 2024-10-18 17:21:18 -07:00
Mike Sawka
3c94669d93
metakeyatom and overrideconfigatom (#1078) 2024-10-18 17:07:44 -07:00