Commit Graph

1274 Commits

Author SHA1 Message Date
sawka
455af19387 merge dev-v0.9 2024-10-23 22:55: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
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
Red Adaya
054a0098e9 update typeaheadmodal 2024-10-23 13:41:06 +08:00
Red Adaya
8cb6fe01bc Merge branch 'main' of github.com:wavetermdev/waveterm into red/chatview 2024-10-23 13:17:12 +08: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
Red Adaya
493e6ca498 remove chat from default widget for now 2024-10-22 08:59:26 +08:00
Red Adaya
ac72cbe33d Merge branch 'main' of github.com:wavetermdev/waveterm into red/chatview 2024-10-22 08:45:46 +08: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
Red Adaya
642428f896 Rename palette to popover 2024-10-21 20:46:37 +08:00
Red Adaya
25f44319d3 merge main 2024-10-21 13:05:21 +08:00
Red Adaya
555ac7caeb minor change 2024-10-21 12:56:20 +08:00
Red Adaya
a0d67a3c3d emoji insertion support 2024-10-21 12:54:14 +08:00
Red Adaya
4c72acdd4d update model when a message is added 2024-10-21 10:13:24 +08:00
Red Adaya
6868d1f39f fix chat-section layout 2024-10-21 09:49:40 +08:00
Red Adaya
719831d254 multiline input 2024-10-21 08:33:57 +08:00
Red Adaya
26a2ce250f minor adjustment 2024-10-20 22:46:56 +08:00
Red Adaya
b985b445e7 fix styles 2024-10-20 22:17:08 +08:00
Red Adaya
601533566e ChatInput component 2024-10-20 19:41:46 +08: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
Evan Simkowitz
7385906106
Merge branch 'main' into dev-v0.9 2024-10-18 15:43:42 -07:00
Evan Simkowitz
26e389776b
Revert "Revert "Bump the prod-dependencies group with 2 updates"" (#1075)
Reverts wavetermdev/waveterm#1071
2024-10-18 15:31:23 -07:00
Evan Simkowitz
abb7c98d56
Revert "Revert "Bump the dev-dependencies group with 6 updates"" (#1076)
Reverts wavetermdev/waveterm#1070
2024-10-18 15:31:16 -07:00
Evan Simkowitz
f56fc982f6
Revert "Revert "Bump github.com/sashabaranov/go-openai from 1.32.0 to 1.32.2"" (#1077)
Reverts wavetermdev/waveterm#1069
2024-10-18 15:31:08 -07:00
Evan Simkowitz
4f035e1e8a
Merge branch 'main' into dev-v0.9 2024-10-18 14:39:48 -07:00
Evan Simkowitz
ab16baed3e
Fix edge case with Wave Proxy AI preset (#1073)
If a user has changed the global AI settings and added a different base
url, the Wave Proxy preset would not work because it doesn't unset all
the AI settings.
2024-10-18 14:27:48 -07:00
wave-builder[bot]
98400fe6fc
chore: bump package version to 0.8.12 2024-10-18 21:01:00 +00:00
wave-builder[bot]
a2beb1e9ad
chore: bump package version to 0.8.12-beta.5 2024-10-18 19:55:27 +00:00
Evan Simkowitz
89698289dd
Revert "Bump github.com/sashabaranov/go-openai from 1.32.0 to 1.32.2" (#1069)
Reverts wavetermdev/waveterm#1059, will reapply after 0.8.12 goes out
2024-10-18 12:49:35 -07:00
Evan Simkowitz
6045c1f428
Revert "Bump the dev-dependencies group with 6 updates" (#1070)
Reverts wavetermdev/waveterm#1060,

Will reapply after 0.8.12
2024-10-18 12:49:23 -07:00
Evan Simkowitz
205d33e7f5
Revert "Bump the prod-dependencies group with 2 updates" (#1071)
Reverts wavetermdev/waveterm#1062,

Will reapply after 0.8.12
2024-10-18 12:49:15 -07:00