repo-root.test.mjs
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd
feat(calendar): enforce agent context tiers in retrieval AP…
Human
minor
⚠ breaking
1 day ago
| 1 | import { describe, it } from 'node:test'; |
| 2 | import assert from 'node:assert'; |
| 3 | |
| 4 | describe('getRepoRoot', () => { |
| 5 | it('returns process.cwd when NETLIFY is set (bundled functions avoid import.meta.url)', async () => { |
| 6 | const prevN = process.env.NETLIFY; |
| 7 | const prevA = process.env.AWS_LAMBDA_FUNCTION_NAME; |
| 8 | try { |
| 9 | delete process.env.AWS_LAMBDA_FUNCTION_NAME; |
| 10 | process.env.NETLIFY = 'true'; |
| 11 | const { getRepoRoot } = await import('../lib/repo-root.mjs'); |
| 12 | assert.strictEqual(getRepoRoot(), process.cwd()); |
| 13 | } finally { |
| 14 | if (prevN === undefined) delete process.env.NETLIFY; |
| 15 | else process.env.NETLIFY = prevN; |
| 16 | if (prevA === undefined) delete process.env.AWS_LAMBDA_FUNCTION_NAME; |
| 17 | else process.env.AWS_LAMBDA_FUNCTION_NAME = prevA; |
| 18 | } |
| 19 | }); |
| 20 | }); |
File History
2 commits
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd
feat(calendar): enforce agent context tiers in retrieval AP…
Human
minor
⚠
1 day ago
sha256:9103f98c89257ed2b01c237cea895dabb3e85ea337dccb1161c175e4422355b6
docs: accept Calendar Events v0 spec with Phase 0 security …
Human
1 day ago