Skip to content

Agent TARS #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 43 commits into from
Mar 19, 2025
Merged

Agent TARS #213

merged 43 commits into from
Mar 19, 2025

Conversation

ulivz
Copy link
Member

@ulivz ulivz commented Mar 18, 2025

Please DO NOT click merge until this pull request is ready.


agent-tars-demo-01.mp4

const indices = indexPart
.split(']')
.slice(0, -1)
.map((i) => i.replace('[', ''));

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This replaces only the first occurrence of '['.
// Regex-substitute any whitespace with a single space, then trim
const collapsedValue = value.replace(/\s+/g, ' ').trim();
// Escape embedded double-quotes
const safeValue = collapsedValue.replace(/"/g, '\\"');

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This does not escape backslash characters in the input.
(item) =>
item.href &&
!item.href.includes('google') &&
!item.href.startsWith('javascript:'),

Check failure

Code scanning / CodeQL

Incomplete URL scheme check High

This check does not consider data: and vbscript:.

async function runCommand(command) {
try {
const { stdout, stderr } = await execAsync(command);

Check warning

Code scanning / CodeQL

Indirect uncontrolled command line Medium test

This command depends on an unsanitized
command-line argument
.

async function main() {
const { argv } = process;
const { stdout, stderr } = await exec(argv[2]);

Check warning

Code scanning / CodeQL

Indirect uncontrolled command line Medium test

This command depends on an unsanitized
command-line argument
.
): PageInfo {
const Readability = new Function(
'module',
`${readabilityScript}\nreturn module.exports`,

Check warning

Code scanning / CodeQL

Unsafe code constructed from library input Medium

This string concatenation which depends on
library input
is later
interpreted as code
.
Copy link

codecov bot commented Mar 18, 2025

Codecov Report

Attention: Patch coverage is 0% with 2402 lines in your changes missing coverage. Please review.

Project coverage is 4.75%. Comparing base (68107f2) to head (a2065ad).
Report is 43 commits behind head on main.

Files with missing lines Patch % Lines
...ent-infra/browser-use/src/agent/actions/builder.ts 0.00% 176 Missing ⚠️
...pps/agent-tars/src/renderer/src/agent/AgentFlow.ts 0.00% 158 Missing ⚠️
...nt-infra/browser-use/src/agent/agents/navigator.ts 0.00% 138 Missing ⚠️
...rc/main/llmProvider/providers/AnthropicProvider.ts 0.00% 118 Missing ⚠️
...s/src/main/llmProvider/providers/GeminiProvider.ts 0.00% 101 Missing ⚠️
...src/renderer/src/utils/getLoadingTipForToolCall.ts 0.00% 92 Missing ⚠️
.../agent-tars/src/renderer/src/agent/EventManager.ts 0.00% 91 Missing ⚠️
...s/agent-tars/src/renderer/src/utils/parseEvents.ts 0.00% 87 Missing ⚠️
apps/agent-tars/src/main/ipcRoutes/action.ts 0.00% 84 Missing ⚠️
.../src/main/llmProvider/providers/MistralProvider.ts 0.00% 78 Missing ⚠️
... and 66 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #213       +/-   ##
==========================================
- Coverage   16.86%   4.75%   -12.12%     
==========================================
  Files          85     249      +164     
  Lines        1785    7681     +5896     
  Branches      297    1431     +1134     
==========================================
+ Hits          301     365       +64     
- Misses       1448    7276     +5828     
- Partials       36      40        +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ulivz ulivz force-pushed the feat/agent-tars branch 3 times, most recently from 5b832aa to b56213f Compare March 18, 2025 14:37
preload: join(__dirname, '../preload/index.js'),
sandbox: false,
// Allow local file access
webSecurity: false,

Check warning

Code scanning / CodeQL

Disabling Electron webSecurity Medium

Disabling webSecurity is strongly discouraged.
@ulivz ulivz changed the title WIP: agent tars Agent TARS Mar 19, 2025
@ulivz ulivz force-pushed the feat/agent-tars branch from d9e659d to b2e1271 Compare March 19, 2025 11:21
@ulivz ulivz merged commit 273abaf into main Mar 19, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants