{"_id":"@-anarchy-/chat","_rev":"6-1f3569ae9f02d2e2e0dac9e5ca608aea","name":"@-anarchy-/chat","dist-tags":{"latest":"0.1.4"},"versions":{"0.0.1":{"name":"@-anarchy-/chat","version":"0.0.1","description":"Connect to, and interact with, chat.dev, an Anarchy product","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/esm/index.d.ts","scripts":{"test":"npm run test","clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc --module es2015 --outDir ./lib/esm","build:cjs":"tsc --module commonjs --outDir ./lib/cjs","prepack":"npm run build","publish-to-npm":"npm run prepack && npm version patch && sleep 2 && npm publish"},"repository":{"type":"git","url":"git+https://github.com/extensional/chat.dev-consumer.git"},"keywords":["chat.dev","chat","anarchy","llm","npl","openai"],"author":{"name":"Nico Kupfer @ Anarchy"},"license":"MIT","bugs":{"url":"https://github.com/extensional/chat.dev-consumer/issues"},"homepage":"https://github.com/extensional/chat.dev-consumer#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","eslint":"^8.35.0","eslint-config-standard-with-typescript":"^31.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.6.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-react":"^7.32.2","eslint-plugin-unused-imports":"^2.0.0","typescript":"^4.9.5"},"dependencies":{"axios":"^1.3.4","chat.dev-config":"^1.0.29"},"exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js"}},"gitHead":"1616664d73529462679276ba8850aff58cf8ba41","_id":"@-anarchy-/chat@0.0.1","_nodeVersion":"16.18.1","_npmVersion":"9.4.0","dist":{"integrity":"sha512-HjpQYwdvJ7GLSVe1ukRpcj7rfMTASe5uGpNCMN6IOPIl+YJxeMtu+7UzofGYD4jpw7r3E6zSuKoW/EE56NP0uA==","shasum":"e35b9b708bb3d3fde9324a8994c3cd0ad7642734","tarball":"https://registry.npmjs.org/@-anarchy-/chat/-/chat-0.0.1.tgz","fileCount":27,"unpackedSize":43310,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCh38mYCK9b9+1gwiRJ7MuYaBf5eTqtlEnxlCYq/7E7JAIgThkldNBcbo80jKRZdDFxkExOrS1vAJQlh1AzDMVhHJk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB35vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6ng/+MeMcZpcLK5JSjp9QujJRsT1vUK+kTZ1r3KSfbV85h27HQpfb\r\nUMXzA8+BDO/IAr2Q2jdRV8cVlhp7xLq9OPT9D0OA8LT81zYt5HWxcAT8nMG1\r\nXgMGNpwLewxlzVfPDGLCGiG28QxnhcXiC2ZOFRb8mxpL/3bhFByVESrZoKNu\r\n7cq74mPsQ9E/Afy1JmVVa3RriQK7h54pVz3FASuopcmgwb6/4T22ts94QTYb\r\nZ9l5dvj+JMt+uasydT0u6CuKBycGgTnG1rZCQH+2XFfy+HKiavCKOdPo140X\r\ngYTiHl85dhaKs/gt7fvq96FQ2hPLxXzY6+DRDghD3PsyzKL0rhCW/DG+D4ky\r\nINuj98+aPd1USbCMXZh9IMODu8Kxhyft+YWEK9RBEHwwXMG5bfEEvaUaiZ3s\r\nh0b4hLO8ygN6QpFn6rK3oxGmm+raIh+EpCyhfpA1wmMTrQPgfWEbG8hm1MO9\r\n9znFJzqH29kMukziaTpSYPNmdeZsQhdwphEvlBh02M1KGMcBoQzs3S09gk6+\r\n49nO1uV+gpcLx+B0X6+GaMR6I+wl8fXmGjePMXfYYslm5nVChWj/9N3hhX9w\r\nWEuwWGWvK5XKufPYkMJO43ZVGX6S5TmUzRyO9ZyEsotWzwBAFhaCXd/w+/lX\r\nnN8vW4BlfHhqCM4q0ZJmJBx4ziCYYnsg1Q0=\r\n=VSAc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anarchy-ai-org","email":"nico@anarchy.ai"},"directories":{},"maintainers":[{"name":"anarchy-ai-org","email":"nico@anarchy.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chat_0.0.1_1678212719112_0.9233767123787644"},"_hasShrinkwrap":false},"0.0.2":{"name":"@-anarchy-/chat","version":"0.0.2","description":"Connect to, and interact with, chat.dev, an Anarchy product","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/esm/index.d.ts","scripts":{"test":"npm run test","clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc --module es2015 --outDir ./lib/esm","build:cjs":"tsc --module commonjs --outDir ./lib/cjs","prepack":"npm run build","publish-to-npm":"npm run prepack && npm version patch && sleep 2 && npm publish"},"repository":{"type":"git","url":"git+https://github.com/extensional/chat.dev-consumer.git"},"keywords":["chat.dev","chat","anarchy","llm","npl","openai"],"author":{"name":"Nico Kupfer @ Anarchy"},"license":"MIT","bugs":{"url":"https://github.com/extensional/chat.dev-consumer/issues"},"homepage":"https://github.com/extensional/chat.dev-consumer#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","eslint":"^8.35.0","eslint-config-standard-with-typescript":"^31.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.6.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-react":"^7.32.2","eslint-plugin-unused-imports":"^2.0.0","typescript":"^4.9.5"},"dependencies":{"@-anarchy-/config":"^1.0.0","axios":"^1.3.4"},"exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js"}},"gitHead":"59c9fad09fd3adc018200f3162612e21c2cf993f","_id":"@-anarchy-/chat@0.0.2","_nodeVersion":"16.18.1","_npmVersion":"9.4.0","dist":{"integrity":"sha512-XVkoolwbaV8z5Nf6RQ5LFSyXyfjZWtGUL7Ix3TZRIBasEm7YcrYhX5hUHnTLxz7RjpkpG54l6l3LgYgjcT9VbQ==","shasum":"e6e2b826b4ca6b46d6db2ac880999b89e8f73651","tarball":"https://registry.npmjs.org/@-anarchy-/chat/-/chat-0.0.2.tgz","fileCount":27,"unpackedSize":43056,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfXLIQ9fNeNA0oUqw2GA9wRXigZWh6yI/H5uOTqUFpdAIhAJ3ho7xGaAxr4m/BnAqxiwwtkoCsqYWRYfV8ERxA/wuN"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB5qsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodeA/+NMfTgk7kJeJ6xurfnV7/STXCwLmXB+4kD6CfDWYVAi8iHJSK\r\ngLJ+w1+4K+E3TdPzXOiGk5Jkfyl80nzSOBAMZ62oDsM/tqg1LyqQQqTCNRzE\r\nougNbJ6vr+KV3o983vZtGU2HATLkLdqKBcbmahUDTmX5QVcdNNhqAHm+54/J\r\n3L0mcJcVKW5yngQlimF+BBVXKIMyWR4LD97QYph63Qix8r4nrfACCI5pT5RU\r\ncq6LjSWwsRPiZtFbS2vq4rna9fjbdDDndm6Urv34uDhc4W8/M9kXCRbYjYrP\r\nPrZHEtc6e4qtL65w80nQK7Z4ziKMIgC3bs1gzAKL/ZBU2gT/WG3Ofy/E2Rxv\r\n+gFuD7Ad2t0uDSd6Rju6NdwgGXMkZsrPgH03HE82K7nz3NDgfF8fLs9O0Kv8\r\n7biEAGGXCJuYnroI4Bg9lWPKWVE/y64LIiyH7p6xuguqddY+SdzuMffc3fa2\r\nJRPXny7Ge3YgE+RC6V78Tz06ZiJh9jZWWSVQlbSnlcvuoM2wfM+mkfGuTUMM\r\n8QnG13hEp4GOQCht3mVRDAboc3yLkkP48ipd+U4MsM9U8ZoJBTEEzUudxzws\r\nT4zxDqTbJc6CPxCnnDoiWJr49c3kh0mW1iUZ/oyy38t9ngjJyWrn6bZ6pNEM\r\nyxhvr3QyMCWXxpXaurTDJM2up2MDXViMwcg=\r\n=fEYa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anarchy-ai-org","email":"nico@anarchy.ai"},"directories":{},"maintainers":[{"name":"anarchy-ai-org","email":"nico@anarchy.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chat_0.0.2_1678219948589_0.13294921399002146"},"_hasShrinkwrap":false},"0.1.0":{"name":"@-anarchy-/chat","version":"0.1.0","description":"Connect to, and interact with, chat.dev, an Anarchy product","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/esm/index.d.ts","scripts":{"test":"npm run test","clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc --module es2015 --outDir ./lib/esm","build:cjs":"tsc --module commonjs --outDir ./lib/cjs","prepack":"npm run build","publish-to-npm":"npm run prepack && npm version patch && sleep 2 && npm publish"},"repository":{"type":"git","url":"git+https://github.com/extensional/chat.dev-consumer.git"},"keywords":["chat.dev","chat","anarchy","llm","npl","openai"],"author":{"name":"Nico Kupfer @ Anarchy"},"license":"MIT","bugs":{"url":"https://github.com/extensional/chat.dev-consumer/issues"},"homepage":"https://github.com/extensional/chat.dev-consumer#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","eslint":"^8.35.0","eslint-config-standard-with-typescript":"^31.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.6.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-react":"^7.32.2","eslint-plugin-unused-imports":"^2.0.0","typescript":"^4.9.5"},"dependencies":{"@-anarchy-/config":"^1.0.0","axios":"^1.3.4"},"exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js"}},"gitHead":"59c9fad09fd3adc018200f3162612e21c2cf993f","_id":"@-anarchy-/chat@0.1.0","_nodeVersion":"16.18.1","_npmVersion":"9.4.0","dist":{"integrity":"sha512-8ui141MWVe/EtkQ8c/mtalOwsNGyKc1cDWBQp6wJgv8q5dwZAZDfXUe+SQXsw3dHPLgrnU5XeYHgsgqD4J2M4Q==","shasum":"286871e2ee9902b0500f0460f99dc69fa226c413","tarball":"https://registry.npmjs.org/@-anarchy-/chat/-/chat-0.1.0.tgz","fileCount":27,"unpackedSize":43093,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIED4uWa6QdZUdcN8mOFrfyp8fvG4RwvBDg0glcf+oNYjAiBxy67Ea8nPbfeZF+KqQ/zLPbDNBi3KKr6yF3Qa8rMqbA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB5r3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIDhAAmkfCo/Lk89VHEiKphXB8NOF0lZgpbPkZwaXe6eeNLuMMdVAF\r\n34X9JYm2d1pCl/yfCBCDql6xcNuPfAzZYRTmgcN+pOPKUDwpADq7pKhYOguQ\r\nTuUveaDUUkOGqFXlJWq8L4N9X6fRfVoX4jkVa5l5UP4Zkr3+yZ1jyflIjPLY\r\n4C+m4aKIkax7n5J4QpeS2zY9gVgUvw0koPWkMF0FKnNrqqxvzR77BsUUgrRb\r\nsVrPeDDM82jgned0xgDDMcszEANqAmzCbOpI84rNFtfG/ipdSmzFK0cerNdS\r\nMJQO37EcPgWqz1OsROgUkVX8ft5b9l3P9FpocQSv1OfQOfTCFCeUjI//jD+r\r\n09L5x4MVe67BaZYO2f/MuNbX5YxPm6140cLcwLDEXDiff/07QLLhy/gNCMKt\r\nI4z8Ah7IIKL6jScixojsNaO/x2EQt4qDr41D4c2NXz4zLfDAGTuN89izzd5w\r\neN/VfVTJEKGwit03l4+8nT+6kEuOnk3ynLYKPMOWpanTPZKnJD0Yal/aHsCs\r\nkoP0VkumnAQhYPf7OT2+pGCq++5aOcVfo1soYdECZkA7VuUKt9jFP/cGoH3r\r\n0L4SIZH7UmnoNgDV2V7tAbpsH4Q9kcdK1sU4HN4BZ6WoJ2UwKnkdaWWxbYnz\r\ntaaDjrarAsPzyWv0FKlfUE4sThS13AH3M/k=\r\n=yCcb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anarchy-ai-org","email":"nico@anarchy.ai"},"directories":{},"maintainers":[{"name":"anarchy-ai-org","email":"nico@anarchy.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chat_0.1.0_1678220023093_0.4718577777993518"},"_hasShrinkwrap":false},"0.1.1":{"name":"@-anarchy-/chat","version":"0.1.1","description":"Connect to, and interact with, chat.dev, an Anarchy product","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/esm/index.d.ts","scripts":{"test":"npm run test","clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc --module es2015 --outDir ./lib/esm","build:cjs":"tsc --module commonjs --outDir ./lib/cjs","prepack":"npm run build","publish-to-npm":"npm run prepack && npm version patch && sleep 2 && npm publish"},"repository":{"type":"git","url":"git+https://github.com/extensional/chat.dev-consumer.git"},"keywords":["chat.dev","chat","anarchy","llm","npl","openai"],"author":{"name":"Nico Kupfer @ Anarchy"},"license":"MIT","bugs":{"url":"https://github.com/extensional/chat.dev-consumer/issues"},"homepage":"https://github.com/extensional/chat.dev-consumer#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","eslint":"^8.35.0","eslint-config-standard-with-typescript":"^31.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.6.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-react":"^7.32.2","eslint-plugin-unused-imports":"^2.0.0","typescript":"^4.9.5"},"dependencies":{"@-anarchy-/config":"^1.0.0"},"exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js"}},"gitHead":"5c08cb8ea29bae2789a437d312e78e3d991362f3","_id":"@-anarchy-/chat@0.1.1","_nodeVersion":"16.18.1","_npmVersion":"9.4.0","dist":{"integrity":"sha512-ubOaZKEUspemHeGlYtA33+AyByvkhknC/EZeRl1E+lY4JTi1h93mkQr2SiprxdD6jjXvhNoIbbc95hvH9yqJ+A==","shasum":"25cfa46cb5d40a6d9eb288e19ad45306cc691676","tarball":"https://registry.npmjs.org/@-anarchy-/chat/-/chat-0.1.1.tgz","fileCount":27,"unpackedSize":42211,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4T6OjMWSbYL940M4QOrLvfx/2fT+yfmYxGuvKGoxE9QIhAODbqfa8o899s37wnX6s/aJ3vRZS2e88BtQ7VBoeMPiK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB55gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqudRAAhy02nO20TZsEF+QCYn73NbZM+ytnfE/8SZ3GLuBmiBu3lIRK\r\nmdHSCtl+izWlGbbSvNoDs2LWZ+2nty/9W0NGbuddOdTnFRkQJv3fS+VxVfHx\r\nsom6f/b5we4LHch05gz0Zex16IWMhJGXMz3ypKeXxcb9d57YFeDKHO7L37LP\r\nWJuBnhtzM/hoYi5JCiBOn5+qmih8iE4CKarxxzyDOIVVqhSaxKhxdFRJcI85\r\nLmyVll6bVeks7BZSrXIWONqO33YEEMsHL6BBV9opUwuM0tRMrsFJ0zjmPz94\r\niyRlhxA6TPyrZ+alI293PDjoKXr8M0igrDL0wFcSGc4zEGH4mRrtTg4Nev9t\r\n1krLlJT+3GDlCZyiPKxhuV6/oZIVAC4qaO8xxhoFCMJZjDCbaBrTfjv5rO9J\r\n5hpLLfxBw7V7tG9miXrw+FPRuPsJH0kiWYZpfcE0C8mUE1RKm2r0vcWV1NOZ\r\nJe+fMPEDKxes+K4K4q6gIrJDfg9R22rfXgFYjsVV6u8vfNhFcYYl+g/pksCk\r\nUYPi0mOcpTRvBj7O5JAV4TJAqM3XRDVwSQFFv4LVMVTwJ8c5vA97ht3BCBwC\r\n/vMHSKdVit+wCJ+Cg3i2hqbQ9Kn5CdgTs/zyE2jVZEU4xToWbipzujQWHyZO\r\ni3mJpuGhImelSBY5FY/U9urqB7P0Jt2FqIg=\r\n=v6ri\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anarchy-ai-org","email":"nico@anarchy.ai"},"directories":{},"maintainers":[{"name":"anarchy-ai-org","email":"nico@anarchy.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chat_0.1.1_1678220895894_0.4391518185121921"},"_hasShrinkwrap":false},"0.1.2":{"name":"@-anarchy-/chat","version":"0.1.2","description":"Connect to, and interact with, chat.dev, an Anarchy product","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/esm/index.d.ts","scripts":{"test":"npm run test","clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc --module es2015 --outDir ./lib/esm","build:cjs":"tsc --module commonjs --outDir ./lib/cjs","prepack":"npm run build","publish-to-npm":"npm run prepack && npm version patch && sleep 2 && npm publish"},"repository":{"type":"git","url":"git+https://github.com/extensional/chat.dev-consumer.git"},"keywords":["chat.dev","chat","anarchy","llm","npl","openai"],"author":{"name":"Nico Kupfer @ Anarchy"},"license":"MIT","bugs":{"url":"https://github.com/extensional/chat.dev-consumer/issues"},"homepage":"https://github.com/extensional/chat.dev-consumer#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","eslint":"^8.35.0","eslint-config-standard-with-typescript":"^31.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.6.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-react":"^7.32.2","eslint-plugin-unused-imports":"^2.0.0","typescript":"^4.9.5"},"dependencies":{"@-anarchy-/config":"^1.0.0","axios":"^1.3.4"},"exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js"}},"gitHead":"5c08cb8ea29bae2789a437d312e78e3d991362f3","_id":"@-anarchy-/chat@0.1.2","_nodeVersion":"16.18.1","_npmVersion":"9.4.0","dist":{"integrity":"sha512-D7GoM6NmkyPN4+ZWWDGwtx2IbpD24zdJOeCOwZ0i9+DiXft/OGVj0UCSSB+3PCrroUl+mA/F/x/H5Cu3w2nClQ==","shasum":"4d8b26ece10d5c0b55358cc011ff521d56adc703","tarball":"https://registry.npmjs.org/@-anarchy-/chat/-/chat-0.1.2.tgz","fileCount":27,"unpackedSize":43093,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtON4+/+pSnYIrclUNDDviSs3+T8hX1NZIzf98OSJSrAiBVQCdkloaH/n+byEiNb8ejwUMyKzXZzfH4OHA82u39iQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB59wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrldg//TVos+BGkiNk+vzWJB4lm+slmTrzB+kgYTIdA1fE/o8kfC165\r\nXtdEFhtXUy6RocHhBJ323mUalL2Izg0ZzBDRYEyu5MZu+8D1mjmNkn92JmmH\r\n86g03/+pE/zR1CZ9u2wkH9n4nEQrr7FvvnW2gB2HrwPYOtBiAP3nquORF1UN\r\nx8Jc8KBoMy3n2K9TQz3nq1b1Yxm3fvIJl1CyvYqueJPj/Oz2+4D+piOHZdmc\r\nEIwlcu8SRK8nusrPC1qGrwWwn29ws2dmRCO160qcWa+WvGAI9iSrqDixHmgc\r\nHs/3KgWnQxo/9CVSwsKEG0kybNhtvCstb3BhRSqzPc6garTcySrFfkUWwm3e\r\nchW3VnaQu3JryK0gDoJfNGKLePtlYnSjTcPhJUVqTeQqBLd0ZglsO5U8Dkhn\r\nbVHUovqnAY77oHIT8iAYeREm6/5chtEYRiKZ0aGat3eEKZbEY6o4kHLtwQhB\r\nvNocHXEO7nOeX4eyLTUSWyjlnA9GovZi3NEd3RLD7F6q1eQ1qcS2yrFG0Aln\r\nNL/F9uadSwatdINNDjG7IXRE1lnRu3rBr4noXRm2qmd/LF4tG1GvmKuA9dJf\r\n7/tuHV4/RXsUb5+OT+mIolK7yUzAxr9BDWnRLdhdj4waB++OBKwjD0p/wc98\r\n1B7vsSnxBrqSGc1xXC4QnZYZU5lbwqOKeDU=\r\n=jVrY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anarchy-ai-org","email":"nico@anarchy.ai"},"directories":{},"maintainers":[{"name":"anarchy-ai-org","email":"nico@anarchy.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chat_0.1.2_1678221167984_0.7964858044521894"},"_hasShrinkwrap":false},"0.1.3":{"name":"@-anarchy-/chat","version":"0.1.3","description":"Connect to, and interact with, chat.dev, an Anarchy product","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/esm/index.d.ts","scripts":{"test":"npm run test","clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc --module es2015 --outDir ./lib/esm","build:cjs":"tsc --module commonjs --outDir ./lib/cjs","prepack":"npm run build","publish-to-npm":"npm run prepack && npm version patch && sleep 2 && npm publish"},"repository":{"type":"git","url":"git+https://github.com/extensional/chat.dev-consumer.git"},"keywords":["chat.dev","chat","anarchy","llm","npl","openai"],"author":{"name":"Nico Kupfer @ Anarchy"},"license":"MIT","bugs":{"url":"https://github.com/extensional/chat.dev-consumer/issues"},"homepage":"https://github.com/extensional/chat.dev-consumer#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","eslint":"^8.35.0","eslint-config-standard-with-typescript":"^31.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.6.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-react":"^7.32.2","eslint-plugin-unused-imports":"^2.0.0","typescript":"^4.9.5"},"dependencies":{"@-anarchy-/config":"^1.0.14","axios":"^1.3.4"},"exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js"}},"gitHead":"e81fd565fe93263cb3a47588e1f017932e73916f","_id":"@-anarchy-/chat@0.1.3","_nodeVersion":"16.18.1","_npmVersion":"9.4.0","dist":{"integrity":"sha512-n8vLFESCNORs4liEqrhvyMJ9EuAxk6+34Y00uisBTYhghCICw3CBmkP1jAscSFgxv5cX9BTGQHDBeaD3sr3rVg==","shasum":"a3dfe3b8aa3838385ffed8dfaf6ac73dc7e070b9","tarball":"https://registry.npmjs.org/@-anarchy-/chat/-/chat-0.1.3.tgz","fileCount":27,"unpackedSize":43086,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnZMX9os4Ip0JpbF8odRrO3xcJtfhPugpcs/OmM0Y+HAiEA1qQWyQTfxLtUeUBwxHNo/BwpNYPXNPJYz924Cjxupgs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD7ToACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXiA/7BFIkZIwZwsKE2KcjxEKWA4Bvc/4ItXSFSxn5jMedOhJ4+ktL\r\nTIJuJisJmTddbpsvWSz3zeqp8/jndduQrbfAIcUKyKdUGlJ8fIQQr1j9+If2\r\nkfpSM3oYtgiMW/d90Jxz8+IZeKogbg8mHaEZQs9eFTNG8Sr4tLyJj9Zudx+n\r\nJeYGJ1+DBXjFnbLlZX8mrUUWaBTNB9Jy31GGQ/J/NhYz/OBmvodjp9hM6YGd\r\nXLbiclFs0njmkGgYQV9+JgHRERj5hPJ8NUyDLLVUFja2MiWhay842MY6q60y\r\nwUiatSwXRuytu5qboCEWTqRXctaqksVzrJvUQsapwUxQIiFg3OEvmcksOf52\r\nVdyP6adC02iKop0DAZwTyLKVzUifMphBiVhegAW+Ubld58Cwy71DjGlwMUWk\r\nSc46KMOPKHj5iwVe5MOHymPWdQOcos972w9upRtnN1YUOrh11jB58T5QjhxD\r\na17d12FPSBU+QUCB7iKH8hgpl+46u9JcW+dPhsQqMKKObQ9rBavZlGPVyPoQ\r\ncvwuT+tUrkw2G2gSTZ1H0EZEvXO6pxY8PAg5O+rvwuOepoPhzVWgpx4Gt1t9\r\ngw5H4/bSvneoasducfUu57PNij7oUoKAAumXB4d6m+ox5Ul4ud1jsvxtcztw\r\nOcIVChZKGt3nI9wPi6loJkKaRnSn637F090=\r\n=nEm5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anarchy-ai-org","email":"nico@anarchy.ai"},"directories":{},"maintainers":[{"name":"anarchy-ai-org","email":"nico@anarchy.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chat_0.1.3_1678750952756_0.14336619558933794"},"_hasShrinkwrap":false},"0.1.4":{"name":"@-anarchy-/chat","version":"0.1.4","description":"Connect to, and interact with, chat.dev, an Anarchy product","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/esm/index.d.ts","scripts":{"test":"npm run test","clean":"rm -rf ./lib","build":"npm run clean && npm run build:esm && npm run build:cjs","build:esm":"tsc --module es2015 --outDir ./lib/esm","build:cjs":"tsc --module commonjs --outDir ./lib/cjs","prepack":"npm run build","publish-to-npm":"npm run prepack && npm version patch && sleep 2 && npm publish"},"repository":{"type":"git","url":"git+https://github.com/extensional/chat.dev-consumer.git"},"keywords":["chat.dev","chat","anarchy","llm","npl","openai"],"author":{"name":"Nico Kupfer @ Anarchy"},"license":"MIT","bugs":{"url":"https://github.com/extensional/chat.dev-consumer/issues"},"homepage":"https://github.com/extensional/chat.dev-consumer#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","eslint":"^8.35.0","eslint-config-standard-with-typescript":"^31.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.6.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-react":"^7.32.2","eslint-plugin-unused-imports":"^2.0.0","typescript":"^4.9.5"},"dependencies":{"@-anarchy-/config":"^1.0.14","axios":"^1.3.4"},"exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js"}},"gitHead":"fd28cab61b8a56a06a92bf8b3c4ddcb08b55d10d","_id":"@-anarchy-/chat@0.1.4","_nodeVersion":"16.18.1","_npmVersion":"9.4.0","dist":{"integrity":"sha512-/lMO3C9yT80D8KbkJrZDVdbl/G+aYIwDWxxKktTIsW76+qkTN8UUgS56r7GLDfi48FwFCm0GQKVA0IiZsiRS4g==","shasum":"5e5c47d13a604bbbcc17c035254cc304e08b065d","tarball":"https://registry.npmjs.org/@-anarchy-/chat/-/chat-0.1.4.tgz","fileCount":27,"unpackedSize":42931,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6GornJjVCENCgEBI0FcmZeAbSr7pSfoIGxhcCtkfwrAiEArMvcwkO/eY7rWd8y61aqNg3t1YP1SqH5DlA8fu+1mZA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkE7VCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAnw/9ETDKyULAVeIRsRkCxvPGnpT6v06R0ND7n7koGLcxrNva1fUN\r\n6ERqa/7Ei355AKBDs5cyZXCV4e0WHwSgeOVTvNVA5NVitk/inpZ103Z2IPmd\r\nEBYzDT/orpq5XbOv0ez6d5NKn+iR650AceV1WD0hWg+jUMlkqUoeRUJyZfte\r\nUQ1J0+ZTUcyWkpgi3X658A11N6EItUwqT31P63Whh9kQE2Dhrmb8hjk0t5pT\r\nM4lxVIDhrOTru2R4zYJSKDI1tyXXQCwJA+gDCqZ+vv9bCItLxhQFleoodqyy\r\nRUm7M+yAm/Z3VKfrqXlzyThF8GVPiMz+fs3ZuCZP8hDJpYjeD2hwJ8B9hcM1\r\nOQdHkLaQpFEq18poc0E/56gZCT3rbHohDvWklsDdlo8YCztQnOevWjf9P9lo\r\nHXi5qNf459Q+ygUezYyQGEOQTAePq+vLm1DsKWAxoULjch3kc5/0HsB2Ygm1\r\nSS9eYZCKHBvqoATAaUO1r5OSttRuIsTFQ2a5m5pAUNhHRMHgEsPk3jA9SC3A\r\n8f8F+0efuDgqI4FXONzWEo/oBNLR+r6RgtOy9Scf9SmZf5n7ULvwYySSOeED\r\nzzhYUbc5k1cnnLPCFxsZ94OO6dCo3Hf3cxda1t72y79KyaUlTjieCcwoW7A0\r\nE+bUiU4r5eVrh8LLTp0eG/SET3N17quq0Xs=\r\n=25uF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anarchy-ai-org","email":"nico@anarchy.ai"},"directories":{},"maintainers":[{"name":"anarchy-ai-org","email":"nico@anarchy.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chat_0.1.4_1679013186616_0.08895661381243469"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-07T18:11:59.031Z","0.0.1":"2023-03-07T18:11:59.273Z","modified":"2023-03-17T00:33:07.033Z","0.0.2":"2023-03-07T20:12:28.754Z","0.1.0":"2023-03-07T20:13:43.303Z","0.1.1":"2023-03-07T20:28:16.138Z","0.1.2":"2023-03-07T20:32:48.150Z","0.1.3":"2023-03-13T23:42:32.910Z","0.1.4":"2023-03-17T00:33:06.870Z"},"maintainers":[{"name":"anarchy-ai-org","email":"nico@anarchy.ai"}],"description":"Connect to, and interact with, chat.dev, an Anarchy product","homepage":"https://github.com/extensional/chat.dev-consumer#readme","keywords":["chat.dev","chat","anarchy","llm","npl","openai"],"repository":{"type":"git","url":"git+https://github.com/extensional/chat.dev-consumer.git"},"author":{"name":"Nico Kupfer @ Anarchy"},"bugs":{"url":"https://github.com/extensional/chat.dev-consumer/issues"},"license":"MIT","readme":"# Installation and usage\n\n[https://www.npmjs.com/package/@-anarchy-/chat](https://www.npmjs.com/package/@-anarchy-/chat)\n\n### A Promise-based Typescript-first consumer for [https://chat.dev](https://chat.dev)\n\nThe Consumer `ChatDevClient` is a javascript, promise-based, Typescript-first class that simplifies the creation, validation and interaction of your code with out chat.dev API.\n\n***\n\n## Installation\n\nTo install, run\n\n```js\nnpm install @-anarchy-/chat\n```\n\n(comes bundled with Typescript!)\n\n## Configuration\n\nYou can retrieve a key for the consumer at [https://chat.dev/settings](https://chat.dev/settings).\\\nThese keys start with `cd-sk-*****`.\n\nCreate a new instance in your code in one of the following two ways:\n\n1.  Set the key only once and reuse it (at a module level):\n\n    ```ts\n    import { ChatDevClient } from \"@-anarchy-/chat\";\n\n    ChatDevClient.init(\"MY_SECRET_KEY\"); // the key is set \"globally\"\n    const client1 = new ChatDevClient(); // will use MY_SECRET_KEY\n    const client2 = new ChatDevClient(); // will use MY_SECRET_KEY\n    ```\n2.  Set the key once per instance\n\n    ```ts\n    import { ChatDevClient } from \"@-anarchy-/chat\";\n\n    const client1 = new ChatDevClient(\"MY_SECRET_KEY\"); // will use MY_SECRET_KEY\n    const client2 = new ChatDevClient(); // throws error!\n    ```\n\n## Usage\n\nTo start, you must create a bot and pass it to the client. The bot is structured like `IBotData`, which can be imported from the consumer:\n\n*   Bot with APIs\n\n    ```ts\n    import { IBotDataInput } from \"@-anarchy-/chat\";\n    // A bot with APIs\n    const bot: IBotDataInput = {\n            name: \"my-bot\",\n            openAIKey: \"sk-MY_OPENAI_API_KEY\",\n            apis: [\n                {\n                    description: \"this api gets examples from the internet\", // required for the bot to understand when to use this api!\n                    method: \"GET\",\n                    endpoint: \"https://api.example.com/v1\",\n                    params: [\n                        {name: \"userId\", value: \"the ID of the user\", valueType: \"description\"},\n                        {name: \"type\", value: \"inactive\", valueType: \"value\"}\n                    ]\n                }\n            ],\n        };\n    ```\n*   Bot without APIs\n\n    ```ts\n    import { IBotDataInput } from \"@-anarchy-/chat\";\n    // A bot without APIs. They can be added later\n    const bot: IBotDataInput = {\n            name: \"my-bot\",\n            openAIKey: \"sk-MY_OPENAI_API_KEY\",\n            apis: [],\n        };\n    ```\n\nNow the bot can be added to the client:\n\n```ts\nimport { ChatDevClient, IBotData } from \"@-anarchy-/chat\";\n\nconst client = new ChatDevClient(\"MY_SECRET_KEY\");\nclient.setBot(bot);\n```\n\nYou can still add APIs to it after that:\n\n```ts\nimport { ChatDevClient, IBotApiInput } from \"@-anarchy-/chat\";\n\nconst client = new ChatDevClient(\"MY_SECRET_KEY\");\nclient.setBot(bot);\n\nconst api: IBotApiInput = {\n    description: \"calculates the number of kittens in a given location\",\n    method: \"GET\",\n    endpoint: \"https://api.example.com/kitten-calculator\",\n    params: [\n        {name: \"place_name\", value: \"the place where we want to find the quantity of kittens\", valueType: \"description\"},\n        {name: \"distance_from_place_name\", value: \"20km\", valueType: \"value\"}\n    ]\n};\n\nclient.setApi(api);\nclient.setApi(api); // can't be added twice -> the validation will indicate why.\n```\n\nIf the API has been added already, an error will be thrown.\n\nThe `bot` and `api` will be validated when calling their respective `setBot()` and `setApi()` functions. If they are invalid, an error object will be returned.\n\n## Validation\n\n### Cautious validation\n\nTo avoid unexpected issues, we can validate the data before passing it to our client:\n\n```ts\nimport { ChatDevClient, IBotApiInput, IBotDataInput, ZodValidationResult } from \"@-anarchy-/chat\";\n\nconst client = new ChatDevClient(\"MY_SECRET_KEY\");\nconst bot: IBotDataInput = { ... }\nconst validateBot: ZodValidationResult<IBotData> = client.validateBot(bot);\n\nif (!validateBot.success) {\n    // handle the error\n    console.log(validateBot.errors);\n} else {\n    // bot is valid, and can be added to client!\n    client.setBot(bot);\n}\n\nconst api: IBotApiInput = { ... };\n\nconst validateApi: ZodValidationResult<IBotApi> = client.validateApi(api);\n\nif (!validateApi.success) {\n    // handle the error\n    console.log(validateApi.errors);\n} else {\n    // api is valid, and can be added to the bot!\n    client.setApi(api);\n}\n\nclient.setApi(api);\n```\n\n### In-time validation\n\nThe data is also validated when we set a Bot or add an API:\n\n```ts\nimport { ChatDevClient, IBotDataInput, ZodValidationResult } from \"@-anarchy-/chat\";\n\nconst client = new ChatDevClient(\"MY_SECRET_KEY\");\nconst bot: IBotDataInput = { ... }\n\nconst botAdded: ZodValidationResult<IBotData> = client.setBot(bot);\n\nif (!botAdded.success) {\n    // handle the error\n    console.log(validateBot.errors);\n} else {\n    // bot is valid, and HAS BEEN added to client!\n}\n```\n\n## Interaction\n\nOnce a bot has been set, and we are happy with its data (check `client.getBot()` if you want to retrieve its value) we can start sending requests\n\n```ts\nimport { ChatDevClient, ZodValidationResult, IInteractionConsumerResponse } from \"@-anarchy-/chat\";\n\nconst client = new ChatDevClient(\"MY_SECRET_KEY\");\nclient.setBot({ ... });\n\n// Send an interaction - wrap in an async function!\nconst response: IInteractionConsumerResponse = \n    await client.sendInteraction(\"How many kittens are there in New York City?\");\n\n// Use the result\nconsole.log(\n    response.prompt.question,\n    response.prompt.answer,\n    response.prompt.privateDebugInfo\n);\n\n// Send another interaction:\nconst followupResponse: IInteractionConsumerResponse = \n    await client.sendInteraction(\"What about in San Francisco?\");\n\n// Use the result\nconsole.log(followupResponse.prompt.answer);\n```\n\n## Notes\n\nThe interaction history (i.e. the list of previous question/answer pairs) is automatically handled by the client. You don't have to do anything about it. If we want to retrieve the history, the function `sendInteraction(\"...\")`, which returns type `Promise<IInteractionConsumerResponse>` will contain the history under: `IInteractionConsumerResponse[\"history\"]`.\n\n## Functions\n\n| Function name             |                                                                                      | given type               | return type                               | example argument                                                                             |\n|---------------------------|--------------------------------------------------------------------------------------|--------------------------|-------------------------------------------|----------------------------------------------------------------------------------------------|\n| `static init(KEY)`        | sets the key globally for all instances                                              | `string`                 |                                           |                                                                                              |\n| `setBot(bot)`             | If valid, sets the Bot in the client. If invalid, returns the Bot's errors.          | `IBotDataInput`          | `ZodValidationResult <IBotData>`          | `{name: \"\", openAIKey: \"sk-...\", apis: []}`                                                  |\n| `validateBot(bot)`        | Validates a given Bot. No side effects                                               | `IBotDataInput`          | `ZodValidationResult <IBotData>`          | `{name: \"\", openAIKey: \"sk-...\"}`                                                            |\n| `setApi(api)`             | If valid, adds the API to the client. If invalid, returns the API's errors.          | `IBotApiInput`           | `ZodValidationResult <IBotApi>`           | `{description: \"\", endpoint: \"https://...\"}`                                                 |\n| `validateApi(api)`        | Validates a given API. No side effects                                               | `IBotApiInput`           | `ZodValidationResult <IBotApi>`           | `{description: \"\",  endpoint: \"https://...\",  params: [{name: \"q\", value: \"search term\"}] }` |\n| `getBot()`                | Returns the bot, if it's set, or throws an error.                                    |                          | `IBotData`                                |                                                                                              |\n| `validateParam(param)`    | Validates a given API's parameter  (headers, authentication, body, jsonBody, params) | `IBotDataParameterInput` | `ZodValidationResult <IBotDataParameter>` | `{\"name\": \"q\", value: \"search term\", valueType: \"description\"}`                                        |\n| `sendInteraction(prompt)` | Sends an interaction to the server and returns the answer                            | `string`                 | `Promise <IInteractionConsumerResponse>`  | `\"How many kittens are there in Paris?\"`                                                     |","readmeFilename":"README.md"}