Skip to content

update packages - #1229

Merged
isamu merged 2 commits into
receptron:mainfrom
isamu:update20250922
Sep 21, 2025
Merged

isamu merged 2 commits into
receptron:mainfrom
isamu:update20250922

Conversation

@isamu

@isamu isamu commented Sep 21, 2025 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Added LogLevel and LoggerFunction to the public API for direct use in applications.
  • Chores

    • Updated dev tooling and types across the repo.
    • Root: bumped @types/node, eslint, and typescript-eslint.
    • Agentdoc: bumped type-fest.
    • GraphAI: bumped typedoc and typedoc-plugin-markdown.

@coderabbitai

coderabbitai Bot commented Sep 21, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

DevDependency version bumps across root and package manifests; added exported logging types (LogLevel, LoggerFunction) in packages/graphai/src/type.ts and updated GraphAILogger.ts to import those types; no runtime behavior changes.

Changes

Cohort / File(s) Summary
Root devDependencies bump
package.json
Update devDependencies: @types/node ^24.4.0 → ^24.5.2, eslint ^9.35.0 → ^9.36.0, typescript-eslint ^8.43.0 → ^8.44.0.
Agentdoc dependency bump
packages/agentdoc/package.json
Update dependency: type-fest ^5.0.0 → ^5.0.1.
GraphAI docs tooling bump
packages/graphai/package.json
Update devDependencies: typedoc ^0.28.12 → ^0.28.13, typedoc-plugin-markdown ^4.8.1 → ^4.9.0.
GraphAI logger types & usage
packages/graphai/src/type.ts, packages/graphai/src/utils/GraphAILogger.ts
Add exported types LogLevel and LoggerFunction in src/type.ts; replace local type declarations in GraphAILogger.ts with imports of those types. No behavior changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • Logger sample #1219 — Adds/uses exported LogLevel and LoggerFunction types and updates logger usage; directly related to the types/import changes here.

Poem

I twitch my whiskers at tidy bumps,
Small hops of versions, no code thumps.
Two types now wear their proper name,
Logger and level join the game.
I nibble a carrot, then away I run — hooray! 🥕🐇

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title Check ❓ Inconclusive The title "update packages" is related to the changeset because the PR primarily bumps several package dependency versions, but it is overly generic and omits notable structural changes such as the new exported types (LogLevel and LoggerFunction); it also does not indicate scope (root vs specific packages) or intent (chore vs feature). As written, it doesn't give a teammate scanning history enough context to understand the primary change. Therefore the title is too vague to be conclusive. Please rename the PR to a concise, specific single-sentence summary that indicates scope and intent; for example: "chore: bump devDependencies and export Logger types" or "chore(graphai): bump package versions; export LogLevel & LoggerFunction". After updating the title to reflect the primary changes, re-run this check.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
packages/graphai/src/type.ts (2)

198-199: Expose a runtime list of levels and tighten variadic arg typing.

Provides a canonical list for validation/UI and avoids any.

Apply:

+// Canonical runtime list for validation/UI; keeps type in sync with values.
+export const LogLevels = ["debug", "info", "log", "warn", "error"] as const;
-export type LogLevel = "debug" | "info" | "log" | "warn" | "error";
-export type LoggerFunction = (level: LogLevel, ...args: any[]) => void;
+export type LogLevel = (typeof LogLevels)[number];
+export type LoggerFunction = (level: LogLevel, ...args: unknown[]) => void;

198-199: Good centralization — types are used internally; re-export if you want them public.

  • packages/graphai/src/utils/GraphAILogger.ts imports LogLevel/LoggerFunction from packages/graphai/src/type.ts; no other source duplicates found (lib/*.d.ts contains compiled copies).
  • Optional action: expose to consumers by adding to packages/graphai/src/index.ts:
    export type { LogLevel, LoggerFunction } from './type';
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f41a2c1 and 7453abf.

📒 Files selected for processing (2)
  • packages/graphai/src/type.ts (1 hunks)
  • packages/graphai/src/utils/GraphAILogger.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/graphai/src/utils/GraphAILogger.ts
🧰 Additional context used
🧬 Code graph analysis (1)
packages/graphai/src/type.ts (1)
packages/cli/src/args.ts (1)
  • args (6-72)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: build (24.x)
  • GitHub Check: build (22.x)

@isamu
isamu merged commit 3482ba9 into receptron:main Sep 21, 2025
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