repo-root.mjs
14 lines 484 B
Raw
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd feat(calendar): enforce agent context tiers in retrieval AP… Human minor ⚠ breaking 3 days ago
1 /**
2 * Repo root for path resolution. On Netlify/AWS Lambda, bundled code may have a broken
3 * import.meta.url; cwd is the function bundle root and matches hub/bridge serverless handling.
4 */
5 import path from 'path';
6 import { fileURLToPath } from 'url';
7
8 export function getRepoRoot() {
9 if (process.env.AWS_LAMBDA_FUNCTION_NAME || process.env.NETLIFY) {
10 return process.cwd();
11 }
12 const here = path.dirname(fileURLToPath(import.meta.url));
13 return path.resolve(here, '..');
14 }
File History 2 commits
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd feat(calendar): enforce agent context tiers in retrieval AP… Human minor 3 days ago
sha256:9103f98c89257ed2b01c237cea895dabb3e85ea337dccb1161c175e4422355b6 docs: accept Calendar Events v0 spec with Phase 0 security … Human 3 days ago