{"_id":"@agent-sh/harness-core","name":"@agent-sh/harness-core","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@agent-sh/harness-core","version":"0.2.0","description":"Shared types, permissions, ledger, cache, and LLM tool-adapter emitters for @agent-sh/harness-* tools","keywords":["ai","agent","llm","tool-use","bedrock","openai","mcp"],"license":"MIT","author":{"name":"Avi Fenesh"},"homepage":"https://github.com/avifenesh/tools/tree/main/packages/core#readme","bugs":{"url":"https://github.com/avifenesh/tools/issues"},"repository":{"type":"git","url":"git+https://github.com/avifenesh/tools.git","directory":"packages/core"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"publishConfig":{"access":"public"},"engines":{"node":">=20"},"dependencies":{"valibot":"^0.42.1"},"devDependencies":{"@types/node":"^22.9.0","tsup":"^8.3.5","typescript":"^5.6.3","vitest":"^2.1.4"},"scripts":{"build":"tsup","test":"vitest run --passWithNoTests","test:watch":"vitest","typecheck":"tsc --noEmit","clean":"rm -rf dist .turbo"},"_id":"@agent-sh/harness-core@0.2.0","_integrity":"sha512-KHGmdqeUAyIWiyX422QhgIV64td7UThV/lyxQiRrsmdK2zX+xqQ00ndBB2FaGzg5lDICldRaHNZ2CaN/zB7Ctg==","_resolved":"/tmp/3638d6665403f222c2995b0a464cdac8/agent-sh-harness-core-0.2.0.tgz","_from":"file:agent-sh-harness-core-0.2.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-KHGmdqeUAyIWiyX422QhgIV64td7UThV/lyxQiRrsmdK2zX+xqQ00ndBB2FaGzg5lDICldRaHNZ2CaN/zB7Ctg==","shasum":"f02d5a1a3d619597446c9221cad45bffda7918ec","tarball":"https://registry.npmjs.org/@agent-sh/harness-core/-/harness-core-0.2.0.tgz","fileCount":9,"unpackedSize":85534,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCpa3RMI/rtbqbmE2idvopTdifRhU8JaFxKICIJTFHdVgIgBe/QekPfcikNj+shm2SYIdpMPuZMxiRvUD7sRVycdT0="}]},"_npmUser":{"name":"avifenesh","email":"aviarchi1994@gmail.com"},"directories":{},"maintainers":[{"name":"avifenesh","email":"aviarchi1994@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/harness-core_0.2.0_1776853080486_0.006097096700396598"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-22T10:18:00.410Z","0.2.0":"2026-04-22T10:18:00.620Z","modified":"2026-04-22T10:18:01.180Z"},"maintainers":[{"name":"avifenesh","email":"aviarchi1994@gmail.com"}],"description":"Shared types, permissions, ledger, cache, and LLM tool-adapter emitters for @agent-sh/harness-* tools","homepage":"https://github.com/avifenesh/tools/tree/main/packages/core#readme","keywords":["ai","agent","llm","tool-use","bedrock","openai","mcp"],"repository":{"type":"git","url":"git+https://github.com/avifenesh/tools.git","directory":"packages/core"},"author":{"name":"Avi Fenesh"},"bugs":{"url":"https://github.com/avifenesh/tools/issues"},"license":"MIT","readme":"# @agent-sh/harness-core\n\nShared foundation for `@agent-sh/harness-*` tools — types, errors, permission policies, operation adapters.\n\nPart of the [`@agent-sh/harness-*`](https://github.com/avifenesh/tools) monorepo — see the top-level README for architectural context and the full tool surface.\n\n## What it is\n\nThis is a runtime-only dependency of every other harness tool. You typically don't import it directly — installing any `@agent-sh/harness-<tool>` package pulls it in.\n\n## Install\n\n```sh\nnpm install @agent-sh/harness-core\n```\n\nRequires Node ≥ 20.\n\n## Usage\n\n```ts\nimport { toolError, formatToolError, type PermissionPolicy } from \"@agent-sh/harness-core\";\n\nconst err = toolError(\"NOT_FOUND\", \"File not found\", { meta: { path: \"/x\" } });\nconsole.log(formatToolError(err)); // \"Error [NOT_FOUND]: File not found\"\n```\n\n## Contract\n\nThis is a foundation package; see the per-tool packages it supports for concrete contracts.\n\n## License\n\nMIT © Avi Fenesh\n","readmeFilename":"README.md","_rev":"1-9c75a53eeee5012024a87f8da8b8d9bc"}