{"_id":"@anymux/github","name":"@anymux/github","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anymux/github","version":"0.1.0","type":"module","license":"MIT","description":"GitHub file system, git, and hosting adapter for AnyMux","keywords":["anymux","filesystem","github","git","octokit"],"repository":{"type":"git","url":"git+https://github.com/AnyMux/AnyMuxMonorepo.git","directory":"packages/github"},"homepage":"https://github.com/AnyMux/AnyMuxMonorepo/tree/main/packages/github#readme","engines":{"node":">=20"},"main":"./src/index.ts","types":"./src/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@octokit/rest":"^21.1.1","zod":"^3.24.1","@anymux/file-system":"0.1.0"},"devDependencies":{"@types/node":"^22.10.2","publint":"^0.3.8","tsdown":"^0.10.2","typescript":"^5.7.3","vitest":"^3.0.0","@anymux/typescript-config":"0.0.0"},"scripts":{"build":"tsdown","check":"tsc -p tsconfig.json --noEmit","test":"vitest run"},"_id":"@anymux/github@0.1.0","bugs":{"url":"https://github.com/AnyMux/AnyMuxMonorepo/issues"},"_integrity":"sha512-eHutpVca3Sb2RVnQydBjdFr5jb8eGFopF+ig3QjwXdtrEta9MmOrymrbnnuFHtpxYGEfPmkcOFkKgaqgHEJEPw==","_resolved":"/tmp/9324e6dbc5643ec77b3b9f23b6e2738b/anymux-github-0.1.0.tgz","_from":"file:anymux-github-0.1.0.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-eHutpVca3Sb2RVnQydBjdFr5jb8eGFopF+ig3QjwXdtrEta9MmOrymrbnnuFHtpxYGEfPmkcOFkKgaqgHEJEPw==","shasum":"71c0f530ae68a1e5c2d5d7d8078834f3f171a6ab","tarball":"https://registry.npmjs.org/@anymux/github/-/github-0.1.0.tgz","fileCount":13,"unpackedSize":130550,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDtFFiaWAw1qzasX3yW3GEZc4bLn19NxJtCMvK8ZoJaWwIhANAnL1eobWWElgvmR1nOvzK4YZyUj+VIhocjU+kS4e2f"}]},"_npmUser":{"name":"yatsyk","email":"yatsyk@gmail.com"},"directories":{},"maintainers":[{"name":"yatsyk","email":"yatsyk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/github_0.1.0_1774335448483_0.9106645857467588"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-24T06:57:28.389Z","0.1.0":"2026-03-24T06:57:28.618Z","modified":"2026-03-24T06:57:28.844Z"},"maintainers":[{"name":"yatsyk","email":"yatsyk@gmail.com"}],"description":"GitHub file system, git, and hosting adapter for AnyMux","homepage":"https://github.com/AnyMux/AnyMuxMonorepo/tree/main/packages/github#readme","keywords":["anymux","filesystem","github","git","octokit"],"repository":{"type":"git","url":"git+https://github.com/AnyMux/AnyMuxMonorepo.git","directory":"packages/github"},"bugs":{"url":"https://github.com/AnyMux/AnyMuxMonorepo/issues"},"license":"MIT","readme":"# @anymux/github\n\nGitHub file system and git operations provider for AnyMux.\n\n## Installation\n\n```bash\npnpm add @anymux/github\n```\n\n## Usage\n\n```typescript\nimport { GitHubProvider } from \"@anymux/github\";\n\nconst provider = new GitHubProvider({\n  token: process.env.GITHUB_TOKEN,\n  owner: \"my-org\",\n  repo: \"my-repo\",\n  ref: \"main\",\n});\n\nawait provider.initialize();\n\n// File system operations\nconst fs = provider.getCapability(\"file-system\");\nconst readme = await fs.readFile(\"/README.md\", \"utf-8\");\n\n// Git operations\nconst git = provider.getCapability(\"git-repo\");\nconst branches = await git.listBranches();\n\n// GitHub platform operations\nconst host = provider.getCapability(\"git-host\");\nconst prs = await host.listPullRequests({ state: \"open\" });\n```\n\n## API Overview\n\n### GitHubProvider\n\nImplements `IProvider` with capabilities:\n- `file-system` — Read/write files via GitHub Contents API\n- `git-repo` — Branches, commits, tags, diffs via Git Data API\n- `git-host` — Pull requests, issues, reviews, releases, CI pipelines\n\n### Configuration\n\n- `token` — GitHub personal access token or OAuth token\n- `owner` — Repository owner (user or organization)\n- `repo` — Repository name\n- `ref` — Branch, tag, or commit SHA (default: `\"main\"`)\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-897dc6b10d86bf662409f224ef8cc71c"}