{"_id":"@codegraff/sdk","_rev":"17-788a34e27a7ddcd948d8309c13a03182","name":"@codegraff/sdk","dist-tags":{"latest":"0.4.2"},"versions":{"0.1.6":{"name":"@codegraff/sdk","version":"0.1.6","license":"MIT","_id":"@codegraff/sdk@0.1.6","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"089a091ba357a3c610490289a95587a551979c9a","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.1.6.tgz","fileCount":6,"integrity":"sha512-QsVZUG5IOstbHhFwjq0mChTL6bQndvmhdQqX8X1RWAan/X3EFocNih9MWxfaKx5zI4XFAXyNSy42cHHJf8mqPA==","signatures":[{"sig":"MEUCICofqh8HY3UrLAsrULnrUGedYtRTLnR7K72XYFq2rcj+AiEA+n29gLOBFQjRjZWd3E4zk6ATt6FB5DfKRt+VsQX6WPg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42209},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"gitHead":"45e0d6291738c391ec2e8f9e230181bd20ba5c35","scripts":{"demo":"tsx examples/agent-demo.ts","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","compare":"tsx examples/compare.ts","version":"napi version","artifacts":"napi artifacts","benchmark":"tsx examples/benchmark.ts","build:debug":"napi build --platform","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.11.0","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@cursor/sdk":"^1.0.12","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.1.5","@codegraff/sdk-darwin-arm64":"0.1.5","@codegraff/sdk-linux-x64-gnu":"0.1.5","@codegraff/sdk-win32-x64-msvc":"0.1.5","@codegraff/sdk-linux-arm64-gnu":"0.1.5"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.6_1779247118987_0.6267371955183498","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@codegraff/sdk","version":"0.1.7","license":"MIT","_id":"@codegraff/sdk@0.1.7","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"bfb86388813e6b3373924315c946501bd0454ad4","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.1.7.tgz","fileCount":6,"integrity":"sha512-FGZ70BKu+MRvjIzYmC+oYtrxNI/SOxD0IE5fGvZozEci+ur5u5iw2tzBWGlhEx0c65GkTczzOUpCE5YWxicajA==","signatures":[{"sig":"MEQCIHJJuUDYJap3PyU3FSauCFuxjev5H9QoMukbL9ox/Rc5AiAdjUKv7kPv1wEh+0DkkRElJ14YFf4pXFkOYRjV6s+dWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42209},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"gitHead":"45e0d6291738c391ec2e8f9e230181bd20ba5c35","scripts":{"demo":"tsx examples/agent-demo.ts","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","compare":"tsx examples/compare.ts","version":"napi version","artifacts":"napi artifacts","benchmark":"tsx examples/benchmark.ts","build:debug":"napi build --platform","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.11.0","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@cursor/sdk":"^1.0.12","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.1.7","@codegraff/sdk-darwin-arm64":"0.1.7","@codegraff/sdk-linux-x64-gnu":"0.1.7","@codegraff/sdk-win32-x64-msvc":"0.1.7","@codegraff/sdk-linux-arm64-gnu":"0.1.7"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.7_1779250748305_0.08105892579968432","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@codegraff/sdk","version":"0.1.10","license":"MIT","_id":"@codegraff/sdk@0.1.10","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"813f075ade727733bc5728b3b97958f6886fb0d5","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.1.10.tgz","fileCount":4,"integrity":"sha512-C4/FsbMrbOC2bFecajkGm6MDn5jApCkRebdbAdOpsnpD37n0F2vOg5CL0+wi7pFOgKbyPjYQDS47B56clbeYTA==","signatures":[{"sig":"MEQCIB3mtLob89f2vlL+VqEbhEgHOEBCdTtq3l2fSOhLelQDAiA0892MBbCKCb4ihydxCUkJEKO+KARWR5nxTrsrX8hV0Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25188},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"scripts":{"demo":"tsx examples/agent-demo.ts","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","compare":"tsx examples/compare.ts","version":"napi version","artifacts":"napi artifacts","benchmark":"tsx examples/benchmark.ts","build:debug":"napi build --platform","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.11.0","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@cursor/sdk":"^1.0.12","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.1.10","@codegraff/sdk-darwin-arm64":"0.1.10","@codegraff/sdk-linux-x64-gnu":"0.1.10","@codegraff/sdk-win32-x64-msvc":"0.1.10","@codegraff/sdk-linux-arm64-gnu":"0.1.10"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.10_1779262939294_0.8457374681292329","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"@codegraff/sdk","version":"0.1.11","license":"MIT","_id":"@codegraff/sdk@0.1.11","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"dbb63702b19c05fa8b6685b424840e6dd8364121","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.1.11.tgz","fileCount":6,"integrity":"sha512-Z3nmGbqKZpMP/anMLcXo7YUv4K38J5PLnSOZUWqCzjY5og93/ragPPDrbq7XKXFBFSYvDv2UqRVAPrt5ZFxeVw==","signatures":[{"sig":"MEQCIDMw7CsBNzJ3JP4UILh8Trf+LwGRE2CUNrATs64IoMmzAiAC/XQsDt8LD1tZk/mmQaejvINS8F6bzXeMqnN2F2QjbQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40192},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"scripts":{"demo":"tsx examples/agent-demo.ts","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","compare":"tsx examples/compare.ts","version":"napi version","artifacts":"napi artifacts","benchmark":"tsx examples/benchmark.ts","build:debug":"napi build --platform","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.11.0","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@cursor/sdk":"^1.0.12","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.1.11","@codegraff/sdk-darwin-arm64":"0.1.11","@codegraff/sdk-linux-x64-gnu":"0.1.11","@codegraff/sdk-win32-x64-msvc":"0.1.11","@codegraff/sdk-linux-arm64-gnu":"0.1.11"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.11_1779263047576_0.5614887680566509","host":"s3://npm-registry-packages-npm-production"}},"0.1.14":{"name":"@codegraff/sdk","version":"0.1.14","license":"MIT","_id":"@codegraff/sdk@0.1.14","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"c159abd3f36cbfed0ee7d8760f0f28f634abc634","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.1.14.tgz","fileCount":6,"integrity":"sha512-uDN82Q7HD2OSHouWXKevatim2OsKbJkUnC6JnX+wfQmqHzdvnoYowWq95R1Te4yT8BBkUDg3Nc7dmn9MwZcisA==","signatures":[{"sig":"MEYCIQCQNuH+Ek/nvNKPzKs4Jtwv2iISP9IaOgScu/wXIBTAngIhAL7KAn2jISh3KIjHsuR1ee/PtIYVg8bzi6w/KsqLUvWY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40192},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"scripts":{"demo":"tsx examples/agent-demo.ts","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","compare":"tsx examples/compare.ts","version":"napi version","artifacts":"napi artifacts","benchmark":"tsx examples/benchmark.ts","build:debug":"napi build --platform","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.11.0","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@cursor/sdk":"^1.0.12","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.1.14","@codegraff/sdk-darwin-arm64":"0.1.14","@codegraff/sdk-linux-x64-gnu":"0.1.14","@codegraff/sdk-win32-x64-msvc":"0.1.14","@codegraff/sdk-linux-arm64-gnu":"0.1.14"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.14_1779266992300_0.31861584709203994","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@codegraff/sdk","version":"0.2.0","license":"MIT","_id":"@codegraff/sdk@0.2.0","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"feede27e869492bb9e9930243f7efa3a61b36744","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.2.0.tgz","fileCount":8,"integrity":"sha512-vNLxMY+LpvMSx2TOdxgP0ybSCIy0cHad+RyudRlIIWpkjBY/koYucWTOBdNiAIY0Xe5OvpTy6hIo6UbueSbSrw==","signatures":[{"sig":"MEMCIBQSBCSEEMnctVw/XuWTXzo+AIhT0EJ483CXZL5C12QBAh8iqPqAX9KMNMTHXYy6Ez9TS01FfGhYPZJWzV9jGNN6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6376623},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"scripts":{"demo":"tsx examples/agent-demo.ts","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","compare":"tsx examples/compare.ts","version":"napi version","artifacts":"napi artifacts","benchmark":"tsx examples/benchmark.ts","build:debug":"napi build --platform","postinstall":"node scripts/postinstall.cjs","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.11.0","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@cursor/sdk":"^1.0.12","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.2.0","@codegraff/sdk-darwin-arm64":"0.2.0","@codegraff/sdk-linux-x64-gnu":"0.2.0","@codegraff/sdk-win32-x64-msvc":"0.2.0","@codegraff/sdk-linux-arm64-gnu":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.0_1779286495641_0.8593634069283678","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@codegraff/sdk","version":"0.2.1","license":"MIT","_id":"@codegraff/sdk@0.2.1","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"27f41283b308db2fe7d14999679096ec1b2a8c99","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.2.1.tgz","fileCount":8,"integrity":"sha512-FW7yk0Ox6vfjMGa4NV0pa4LjPujrn0O7FR6vbPKuZbIbBpZ/JRPsgEkK+ryiqFXJEyCfSMudn8lrWt7lcN5E/g==","signatures":[{"sig":"MEUCIDd9uiqOGSYooc8h+avJinK1fK9inP5IrCjDWt9CPbM0AiEAoiDcJPHvm95+cOdU/lOOYiEA1mIYybrUMD/yZX8uH4s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6660423},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"scripts":{"demo":"tsx examples/agent-demo.ts","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","compare":"tsx examples/compare.ts","version":"napi version","artifacts":"napi artifacts","benchmark":"tsx examples/benchmark.ts","build:debug":"napi build --platform","postinstall":"node scripts/postinstall.cjs","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.6.1","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"24.10.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@cursor/sdk":"^1.0.12","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.2.1","@codegraff/sdk-darwin-arm64":"0.2.1","@codegraff/sdk-linux-x64-gnu":"0.2.1","@codegraff/sdk-win32-x64-msvc":"0.2.1","@codegraff/sdk-linux-arm64-gnu":"0.2.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.1_1779872904003_0.04593584529035932","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@codegraff/sdk","version":"0.2.2","license":"MIT","_id":"@codegraff/sdk@0.2.2","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"7316f536f259e5fab201bcc5550e8be820321e1b","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.2.2.tgz","fileCount":8,"integrity":"sha512-jdr+jKLQW4Eu2j0jeb1kvbpOZfzH1R7MpBxhv5t9hp2H+t/EPC7Zr0K6HBdoIZwnlas2wQsmdcLsR1RyWCVKLA==","signatures":[{"sig":"MEQCIB/6xUfrdXlxfEGNCIKFanHaDTTjFVRtMquJpRzchLm8AiBxYaCNv3X7AZHyh6VWCIsp8bZdMRFty9vpLxfI+7d5Jg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6370259},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"gitHead":"7ec8d18e4be90d4c26fa59dd343b7c0c757b27e5","scripts":{"demo":"tsx examples/agent-demo.ts","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","compare":"tsx examples/compare.ts","version":"napi version","artifacts":"napi artifacts","benchmark":"tsx examples/benchmark.ts","build:debug":"napi build --platform","postinstall":"node scripts/postinstall.cjs","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.6.1","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"24.10.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@cursor/sdk":"^1.0.12","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.2.2","@codegraff/sdk-darwin-arm64":"0.2.2","@codegraff/sdk-linux-x64-gnu":"0.2.2","@codegraff/sdk-win32-x64-msvc":"0.2.2","@codegraff/sdk-linux-arm64-gnu":"0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.2_1780065888605_0.40016186070368387","host":"s3://npm-registry-packages-npm-production"}},"0.2.221":{"name":"@codegraff/sdk","version":"0.2.221","license":"MIT","_id":"@codegraff/sdk@0.2.221","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"9c7a7712dc58e841137762feeda3e6598b379173","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.2.221.tgz","fileCount":8,"integrity":"sha512-nK8GbUZJ45HD9N28alR7EpMV1u9q/v2yZLMNP9wZw1IeeDtbD0wstwNmYiZDOpWlemzbvLSz40iBzgHUPQ2E0w==","signatures":[{"sig":"MEYCIQDexXDLxOD4INEPFb4RLiFjhhM94Ulba4zrzhZKcsTx7QIhAMkgsQCbvs+F0s7lR3/01eWQcUa9lPyUDDkEQ+hL4aW4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6369697},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"gitHead":"7ec8d18e4be90d4c26fa59dd343b7c0c757b27e5","scripts":{"demo":"tsx examples/agent-demo.ts","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","compare":"tsx examples/compare.ts","version":"napi version","artifacts":"napi artifacts","benchmark":"tsx examples/benchmark.ts","build:debug":"napi build --platform","postinstall":"node scripts/postinstall.cjs","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"deprecated":"Published in error (version typo) — use 0.2.2","repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.6.1","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"24.10.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@cursor/sdk":"^1.0.12","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.2.2","@codegraff/sdk-darwin-arm64":"0.2.2","@codegraff/sdk-linux-x64-gnu":"0.2.2","@codegraff/sdk-win32-x64-msvc":"0.2.2","@codegraff/sdk-linux-arm64-gnu":"0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.221_1780066225397_0.18313618244697172","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@codegraff/sdk","version":"0.2.4","license":"MIT","_id":"@codegraff/sdk@0.2.4","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"0edd6964953dbca8f1c19b852291ad5d0cca7f20","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.2.4.tgz","fileCount":7,"integrity":"sha512-90NIE4V1RF6NuiLtO24nAlTc2FOrKPPboQASchuRzBIfYtgP4knZKh8e82dg57tJbs2jU9pGPO+W1EHEq3mtGg==","signatures":[{"sig":"MEQCICs64dmf8fsOjX+59x3+7lONePou/9joDJm1F56GDb1UAiAlRdTTLMM7sg1m8WeV4w/gwFwxvpo86g5IoPUORdLx3g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codegraff%2fsdk@0.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2302714},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"exports":{".":{"types":"./lib.d.ts","import":"./lib.js","default":"./lib.js","require":"./lib.js"},"./package.json":"./package.json"},"gitHead":"ec436859c894d298eb891d54c478ec2d23992e2b","scripts":{"demo":"tsx examples/agent-demo.ts","test":"node --test","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","version":"napi version","artifacts":"napi artifacts","build:debug":"napi build --platform","postinstall":"node scripts/postinstall.cjs","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"10.8.2","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"20.20.2","dependencies":{"dhi":"^1.3.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.2.4","@codegraff/sdk-darwin-arm64":"0.2.4","@codegraff/sdk-linux-x64-gnu":"0.2.4","@codegraff/sdk-win32-x64-msvc":"0.2.4","@codegraff/sdk-linux-arm64-gnu":"0.2.4"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.4_1780306056811_0.21464867606770266","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@codegraff/sdk","version":"0.2.5","license":"MIT","_id":"@codegraff/sdk@0.2.5","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://github.com/justrach/codegraff#readme","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"deee13a8cf412a87a4ea81c880af2f016afb0cde","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.2.5.tgz","fileCount":10,"integrity":"sha512-EE9AOPvaBmiEVss9oYziidE1T+nnaQ3/29ukZkp7NgglgGDZQgwzPR3M/+GkzoKojue6kV5Gg+0CV/OCa1o9jA==","signatures":[{"sig":"MEQCIBFgiTugigwylZGeP2+6rn96hwY3Y2AH6bQdyxyxlTsRAiAzlhU8O87CDUphqJK5J9fRh5RoxE7WX2JD0HhDOTBCig==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codegraff%2fsdk@0.2.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2320126},"main":"lib.js","napi":{"name":"codegraff-sdk","triples":{"defaults":false,"additional":["aarch64-apple-darwin","x86_64-apple-darwin","x86_64-unknown-linux-gnu","aarch64-unknown-linux-gnu","x86_64-pc-windows-msvc"]}},"types":"lib.d.ts","engines":{"node":">= 18"},"exports":{".":{"types":"./lib.d.ts","import":"./lib.js","default":"./lib.js","require":"./lib.js"},"./package.json":"./package.json"},"gitHead":"f941c16b11b9374d2b8be84498eeccf89da74db0","scripts":{"demo":"tsx examples/agent-demo.ts","test":"node --test","build":"napi build --platform --release","smoke":"node examples/smoke.mjs","version":"napi version","artifacts":"napi artifacts","build:debug":"napi build --platform","postinstall":"node scripts/postinstall.cjs","prepublishOnly":"node scripts/check-artifacts.cjs","create-npm-dirs":"napi create-npm-dir -t ."},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"10.8.2","description":"TypeScript / Node SDK for the codegraff agent (N-API bindings).","directories":{},"_nodeVersion":"20.20.2","dependencies":{"dhi":"^1.3.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.0","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@codegraff/sdk-darwin-x64":"0.2.5","@codegraff/sdk-darwin-arm64":"0.2.5","@codegraff/sdk-linux-x64-gnu":"0.2.5","@codegraff/sdk-win32-x64-msvc":"0.2.5","@codegraff/sdk-linux-arm64-gnu":"0.2.5"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.5_1780464314259_0.9551626716365955","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@codegraff/sdk","version":"0.3.0","keywords":["codegraff","graff","agent","llm","harness","sdk"],"license":"BSD-3-Clause","_id":"@codegraff/sdk@0.3.0","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://codegraff.com","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"f92432b71ed0338ed7c5622a1ee53c6409986ada","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.3.0.tgz","fileCount":3,"integrity":"sha512-IyOnRDkVsb9kIa51PKnqkVTN1YR24o0kfcsBVtUDBXJtFYt12X0dLLaKMqT+vd8BD1rDL7wCib92RZCzhH77eQ==","signatures":[{"sig":"MEQCICFp6kWZ1oN06c5U+rhUoGYW+LbkMaTEadCFfBe9WLNaAiAR9L7GXzIBS5lL/i7b3n3LBtRqhoDa2Ose6QXhHux8hg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codegraff%2fsdk@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31733},"main":"harness.ts","type":"module","types":"harness.ts","engines":{"node":">=18"},"exports":{".":{"types":"./harness.ts","import":"./harness.ts","default":"./harness.ts"},"./remote":{"types":"./remote.ts","import":"./remote.ts","default":"./remote.ts"},"./package.json":"./package.json"},"gitHead":"6aafeff6aad9fa4c7c4580616853582e0f611413","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d8164c00-c98c-4127-96c5-5499d0395335"}},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/ts"},"_npmVersion":"11.17.0","description":"TypeScript / Node SDK for the codegraff agent — drives `graff --json` over stdio. Types auto-generated from `graff --schema`.","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.0_1781873490569_0.2764046636454629","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@codegraff/sdk","version":"0.3.1","keywords":["codegraff","graff","agent","llm","harness","sdk"],"license":"BSD-3-Clause","_id":"@codegraff/sdk@0.3.1","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://codegraff.com","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"4955569691f8ff0e9a47c39e3c495d65e05ec0d8","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.3.1.tgz","fileCount":4,"integrity":"sha512-b2/0sz49qtZcsl5sD8EvvwSgaaOdjWOwZqJjlSQbXgesX6jTVFe7+Ct1kJT/3gLucftIG6bQj1dlEdQ2JQjzQQ==","signatures":[{"sig":"MEUCIGqsedrLQAjFLbYYsEttH7lj2b8wGTg/vxtHQDQQb/dRAiEAhJcoNY3EB+m5Pjb4WSfhv6ABHTmnDrgqVNV5vb2Fv0I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codegraff%2fsdk@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":34726},"main":"harness.ts","type":"module","types":"harness.ts","engines":{"node":">=18"},"exports":{".":{"types":"./harness.ts","import":"./harness.ts","default":"./harness.ts"},"./remote":{"types":"./remote.ts","import":"./remote.ts","default":"./remote.ts"},"./package.json":"./package.json"},"gitHead":"6b8e78c9f464ba71914fe8657987146dbaedb4da","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d8164c00-c98c-4127-96c5-5499d0395335"}},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/ts"},"_npmVersion":"11.17.0","description":"TypeScript / Node SDK for the codegraff agent — drives `graff --json` over stdio. Types auto-generated from `graff --schema`.","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.1_1781941757411_0.4569436575855801","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@codegraff/sdk","version":"0.4.1","keywords":["codegraff","graff","agent","llm","harness","sdk"],"license":"Apache-2.0","_id":"@codegraff/sdk@0.4.1","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"homepage":"https://codegraff.com","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"f91a7fd8ea618108400190ab19b4142fe8916107","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.4.1.tgz","fileCount":23,"integrity":"sha512-Gh876VYAR8KfG993M4LB6uVGoe1aef7z2s2LFeLqC2ltrSFkQU3WrQpEcNdd2x51liqviwbgQ6qw8oLxxfsJYw==","signatures":[{"sig":"MEYCIQCUgKAsrQ/JES7Tn0E8jiJO8EbGSV5mN9sGOAvQITa++QIhAIlHauzzhXBfo7OKAddsBZHioJly3RMmGx5NTzrbsVym","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIExRcLmuDa1CAaEPZBWcchMtZQTseMjYTEQ7XS/FcgxnAiEA5b78HUDXVGU/nMMk1uI0xmfJd+GrY38gcXaUDXr2iU0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":234710},"main":"dist/harness.js","type":"module","types":"dist/harness.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/harness.d.ts","import":"./dist/harness.js","default":"./dist/harness.js"},"./acp":{"types":"./dist/acp.d.ts","import":"./dist/acp.js","default":"./dist/acp.js"},"./embed":{"types":"./dist/embed.d.ts","import":"./dist/embed.js","default":"./dist/embed.js"},"./remote":{"types":"./dist/remote.d.ts","import":"./dist/remote.js","default":"./dist/remote.js"},"./orchestrate":{"types":"./dist/orchestrate.d.ts","import":"./dist/orchestrate.js","default":"./dist/orchestrate.js"},"./package.json":"./package.json"},"scripts":{"test":"bun test","build":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json","prepack":"npm run build","typecheck":"tsc --noEmit -p tsconfig.json","test:packed":"node scripts/test-packed-install.mjs","version:sync":"node scripts/set-version.mjs"},"_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/ts"},"_npmVersion":"11.11.0","description":"TypeScript / Node SDK for the codegraff agent — drives `graff --json` over stdio. Types auto-generated from `graff --schema`.","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.3.11","typescript":"~5.9.3","@types/node":"^22.10.2"},"optionalDependencies":{"@codegraff/graff-linux-x64":"0.4.1","@codegraff/graff-win32-x64":"0.4.1","@codegraff/graff-darwin-x64":"0.4.1","@codegraff/graff-linux-arm64":"0.4.1","@codegraff/graff-win32-arm64":"0.4.1","@codegraff/graff-darwin-arm64":"0.4.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.1_1788922624495_0.25985105008242626","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"_id":"@codegraff/sdk@0.4.2","bugs":{"url":"https://github.com/justrach/codegraff/issues"},"dist":{"shasum":"176478cdbc916e72b117d352fdcb10c95bcaef2c","tarball":"https://registry.npmjs.org/@codegraff/sdk/-/sdk-0.4.2.tgz","fileCount":24,"integrity":"sha512-0AAnE8KpSbGOKCo8FWR5MCbQtrCIPQY8e7oikn3K6dNTf6SB1VPNXuOuGefuxQSUFCWi3lB4RjjjkLrv6T+bWQ==","signatures":[{"sig":"MEUCIQCyxU68dR3i7TurgIZRf+RgqoiWOYMH3O6SWxZo8QOedwIgNczF2EfcCYdW6KtB4ll0AuLOgbDoxagVvwTf3EThFvY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICTvvR9Nf6bWRPYH3CP+p6UgSKSE0LsstI93rpfCPBTfAiA/xAqYSE2lXjmD6s5j8UHrh+8qfO73GhexQaq/CEcVGQ=="}],"unpackedSize":318253},"main":"dist/harness.js","name":"@codegraff/sdk","type":"module","types":"dist/harness.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/harness.d.ts","import":"./dist/harness.js","default":"./dist/harness.js"},"./acp":{"types":"./dist/acp.d.ts","import":"./dist/acp.js","default":"./dist/acp.js"},"./embed":{"types":"./dist/embed.d.ts","import":"./dist/embed.js","default":"./dist/embed.js"},"./remote":{"types":"./dist/remote.d.ts","import":"./dist/remote.js","default":"./dist/remote.js"},"./core.wasm":"./graff-core.wasm","./orchestrate":{"types":"./dist/orchestrate.d.ts","import":"./dist/orchestrate.js","default":"./dist/orchestrate.js"},"./package.json":"./package.json"},"license":"Apache-2.0","scripts":{"test":"bun test","build":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json","prepack":"npm run build","typecheck":"tsc --noEmit -p tsconfig.json","test:packed":"node scripts/test-packed-install.mjs","version:sync":"node scripts/set-version.mjs"},"version":"0.4.2","_npmUser":{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"},"homepage":"https://codegraff.com","keywords":["codegraff","graff","agent","llm","harness","sdk"],"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/ts"},"_npmVersion":"11.11.0","description":"TypeScript / Node SDK for the codegraff agent — drives `graff --json` over stdio. Types auto-generated from `graff --schema`.","directories":{},"maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.3.11","typescript":"~5.9.3","@types/node":"^22.10.2"},"optionalDependencies":{"@codegraff/graff-linux-x64":"0.4.1","@codegraff/graff-win32-x64":"0.4.1","@codegraff/graff-darwin-x64":"0.4.1","@codegraff/graff-linux-arm64":"0.4.1","@codegraff/graff-win32-arm64":"0.4.1","@codegraff/graff-darwin-arm64":"0.4.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.4.2_1788925430036_0.5555688666059948"}}},"time":{"created":"2026-05-20T03:18:38.866Z","modified":"2026-09-09T03:43:50.327Z","0.1.6":"2026-05-20T03:18:39.134Z","0.1.7":"2026-05-20T04:19:08.504Z","0.1.10":"2026-05-20T07:42:19.444Z","0.1.11":"2026-05-20T07:44:07.723Z","0.1.14":"2026-05-20T08:49:52.471Z","0.2.0":"2026-05-20T14:14:55.786Z","0.2.1":"2026-05-27T09:08:24.160Z","0.2.2":"2026-05-29T14:44:48.837Z","0.2.221":"2026-05-29T14:50:25.599Z","0.2.4":"2026-06-01T09:27:36.991Z","0.2.5":"2026-06-03T05:25:14.430Z","0.3.0":"2026-06-19T12:51:30.736Z","0.3.1":"2026-06-20T07:49:17.550Z","0.4.1":"2026-09-09T02:57:04.593Z","0.4.2":"2026-09-09T03:43:50.163Z"},"bugs":{"url":"https://github.com/justrach/codegraff/issues"},"license":"Apache-2.0","homepage":"https://codegraff.com","keywords":["codegraff","graff","agent","llm","harness","sdk"],"repository":{"url":"git+https://github.com/justrach/codegraff.git","type":"git","directory":"sdk/ts"},"description":"TypeScript / Node SDK for the codegraff agent — drives `graff --json` over stdio. Types auto-generated from `graff --schema`.","maintainers":[{"name":"rachxpradhan","email":"rachxpradhan@gmail.com"}],"readme":"# @codegraff/sdk\n\nTypeScript / Node SDK for the [codegraff](https://github.com/justrach/codegraff)\nagent. It drives the `graff` binary over its `--json` stdio protocol, and the\ntypes are auto-generated from `graff --schema`.\n\n## Install\n\n```sh\nnpm install @codegraff/sdk\n```\n\n### Native binary included\n\nnpm installs the matching native `graff` executable through an optional platform\npackage, so a separate CLI install or `PATH` setup is not required on supported\nmacOS, Linux, and Windows arm64/x64 systems. Provider authentication is still\nrequired through the normal environment variables or `graff login` credentials.\n\nIf optional dependencies are disabled, the SDK falls back to `graff` on `PATH`.\nDevelopment and custom builds can always set an explicit binary:\n\n```ts\nconst graff = Harness.init({ binary: \"./zig-out/bin/graff\" });\n```\n\n## Quick start\n\n```ts\nimport { Harness, runAgent } from \"@codegraff/sdk\";\n\n// one-shot, streamed\nfor await (const ev of runAgent({ prompt: \"summarize README.md\", model: \"gpt-5.5\", yolo: true })) {\n  if (ev.type === \"text\") process.stdout.write(ev.text);\n  if (ev.type === \"tool_call\") console.log(\"→\", ev.name, ev.input);\n  if (ev.type === \"turn\") console.log(\"\\ncost $\", ev.cost_usd);\n}\n\n// long-lived, multi-turn session\nconst harness = Harness.init({ model: \"claude-opus-4-8\", yolo: true });\nconst session = harness.session();\nconsole.log(await session.ask(\"what files are here?\")); // returns final text\nconst result = await session.askResult(\"summarize the changes\");\nconsole.log(result.text, result.inputTokens, result.costUsd);\nconsole.log(await session.review(\"review HEAD against main\")); // isolated + read-only\nfor await (const ev of session.send(\"ask me a follow-up before continuing\")) {\n  if (ev.type === \"ask_user\") session.answer({ text: \"continue\", callId: ev.call_id });\n}\nawait session.close();\n```\n\n`Harness.init` accepts `{ model, yolo, cwd, env, binary, systemPrompt,\nmaxToolCalls, maxModelCalls, dedupeToolCalls, args }`.\n`model` may be a model name **or** a provider id (e.g. `\"codex\"`, `\"moonshot\"`).\nAlso exported: `MODELS` and `PROVIDERS`.\n\n## Runtime controls and cancellation\n\nTurns and acknowledged controls are serialized per session, so overlapping calls\ncannot steal each other's events. `answer()` remains out-of-band so it can answer\nan active `ask_user` prompt.\n\n```ts\nawait session.setModel(\"codex\", \"gpt-5.6-luna\");\nawait session.setEffort(\"high\");\nawait session.compact();\n\nconst controller = new AbortController();\nconst pending = session.ask({ prompt: \"long task\", signal: controller.signal });\ncontroller.abort(); // interrupts the active model/tool turn\nawait pending;      // rejects with the terminal cancellation error\n```\n\n`askResult()` returns final text plus context, token, cache, cost, and provider-call\nusage. `ask()` remains the compatibility shorthand that returns only final text.\nThe same controls, abort behavior, structured results, and out-of-band answers are\navailable on `RemoteHarness`.\n\n## Events\n\nBoth `runAgent` and `session.send` yield an `AsyncGenerator<Event>`:\n\n- `text` — assistant text delta\n- `tool_call` — the agent invoked a tool (`name`, `input`)\n- `tool_result` — a tool returned\n- `ask_user` — the agent needs input; answer it with `session.answer({ text, callId })`\n- `turn` — turn finished; carries the final `text`, `context_tokens`, and `cost_usd`\n- `error` — something went wrong\n\n## Remote (edge runtimes)\n\nEdge runtimes can't spawn a subprocess. Run `graff serve` somewhere and drive it\nover HTTP with fetch + Web Streams (works on Cloudflare Workers, Deno, Bun,\nbrowsers, Node >= 18):\n\n```ts\nimport { RemoteHarness, runAgentRemote } from \"@codegraff/sdk/remote\";\n\nfor await (const ev of runAgentRemote({ url: \"https://my-bridge.example\", token, prompt: \"summarize README.md\" })) {\n  if (ev.type === \"text\") console.log(ev.text);\n}\n\nconst h = RemoteHarness.init({ url: \"http://127.0.0.1:8787\", token, yolo: true });\nconsole.log(await h.ask(\"what files are here?\"));\nconsole.log(await h.ask({\n  prompt: \"read the code in this image\",\n  images: [\n    { type: \"image_url\", url: \"https://example.com/code.png\" },\n    { type: \"image_base64\", mediaType: \"image/png\", data: pngBase64 },\n  ],\n}));\nawait h.close();\n```\n\n`images` are native provider vision parts, not text pasted into the prompt.\nThey work on local `Harness` and edge-safe `RemoteHarness` turns and are\nvalidated against the selected model and the 16-image/3.7 MB-per-image limits.\n\n## Orchestration (#276): agent()/parallel()/pipeline(), budgets, resumable runs\n\n`@codegraff/sdk/orchestrate` is a deterministic scripting layer on top of the\nharness's `subagent`/`workflow` tools/`agent_output` — instead of asking the\nroot model to decide, on its own judgement, to fan out, the SDK drives those\ntools programmatically:\n\n```ts\nimport { agent, parallel, pipeline, Run } from \"@codegraff/sdk/orchestrate\";\n\n// one subagent call\nconst r = await agent(\"summarize README.md\", { agent: \"researcher\" });\nconsole.log(r.ok, r.text, r.usage.contextTokens);\n\n// parallel(): explicit barrier, a failed thunk resolves null (never rejects)\nconst reviews = await parallel([\n  () => agent(\"review auth.ts for bugs\", { agent: \"reviewer\" }),\n  () => agent(\"review db.ts for bugs\", { agent: \"reviewer\" }),\n]);\n\n// pipeline(): per-item flow, no barrier between an item's stages -- one\n// slow file never blocks another file's later stages\nconst results = await pipeline(\n  [\"a.ts\", \"b.ts\"],\n  async (_prev, file) => agent(`refactor ${file}`, { isolation: \"worktree\" }),\n  async (prev, file) => agent(`review this diff for ${file}:\\n${(prev as any).text}`),\n);\n```\n\nA `Run` adds a token-aware budget and a JSONL journal + prefix-resume so a\nre-invoked script skips unchanged calls and goes live from the first\ndivergence:\n\n```ts\nconst run = new Run({ budget: { maxTokens: 200_000 } });\nawait run.agent(\"step one\");\nawait run.agent(\"step two\");\nconsole.log(run.budget.spent(), run.budget.remaining());\n\n// later / after a crash: replay unchanged calls, run only what diverged\nconst resumed = new Run({ resumeFrom: run.journalPath });\nawait resumed.agent(\"step one\"); // cached, no process spawned\n```\n\nSee `orchestrate.ts`'s file header for the exact journal format and the\nconcurrency/determinism guarantees (and their documented edges) for\n`parallel()`/`pipeline()`.\n\n## ACP (`graff acp`)\n\nA host that wants ACP v1 `session/update`s (thought / tool_call / text), not\n`--json` events, should spawn `graff acp` instead of `Harness`.\n`@codegraff/sdk/acp` is the spawn plus JSON-RPC write/read:\n\n```ts\nimport { acp } from \"@codegraff/sdk/acp\";\n\nconst session = await acp({ model: \"gpt-5.5\" });\nsession.onUpdate((update) => console.log(update.sessionUpdate));\nconst { stopReason, updates } = await session.prompt(\"hello\");\nconsole.log(stopReason, updates.length);\nawait session.close();\n```\n\n`spawnAcp()` skips the `initialize` → `session/new` handshake. Recipe, method\nnames, `--no-local-tools`, and license: [Embedding graff](../../docs/embedding.md).\n\nSame-process (no child): `@codegraff/sdk/embed` `createGraffAgent()` loads\n`graff-core.wasm` (`zig build wasm-core`). First-slice turn is `echo:`.\n\n## Links\n\n- Repository: <https://github.com/justrach/codegraff>\n- Embedding graff: <https://github.com/justrach/codegraff/blob/main/docs/embedding.md>\n- This package (npm): <https://www.npmjs.com/package/@codegraff/sdk>\n- Python sibling (PyPI): <https://pypi.org/project/codegraff/>\n\n## License\n\nBSD-3-Clause\n","readmeFilename":"README.md"}