@loom/project-context (0.1.0)
Published 2026-07-26 20:21:13 +02:00 by amelie
Installation
@loom:registry=https://gitlab.amandy.love/api/packages/werk/npm/npm install @loom/project-context@0.1.0"@loom/project-context": "0.1.0"About this package
Shared project and Git context primitives for Loom tools
@loom/project-context
Shared project and Git context primitives for the Loom ecosystem.
Purpose
Provides a stable, read-only API to detect:
- Git worktree state (root, branch, commit, dirty, remotes)
- Project metadata (package.json, name, version)
- Workspace environment (package manager detection)
Usage
import { resolveProjectContext } from "@loom/project-context";
const context = await resolveProjectContext({ cwd: process.cwd() });
if (context.git.isWorktree) {
console.log(`Current branch: ${context.git.branch}`);
}
Protocol
protocol: "loom.project-context/v1"
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| @types/node | ^20.0.0 |
| typescript | ^5.0.0 |
Details
2026-07-26 20:21:13 +02:00
Assets (1)
Versions (1)
View all
npm
0
latest
1.9 KiB
project-context-0.1.0.tgz
1.9 KiB
0.1.0
2026-07-26