mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4396] [MERGED] feat: hoppscotch agent and agent interceptor #4785
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4785
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4396
Author: @AndrewBastin
Created: 10/1/2024
Status: ✅ Merged
Merged: 10/3/2024
Merged by: @jamesgeorge007
Base:
next← Head:feat/agent📝 Commits (10+)
07678befeat: hoppscotch-interceptor init6381275fix: avoid clone in favor of renaminge5632b4misc: add todo notes9d7c36ffeat: typed registration keye93c5bbfeat: usedashmapfor concurrent hasmapca87c27fix: avoid creating duplicateauth_key4ae8b31perf: launch server process inside tauri appc1b2263refactor: flatten directory structureb4c673cfeat: graceful-shutdown to avoid leaking server connections5d91085feat|wip: generate otp with tauri command📊 Changes
106 files changed (+14622 additions, -595 deletions)
View changed files
➕
packages/hoppscotch-agent/.envrc(+3 -0)➕
packages/hoppscotch-agent/.gitignore(+33 -0)➕
packages/hoppscotch-agent/README.md(+16 -0)➕
packages/hoppscotch-agent/devenv.lock(+161 -0)➕
packages/hoppscotch-agent/devenv.nix(+94 -0)➕
packages/hoppscotch-agent/devenv.yaml(+23 -0)➕
packages/hoppscotch-agent/index.html(+13 -0)➕
packages/hoppscotch-agent/package.json(+34 -0)➕
packages/hoppscotch-agent/pnpm-lock.yaml(+2952 -0)➕
packages/hoppscotch-agent/postcss.config.js(+6 -0)➕
packages/hoppscotch-agent/public/tauri.svg(+6 -0)➕
packages/hoppscotch-agent/public/vite.svg(+1 -0)➕
packages/hoppscotch-agent/src-tauri/.gitignore(+7 -0)➕
packages/hoppscotch-agent/src-tauri/Cargo.lock(+6070 -0)➕
packages/hoppscotch-agent/src-tauri/Cargo.toml(+49 -0)➕
packages/hoppscotch-agent/src-tauri/build.rs(+5 -0)➕
packages/hoppscotch-agent/src-tauri/capabilities/default.json(+13 -0)➕
packages/hoppscotch-agent/src-tauri/icons/128x128.png(+0 -0)➕
packages/hoppscotch-agent/src-tauri/icons/128x128@2x.png(+0 -0)➕
packages/hoppscotch-agent/src-tauri/icons/32x32.png(+0 -0)...and 80 more files
📄 Description
This PR intends to introduce a new Hoppscotch Interceptor along with the new Hoppscotch Agent app to power it.
The Hoppscotch Agent app is an installable native application that exposes a background HTTP Server that Hoppscotch web app can talk with to run requests against. This allows the Hoppscotch web apps (particularly the SH ones) have ability to run requests without restrictions and is meant to be a stopgap solution until SH gains support in the desktop app.
What's changed
Hoppscotch Common
WORKSPACE_SERVICEby running_getService("WORKSPACE_SERVICE"), you can directly just access it viaWORKSPACE_SERVICEvariable while debug service is on).Hoppscotch Agent
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.