Commit Graph
1507 Commits
Author SHA1 Message Date
BaaRai ee53ebf36a Revert "Merge pull request #556 from Coff0xc/fix/traffic-host-reserved"
This reverts commit 51d17fef8a, reversing
changes made to 00387bf8a7.
2026-11-26 23:36:38 +01:00
BaaRai 51d17fef8a Merge pull request #556 from Coff0xc/fix/traffic-host-reserved
fix(traffic): keep store directories out of host deletion
2026-11-26 23:34:38 +01:00
BaaRai e47776f1af Merge main into fix/traffic-host-reserved (resolve CHANGELOG.md) 2026-11-26 23:24:34 +01:00
BaaRai a753c4d0d0 synthetic main: +#540 2026-11-26 23:24:33 +01:00
BaaRai 20e5d937c3 synthetic main: +#543 2026-11-26 23:24:31 +01:00
BaaRai 00387bf8a7 Merge pull request #418 from ldevbr/contrib/egress-allowlist
feat: optional DNS-driven egress allowlist (separate compose file)
2026-11-26 23:21:47 +01:00
BaaRai 2c363a8e9d Merge pull request #496 from Coff0xc/fix/extension-request-cap
fix(extension): bound in-flight capture requests
2026-11-26 23:21:42 +01:00
BaaRai 16b9802ee7 Merge main into fix/extension-request-cap (resolve CHANGELOG.md) 2026-11-26 23:08:02 +01:00
BaaRai bcfcdc7c11 Merge main into contrib/egress-allowlist (resolve CHANGELOG.md) 2026-11-26 23:07:44 +01:00
BaaRai 4a520fab8b chore(dependabot): also ignore minor bumps for the python and golang images 2026-11-26 23:06:38 +01:00
BaaRai ead4773a5d chore(dependabot): ignore major bumps for the node, python and golang images 2026-11-26 22:42:41 +01:00
BaaRai 3983f14116 Merge pull request #541 from Phantom-IN/feat/llm-profile-prices
feat(llm): set profile prices in the settings dialog
2026-11-26 22:40:38 +01:00
BaaRai a8d0538051 Merge remote-tracking branch 'origin/main' into pr541
# Conflicts:
#	web/src/i18n/locales/tr.json
#	web/src/i18n/locales/zh-CN.json
2026-11-26 22:26:20 +01:00
BaaRai 36e1b1a980 Merge pull request #582 from chuenchen309/fix/redact-unparseable-dsn
fix(config): mask passwords in unparseable DSN URLs
2026-11-26 22:25:34 +01:00
BaaRai 0b1bcfb25a Merge pull request #547 from sisantaChhatoi/refactor/shared-formatters
refactor(web): share display formatters and HTTP status colours
2026-11-26 22:25:27 +01:00
BaaRai 51a0f17f45 Merge pull request #500 from YunzhouLi-hub/fix/noise-status-unavailable
fix(web): distinguish unavailable and stale noise status
2026-11-26 22:25:16 +01:00
BaaRai 7766898ce6 Merge pull request #456 from Shiv9993/feat/chat-bridge-core
feat(chatbridge): inbound chat bridge core with a Telegram long-poll transport (#5, part 1 of 3)
2026-11-26 22:25:11 +01:00
BaaRai 3a24d1d425 Merge pull request #533 from brixtonpham/chore/slog-agent
chore: migrate log.Printf to log/slog in agent and cmd
2026-11-26 22:25:05 +01:00
BaaRai 0768c50a5e Merge pull request #523 from rahulremany/chore/slog-llmpool-llmrec-intercept-db
chore: migrate log.Printf to log/slog in llmpool, llmrec, intercept and db
2026-11-26 22:25:00 +01:00
BaaRai 310211626e Merge pull request #564 from chaitanya0305/fix/traffic-search-default-port
fix(traffic): match default-port captures in traffic_search
2026-11-26 22:24:49 +01:00
BaaRai 1dc2211de1 Merge pull request #566 from chaitanya0305/fix/traffic-index-compressed
fix(traffic): index and match the decoded text of compressed responses
2026-11-26 22:24:44 +01:00
BaaRai a98d01012f Merge pull request #568 from chaitanya0305/fix/asset-dsl-exclude-null
fix(db): keep assets without the field in asset DSL != exclusions
2026-11-26 22:24:38 +01:00
BaaRai 2e956051a7 Merge pull request #570 from chaitanya0305/fix/scope-expansion-company
fix(db): match declared company domains when flagging scope expansion
2026-11-26 22:24:33 +01:00
BaaRai 9cdd6b7172 Merge pull request #572 from chaitanya0305/fix/report-task-asset-counts
fix(server): count only the task's assets in the task report
2026-11-26 22:24:24 +01:00
BaaRai ce74796927 Merge pull request #583 from BaaRai/fix/544-orchestrator-tools
fix(agent): keep Auto and MainAgent on orchestration tools, not Bash/WebFetch
2026-11-26 21:49:11 +01:00
BaaRai 1d949d5359 Merge pull request #561 from chaitanya0305/fix/telegram-digest-pack
fix(notify): pack Telegram digests by their escaped text
2026-11-26 21:45:00 +01:00
BaaRai 19fefb4c4d Merge pull request #538 from Phantom-IN/fix/conntest-no-background-tools
fix(agent): send no tools with the LLM connection test
2026-11-26 21:44:12 +01:00
BaaRai c203af2f5c fix(agent): keep Auto and MainAgent on orchestration tools, not Bash/WebFetch
Fixes #544
2026-11-26 21:35:20 +01:00
chuenchen309 ec8c6a16cf fix(config): mask passwords in unparseable DSN URLs
Redact only masked URL userinfo when url.Parse succeeded. A password
with an unencoded # / ? or % fails to parse, so the startup config
snapshot and the ping error logged it in full.
2026-11-27 04:14:25 +08:00
Phantom-IN a9b692f750 fix(llm): keep stored prices when a profile save omits them
Every save rewrites all four price columns, so an API client that sent
the profile without price fields reset them to 0. Decode the prices as
*float64 and keep the stored value for any that are missing.
2026-11-27 00:54:34 +05:30
shivandkrad b6ec42f15a fix(chatbridge): address review notes on the bridge core
- Require https for base_url. The bot token travels in the URL path and
  the responses are the updates the bridge acts on, so plain http is
  accepted only with ARTEX_NOTIFY_ALLOW_LOCAL=1, for a local test server.
- Cut replies by UTF-16 code units, which is how Telegram counts its 4096
  limit, so emoji-heavy text is no longer rejected. A cut never splits a
  character.
- Cap a server-sent retry_after at the backoff ceiling (1 minute).
- Pause one second after an empty poll, so a self-hosted Bot API that
  ignores the long-poll timeout cannot spin the loop.
- When the refused-chat memory is full, start over instead of muting
  every new chat, which also muted the operator's own chat. Saving the
  configuration of the same bot keeps the memory.
- Fix two stale comments that said an empty allowlist keeps the bridge
  off (migration 0015 is unreleased, so editing its comment is safe).

Co-authored-by: krad <222954346+dar1k0@users.noreply.github.com>
2026-11-26 22:24:28 +05:30
Brixton Pham d880eb289d chore: keep raw config snapshot JSON, multiline panic stack, and isolated slog test 2026-11-26 20:42:19 +07:00
sisantaChhatoiandClaude Opus 5.5 6bcf46de52 refactor(web): keep token precision in formatTokens; restore UserRow comment
Review follow-up:
- formatTokens keeps one decimal and drops a trailing ".0" instead of
  dropping the decimal from 10k up, so dashboard axis ticks keep their
  .5 steps (12.5M, not 13M) and tooltips show 123.5k, not 123k. From
  999,950 it switches to "M" so values never read "1000k".
- transcript.tsx: the UserRow doc comment sat above fmtBytes on main and
  was removed with it; it is back above UserRow.
- src/lib/format.test.mjs covers the shared formatters under plain
  `node --test` (the "@/i18n" import is stubbed with a fixed locale).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:52:18 +05:30
Chaitanya Deshpande c1a8025aaf fix(traffic): decode compressed bodies outside the write lock
recordViews decoded gzip/deflate/br bodies (up to maxIndexBody each)
while holding wmu, so concurrent proxied responses waited on the
decode. indexBody is pure, so compute the decoded index text before
taking the lock and apply it after spill.

Also keep the text decoded before the cut when a compressed stream is
truncated (io.ErrUnexpectedEOF) instead of dropping it, and skip
decoding when the Content-Type is already binary, since that text is
never indexed.
2026-11-26 18:50:08 +05:30
Chaitanya Deshpande d3b2dc7eb0 fix(traffic): match default-port WebSocket captures in traffic_search
A WebSocket over a default port is recorded as ws://host or wss://host,
so host:80 and host:443 searches still missed it. Also match the ws and
wss portless forms.
2026-11-26 17:14:38 +05:30
Chaitanya Deshpande c9116e3938 fix(db): honour != on company_id and task_id in the asset DSL
company_id and task_id ignored the operator, so company_id!=N and
task_id!=N compiled to the equality and returned exactly the assets
they were meant to exclude, and company_id>N silently meant =.

!= now excludes (an asset without a company is kept, as for the other
fields), = and == stay equality, and any other operator is rejected
like on the other fields.
2026-11-26 17:13:12 +05:30
Chaitanya Deshpande 1fceeb3479 fix(server): count only the task's assets in the task report
GET /api/report renders one task's report, but its "Assets:" summary line
was built from QueryByType over the whole asset library, so it reported
every task's and every company's assets as this task's. It also loaded up
to 100000 full rows per type only to count them.

Use CountsByTypeForTask, the per-task count the assets tab already uses.
2026-11-26 17:09:05 +05:30
Chaitanya Deshpande aa781df334 fix(traffic): index and match the decoded text of compressed responses
The proxy records bodies as they crossed the wire. A response sent with
Content-Encoding gzip, deflate or br (what Go tools such as nuclei,
httpx and ffuf, Python requests and browsers ask for) was stored
compressed, seen as binary and left out of the full-text index. Body
search found nothing in it, and ResponseContaining could not tie a fact
to it.

Index the decoded text of such bodies, bounded to the index limit, and
let ResponseContaining match the decoded response. The stored bytes are
unchanged.
2026-11-26 17:08:23 +05:30
Chaitanya Deshpande bc01c44f3f fix(db): match company domain rules when classifying an agent scope addition
isScopeExpansion asked company_scope for kind IN ('root_domain','subdomain')
and compared against the value column. company_scope only has kind 'domain',
and a domain rule keeps its host in the domain column with value NULL, so
the query never matched. Every domain the agent added under a company that
was already in the task's declared scope was recorded and reported as a
scope expansion.

Match kind='domain' rules on the domain column, exactly or as a parent
domain.
2026-11-26 17:07:51 +05:30
Chaitanya Deshpande b8c80cb9dd fix(traffic): match default-port captures in traffic_search
Clients leave :80 and :443 out of the Host header, so a capture of
https://host is recorded without a port. traffic_search with host:443,
host:80 or a URL naming the default port constrained the URL authority
to the explicit port and returned no traffic for those captures. Also
match the scheme's portless form when the port is the default.
2026-11-26 17:06:22 +05:30
Chaitanya Deshpande 1131adae1c fix(db): keep assets without the field in a DSL exclusion
An asset DSL exclusion compiled to `col NOT ILIKE $n` for text fields and
`col != $n` for numeric ones. Both are NULL when the asset has no value for
the field, and WHERE treats NULL as false, so `page_title!=login` or
`status_code!=404` also dropped every asset with no title or no status
code, from both the page and its count.

Compile `!=` to `(col IS NULL OR col NOT ILIKE $n)` for text fields and to
`col IS DISTINCT FROM $n` for numeric fields. Array fields are NOT NULL and
already behave.
2026-11-26 17:05:11 +05:30
Chaitanya Deshpande 9448419c6d fix(notify): pack Telegram digests by their escaped text
telegramHTML packed digest lines by their raw text, then wrote them
HTML-escaped. A title or asset with <, > or & (an XSS finding, a URL
with a query string) grows when escaped, so the message passed the
4096-character limit and TruncateHTML cut the last items and the footer.
Those items were still reported as kept, so the notifier marked them
delivered and they never reached Telegram.

Measure each line as it is written: escaped, with its newline.
2026-11-26 17:03:16 +05:30
Coff0xc 27b4db5fbe fix(traffic): keep store directories out of host deletion
DeleteHostsExact built a directory path from every requested host. A name that sanitizes to _index, _blobs, _ca, or _delete_staging is the store itself, so the batch delete moved those directories out with the host trees. Index rows for the host are still removed.
2026-11-26 11:29:48 +00:00
Coff0xc ab3f7c1c35 merge origin/main into fix/extension-request-cap 2026-11-26 11:21:14 +00:00
sisantaChhatoiandClaude Opus 5.5 a183871493 refactor(web): share display formatters and HTTP status colours
The same helpers were copied across the frontend: fmtBytes / fmtSize /
formatArchiveBytes (10 copies, 5 behaviours), fmtTokens (7 copies, 3
behaviours), fmtTime / fmtDateTime (11 copies), fmtDuration and statusTone
(4 identical copies). They now live in one place:

- src/lib/format.ts: formatBytes, formatTokens, formatDurationMs,
  formatShortDateTime (with seconds / year / empty options)
- src/lib/status.ts: httpStatusTone

Intentionally distinct formats stay local (ISO log timestamps, full-locale
finding date, the translated seconds-based task duration, unix task times).

Visible changes from using one canonical output each:
- sizes of 1 GiB and up show as GB instead of thousands of MB
- dashboard / intercept token counts show "25k" instead of "25.0k"
- LLM records show "2.5M" instead of "2500.0k"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:03:15 +05:30
Phantom-IN 9be8227535 feat(llm): set profile prices in the settings dialog
The cost ledger (#70) stores four prices per profile and the usage API
turns them into cost_eur, but the UI never got the follow-up: the profile
list did not return the prices and the dialog had no inputs for them.

That also made prices fragile. SaveProfile always rewrites the price
columns, and the dialog's save payload had no price fields, so editing a
profile in the UI reset prices set through the API to zero.

Return the prices in LLMProfileDTO, add the four inputs to the dialog and
send them on save. A negative price is stored as unset.
2026-11-25 20:58:18 +05:30
Phantom-IN b66ddd1771 fix(agent): send no tools with the LLM connection test
TestConnection passes an empty Tools slice so the model gets a bare chat
request, but agentcore still appends its background-task tools (TaskOutput,
TaskStop, TaskList, Monitor) unless DisableBackgroundTasks is set. The
request therefore carried four tool definitions, and models answered the
"ping" with a TaskOutput call or tool-like text instead of OK (#526).
Against a local gemma4:e4b the streaming test spent its whole 30 s budget
reasoning about those tools and failed; with them gone it answers OK in
under a second.

Set DisableBackgroundTasks, as goal decomposition already does, and add a
test that checks the request body has no tools.
2026-11-25 19:21:20 +05:30
Brixton Pham 7a451c63df chore: migrate log.Printf to log/slog in agent and cmd 2026-11-25 13:24:45 +07:00
BaaRai 3cb06383fd docs: present the project as an actively maintained continuation 2026-11-24 20:48:59 +01:00
BaaRai 4ab50c405e docs: add Discord badge and join button 2026-11-24 20:39:51 +01:00