chore: track .pi-map.md and .pi-map.index.md artifacts
Remove the map files from .gitignore so they are committed as project navigation artifacts, and also unignore them in the sample fixture. Regenerate all maps so the committed versions reflect the current source.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
dist/
|
||||
node_modules/
|
||||
.pi-map.md
|
||||
.env
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
# fixtures/sample-project (index)
|
||||
dir: fixtures/sample-project
|
||||
|
||||
## role
|
||||
Provides a minimal sample Node.js/TypeScript project fixture for testing and demonstrating the pi-project-map functionality.
|
||||
## parent
|
||||
index: fixtures/.pi-map.index.md
|
||||
map: fixtures/.pi-map.md
|
||||
## children
|
||||
- fixtures/sample-project/docs
|
||||
index: fixtures/sample-project/docs/.pi-map.index.md
|
||||
map: fixtures/sample-project/docs/.pi-map.md
|
||||
- fixtures/sample-project/src
|
||||
index: fixtures/sample-project/src/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/.pi-map.md
|
||||
- fixtures/sample-project/tests
|
||||
index: fixtures/sample-project/tests/.pi-map.index.md
|
||||
map: fixtures/sample-project/tests/.pi-map.md
|
||||
## files
|
||||
- .gitignore
|
||||
- README.md
|
||||
- package.json
|
||||
- tsconfig.json
|
||||
## links
|
||||
index: fixtures/sample-project/.pi-map.index.md
|
||||
map: fixtures/sample-project/.pi-map.md
|
||||
## workflows
|
||||
-
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,22 @@
|
||||
# fixtures/sample-project
|
||||
dir: fixtures/sample-project
|
||||
|
||||
index: fixtures/sample-project/.pi-map.index.md
|
||||
|
||||
## role
|
||||
Provides a minimal sample Node.js/TypeScript project fixture for testing and demonstrating the pi-project-map functionality.
|
||||
## files
|
||||
- .gitignore | Specifies files and directories for Git to ignore in version control | dep: git
|
||||
- README.md | Provides a brief overview and directory structure for a small test project related to pi-project-map functionality.
|
||||
- package.json | Defines a sample Node.js project configuration with TypeScript build and Vitest testing scripts. | dep: typescript, vitest
|
||||
- tsconfig.json | Configures TypeScript compiler options for a Node.js project targeting ES2022 with strict type checking.
|
||||
## arch
|
||||
Standard Node.js project structure using TypeScript with strict compilation, Vitest for testing, and ES2022 module output.
|
||||
## tags
|
||||
project, typescript, git, readme, node, vitest, package, tsconfig
|
||||
## symbols
|
||||
-
|
||||
## workflows
|
||||
-
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,19 @@
|
||||
# fixtures/sample-project/docs (index)
|
||||
dir: fixtures/sample-project/docs
|
||||
|
||||
## role
|
||||
Provides API documentation and usage examples for the sample project's user management functionality.
|
||||
## parent
|
||||
index: fixtures/sample-project/.pi-map.index.md
|
||||
map: fixtures/sample-project/.pi-map.md
|
||||
## children
|
||||
-
|
||||
## files
|
||||
- API.md
|
||||
## links
|
||||
index: fixtures/sample-project/docs/.pi-map.index.md
|
||||
map: fixtures/sample-project/docs/.pi-map.md
|
||||
## workflows
|
||||
-
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,19 @@
|
||||
# fixtures/sample-project/docs
|
||||
dir: fixtures/sample-project/docs
|
||||
|
||||
index: fixtures/sample-project/docs/.pi-map.index.md
|
||||
|
||||
## role
|
||||
Provides API documentation and usage examples for the sample project's user management functionality.
|
||||
## files
|
||||
- API.md | Documents a user management API with user creation/serialization functions and validation utilities
|
||||
## arch
|
||||
Documentation-as-code pattern with markdown-based reference material for external API consumers.
|
||||
## tags
|
||||
api, user, documents, management, creation, serialization, validation, utilities
|
||||
## symbols
|
||||
-
|
||||
## workflows
|
||||
-
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,30 @@
|
||||
# fixtures/sample-project/src (index)
|
||||
dir: fixtures/sample-project/src
|
||||
|
||||
## role
|
||||
Entry point module that demonstrates user creation, email validation, and logging for a sample project.
|
||||
## parent
|
||||
index: fixtures/sample-project/.pi-map.index.md
|
||||
map: fixtures/sample-project/.pi-map.md
|
||||
## children
|
||||
- fixtures/sample-project/src/components
|
||||
index: fixtures/sample-project/src/components/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/components/.pi-map.md
|
||||
- fixtures/sample-project/src/models
|
||||
index: fixtures/sample-project/src/models/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/models/.pi-map.md
|
||||
- fixtures/sample-project/src/utils
|
||||
index: fixtures/sample-project/src/utils/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/utils/.pi-map.md
|
||||
## files
|
||||
- index.ts
|
||||
## links
|
||||
index: fixtures/sample-project/src/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/.pi-map.md
|
||||
## workflows
|
||||
- change src behavior
|
||||
read: index.ts
|
||||
- explore src subdirectories
|
||||
index: fixtures/sample-project/src/components/.pi-map.index.md, fixtures/sample-project/src/models/.pi-map.index.md, fixtures/sample-project/src/utils/.pi-map.index.md
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,26 @@
|
||||
# fixtures/sample-project/src
|
||||
dir: fixtures/sample-project/src
|
||||
|
||||
index: fixtures/sample-project/src/.pi-map.index.md
|
||||
|
||||
## role
|
||||
Entry point module that demonstrates user creation, email validation, and logging for a sample project.
|
||||
## files
|
||||
- index.ts | Entry point that creates a user, validates their email, and logs the result | exp: func:main(), call:createUser, call:validateEmail, call:logger.error, call:logger.info | dep: ./models/user.js, ./utils/validation.js, ./utils/logger.js
|
||||
## arch
|
||||
Simple procedural script with direct function calls and sequential execution pattern.
|
||||
## tags
|
||||
user, email, js, main, call:create, call:validate, call:logger.error, call:logger.info
|
||||
## symbols
|
||||
- main
|
||||
- call:createUser
|
||||
- call:validateEmail
|
||||
- call:logger.error
|
||||
- call:logger.info
|
||||
## workflows
|
||||
- change src behavior
|
||||
read: index.ts
|
||||
- explore src subdirectories
|
||||
index: fixtures/sample-project/src/components/.pi-map.index.md, fixtures/sample-project/src/models/.pi-map.index.md, fixtures/sample-project/src/utils/.pi-map.index.md
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,21 @@
|
||||
# fixtures/sample-project/src/components (index)
|
||||
dir: fixtures/sample-project/src/components
|
||||
|
||||
## role
|
||||
Provides reusable UI components for building the application's interface.
|
||||
## parent
|
||||
index: fixtures/sample-project/src/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/.pi-map.md
|
||||
## children
|
||||
-
|
||||
## files
|
||||
- Button.tsx
|
||||
- UserCard.tsx
|
||||
## links
|
||||
index: fixtures/sample-project/src/components/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/components/.pi-map.md
|
||||
## workflows
|
||||
- change components behavior
|
||||
read: Button.tsx, UserCard.tsx
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,26 @@
|
||||
# fixtures/sample-project/src/components
|
||||
dir: fixtures/sample-project/src/components
|
||||
|
||||
index: fixtures/sample-project/src/components/.pi-map.index.md
|
||||
|
||||
## role
|
||||
Provides reusable UI components for building the application's interface.
|
||||
## files
|
||||
- Button.tsx | A reusable React button component that renders a styled button with configurable label, visual variant, click handler, and disabled state. | exp: ButtonProps, func:Button({ label, variant = "primary", onClick, disabled = false, }: ButtonProps) → JSX.Element | dep: react, React
|
||||
- UserCard.tsx | Renders a user card component with optional edit and delete action buttons. | exp: UserCardProps, func:UserCard({ user, onEdit, onDelete }: UserCardProps) → JSX.Element, call:onEdit, call:onDelete | dep: react, ../models/user.js, React
|
||||
## arch
|
||||
Simple functional React components with props-based configuration, following a basic presentational component pattern.
|
||||
## tags
|
||||
button, user, card, react, props, call:on, edit, delete
|
||||
## symbols
|
||||
- Button
|
||||
- UserCard
|
||||
- ButtonProps
|
||||
- UserCardProps
|
||||
- call:onEdit
|
||||
- call:onDelete
|
||||
## workflows
|
||||
- change components behavior
|
||||
read: Button.tsx, UserCard.tsx
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,20 @@
|
||||
# fixtures/sample-project/src/models (index)
|
||||
dir: fixtures/sample-project/src/models
|
||||
|
||||
## role
|
||||
Defines the User data model with creation and serialization capabilities including email validation.
|
||||
## parent
|
||||
index: fixtures/sample-project/src/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/.pi-map.md
|
||||
## children
|
||||
-
|
||||
## files
|
||||
- user.ts
|
||||
## links
|
||||
index: fixtures/sample-project/src/models/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/models/.pi-map.md
|
||||
## workflows
|
||||
- change models behavior
|
||||
read: user.ts
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,26 @@
|
||||
# fixtures/sample-project/src/models
|
||||
dir: fixtures/sample-project/src/models
|
||||
|
||||
index: fixtures/sample-project/src/models/.pi-map.index.md
|
||||
|
||||
## role
|
||||
Defines the User data model with creation and serialization capabilities including email validation.
|
||||
## files
|
||||
- user.ts | Defines a User interface and provides functions to create and serialize users with email validation. | exp: User, func:createUser(data: Omit<User, "id" | "createdAt">) → User, call:validateEmail, call:crypto.randomUUID, raise:Error, func:serializeUser(user: User) → string, call:JSON.stringify | dep: ../utils/validation.js
|
||||
## arch
|
||||
Domain model pattern with interface-based typing, pure functions for data transformation, and embedded validation logic.
|
||||
## tags
|
||||
user, create, serialize, email, validation, call:validate, call:crypto.random, uuid
|
||||
## symbols
|
||||
- createUser
|
||||
- serializeUser
|
||||
- User
|
||||
- call:validateEmail
|
||||
- call:crypto.randomUUID
|
||||
- raise:Error
|
||||
- call:JSON.stringify
|
||||
## workflows
|
||||
- change models behavior
|
||||
read: user.ts
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,21 @@
|
||||
# fixtures/sample-project/src/utils (index)
|
||||
dir: fixtures/sample-project/src/utils
|
||||
|
||||
## role
|
||||
Provides foundational cross-cutting utility functions for logging and input validation used throughout the application.
|
||||
## parent
|
||||
index: fixtures/sample-project/src/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/.pi-map.md
|
||||
## children
|
||||
-
|
||||
## files
|
||||
- logger.ts
|
||||
- validation.ts
|
||||
## links
|
||||
index: fixtures/sample-project/src/utils/.pi-map.index.md
|
||||
map: fixtures/sample-project/src/utils/.pi-map.md
|
||||
## workflows
|
||||
- change utils behavior
|
||||
read: logger.ts, validation.ts
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,28 @@
|
||||
# fixtures/sample-project/src/utils
|
||||
dir: fixtures/sample-project/src/utils
|
||||
|
||||
index: fixtures/sample-project/src/utils/.pi-map.index.md
|
||||
|
||||
## role
|
||||
Provides foundational cross-cutting utility functions for logging and input validation used throughout the application.
|
||||
## files
|
||||
- logger.ts | Provides a simple typed console logger with timestamps and convenience wrappers for different log levels. | exp: LogLevel, func:log(level: LogLevel, message: string) → void, call:new Date().toISOString, call:console.log, call:level.toUpperCase, func:debug(message: string) → void, call:log, func:info(message: string) → void, call:log, func:warn(message: string) → void, call:log, func:error(message: string) → void, call:log
|
||||
- validation.ts | Provides basic string validation utilities for emails, non-empty checks, and minimum length requirements. | exp: func:validateEmail(email: string) → boolean, call:EMAIL_REGEX.test, func:validateNotEmpty(value: string) → boolean, call:value.trim, func:validateMinLength(value: string, min: number) → boolean
|
||||
## arch
|
||||
Flat utility module pattern with pure functions, no dependencies between modules, each exporting independent typed helper functions.
|
||||
## tags
|
||||
call:log, validate, log, logger, validation, empty, length, provides
|
||||
## symbols
|
||||
- log
|
||||
- debug
|
||||
- info
|
||||
- warn
|
||||
- error
|
||||
- validateEmail
|
||||
- validateNotEmpty
|
||||
- validateMinLength
|
||||
## workflows
|
||||
- change utils behavior
|
||||
read: logger.ts, validation.ts
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,21 @@
|
||||
# fixtures/sample-project/tests (index)
|
||||
dir: fixtures/sample-project/tests
|
||||
|
||||
## role
|
||||
Provides unit test coverage for user model behavior and string validation utilities in the sample project.
|
||||
## parent
|
||||
index: fixtures/sample-project/.pi-map.index.md
|
||||
map: fixtures/sample-project/.pi-map.md
|
||||
## children
|
||||
-
|
||||
## files
|
||||
- user.test.ts
|
||||
- validation.test.ts
|
||||
## links
|
||||
index: fixtures/sample-project/tests/.pi-map.index.md
|
||||
map: fixtures/sample-project/tests/.pi-map.md
|
||||
## workflows
|
||||
- update tests tests
|
||||
read: user.test.ts, validation.test.ts
|
||||
## dirty
|
||||
-
|
||||
@@ -0,0 +1,21 @@
|
||||
# fixtures/sample-project/tests
|
||||
dir: fixtures/sample-project/tests
|
||||
|
||||
index: fixtures/sample-project/tests/.pi-map.index.md
|
||||
|
||||
## role
|
||||
Provides unit test coverage for user model behavior and string validation utilities in the sample project.
|
||||
## files
|
||||
- user.test.ts | Unit tests for user model creation, validation, and serialization | dep: vitest, ../src/models/user.js
|
||||
- validation.test.ts | Unit tests for string validation utility functions | dep: vitest, ../src/utils/validation.js
|
||||
## arch
|
||||
Standard test suite using isolated unit tests with file-based grouping by domain concern (model vs. utility).
|
||||
## tags
|
||||
validation, unit, tests, user, vitest, src, js, user.test
|
||||
## symbols
|
||||
-
|
||||
## workflows
|
||||
- update tests tests
|
||||
read: user.test.ts, validation.test.ts
|
||||
## dirty
|
||||
-
|
||||
Reference in New Issue
Block a user