Skip to content

v0.1.4 - #12

Open
NellowTCS wants to merge 5 commits into
mainfrom
0.1.4
Open

NellowTCS wants to merge 5 commits into
mainfrom
0.1.4

Conversation

@NellowTCS

@NellowTCS NellowTCS commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores

    • Added a standardized linting setup with recommended TypeScript and JavaScript checks.
    • Added a convenient lint command for validating project code.
    • Updated development tooling and incremented the package patch version.
  • Refactor

    • Cleaned up type usage, imports, formatting, and legacy compatibility internals without changing runtime behavior.
    • Preserved existing event handling, logging, causal tracking, and utility behavior.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@NellowTCS, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 26 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a2665dfb-fe61-475e-badf-de5bec73c597

📥 Commits

Reviewing files that changed from the base of the PR and between f4fa7e6 and 2861021.

📒 Files selected for processing (9)
  • .github/ISSUE_TEMPLATE/bug_report.yml
  • .github/ISSUE_TEMPLATE/feature_request.yml
  • .github/PULL_REQUEST_TEMPLATE.md
  • .github/workflows/ci.yml
  • .nvmrc
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • SECURITY.md
📝 Walkthrough

Walkthrough

The PR adds Flat ESLint configuration and package tooling, then applies lint-oriented cleanup across event handling, type imports, utility assertions, causal bookkeeping, and logger validation imports.

Changes

Lint setup and source cleanup

Layer / File(s) Summary
Flat ESLint configuration and package wiring
Build/eslint.config.ts, Build/package.json
Adds recommended ESLint configurations, ignored paths, file-specific rule overrides, ESLint dependencies, the lint script, and a package version update.
Source lint and type cleanup
Build/src/bus/*, Build/src/core/*, Build/src/enrich/causal.ts, Build/src/logger/*
Removes unused bindings and imports, replaces any-based array indexing with typed record casts, reformats WatchSource, and renames legacy causal bookkeeping state.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title only states the release version and does not describe the main change in the PR. Use a concise description of the primary change, such as adding ESLint flat config and lint tooling for the Build package.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 0.1.4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)

@NellowTCS

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Build/src/enrich/causal.ts`:
- Line 229: Remove the unused `_globalLastEvent` variable and delete all
associated writes or resets in the relevant causal enrichment logic, since the
state is never read. Update the surrounding code without introducing a
replacement.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 67c47b5d-e2b7-4195-806a-0ae3a540202d

📥 Commits

Reviewing files that changed from the base of the PR and between 0daa1c4 and f4fa7e6.

⛔ Files ignored due to path filters (1)
  • Build/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (9)
  • Build/eslint.config.ts
  • Build/package.json
  • Build/src/bus/eventBus.ts
  • Build/src/bus/middleware.ts
  • Build/src/core/types.ts
  • Build/src/core/utils/deepEqual.ts
  • Build/src/enrich/causal.ts
  • Build/src/logger/createLogger.ts
  • Build/src/logger/createSatori.ts
💤 Files with no reviewable changes (1)
  • Build/src/logger/createLogger.ts

// Legacy API for backwards compatibility
const scopeLastEvent = new Map<string, string>();
let globalLastEvent: string | undefined;
let _globalLastEvent: string | undefined;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Search for any reads of _globalLastEvent (or the old name globalLastEvent)
# outside of assignment and reset contexts
rg -n '_globalLastEvent\|globalLastEvent' --type=ts -g '!**/node_modules/**'

Repository: Nisoku/Satori

Length of output: 151


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the relevant section in Build/src/enrich/causal.ts
sed -n '200,280p' Build/src/enrich/causal.ts

# Search for all occurrences of the variable names across the repo
rg -n --hidden --glob '!**/node_modules/**' --glob '!**/dist/**' --glob '!**/build/**' '\b_globalLastEvent\b|\bglobalLastEvent\b' .

# Look for read-like uses of the backing state in the causal file
rg -n --hidden --glob '!**/node_modules/**' --glob '!**/dist/**' --glob '!**/build/**' '_globalLastEvent[^=]|[^=]_globalLastEvent' Build/src/enrich/causal.ts

Repository: Nisoku/Satori

Length of output: 2856


Remove _globalLastEvent
Build/src/enrich/causal.ts:229,247-253 — this state is only written/reset and never read anywhere, so the underscore prefix is hiding dead code rather than silencing a useful lint warning.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Build/src/enrich/causal.ts` at line 229, Remove the unused `_globalLastEvent`
variable and delete all associated writes or resets in the relevant causal
enrichment logic, since the state is never read. Update the surrounding code
without introducing a replacement.

This branch has not been deployed

No deployments
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.

1 participant