Repository navigation
update packages - #1229
update packages#1229
Conversation
WalkthroughDevDependency version bumps across root and package manifests; added exported logging types ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
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. Comment |
There was a problem hiding this comment.
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
📒 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)
Summary by CodeRabbit
New Features
Chores