• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 24755715908
82%

Build:
DEFAULT BRANCH: dev
Ran 22 Apr 2026 01:41AM UTC
Jobs 34
Files 525
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Apr 2026 01:40AM UTC coverage: 86.233%. First build
24755715908

push

github

web-flow
fix(db-query): expose space sessions and sdk_messages in space scope (#1581)

* fix(db-query): expose space sessions and sdk_messages in space scope

Extends the db-query MCP tool so that task agents in a Space can query
their own session data, which is needed for operational debugging (e.g.
checking if a research agent's conversation history still exists).

Changes:
- Add ScopeLikeConfig interface + scopeLike field to ScopeTableConfig for
  LIKE-based scope filtering (session ID prefix matching).
- Extend ScopeJoinConfig with optional likePrefix/likeSuffix for LIKE-
  based indirect scope filters.
- Add sessions, sdk_messages, session_groups, and session_group_members to
  SPACE_SCOPE_TABLES with space-scoped filtering:
    sessions          → WHERE id LIKE 'space:<id>:%'
    sdk_messages      → WHERE session_id LIKE 'space:<id>:%'
    session_groups    → WHERE id IN (SELECT group_id FROM
                          session_group_members WHERE session_id LIKE ?)
    session_group_members → WHERE session_id LIKE 'space:<id>:%'
- Remove sdk_messages, session_groups, session_group_members from
  EXCLUDED_TABLE_NAMES (they are now in space scope with filtering).
- Update all three filter-building paths in tools.ts (subquery wrapper,
  aggregate/DISTINCT direct injection) to handle scopeLike and LIKE joins.
- Existing sensitive column blacklist for sessions (config, session_context)
  remains in place for space scope access.
- sessions is intentionally accessible in both global scope (unfiltered,
  for Neo agent) and space scope (prefix-filtered, for space agents).

Tests: update scope-config.test.ts and add 15 new integration tests in
db-query-integration.test.ts covering filtering, isolation, blacklisting,
aggregates, and db_list/describe_table for the new tables.

* docs(db-query): comment why LIKE scopeValue escaping is not needed

The scopeValue fed into LIKE patterns is always a server-side
crypto.randomUUID() string set in the MCP server closure befo... (continued)

9071 of 12358 branches covered (73.4%)

Branch coverage included in aggregate %.

76 of 80 new or added lines in 2 files covered. (95.0%)

66845 of 75678 relevant lines covered (88.33%)

301.18 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
95.01
packages/daemon/src/lib/db-query/tools.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-online-cross-provider-3 - 24755715908.1 22 Apr 2026 01:41AM UTC 277
6.48
GitHub Action Run
2 daemon-5-space-agent - 24755715908.2 22 Apr 2026 01:42AM UTC 131
26.77
GitHub Action Run
3 daemon-5-space-other - 24755715908.3 22 Apr 2026 01:41AM UTC 99
31.44
GitHub Action Run
4 daemon-online-coordinator - 24755715908.4 22 Apr 2026 01:41AM UTC 277
6.48
GitHub Action Run
5 daemon-5-space-workflow - 24755715908.5 22 Apr 2026 01:41AM UTC 78
33.2
GitHub Action Run
6 daemon-5-space-runtime - 24755715908.6 22 Apr 2026 01:42AM UTC 98
43.25
GitHub Action Run
7 daemon-online-space-2 - 24755715908.7 22 Apr 2026 01:42AM UTC 277
26.99
GitHub Action Run
8 daemon-online-rpc-2 - 24755715908.8 22 Apr 2026 01:42AM UTC 277
19.08
GitHub Action Run
9 daemon-online-agent-sdk - 24755715908.9 22 Apr 2026 01:41AM UTC 277
19.35
GitHub Action Run
10 daemon-0-shared - 24755715908.10 22 Apr 2026 01:41AM UTC 29
85.16
GitHub Action Run
11 daemon-online-features-1 - 24755715908.11 22 Apr 2026 01:42AM UTC 277
20.07
GitHub Action Run
12 daemon-online-convo - 24755715908.12 22 Apr 2026 01:41AM UTC 277
19.25
GitHub Action Run
13 daemon-online-rpc-4 - 24755715908.13 22 Apr 2026 01:42AM UTC 277
20.25
GitHub Action Run
14 daemon-online-room-coder-subagents - 24755715908.14 22 Apr 2026 01:41AM UTC 277
17.45
GitHub Action Run
15 daemon-online-git - 24755715908.15 22 Apr 2026 01:42AM UTC 277
18.46
GitHub Action Run
16 daemon-online-rpc-3 - 24755715908.16 22 Apr 2026 01:42AM UTC 277
20.52
GitHub Action Run
17 daemon-online-cross-provider-2 - 24755715908.17 22 Apr 2026 01:41AM UTC 277
18.18
GitHub Action Run
18 daemon-online-features-2 - 24755715908.18 22 Apr 2026 01:41AM UTC 277
19.77
GitHub Action Run
19 daemon-4-space-storage - 24755715908.19 22 Apr 2026 01:41AM UTC 115
49.49
GitHub Action Run
20 daemon-2-handlers - 24755715908.20 22 Apr 2026 01:41AM UTC 225
50.49
GitHub Action Run
21 daemon-online-sdk - 24755715908.21 22 Apr 2026 01:41AM UTC 277
19.26
GitHub Action Run
22 daemon-online-cross-provider-4 - 24755715908.22 22 Apr 2026 01:41AM UTC 277
20.01
GitHub Action Run
23 daemon-online-features-3 - 24755715908.23 22 Apr 2026 01:41AM UTC 277
15.24
GitHub Action Run
24 web - 24755715908.24 22 Apr 2026 01:42AM UTC 237
78.52
GitHub Action Run
25 daemon-online-room-mcp - 24755715908.25 22 Apr 2026 01:41AM UTC 277
17.19
GitHub Action Run
26 daemon-online-rpc-1 - 24755715908.26 22 Apr 2026 01:42AM UTC 277
19.55
GitHub Action Run
27 daemon-online-websocket - 24755715908.27 22 Apr 2026 01:41AM UTC 277
15.71
GitHub Action Run
28 daemon-online-components - 24755715908.28 22 Apr 2026 01:41AM UTC 277
15.59
GitHub Action Run
29 daemon-online-mcp - 24755715908.29 22 Apr 2026 01:41AM UTC 277
16.52
GitHub Action Run
30 daemon-online-lifecycle - 24755715908.30 22 Apr 2026 01:41AM UTC 277
19.79
GitHub Action Run
31 daemon-online-space-1 - 24755715908.31 22 Apr 2026 01:42AM UTC 277
26.42
GitHub Action Run
32 daemon-online-rewind-2 - 24755715908.32 22 Apr 2026 01:42AM UTC 277
20.02
GitHub Action Run
33 daemon-online-rewind-1 - 24755715908.33 22 Apr 2026 01:42AM UTC 277
19.56
GitHub Action Run
34 daemon-1-core - 24755715908.34 22 Apr 2026 01:41AM UTC 282
35.1
GitHub Action Run
Source Files on build 24755715908
  • Tree
  • List 525
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24755715908
  • 7a0fe498 on github
  • Prev Build on dev (#24755218216)
  • Next Build on dev (#24756060735)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc