{"_id":"@aotumuri/project-history","name":"@aotumuri/project-history","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@aotumuri/project-history","version":"0.1.0","description":"Simply manage project history","license":"MIT","author":{"name":"Aotumuri"},"type":"commonjs","main":"dist/cli.js","bin":{"ph":"dist/cli.js","phi":"dist/bin/phi.js","phl":"dist/bin/phl.js"},"scripts":{"build":"tsc -p tsconfig.json","prepublishOnly":"npm run build"},"dependencies":{"cli-box-picker":"^0.6.2","commander":"^14.0.2"},"devDependencies":{"@types/node":"^24.2.0","typescript":"^5.9.3"},"gitHead":"3a2c3ec3b3c41e57522eef00cb3ddf5008873582","_id":"@aotumuri/project-history@0.1.0","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-0kPb2w6qA3sd0BmrnMBnlEY8SHKU3W3CeDYBCUy5G7Y0979BMW7yvanIsaamXWC3zEj4z0dQOyNwCAFgOsuKQQ==","shasum":"1eb523085ca63d88d18632e1bebf1b4159da04d4","tarball":"https://registry.npmjs.org/@aotumuri/project-history/-/project-history-0.1.0.tgz","fileCount":14,"unpackedSize":42744,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDuowazedYJILmVhp6h3NwdO9M4gylFDbC9GCqJlfwqJAIgCnTDdRXZ9FdJJX3FegboREnZgE0OSitLikDsI7z0EK4="}]},"_npmUser":{"name":"aotumuri","email":"aotumuri.yt@gmail.com"},"directories":{},"maintainers":[{"name":"aotumuri","email":"aotumuri.yt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/project-history_0.1.0_1769149924493_0.7241171963891133"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-23T06:32:04.411Z","0.1.0":"2026-01-23T06:32:04.644Z","modified":"2026-01-23T06:32:04.849Z"},"maintainers":[{"name":"aotumuri","email":"aotumuri.yt@gmail.com"}],"description":"Simply manage project history","author":{"name":"Aotumuri"},"license":"MIT","readme":"# project-history\n\nStore per-project command history in `.projh.json` (cwd is stored relative to the project root). Keep this file private and out of version control.\n\n## First-time setup (install once)\n\nDo this once after installing the CLI.\n\n1. Add the hook to `~/.zshrc`:\n   `ph hook >> ~/.zshrc`\n2. Reload your shell:\n   `source ~/.zshrc`\n\n## Per-project setup (do this for each project)\n\nRun this in every project where you want history tracking.\n\n1. Initialize:\n   `ph init` (or `phi`)\n2. If asked, choose whether to add `.projh.json` to `.gitignore` (recommended so it is not published).\n3. If asked, choose whether to record `ph` commands in history.\n\n## View history\n\n- Interactive viewer (latest 10 per page):\n  `ph list` (or `ph l`, `phl`)\n  - Press `1-9`/`0` to run a command\n  - Use Left/Right arrows to move between pages\n- Full output (full ISO timestamp + recorded cwd):\n  `ph list --full`\n- Plain output (latest 20):\n  `ph list --plain`\n- Plain output (latest 100):\n  `ph list --plain -n 100`\n- Plain output (all):\n  `ph list --plain --all`\n\n## Commands\n\n- `ph init` initializes `.projh.json` and can add it to `.gitignore`.\n- `ph record` is used by the shell hook to append entries.\n- `ph list` shows recent entries (newest first).\n- `ph reset` clears history entries after confirmation.\n- `phi` runs `ph init`.\n- `phl` runs `ph list`.\n- `ph hook` prints the zsh hook snippet.\n- `ph unhook` removes the hook from `~/.zshrc`.\n- `ph uninstall` is an alias of `ph unhook`.\n\n## Build (publish)\n\n`npm run build` emits JavaScript into `dist/`.\n\n## Uninstall (macOS, zsh)\n\n1. Remove the hook:\n   `ph unhook`\n2. Uninstall the package with your package manager.\n","readmeFilename":"README.md","_rev":"1-64e7086a0bc9e5bba254ea1e140af15f"}