{"_id":"@almanac-ai/agentlogs-core","name":"@almanac-ai/agentlogs-core","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@almanac-ai/agentlogs-core","version":"0.1.0","description":"Shared agentlogs contract helpers and Node file sink.","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./node":{"types":"./dist/node.d.ts","import":"./dist/node.js"}},"engines":{"node":">=18"},"scripts":{"build":"tsc -p tsconfig.json","test":"tsx test/core.test.ts","prepublishOnly":"npm run build"},"keywords":["logging","tracing","debugging","agents"],"license":"MIT","author":{"name":"AlmanacCode"},"repository":{"type":"git","url":"git+https://github.com/AlmanacCode/agentlogs.git","directory":"packages/core"},"devDependencies":{"@types/node":"^22.19.21","tsx":"^4.19.2","typescript":"^5.6.3"},"publishConfig":{"access":"public"},"_id":"@almanac-ai/agentlogs-core@0.1.0","gitHead":"85fe240348add6e7128e2efb80f6da3db7e8a6f5","bugs":{"url":"https://github.com/AlmanacCode/agentlogs/issues"},"homepage":"https://github.com/AlmanacCode/agentlogs#readme","_nodeVersion":"21.7.3","_npmVersion":"10.5.0","dist":{"integrity":"sha512-4wQBtV7mhFnV/ntivbe11oLjyahwQCaDedlSHmrHw8FV4mXWv2Fqyx6+18FR0wjCqmnMweiWvSCH/8uzuy2Acg==","shasum":"b5f7fa94294b20c8edec622275f4f0dff1cfd872","tarball":"https://registry.npmjs.org/@almanac-ai/agentlogs-core/-/agentlogs-core-0.1.0.tgz","fileCount":6,"unpackedSize":12974,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFYbT3VGkKUYTBchbdbBh67/Hg6l3U0ePBiEcSSF2LDpAiEA8Br+6DC8t/JjCbnXrngf901OolxtvKtyYNps6JAvUAc="}]},"_npmUser":{"name":"reveriedev","email":"reveriedev.one@gmail.com"},"directories":{},"maintainers":[{"name":"reveriedev","email":"reveriedev.one@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agentlogs-core_0.1.0_1781653384758_0.8846746588299708"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-16T23:43:04.583Z","0.1.0":"2026-06-16T23:43:04.908Z","modified":"2026-06-16T23:43:05.197Z"},"maintainers":[{"name":"reveriedev","email":"reveriedev.one@gmail.com"}],"description":"Shared agentlogs contract helpers and Node file sink.","homepage":"https://github.com/AlmanacCode/agentlogs#readme","keywords":["logging","tracing","debugging","agents"],"repository":{"type":"git","url":"git+https://github.com/AlmanacCode/agentlogs.git","directory":"packages/core"},"author":{"name":"AlmanacCode"},"bugs":{"url":"https://github.com/AlmanacCode/agentlogs/issues"},"license":"MIT","readme":"# @almanac-ai/agentlogs-core\n\nShared contract helpers for the JavaScript packages.\n\nThis package is intentionally small:\n\n- browser-safe schema helpers,\n- reserved-field cleaning,\n- W3C `traceparent` build/parse helpers,\n- Node-only log path and file sink helpers under `@almanac-ai/agentlogs-core/node`.\n\nIt exists so `agentlogs`, `@almanac-ai/agentlogs-node`, and `@almanac-ai/agentlogs-next/server` do not\ncopy contract behavior.\n\n## Exports\n\n```ts\nimport {\n  RESERVED_KEYS,\n  cleanFields,\n  cleanFieldsWithDropped,\n  createReservedKeyDropReporter,\n  isLogEntry,\n  buildTraceparent,\n  parseTraceparent,\n} from \"@almanac-ai/agentlogs-core\";\n```\n\n```ts\nimport { FileSink, resolveLogPath } from \"@almanac-ai/agentlogs-core/node\";\n```\n\n## Develop\n\nFrom the repo root:\n\n```bash\nnpm install\nnpm run test:core\nnpm run build\n```\n","readmeFilename":"README.md","_rev":"1-3bfb7e7169b4578c97d001db90ec83dd"}