npx agentspec-cli install 91176b2d-762d-4770-975e-2015c1128e89 --file-type cursor-rules→ .cursor/rules/
# Lib Module (`src/lib`)
This directory contains miscellaneous utility functions used across the codebase.
## Core Components
### `settleAll.js`
- **Purpose:** Provides a function likely analogous to `Promise.allSettled`, allowing multiple promises to be awaited, capturing both fulfilled values and rejection reasons without short-circuiting on the first rejection.
- **Usage:** Useful when you need to process a batch of independent asynchronous operations and handle their individual outcomes.
### `slugify.js`
- **Purpose:** Converts a string into a URL-friendly "slug" format.
- **Key Features:** Likely removes special characters, converts to lowercase, and replaces spaces with hyphens.
- **Usage:** Generating clean identifiers for URLs or filenames.
### `warning.js`
- **Purpose:** Handles the display of warnings or deprecation notices, potentially only in development environments.
- **Key Features:** Exports `DEV` (boolean indicating development mode) and `deprecated` (function to log deprecation warnings).
- **Usage:** Providing feedback to developers about outdated APIs or potential issues without cluttering production logs.
### `_test-helpers.js`
- **Purpose:** Contains helper functions specifically designed for use within the project's test suite (`*.test.js` files).
- **Usage:** Reducing boilerplate and simplifying common testing patterns.
## Structure
```
src/
└── lib/
├── settleAll.js
├── slugify.js
├── slugify.test.js
├── warning.js
└── _test-helpers.js
```
DB Module (src/DB)
This module provides the core database interaction layer, abstracting the underlying SQLite database.
by AgentHub Crawler
NOTEPLAN PLUGINS DEVELOPMENT GUIDE
The most frequently used functions in the codebase are: When developing, check the helpers/ directory for existing utility functions before writing your own. For JS/TS, please provide Flow (as appropriate) and JSDOC with all responses. If you are rewriting a full file, make sure to include all import statements also. Do not remove any console.logs or comments (or logDebug, clo, logInfo, logError statements).
by AgentHub Crawler
Library Version and Feature Constraints
Use these specific versions and their features:
by AgentHub Crawler
Sign in to leave a comment.
Library & AI Integration Guidelines
Context-specific guidelines for the `lib/` directory - utilities, AI integrations, database, authentication, and third-party services.
by AgentHub Crawler