{"_id":"@agent-detective/types","_rev":"3-78a17a4f72db66e5f49519259e31f8e3","name":"@agent-detective/types","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@agent-detective/types","version":"1.0.0","keywords":["agent-detective","types"],"author":{"name":"Antonio Hernandez"},"license":"MIT","_id":"@agent-detective/types@1.0.0","maintainers":[{"name":"andezdev","email":"andezdev@gmail.com"}],"homepage":"https://github.com/andezdev/agent-detective#readme","bugs":{"url":"https://github.com/andezdev/agent-detective/issues"},"dist":{"shasum":"c65635afc59ff12292c3fc11d6930f2eb5bb7c34","tarball":"https://registry.npmjs.org/@agent-detective/types/-/types-1.0.0.tgz","fileCount":5,"integrity":"sha512-qiuzWuMxL6eTWCDnyTt5vN03BG/nESecOBWwF0IMstsOppD7wjLSMiDl+UDczazIDq9eO+v7SOCkTu2++BvzBA==","signatures":[{"sig":"MEUCIQCW/WGIfL3v+1PMf16bLdGvgk1244+9ln6JM89NwNyZwAIgQM/7RZWJeEBadDxGV2QZxDkz+Stqu2kGimwAUH9Cxtw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26372},"main":"dist/index.js","type":"module","_from":"file:agent-detective-types-1.0.0.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"eslint src/","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"andezdev","email":"andezdev@gmail.com"},"_resolved":"/tmp/a7331c6a6d48c3442ff2bf44f34faf21/agent-detective-types-1.0.0.tgz","_integrity":"sha512-qiuzWuMxL6eTWCDnyTt5vN03BG/nESecOBWwF0IMstsOppD7wjLSMiDl+UDczazIDq9eO+v7SOCkTu2++BvzBA==","repository":{"url":"git+https://github.com/andezdev/agent-detective.git","type":"git"},"_npmVersion":"11.11.0","description":"Shared TypeScript types for agent-detective core and plugins","directories":{},"_nodeVersion":"25.8.1","dependencies":{"zod":"^4.4.3","fastify":"^5.8.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/types_1.0.0_1780775195201_0.45660346142748454","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@agent-detective/types","version":"1.0.1","keywords":["agent-detective","types"],"author":{"name":"Antonio Hernandez"},"license":"MIT","_id":"@agent-detective/types@1.0.1","maintainers":[{"name":"andezdev","email":"andezdev@gmail.com"}],"homepage":"https://github.com/andezdev/agent-detective#readme","bugs":{"url":"https://github.com/andezdev/agent-detective/issues"},"dist":{"shasum":"e6c8554a1f022ebabb0d754b614d31e4ba57a570","tarball":"https://registry.npmjs.org/@agent-detective/types/-/types-1.0.1.tgz","fileCount":5,"integrity":"sha512-mlsUMIbZpOY6CLRHJbFluNwQ7GTeoCcH3x/GkmfUAElEb9PM/mlZr5yEDWsRZwFtBywnG23vZzfaWqnXY6i6mA==","signatures":[{"sig":"MEQCICzCqm5QlZQQC/CgzvFQFLhSt6GnHlsRXuMSYvTQwMoTAiA7+L42iLwNiUaIiBSahJdTmOe/4rmCgkdUjkdD3cgUGg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26372},"main":"dist/index.js","type":"module","_from":"file:agent-detective-types-1.0.1.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"eslint src/","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"andezdev","email":"andezdev@gmail.com"},"_resolved":"/tmp/026d2da0fcc6d965b676887ba2b48411/agent-detective-types-1.0.1.tgz","_integrity":"sha512-mlsUMIbZpOY6CLRHJbFluNwQ7GTeoCcH3x/GkmfUAElEb9PM/mlZr5yEDWsRZwFtBywnG23vZzfaWqnXY6i6mA==","repository":{"url":"git+https://github.com/andezdev/agent-detective.git","type":"git"},"_npmVersion":"11.11.0","description":"Shared TypeScript types for agent-detective core and plugins","directories":{},"_nodeVersion":"25.8.1","dependencies":{"zod":"^4.4.3","fastify":"^5.8.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/types_1.0.1_1780778887122_0.38396590771267936","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@agent-detective/types","version":"1.1.0","description":"Shared TypeScript types for agent-detective core and plugins","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"dependencies":{"fastify":"^5.8.5","zod":"^4.4.3"},"devDependencies":{"typescript":"^6.0.3"},"keywords":["agent-detective","types"],"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/andezdev/agent-detective.git"},"author":{"name":"Antonio Hernandez"},"bugs":{"url":"https://github.com/andezdev/agent-detective/issues"},"scripts":{"build":"tsup","typecheck":"tsc --noEmit","lint":"eslint src/","clean":"rm -rf dist"},"_id":"@agent-detective/types@1.1.0","homepage":"https://github.com/andezdev/agent-detective#readme","_integrity":"sha512-/gKIRHD9q2iTxTcZ5Yf86ra1+AWUjyl2FtRHZoGbejbkLjN+iw3xFcmlAgkANFVHSnn5vgJmxBLv2cmbIXzH8g==","_resolved":"/tmp/da767fd6a1fb95e6e1f9618dc06092f9/agent-detective-types-1.1.0.tgz","_from":"file:agent-detective-types-1.1.0.tgz","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-/gKIRHD9q2iTxTcZ5Yf86ra1+AWUjyl2FtRHZoGbejbkLjN+iw3xFcmlAgkANFVHSnn5vgJmxBLv2cmbIXzH8g==","shasum":"1cd62567a2d2e95270991450336f9577e5abcd20","tarball":"https://registry.npmjs.org/@agent-detective/types/-/types-1.1.0.tgz","fileCount":5,"unpackedSize":26372,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agent-detective%2ftypes@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE8rEMh9NHGB8seaySgxQCsQ+zWWL2eDtrZUAM6CRXLhAiB2fBadn8+vxK1rB8N5nyeOlPt8tknFuyGpLonDQXISsQ=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1435bb29-1f12-4e04-ac2e-25a4d8b71b44"}},"directories":{},"maintainers":[{"name":"andezdev","email":"andezdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/types_1.1.0_1780832844465_0.6108127366997873"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-06T19:46:35.001Z","modified":"2026-06-07T11:47:24.941Z","1.0.0":"2026-06-06T19:46:35.331Z","1.0.1":"2026-06-06T20:48:07.258Z","1.1.0":"2026-06-07T11:47:24.656Z"},"bugs":{"url":"https://github.com/andezdev/agent-detective/issues"},"author":{"name":"Antonio Hernandez"},"license":"MIT","homepage":"https://github.com/andezdev/agent-detective#readme","keywords":["agent-detective","types"],"repository":{"type":"git","url":"git+https://github.com/andezdev/agent-detective.git"},"description":"Shared TypeScript types for agent-detective core and plugins","maintainers":[{"name":"andezdev","email":"andezdev@gmail.com"}],"readme":"# @agent-detective/types\n\n**Host-internal, type-only contract package** for agent-detective.\n\nThis package emits **zero runtime code** — every export is an `interface` or `type` alias. It exists as the single source of truth for the shared contract between the host (the `agent-detective` app under `src/`) and the workspace packages (plugins, observability, process-utils).\n\n## Audience\n\nPlugin authors should **not** depend on this package directly.\n\nThe plugin-author surface lives in [`@agent-detective/sdk`](../sdk/README.md), which re-exports every plugin-facing type from this package alongside the runtime helpers (`defineRoute`, `registerRoutes`, `definePlugin`, `zodToPluginSchema`) and the service-name constants (`REPO_MATCHER_SERVICE`, `PR_WORKFLOW_SERVICE`, `StandardEvents`).\n\n```typescript\n// In a plugin: pull everything from sdk\nimport {\n  definePlugin,\n  type Plugin,\n  type PluginContext,\n  type RepoMatcher,\n  REPO_MATCHER_SERVICE,\n} from '@agent-detective/sdk';\n```\n\n## What lives here\n\n- Plugin contract: `Plugin`, `PluginContext`, `LoadedPlugin`, `PluginSchema`, `PluginSchemaProperty`.\n- Task / event types: `TaskEvent`, `TaskContext`, `ReplyTarget`, `EventBus`, `EventBusHandler`, `Logger`, `TaskQueue`, `EnqueueFn`.\n- Service contracts: `RepoMatcher`, `LocalReposService`, `PrWorkflowService`, `RepoConfig`, `ValidatedRepo`, `Commit`, etc.\n- Agent contract: `AgentRunner`, `Agent`, `AgentInfo`, `AgentOutput`, `StreamingOutput`, `RunAgentOptions`, `BuildCommandOptions`.\n- HTTP contract (`./http.ts`): `RouteDefinition`, `RouteSchema`, `HttpMethod`, `FastifyScope`, `FastifyRequest`, `FastifyReply`, `TagGroup`, `ApplyTagGroupsOptions`.\n- Host-only types: `ProcessUtils`, `ExecLocalOptions`, `ExecLocalStreamingOptions` — used by `@agent-detective/process-utils` and the host, **not** re-exported through sdk.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}