{"_id":"@agent-smith/types","_rev":"11-d6d611d266d001756987065e0480e8f5","name":"@agent-smith/types","dist-tags":{"latest":"0.0.11"},"versions":{"0.0.1":{"name":"@agent-smith/types","version":"0.0.1","license":"MIT","_id":"@agent-smith/types@0.0.1","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"33504b8a18c0a0af5289ef7c70b4d6af72a8f0bf","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.1.tgz","fileCount":3,"integrity":"sha512-ui+7LNC8eu2wUYJFuKMXRBr9U0Ib4c8oF4nOuxUaAelbqAgfRSnCtjy97dCK7ZKvaDVFL91Vb7p2dg6l/kZcDg==","signatures":[{"sig":"MEYCIQDX/YZmFt+0eG1dLLfRxAOM8qfppz7PzkGoiz6mfzdf4AIhAOpCgxif+UZr1GOK5tUDu5O7W45n8D7fg4UM9vrGwfIj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1722},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"9ef4c1411272f2dc4562c0bf5ffe6e087d29ccd2","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc","start":"node dist/index.js","server":"node --loader ts-node/esm src/index.ts","devserver":"node  --loader ts-node/esm --watch src/index.ts"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.7.0","description":"Agent Smith Nodejs server types","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.2.3"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.1_1771756699102_0.6986373313283749","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@agent-smith/types","version":"0.0.2","license":"MIT","_id":"@agent-smith/types@0.0.2","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"674a33431eff740ad99bbb3e300ed036be14e365","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.2.tgz","fileCount":3,"integrity":"sha512-vLxxoC5Yhdv6xHbDDntUWZMQHVXU21h9c4IdtBzIg23O9qwWF37SyTB27HrxWOszdCCF6b4LFZbB+eAMe71e0A==","signatures":[{"sig":"MEUCIQC0Ojb/xxBhX+NLN6vroKsYDwnz6VGquX2s9BKCXwPXKgIgDR1fEL+cyk9phCB2oPuyyEXWUnsgSzlo50u3r/Iij/Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2030},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"7830166e33343fe473b1dd51196e8fce5c704add","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc","start":"node dist/index.js","server":"node --loader ts-node/esm src/index.ts","devserver":"node  --loader ts-node/esm --watch src/index.ts"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.7.0","description":"Agent Smith Nodejs server types","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.2.3"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.2_1771936968077_0.11790124997424178","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@agent-smith/types","version":"0.0.3","license":"MIT","_id":"@agent-smith/types@0.0.3","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"8fde8f8ea8d216c75c1885bc0f8fd14705844f54","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.3.tgz","fileCount":3,"integrity":"sha512-+C1IvJB+BaKEDSZCeow0+7tGKBPG+IW89nL+BeRHqTTXtGbEVmVKghNtOQW1xaVoJOaJiIF7TgJgoP6eYhWJWw==","signatures":[{"sig":"MEUCIQDPCKr4jItKai3dLL8TWO/XPPJv5rn7XHG2ReSuxD51kAIgPhwx0C9Gea+83CRmsgxQCQbo7B2m+3YXKlLfu8Pml58=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2703},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"ca6d14ebb8444d3d9af95541853ec1376334e7d8","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.7.0","description":"Agent Smith Nodejs server types","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.2.3","@locallm/types":"^0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.3_1772129568805_0.8425024841012883","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@agent-smith/types","version":"0.0.4","license":"MIT","_id":"@agent-smith/types@0.0.4","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"2f07d8c9bfc5aeeef9eb1f1b15402732e195b6c5","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.4.tgz","fileCount":3,"integrity":"sha512-1hn9Nd9Es1WTM4O5H/MTTzPOKbUolZ+N3lEISrMXlFxiJZ3tJCHQmmXeLr1XcaH+kLnWqiaMl23khjrWUMS5nw==","signatures":[{"sig":"MEYCIQCOw+5pomufO0rHffyofmdzypzURVK4dyZ6Jlhmx+H8mwIhAJzb6L4Xg1mIXoXRKwgTsA8LGE/AjGEnqQSRcreRPRwz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16648},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"a2c19bf81e64c1aea334ec5530e0ef5fcf63b6e3","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.7.0","description":"Agent Smith Nodejs types","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.32","openai":"^6.33.0","typescript":"^6.0.2","@types/node":"^25.5.2","@locallm/types":"^0.7.1","@agent-smith/task":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.4_1775559267262_0.38585475299384675","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@agent-smith/types","version":"0.0.5","license":"MIT","_id":"@agent-smith/types@0.0.5","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"8c5df0056894dd63664154ad3e5d16f721e783f7","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.5.tgz","fileCount":32,"integrity":"sha512-eCVXALbbM0pPjDYKL5P3OA2axhIoG7EPfNrYOfm2bW5nWJfyr6cC179oKBtaxxGYmv88wrG794VGC9RdEO5RXw==","signatures":[{"sig":"MEUCIQDEbNrhiigDZfHWvbshQslO4CRv5eVHmCpybdhQCfv4mwIgc4doQe+YJAnu9ZrPlsKaekM7BdV2evbIgjsDQX5TU0g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66852},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"d0f8060fc9392f1d1a6aaf85d47cdcb591c56e38","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.13.0","description":"Agent Smith Nodejs types","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.32","openai":"^6.33.0","restmix":"^0.6.1","typescript":"^6.0.2","@types/node":"^25.5.2"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.5_1780929944342_0.5659865045804338","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@agent-smith/types","version":"0.0.6","license":"MIT","_id":"@agent-smith/types@0.0.6","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"39cd00f0eabc507facd26aa918107cc79a695afe","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.6.tgz","fileCount":32,"integrity":"sha512-I/iGRZcoZcOsSC0PQJk8gjX3HwqmLZd25wFNMujasx0wY/3z+LqPODJIVTWWtK4QIisKrYdg4mBNfI5kCQkjrw==","signatures":[{"sig":"MEUCIQCqxGkEmzWcOwHwiTbBseMwRk2qTRlW4+1qvilQiQm6bwIgcBeGDje5G0sFlUDAe2igqYzM8odGadZboyV4c70HdZ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128317},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"cc4b053a409f3efbfa07f307f86cb33ac887be13","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.13.0","description":"Agent Smith Nodejs types","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.32","openai":"^6.33.0","restmix":"^0.6.1","typescript":"^6.0.2","@types/node":"^25.5.2"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.6_1781270608509_0.7513336956820902","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@agent-smith/types","version":"0.0.7","license":"MIT","_id":"@agent-smith/types@0.0.7","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"5c8a90abdb2b01649c23a26609364bcd3a68d5c4","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.7.tgz","fileCount":32,"integrity":"sha512-A2fG53rCgObGCtNAFNFdEwbTkcHlCiMGqcW5wBo2HByZCVsl6iaNs/tp8JOaxJkw8RQprq/RPB/lZAPTlGYVfw==","signatures":[{"sig":"MEUCIFGgRnN0B083+0K+EGJ77J1JShwjNhTxYPz8G1cF5NbQAiEAz05IE3YktsFmJiSCzFc7m+XWk0wh7de8fY8PlQIPh2A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128703},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"7f51a6a2bd1decd3bdbd4ada3797636abacf1097","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.13.0","description":"Agent Smith Nodejs types","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.32","openai":"^6.33.0","restmix":"^0.6.1","typescript":"^6.0.2","@types/node":"^25.5.2"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.7_1781966997474_0.8969743468019915","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@agent-smith/types","version":"0.0.8","license":"MIT","_id":"@agent-smith/types@0.0.8","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"783b2cac6d182aa92bbc51216af65ce017e94e7d","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.8.tgz","fileCount":32,"integrity":"sha512-47+vnJ2EMB5lBHCvwWXuvg6Nw+1OBkogxPiFx2XokVd2cyEL9fhmETqQHqfDcdrdmHPd3KMf8pFczurO2l5Bxg==","signatures":[{"sig":"MEQCIEud/Age4RT3QjWrG+/6p4jV0jYdu2WBOFDXzEOp1m5QAiAjBDA9Gdn5J+2AGvwxXuC3/lEhFWiEXnkFMmVkxnSgDQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128817},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"ffd5c9cf7c7b045fc3949fcdc1c84580f2b856cb","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.18.0","description":"Agent Smith Nodejs types","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.39","openai":"^6.46.0","restmix":"^0.6.1","typescript":"^7.0.2","@types/node":"^26.1.1"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.8_1783765067481_0.9276854929482599","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@agent-smith/types","version":"0.0.9","license":"MIT","_id":"@agent-smith/types@0.0.9","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"875b12e101e4c81b580b973588dbfb07a9f0b7ca","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.9.tgz","fileCount":32,"integrity":"sha512-Rc9f6g49S4i6ZVvy/MDxaKZyKBobUR7Aexj7tLM12/0DioFNQLfjXnWTgxxdlkvo+jcGl601ki0V+lVRhmw5LA==","signatures":[{"sig":"MEYCIQC1mldGa4SNWNpN4i1c+or9Jc0nCBuPXN0Oaucq5khFzgIhAKuMtqnbydsGa/rX5CGIxOV87yLj6aZGhqsKz6EZzWrX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128880},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"0e5e95bea1f51676b30f24ed7382fccc21e09f18","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.18.0","description":"Agent Smith Nodejs types","directories":{},"_nodeVersion":"24.11.0","dependencies":{"openai":"^6.49.0","vue-reactivity":"^1.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.40","restmix":"^0.6.1","typescript":"^7.0.2","@types/node":"^26.1.1"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.9_1785150808419_0.22786913028996514","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"@agent-smith/types","version":"0.0.10","license":"MIT","_id":"@agent-smith/types@0.0.10","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"homepage":"https://github.com/synw/agent-smith#readme","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"dist":{"shasum":"73c2b9680b5d13bd805a8ed2c03db42f3d09c3c9","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.10.tgz","fileCount":32,"integrity":"sha512-a7EWAVux0+ZOg6d11wA2ZbbnDCA+bQKwMOvFuxeng22I/NEFv5tyBINhriGEKiWLSlxtuZQ6E5sMoBlXOTthFw==","signatures":[{"sig":"MEUCIQD9FV8bvmLgUvRsSSz9dAbymv9pz/YjA6X9qD02gxnObAIgYC0JdLOnyGu3AwM3GEyQv7UVDCfXlExR4ti5an7Gv+A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128908},"main":"./dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"990a3f4ab8f9c1d265629e9c51fc55b13f95776b","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc"},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"repository":{"url":"git+https://github.com/synw/agent-smith.git","type":"git"},"_npmVersion":"11.18.0","description":"Agent Smith Nodejs types","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^6.49.0","restmix":"^0.6.1","typescript":"^7.0.2","@types/node":"^26.1.1","vue-reactivity":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/types_0.0.10_1787311775362_0.7665762565669614","host":"s3://npm-registry-packages-npm-production"}},"0.0.11":{"name":"@agent-smith/types","version":"0.0.11","description":"Agent Smith Nodejs types","repository":{"type":"git","url":"git+https://github.com/synw/agent-smith.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc"},"type":"module","main":"./dist/main.js","types":"./dist/main.d.ts","devDependencies":{"vue-reactivity":"^1.0.3","openai":"^6.49.0","@types/node":"^26.1.1","restmix":"^0.6.1","typescript":"^7.0.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"license":"MIT","gitHead":"37b044a877bc7d0c8eb066277b0f4db6533cd158","_id":"@agent-smith/types@0.0.11","bugs":{"url":"https://github.com/synw/agent-smith/issues"},"homepage":"https://github.com/synw/agent-smith#readme","_nodeVersion":"24.11.0","_npmVersion":"11.18.0","dist":{"integrity":"sha512-+EAYcyJP+rG95OQmujzaFX3aAUdOajH9LJXL6QFkK8dIBh2Aw+HPRV5FPKaiBErY8UnIigwSluKlCZ+5AxhgOg==","shasum":"73a15a1c4f31bd99caa43235f170fd326579b942","tarball":"https://registry.npmjs.org/@agent-smith/types/-/types-0.0.11.tgz","fileCount":32,"unpackedSize":128440,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD1X+xQV1r03g49GSEwGZdH7TMgAShbFrTaeUTna68SLwIhAJebVtBJkJ9uf+3f8zY9h5CfFOPibwTjZHjQSe/dKdaQ"}]},"_npmUser":{"name":"synw","email":"synwx@protonmail.com"},"directories":{},"maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/types_0.0.11_1788701078420_0.5319615334225241"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-22T10:38:19.003Z","modified":"2026-09-06T13:24:38.694Z","0.0.1":"2026-02-22T10:38:19.245Z","0.0.2":"2026-02-24T12:42:48.210Z","0.0.3":"2026-02-26T18:12:48.963Z","0.0.4":"2026-04-07T10:54:27.387Z","0.0.5":"2026-06-08T14:45:44.481Z","0.0.6":"2026-06-12T13:23:28.643Z","0.0.7":"2026-06-20T14:49:57.615Z","0.0.8":"2026-07-11T10:17:47.616Z","0.0.9":"2026-07-27T11:13:28.553Z","0.0.10":"2026-08-21T11:29:35.500Z","0.0.11":"2026-09-06T13:24:38.537Z"},"bugs":{"url":"https://github.com/synw/agent-smith/issues"},"license":"MIT","homepage":"https://github.com/synw/agent-smith#readme","repository":{"type":"git","url":"git+https://github.com/synw/agent-smith.git"},"description":"Agent Smith Nodejs types","maintainers":[{"name":"synw","email":"synwx@protonmail.com"}],"readme":"[![npm package](https://img.shields.io/npm/v/@agent-smith/types)](https://www.npmjs.com/package/@agent-smith/types)\n\n# @agent-smith/types\n\n**Shared TypeScript interfaces for the Agent Smith framework** — pure type definitions with zero runtime code. Part of the [Agent Smith toolkit](https://github.com/lynxai-team/agent-smith).\n\n## Features\n\n- 📦 **Leaf Package**: Zero dependencies, no runtime code — only `.d.ts` type definitions\n- 🧠 **Agent Types**: `AgentSpec`, `AgentParams`, `AgentSettings`, `AgentState` for agent configuration and lifecycle\n- 🔧 **Tool Abstraction**: `ToolSpec`, `ToolCallSpec`, `ToolTurn` — unified tool definitions callable interchangeably\n- ⚡ **Inference Types**: `InferenceParams`, `InferenceOptions`, `InferenceResult`, `LmProvider` interface for LLM backends\n- 💬 **History Management**: `HistoryTurn`, `UiHistoryTurn`, `ToolTurn` for conversation state\n- 🌐 **WebSocket Protocol**: `WsClientMsg`, `WsServerMsgType`, `StreamedMessage` for real-time communication\n- 🔁 **Callback Interfaces**: `InferenceCallbacks`, `AgentCallbacks`, `AllCallbacks` for event streaming\n- ⚙️ **Configuration Types**: `ConfigFile`, `InferenceBackend`, `Settings` for app configuration\n- 📊 **Performance Metrics**: `InferenceStats`, `PerformanceMetrics`, `PromptProcessingProgress`\n- 🔌 **Feature Discovery**: `FeatureSpec`, `Features`, `FeatureType` for agents, actions, workflows, skills\n\n## Documentation\n\n### For AI Agents\n- [Codebase Summary](.agents/documentation/codebase-summary.md) — Architecture, key files, and patterns for the Agent Smith libraries\n- [Get Started](https://raw.githubusercontent.com/lynxai-team/agent-smith/refs/heads/main/docsite/public/doc/libraries/types/1.get_started.md) — Overview and installation\n- [Interfaces](https://raw.githubusercontent.com/lynxai-team/agent-smith/refs/heads/main/docsite/public/doc/libraries/types/2.interfaces.md) — Complete API reference of all exported types\n\n### For Humans\n- [Get Started](https://lynxai-team.github.io/agent-smith/libraries/types/) — Overview and usage guide\n- [Interfaces](https://lynxai-team.github.io/agent-smith/libraries/types/interfaces) — Full interface reference with tables\n\n## Installation\n\nThis package is a dependency of all other Agent Smith packages. Install it directly:\n\n```bash\nnpm install @agent-smith/types\n```\n\nOr in a monorepo workspace:\n\n```json\n{\n  \"dependencies\": {\n    \"@agent-smith/types\": \"workspace:*\"\n  }\n}\n```\n\n## Quick Start\n\nImport types from the package root for type annotations and interfaces:\n\n```typescript\nimport type { AgentSpec, ToolSpec, InferenceParams, HistoryTurn } from \"@agent-smith/types\";\n\n// Define an agent specification\nconst agent: AgentSpec = {\n  name: \"assistant\",\n  prompt: \"You are a helpful assistant.\",\n  model: \"llama3\",\n  description: \"General purpose assistant\"\n};\n\n// Define a tool\nconst tool: ToolSpec = {\n  name: \"calculator\",\n  description: \"Performs arithmetic calculations\",\n  arguments: {\n    expression: {\n      description: \"The math expression to evaluate\",\n      type: \"string\",\n      required: true\n    }\n  },\n  type: \"action\",\n  parallelCalls: false,\n  execute: async (args) => {\n    return eval(args.expression);\n  }\n};\n\n// Use inference parameters\nconst params: InferenceParams = {\n  temperature: 0.7,\n  top_p: 0.95,\n  max_tokens: 2048\n};\n```\n\n## Usage\n\n### Agent Types\n\nDefine agent specifications with prompts, models, and tool bindings:\n\n```typescript\nimport type { AgentSpec, AgentSettings, AgentVariables } from \"@agent-smith/types\";\n\nconst agentWithVars: AgentSpec = {\n  name: \"researcher\",\n  prompt: \"You are a research assistant that searches the web.\",\n  model: \"qwen4b\",\n  description: \"Web research agent\",\n  inferParams: {\n    temperature: 0.4,\n    top_k: 20,\n    top_p: 0.95\n  },\n  variables: {\n    required: {\n      topic: {\n        type: \"string\",\n        description: \"The research topic\"\n      }\n    },\n    optional: {\n      depth: {\n        type: \"string\",\n        description: \"Research depth level\",\n        default: \"medium\"\n      }\n    }\n  },\n  toolsList: [\"websearch\", \"readfile\"]\n};\n```\n\n### Tool Types\n\nCreate unified tool specifications executable by the agent:\n\n```typescript\nimport type { ToolSpec, ToolCallSpec, ToolTurn } from \"@agent-smith/types\";\n\nconst fileTool: ToolSpec = {\n  name: \"readfile\",\n  description: \"Reads a file from the filesystem\",\n  arguments: {\n    path: {\n      description: \"File path to read\",\n      type: \"string\",\n      required: true\n    }\n  },\n  type: \"action\",\n  parallelCalls: false,\n  execute: async (args) => {\n    const fs = await import(\"fs/promises\");\n    return await fs.readFile(args.path, \"utf-8\");\n  }\n};\n\n// Tool call during inference\nconst toolCall: ToolCallSpec = {\n  id: \"call_abc123\",\n  name: \"readfile\",\n  arguments: { path: \"/workspace/data.txt\" }\n};\n\n// Tool turn with response\nconst toolTurn: ToolTurn = {\n  call: toolCall,\n  response: \"File contents here...\",\n  from: \"agent\",\n  type: \"action\"\n};\n```\n\n### Callback Interfaces\n\nHandle inference and agent events in real-time:\n\n```typescript\nimport type { InferenceCallbacks, AgentCallbacks, AllCallbacks } from \"@agent-smith/types\";\n\n// Inference callbacks for token streaming\nconst inferenceCbs: InferenceCallbacks = {\n  onToken: (token: string, from: string) => {\n    process.stdout.write(token);\n  },\n  onThinkingToken: (token: string, from: string) => {\n    console.log(`[thinking] ${token}`);\n  },\n  onError: (err: any, from: string) => {\n    console.error(`Error from ${from}:`, err.message);\n  },\n  onToolCallInProgress: (calls: ToolCallSpec[], from: string) => {\n    console.log(`Pending tool calls:`, calls.map(c => c.name));\n  }\n};\n\n// Agent callbacks for turn-level events\nconst agentCbs: AgentCallbacks = {\n  onTurnStart: (from: string) => {\n    console.log(\"New turn started\");\n  },\n  onToolCall: (tc: ToolCallSpec, type: string, from: string) => {\n    console.log(`Calling tool: ${tc.name}`);\n  },\n  onTurnEnd: (turn: HistoryTurn, from: string) => {\n    console.log(\"Turn complete\", turn.stats);\n  }\n};\n\n// Combined callbacks\nconst allCbs: AllCallbacks = { ...inferenceCbs, ...agentCbs };\n```\n\n### WebSocket Protocol Types\n\nWork with real-time server communication:\n\n```typescript\nimport type { WsClientMsg, WsServerMsgType, StreamedMessage } from \"@agent-smith/types\";\n\n// Client message to execute an agent\nconst clientMsg: WsClientMsg = {\n  command: \"execute\",\n  type: \"command\",\n  feature: \"agent\",\n  payload: { name: \"assistant\", prompt: \"Hello\" },\n  options: {\n    model: \"llama3\",\n    params: { temperature: 0.7 }\n  }\n};\n\n// Server message types you might receive\ntype ServerMessageType = WsServerMsgType;\n// 'token' | 'thinkingtoken' | 'turnstart' | 'turnend' | \n// 'assistant' | 'thinkingstart' | 'toolcall' | 'error' | ...\n\n// Streamed message for rendering\nconst streamed: StreamedMessage = {\n  content: \"Hello, how can I help you?\",\n  type: \"token\",\n  num: 1\n};\n```\n\n### Configuration Types\n\nManage application configuration:\n\n```typescript\nimport type { ConfigFile, InferenceBackend } from \"@agent-smith/types\";\n\nconst config: ConfigFile = {\n  datadir: \"~/.agent-smith\",\n  features: [\"agents\", \"actions\", \"workflows\"],\n  backends: {\n    default: \"ollama\",\n    ollama: {\n      type: \"llamacpp\",\n      url: \"http://localhost:11434/v1\"\n    },\n    openai: {\n      type: \"openai\",\n      url: \"https://api.openai.com/v1\",\n      apiKey: \"sk-...\"\n    }\n  },\n  agents: {\n    assistant: {\n      model: \"qwen4b\",\n      temperature: 0.7\n    }\n  },\n  workspaces: {\n    project: \"/workspace/my-project\"\n  }\n};\n```\n\n## Complete Example\n\nFull working example combining agent definition, tool execution, and callbacks:\n\n```typescript\nimport type {\n  AgentSpec,\n  ToolSpec,\n  InferenceParams,\n  AllCallbacks,\n  HistoryTurn\n} from \"@agent-smith/types\";\n\nasync function runAgent() {\n  // Define the agent\n  const agent: AgentSpec = {\n    name: \"calculator\",\n    prompt: \"You are a precise calculator. Always show your work.\",\n    model: \"llama3\",\n    description: \"Math assistant with tool calling\"\n  };\n\n  // Define a tool\n  const calcTool: ToolSpec = {\n    name: \"calculate\",\n    description: \"Evaluate a math expression\",\n    arguments: {\n      expression: {\n        description: \"Math expression to evaluate\",\n        type: \"string\",\n        required: true\n      }\n    },\n    type: \"action\",\n    parallelCalls: false,\n    execute: async (args: { expression: string }) => {\n      return eval(args.expression);\n    }\n  };\n\n  // Set up callbacks\n  const callbacks: AllCallbacks = {\n    onToken: (token: string) => process.stdout.write(token),\n    onError: (err: any) => console.error(\"Error:\", err.message),\n    onToolCall: (tc) => console.log(`Using tool: ${tc.name}`),\n    onTurnEnd: (turn: HistoryTurn) => {\n      console.log(\"\\n[Stats]\", turn.stats);\n    }\n  };\n\n  // Inference parameters\n  const params: InferenceParams = {\n    temperature: 0.3,\n    max_tokens: 1024,\n    top_p: 0.95\n  };\n\n  console.log(\"Agent ready:\", agent.name);\n  console.log(\"Tools available:\", calcTool.name);\n  console.log(\"Callbacks configured:\", Object.keys(callbacks).length);\n}\n\nrunAgent();\n```\n\n## API Reference\n\n### Exported Types Summary\n\n| Category | Key Types |\n|----------|-----------|\n| **Agent** | `AgentSpec`, `AgentParams`, `AgentSettings`, `AgentState`, `AgentVariables`, `TemplateSpec` |\n| **Tools** | `ToolSpec`, `ToolDefSpec`, `ToolCallSpec`, `ToolTurn` |\n| **Inference** | `InferenceParams`, `InferenceOptions`, `InferenceResult`, `LmProvider`, `LmProviderParams` |\n| **Callbacks** | `InferenceCallbacks`, `AgentCallbacks`, `AllCallbacks` |\n| **History** | `HistoryTurn`, `UiHistoryTurn`, `ToolTurn`, `ImgData` |\n| **Models** | `ModelInfo`, `ModelStatus`, `ModelData`, `ModelApiResponse` |\n| **WebSocket** | `WsClientMsg`, `WsServerMsgType`, `StreamedMessage`, `ServerParams` |\n| **Config** | `ConfigFile`, `InferenceBackend`, `Settings` |\n| **Features** | `FeatureSpec`, `Features`, `FeatureType`, `WorkflowStep` |\n| **Metrics** | `InferenceStats`, `PerformanceMetrics`, `PromptProcessingProgress` |\n| **Utilities** | `VerbosityOptions`, `Workspace`, `SamplingPreset` |\n\n### Key Interfaces\n\n#### AgentSpec\nAgent definition structure representing a YAML agent specification.\n\n```typescript\ninterface AgentSpec {\n    name: string;\n    prompt: string;\n    description: string;\n    model: string;\n    backend?: string;\n    template?: TemplateSpec;\n    inferParams?: InferenceParams;\n    models?: Array<string>;\n    shots?: Array<HistoryTurn>;\n    variables?: AgentVariables;\n    tools?: Array<ToolSpec>;\n    toolsList?: Array<string>;\n    mcp?: McpServerSpec;\n    skills?: Array<string>;\n}\n```\n\n#### ToolSpec\nUnified tool specification with an executable function.\n\n```typescript\ninterface ToolSpec extends ToolDefSpec {\n    type: string;\n    parallelCalls: boolean;\n    execute: <O = any>(\n        args: { [key: string]: any } & { toolOptions?: AgentInferenceOptions } | undefined\n    ) => Promise<O>;\n}\n```\n\n#### LmProvider\nLanguage model provider interface for inference backends.\n\n```typescript\ninterface LmProvider extends InferenceCallbacks {\n    name: string;\n    serverUrl: string;\n    model: string;\n    loadModel: (name: string) => Promise<void>;\n    infer: (prompt: string, options?: InferenceOptions) => Promise<InferenceResult>;\n    abort: () => Promise<void>;\n}\n```\n\n#### InferenceCallbacks\nCallback interface for inference events.\n\n```typescript\ninterface InferenceCallbacks {\n    onToken?: (t: string, from: string) => void;\n    onThinkingToken?: (t: string, from: string) => void;\n    onError?: (err: any, from: string) => void;\n    onToolCallInProgress?: (tc: Array<ToolCallSpec>, from: string) => void;\n}\n```\n\n## Important Notes\n\n- 🌐 **Browser & Node.js**: This is a types-only package that works in both browser and Node.js environments\n- 📦 **No Runtime Code**: Contains only TypeScript type definitions (`.d.ts`) — zero JavaScript runtime\n- 🔗 **Transitive Dependency**: All Agent Smith packages depend on this package for shared interfaces\n- 📝 **Type Safety**: Use `import type` for type-only imports to avoid runtime overhead\n\n## Related Packages\n\n- [`@agent-smith/agent`](https://lynxai-team.github.io/agent-smith/libraries/agent/) — Agent class with inference loop\n- [`@agent-smith/core`](https://lynxai-team.github.io/agent-smith/libraries/core/) — Runtime engine and feature discovery\n- [`@agent-smith/cli`](https://lynxai-team.github.io/agent-smith/terminal_client/) — Terminal REPL client\n- [`@agent-smith/wscli`](https://lynxai-team.github.io/agent-smith/libraries/wscli/) — WebSocket client\n\n## License\n\nMIT\n","readmeFilename":"README.md"}