{"versions":{"1.0.0":{"name":"glm-acp-agent","version":"1.0.0","description":"ACP agent in TypeScript that uses the Zhipu AI GLM series (specifically GLM-5.1 and GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"author":"","license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@types/node":"^25.6.0","typescript":"^6.0.3"},"_id":"glm-acp-agent@1.0.0","gitHead":"cee72c3755190a3f6ab0677692808f156f7d0124","types":"./dist/index.d.ts","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-BQHdVkC4yNp3V4KNdU8sDttXU+E7IMBCa0HxfhjKT4wlF0EORZHkdygsStQORcwRT4MbqfkXT5W/trDI2f5OrA==","shasum":"13bbeddcd653ea4fea28ba9f9fe1c1211f91fce3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.0.0.tgz","fileCount":102,"unpackedSize":513598,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC8fN+s1XYTYnUGk5Ejy5E4Ms8hmH/OiMStT8Ct4rYMXAIgLazBkKGGlXsJbwrCoj5ZZflYvWHyJGNRA4r8edVCTFA="}],"size":98066},"_npmUser":{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.0.0_1777490020520_0.7399209496692809"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-29T19:13:40.692Z","publish_time":1777490020692,"_source_registry_name":"default","contributors":[]},"1.1.2":{"name":"glm-acp-agent","version":"1.1.2","description":"ACP agent in TypeScript that uses the Zhipu AI GLM series (specifically GLM-5.1 and GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":"","license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@types/node":"^25.6.0","typescript":"^6.0.3"},"gitHead":"e91a127fa94c4b61941c1eebb12c44eb9d3d4b25","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.1.2","_nodeVersion":"20.20.2","_npmVersion":"11.13.0","dist":{"integrity":"sha512-cEWFjZ91tF8gqpa1wwL+sr6qOMCVp4fKEQuaFEyKUNMaHqhryhy2AZQA7T682lVjfLVKqXRazaEhfhj50QfC9Q==","shasum":"a3e85cf279612dc434bae760bbe2c6ffe558c2ac","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.1.2.tgz","fileCount":106,"unpackedSize":566622,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAVJI1d5M48VgONneM3Vu8fBYwyEjMqh+BJEihGuumO0AiEA694q6FMqImK9pFCWA/U1WhmTS5daQUh4BaT+wJRgJXk="}],"size":105874},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.1.2_1777654417291_0.7050270506944112"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-05-01T16:53:37.440Z","publish_time":1777654417440,"_source_registry_name":"default","contributors":[]},"1.1.3":{"name":"glm-acp-agent","version":"1.1.3","description":"ACP agent in TypeScript that uses the Zhipu AI GLM series (specifically GLM-5.1 and GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":"","license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@types/node":"^25.6.0","typescript":"^6.0.3"},"gitHead":"abe2eacc094286c85f5e9ee319e7e33380f903e6","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.1.3","_nodeVersion":"20.20.2","_npmVersion":"11.14.1","dist":{"integrity":"sha512-TMX4LdH3kparnTkQMyV3x+Fm8Y5t0xk0XQ2vuV4Fj17ujUigXZUYKNZg36HsmIl+ZeswMM80su0THddZyCAvPQ==","shasum":"ee9d2e02ab4ca231756fec18fea6a479acae3b9d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.1.3.tgz","fileCount":106,"unpackedSize":574289,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCCAQUBPpqFCcwsZghPJ111FOgokExRhhpUMvuS1w7JFAIhAM76pFBySSN5x0qjWS0KE/tX7SJetDemUiINThWUQQet"}],"size":106691},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.1.3_1778513740962_0.4556149378620089"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-05-11T15:35:41.136Z","publish_time":1778513741136,"_source_registry_name":"default","contributors":[]},"1.1.4":{"name":"glm-acp-agent","version":"1.1.4","description":"ACP agent in TypeScript that uses the Zhipu AI GLM series (specifically GLM-5.1 and GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":"","license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"e264a94205be8535b745921096df84a097ba76cd","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.1.4","_nodeVersion":"20.20.2","_npmVersion":"11.14.1","dist":{"integrity":"sha512-N1i1XSDNUAClKu9k6Qg7BXV4LFy5NPcu/5U7XGgnbnPmAIevZCMsLYAtjLL91Lkv24Si6pDfO1CjaqbBCE1nkw==","shasum":"95b23ca75572a739b526e48d5d86928aee3adbf7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.1.4.tgz","fileCount":106,"unpackedSize":637214,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC7E3xrkb6ntS+CvBBbbyWdvZ72zc4ngZg5bELQgEEx2wIgRUGI13p+yzeNhGekrvwVWKxiKZ8wrfqVapJqAZHAYbI="}],"size":117740},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.1.4_1778941910849_0.542972622280042"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-05-16T14:31:51.035Z","publish_time":1778941911035,"_source_registry_name":"default","contributors":[]},"1.2.0":{"name":"glm-acp-agent","version":"1.2.0","description":"ACP agent in TypeScript that uses the Zhipu AI GLM series (specifically GLM-5.2 and GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":"","license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"1698f6255ae404f61e3fd94bccf389e72acfcf1f","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.2.0","_nodeVersion":"22.23.1","_npmVersion":"12.0.1","dist":{"integrity":"sha512-XZSachsBPWGsSYZRdJlUkO9M4rStGV7cDcs1Ksm8hBlyfDpnJTkvOn1f0OjLcVaRDLpaTPFzaBgdf2P/kP2LWA==","shasum":"31210ace49657bf468f93b4deaa78e20458bde46","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.2.0.tgz","fileCount":106,"unpackedSize":685067,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFWf0cUgldW3koOKtWBSGEA78Hb/qetSeyT0w7M56HbvAiBKfI8eQuBEXY5vMLMLNZVXLshWY7ZVccxuASfRopq9xA=="}],"size":126056},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.2.0_1784398064726_0.9976043957019032"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-07-18T18:07:44.856Z","publish_time":1784398064856,"_source_registry_name":"default","contributors":[]},"1.3.0":{"name":"glm-acp-agent","version":"1.3.0","description":"ACP agent in TypeScript that uses the Zhipu AI GLM series (specifically GLM-5.2 and GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":"","license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"890be034c52ebdf14976e370f7d4d23098403351","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.3.0","_nodeVersion":"22.23.1","_npmVersion":"12.0.1","dist":{"integrity":"sha512-1HJ/7aX/erVWI0VTNJKofg3oXK3UKaHSPFsqJBRofjWsdEmdID6rm6Omkd4aeolWIsl5DdOtlLQG9Jk8vfPB+Q==","shasum":"de9f13b09cc1d7d87b293fea0d6f7fc6233ebf69","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.3.0.tgz","fileCount":106,"unpackedSize":688666,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFJwmLv3wbAku4xP5kZcJrqB3Q5BIbwv9aIdWbpwSyXgAiB4biCqeOcPdaru43qdS+hopolfzHlgj0dwkQgAiUqjhg=="}],"size":127033},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.3.0_1784562709869_0.40683926264073467"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-07-20T15:51:50.027Z","publish_time":1784562710027,"_source_registry_name":"default","contributors":[]},"1.4.0":{"name":"glm-acp-agent","version":"1.4.0","description":"ACP agent in TypeScript that uses the Zhipu AI GLM series (specifically GLM-5.3 and GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"299dc909e9f10ec7514860d867da71e3ef1c730f","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.4.0","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-YShSqBvT/6+/Dii7sz4MmRTk3guoO47SrxImVcWsGoQJ1VhMWudu4OGU1lhtQZkhfFaMdqidK8LVU/St5B/mYw==","shasum":"83b87ca50f48bd85b4bbdf7905b47f2f21bcf14e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.4.0.tgz","fileCount":107,"unpackedSize":722275,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC7v5qwcOAi76qFn1zTSRoFoe3H6q8jUofFNthZ52eF0AIgASSuXAnu6c9Zt2wFHO1dNm0H9THDHF40QOelNvTEoW4="}],"size":134400},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.4.0_1786796960156_0.0778601662295999"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-15T12:29:20.318Z","publish_time":1786796960318,"_source_registry_name":"default","contributors":[]},"1.5.0":{"name":"glm-acp-agent","version":"1.5.0","description":"ACP agent in TypeScript that uses the Zhipu AI GLM series (specifically GLM-5.3 and GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"0fbca00a5d6ca6091a7c109d01e2c19917d55c9d","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.5.0","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-XNzNu3EV3bM2M4eItucmKhgIw7jC8ErpYS+L/J7guMxU0iFy/1tT9hYcsuL/jDX9qbAfEAu8R6DWbxtx1rxvjw==","shasum":"4ad36363aa7a5ceb02cf6f22e47f7d71844802f8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.5.0.tgz","fileCount":115,"unpackedSize":753634,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFQl5oF6j8hjiF5oiZ+YO0eiEB5ZCkJusIwELVKodAnPAiEAmOVde10dgp4GUnZedPVWwnWIFcRyLeNfYudEF3yt9GE="}],"size":144105},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.5.0_1786801999712_0.985615764183843"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-15T13:53:19.863Z","publish_time":1786801999863,"_source_registry_name":"default","contributors":[]},"1.6.0":{"name":"glm-acp-agent","version":"1.6.0","description":"ACP agent in TypeScript that uses the Zhipu AI GLM series (specifically GLM-5.3 and GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"b1c21fd627a8cd3e3342d69c5cb8ce5299c18281","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.6.0","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-mSsoueROw36dDuJ8TdY987GTwaIoo+liLiqfKcEA4TNE0dCJ7N6shvm3LRSK289Iqb3bD145eZW/dYP14Qq4IQ==","shasum":"f1330550bba8c4477e8bbda3f81102e9f31a744d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.6.0.tgz","fileCount":123,"unpackedSize":799823,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDISBVqaA7fDFF7fJLS2vihh7VmdWS4safDHkughVLmvwIhAMZ5fbcxI4DKooF7zfuG3nBfDQ1WVulrw5RmSjmFAkxk"}],"size":151132},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.6.0_1787039295312_0.8537200131476723"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-18T07:48:15.468Z","publish_time":1787039295468,"_source_registry_name":"default","contributors":[]},"1.6.1":{"name":"glm-acp-agent","version":"1.6.1","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5 Turbo, GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"49269463a917a91d328bb6a64a839bd4edafb9a0","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.6.1","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-r2HFEadKS30dMI2BKpjfw/IF6r2vjtRp9c2HfNwv0tWfd2hK2wgW/gVsqaa3UIQb9+5lb2rUoyNC5FhXLMLE3Q==","shasum":"4d4f048685df86598c3c1f076c51642202b61046","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.6.1.tgz","fileCount":127,"unpackedSize":884543,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCT/PwLRe+fBPoJm4qrX2zDv/BQQE9GaYUWHdEdjzroTwIgEisjBgDhxBZH6HJHfPRtFPDPixH5VqombHZpI/F7dpA="}],"size":164819},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.6.1_1787595563730_0.9047732199212668"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-24T18:19:23.867Z","publish_time":1787595563867,"_source_registry_name":"default","contributors":[]},"1.7.0":{"name":"glm-acp-agent","version":"1.7.0","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"3df6a0a02b7583f4f6722719d5982968a1974ca3","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.7.0","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-PQeJXJgxX+gI/v9EUnMczDTn3gIt/iJOd46hPyem/a/o1M7YFciLdNw925dNwa4ASRWy1AfOIleF1p4oxiq2sQ==","shasum":"f6d1d86db2ce749fd643e2ae0fc796618463006d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.7.0.tgz","fileCount":127,"unpackedSize":895060,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCwy4Ql3RNZyeVIvdpr2XvZq1j8fG5fz9UXOPUN2U8bPwIhALpoGkP78OB4WOkODrRyopJpi5bI9NdSpq2Z66+baTjQ"}],"size":166890},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.7.0_1787906875159_0.634336109966416"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-28T08:47:55.292Z","publish_time":1787906875292,"_source_registry_name":"default","contributors":[]},"1.8.0":{"name":"glm-acp-agent","version":"1.8.0","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"1187522e22f6246419581033b9c4e6b885f1616b","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.8.0","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-qyQPzpoC6FWFk5qrJ47AR9UGJZeS28LnZB3twbGy76Jsg6/jjHEeNO51T3L3h4luqI1xmCtmSwM1c1fWVMIjCQ==","shasum":"63d07f16dc9ba30a8f22f7906603110a82973bab","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.8.0.tgz","fileCount":135,"unpackedSize":1010419,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBOQHlgnabLCyATK7+1Tuz+J//75bY8M6YLR7oKPDDDAAiEAm03fz8olpKhcwZ1Atc5CVmdqkMDWQdBxpEoyBi92bGU="}],"size":188682},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.8.0_1788187511665_0.32953119246133267"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-31T14:45:11.857Z","publish_time":1788187511857,"_source_registry_name":"default","contributors":[]},"1.9.0":{"name":"glm-acp-agent","version":"1.9.0","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"e3c1d78d5102a44db02daca08a92e1aaa736856e","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.9.0","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-6Vs/DiQUjEb4W2g0/4wQ3M8QiLOmsGQYUFizvRdfIyDdA79gLbb1gbRwpP4TFrYbATBjZ/9/2EZcdBN1XNEfwQ==","shasum":"6d3abb5b6e46e3a92a38ef515628f5d8573f89a1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.9.0.tgz","fileCount":135,"unpackedSize":1053482,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.9.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAl6GmWFMQ2ZoOGnLABGAcxa/APh1RY/d/aWcfng36iCAiAiyquws2uprBQRkpvbP51qMETpeUmDz9F1Nt3evPC+tQ=="}],"size":194128},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.9.0_1789407564595_0.10549340835535492"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-14T17:39:24.726Z","publish_time":1789407564726,"_source_registry_name":"default","contributors":[]},"1.10.0":{"name":"glm-acp-agent","version":"1.10.0","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node --test dist/tests/*.test.js","lint":"eslint src/**","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"4ce655afee6cffad13406e3370028ebbdf6d175f","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.10.0","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-aku2+9dei1MLeyCHMS9XVKw7jTjGpIv8O/8ar4t1v1GJm75qwpI2zJjfddOWsQrOzNzpmH8yXfgxZSq0JQ6iug==","shasum":"71d65f723d06e4f106e4461b641e7ff928dc0be5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.10.0.tgz","fileCount":135,"unpackedSize":1094767,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.10.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBNZKzUWhd0CxMhcXzgtNkD9z0FHSeep1YvORDizBcx6AiBbngUgMB+pFdzU7IaFqThRdWJ3AoIHKs11b4x23eHpgg=="}],"size":202210},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.10.0_1789539072458_0.47748351765874597"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-16T06:11:12.634Z","publish_time":1789539072634,"_source_registry_name":"default","contributors":[]},"1.11.0":{"name":"glm-acp-agent","version":"1.11.0","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","type":"module","main":"dist/index.js","bin":{"glm-acp-agent":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"npm run build && node scripts/run-tests.mjs","lint":"eslint src","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/stefandevo/glm-acp-agent.git"},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"license":"Apache-2.0","dependencies":{"@agentclientprotocol/sdk":"^0.20.0","openai":"^6.34.0","zod":"^3.25.76"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.4.0","typescript":"^6.0.3","typescript-eslint":"^8.59.3"},"gitHead":"e16279dea6d76d6ab1cd2010edca76c422016712","types":"./dist/index.d.ts","_id":"glm-acp-agent@1.11.0","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-pN2z0T9yttaYS0b9NG99H+2NI5qhLxgykytXXCRbhB6M3nG0NJdSahb9P7u/GV6xlWoyox7d6og+JmhKWZY7Lg==","shasum":"5a1bb31bd903368e0d5000be4771605b0603e3ec","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.11.0.tgz","fileCount":155,"unpackedSize":1293921,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.11.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDr2XUw+UisxI3CG8uhBOJ2SmDb7D1v+LBjbjAqZ9ypcgIhALjEanC4K9oUE7WZAJq7KfW/4IyU4PCYu5HIAsTvvxBj"}],"size":236015},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.11.0_1789639582908_0.8478119438481"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-17T10:06:23.091Z","publish_time":1789639583091,"_source_registry_name":"default","contributors":[]},"1.12.0":{"_id":"glm-acp-agent@1.12.0","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"11dc451d849846a83a1520cf6c128524bfb2fce0","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.12.0.tgz","fileCount":243,"integrity":"sha512-3NA2FEWLEp1782WGAEuSlFXuUz8cJXTS01ZfPhQCCCFf5NVMO8NQDcve1+M0HsEyJpdKvOgR+YfCRwjiprclFQ==","signatures":[{"sig":"MEYCIQCWe38JIWvtN+m+1+wLPIQ9IwU60tSY4q7yXim3LGKx5gIhAMeoVlGBhX/N/xZVYr2veDCNeGCgx7qeRNta8S3xSceb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCol6964E06tqMDZ2oZ5fXVQJfFnUmUt/El9soCHZR5FAIgFfTC3RzquieDFiLCbL44AFMlQzL8NAjPeTx8bJnyALU="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.12.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1844631,"size":324269},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"be22d09ec8ca9e6e9906adbba7b9828273464bad","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"version":"1.12.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.0.2","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.2","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.12.0_1789888554993_0.2206073784174014"},"_cnpmcore_publish_time":"2026-09-20T07:15:55.082Z","publish_time":1789888555082,"_source_registry_name":"default","contributors":[]},"1.13.0":{"_id":"glm-acp-agent@1.13.0","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"f27405f3e6873879cd987d04e416690abebcc510","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.13.0.tgz","fileCount":131,"integrity":"sha512-5gPNTVTO5MI11Q+4wtRPx1eKQgIhkamIfencUEaRwUgzoKwqBJvKkE9yLS/117fuYjl18JvhwVa0I/xgzbmnfA==","signatures":[{"sig":"MEUCIBSzG8GE8EJNArMG4JmV8Rs1tKrLozSs0mHggYYdnpGqAiEAjlBQyBahoDlQTq/yD2CxR00G9D7UrFsSClTMrxWTVcY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAdHSPyd6AyUfzVnLBt0XCDygV+OoSaXKGZ0pOpVjYa/AiEAjBeWX+f67YnR337JAKqpNDRiu9cKmWhCEolBM/TjOBk="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.13.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":785668,"size":183195},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"9c36749cb3cac0a415f496fdaa69d92a03890807","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js"},"version":"1.13.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.1.0","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.2","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.13.0_1790602559233_0.9677246581990011"},"_cnpmcore_publish_time":"2026-09-28T13:35:59.348Z","publish_time":1790602559348,"_source_registry_name":"default","contributors":[]},"1.14.0":{"_id":"glm-acp-agent@1.14.0","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"0c637b4cf9c3ef2da96180ff86678e42064cf9b7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.14.0.tgz","fileCount":135,"integrity":"sha512-4C4b+bW+mR99GO3fwZuFJLh6txVIR1dlYApNyn+NsggKl8NHqZjvmU98RNskz9vjeyeAcTn527d2Gu8EHgMKpA==","signatures":[{"sig":"MEUCIFXs0R4fUlr+8GKbExBnLWEyKMbx5oPhOCGCJ1wz2eAdAiEA2JsmrKIZvX16AWoLavKkDEAX30CERu1U0dsh1xv41w8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB9un+6xkaBHCkz0QWoXE5nQjgM873ttzu+6iPSsmsGwAiAPLmnhGQS+jn+3uqS8crdPRhJ0QXKZDuhnQuweHmkE9A=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.14.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":842411,"size":194286},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"22d8122bcacdd73f1e515eb2f2179faba154ac4f","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js","test:only":"node scripts/run-tests.mjs"},"version":"1.14.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.2.0","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.3","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.14.0_1790968277966_0.1934097565377959"},"_cnpmcore_publish_time":"2026-10-02T19:11:18.053Z","publish_time":1790968278053,"_source_registry_name":"default","contributors":[]},"1.14.1":{"_id":"glm-acp-agent@1.14.1","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"34cef14ad410aee44ae81e63d525e105a4dd222f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.14.1.tgz","fileCount":135,"integrity":"sha512-z6LHM18PJwfsd3XE30xidpboknN3Pr/QqIdSzPC2mTIgIEhJnUHBIW+FUBtbj6EZU+iFmjB8Nk4AErcwdQfb9w==","signatures":[{"sig":"MEUCIQCAKRfaXu+KZ4w710eRS3gNulHs8lamsUc02+8aK4C5YwIgZrgW5tJ2F4/O/GdavNYF8iwop/PWpRWAxgp2DgK44/c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDE4h88w9emkovAi/vhk9I/Xf5kGFP+lLUnGekJAQS08AiA2zyu6SKD6gUEF2rlR1AWlTJOXx1FrTha3blqT5+IFAQ=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.14.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":872869,"size":201792},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"d3219c38e1f08b1e577ad34783944a6afa41e187","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js","test:only":"node scripts/run-tests.mjs"},"version":"1.14.1","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.2.0","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.3","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","undici":"^6.29.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.14.1_1791872103062_0.12383647753151483"},"_cnpmcore_publish_time":"2026-10-13T06:15:03.176Z","publish_time":1791872103176,"_source_registry_name":"default","contributors":[]},"1.15.0":{"_id":"glm-acp-agent@1.15.0","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"fa730b42a523a6a93814c6e2527989807c532faa","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.15.0.tgz","fileCount":135,"integrity":"sha512-WL/ZueEc5MY3ZtvPtMTveb1hekerqzG+pg6C/sYBtmVUaF6VJ1wUd8eD1sywe+xoi7C/ul6g+ISe4g6XULsCkg==","signatures":[{"sig":"MEUCIEd+ImbzgIyF4IIXGJx3DIX+iRtFSK829wVYcdnGlllmAiEAmv2bAiQakm//w1LWAnijiVgfCIeWInHfpN76jnF4U0E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICNpZuKHiUUahZYQZUYLlLS8gh1MKx6J/gNP8o2wExDBAiEAo7HvF0tppsToibWnNMhhQfuDy6t23Iy5pgzyqwUr2Pc="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.15.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":890349,"size":205985},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"e08394160184653ae762884c71792965138a790c","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js","test:only":"node scripts/run-tests.mjs"},"version":"1.15.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.2.0","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.3","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","undici":"^6.29.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.15.0_1791896452109_0.335753869019384"},"_cnpmcore_publish_time":"2026-10-13T13:00:52.290Z","publish_time":1791896452290,"_source_registry_name":"default","contributors":[]},"1.16.0":{"_id":"glm-acp-agent@1.16.0","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"4d34048f24f393da891182d47e678b3c43643dbb","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.16.0.tgz","fileCount":139,"integrity":"sha512-Zv9cmN0BF4UAW3SyY/0NEUiHuGuB7vCNdp0reiCq1OsxD6yH3RzUUzRy0dKha2WMsJ6vr0UrqOKQoE3G8sYhUQ==","signatures":[{"sig":"MEUCIE8/y+PIFES8IwwYE58eN5P4tWn9+ls8HupQibPV/WMGAiEA3BNq50gtyYlOjBtKLRjyM2LxF3thVIQx4XPU5FobuF8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCBuq1Uy94al7r6ePEFbPQzIBlZZG6mhBnPrtv87I7dBAIhAKUM+DSWlPlcUsZ9ncAMISv82Gyq9YWHbdNciKe1W41S"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.16.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":925495,"size":214769},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"58392da22f8eb493080c41bbda4944458c30a597","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js","test:only":"node scripts/run-tests.mjs"},"version":"1.16.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.2.1","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.4","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","undici":"^6.29.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.16.0_1793132378233_0.6387064733634569"},"_cnpmcore_publish_time":"2026-10-27T20:19:38.375Z","publish_time":1793132378375,"_source_registry_name":"default","contributors":[]},"1.17.0":{"_id":"glm-acp-agent@1.17.0","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"a8499ac5706ed6c61d0199432582c38ad4ca302d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.17.0.tgz","fileCount":139,"integrity":"sha512-GRMmVaTaWNh9RpUef4a6haQHpRkMd8KsH4W66cWo4dsHJpH8JaZrBGmTkKK2Q5ydtp/lpxmg5L4NNwlbmUgRaQ==","signatures":[{"sig":"MEYCIQDZA1aHipVVr/RwAJqqbGDTVAW69ePTlhKLq2Mdi9enVgIhAO+1WNdDpZJhjNz+sEq0NHo+Z+jeN6I1MzYYcmW0d5oW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDLl746Elp/hEqDjLjsvnZM+FSv5WlkbEX1p/jvrkirEgIgUJUvynA519N1IcYCfOuFwAmVipMJuf29/yuOXp+tg5M="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.17.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":936695,"size":218441},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"54080ad473bf543ebb885b479a12bb563607dee7","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js","test:only":"node scripts/run-tests.mjs"},"version":"1.17.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.2.1","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.4","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","undici":"^6.29.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.17.0_1793359252856_0.04985144329023283"},"_cnpmcore_publish_time":"2026-10-30T11:20:52.972Z","publish_time":1793359252972,"_source_registry_name":"default","contributors":[]},"1.17.1":{"_id":"glm-acp-agent@1.17.1","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"304fbbea582428ba5101186b337571ac59a972bf","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.17.1.tgz","fileCount":139,"integrity":"sha512-rA/E3e4jRBFAstPh97hSnG5pcgpCn3HNZuIgvKBGCbgTlB8bS0riwPnSdfe0QU4bJfcEw7UUQt5WJbBRS8fsdA==","signatures":[{"sig":"MEYCIQD3PPHOt1imQUkEUArOJp7tTSCeKGJrB7WWqC9ydTTfqQIhAMlB5fgazgmj8pUDWShsUWLMGwGekGeb347CdeTA4lUT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC4+gmMLlS06b5kP5s7vQWnzvkd5TxQoce771BuyrI9egIgXat2otnU/N9VlPBsCE40uNPXpGhjml36uS6vvZQf+cs="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.17.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":938479,"size":219159},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"9c2e6325042c79e6d4a2054c91fcdd01ef38485e","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js","test:only":"node scripts/run-tests.mjs"},"version":"1.17.1","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.2.2","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.4","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","undici":"^6.29.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.17.1_1794252240528_0.6647537379082618"},"_cnpmcore_publish_time":"2026-11-09T19:24:00.646Z","publish_time":1794252240646,"_source_registry_name":"default","contributors":[]},"1.18.0":{"_id":"glm-acp-agent@1.18.0","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"a4904dcd626b6a3ecaea804eea43a543c7b26b1b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.18.0.tgz","fileCount":143,"integrity":"sha512-7FuzTXNSmlYWOA3wQU5rnAR6+Q3+AHlpTrUCz2FKGHQMk0FoGnEVY3PjLeipyUbd5VzvTJS++1v8n4LlcaC+YQ==","signatures":[{"sig":"MEUCIDEACpnXFDXBdRBX8aBZ3HUyPW2JsLmRu0TdrA+THGz7AiEA30UMZmWoMBKOuRhAuCtUe/q5ESPVTjRpsgYo2D4tXx0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC+tPkSK84Gx7zeuC6cEChXd7n1aw2069M1FkEkTQeGugIgRvTi0EirKRyUGG9y6PZhLmqbeBndS5Z2N44wtAuyUvI="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.18.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":982509,"size":230415},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"0dfe83465b86701696066d940081049a3d4f8c3b","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js","test:only":"node scripts/run-tests.mjs"},"version":"1.18.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.2.3","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.4, GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.5","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","undici":"^6.29.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.18.0_1795777685604_0.1838522789726671"},"_cnpmcore_publish_time":"2026-11-27T11:08:05.705Z","publish_time":1795777685705,"_source_registry_name":"default","contributors":[]},"1.19.0":{"_id":"glm-acp-agent@1.19.0","bin":{"glm-acp-agent":"dist/index.js"},"bugs":{"url":"https://github.com/stefandevo/glm-acp-agent/issues"},"dist":{"shasum":"7a6ae0314691da2314cb90ca55c010c91ab7fa72","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glm-acp-agent/-/glm-acp-agent-1.19.0.tgz","fileCount":151,"integrity":"sha512-JrJlR5OSAILpYZ8aLwEyZn5iegfKc6uRHEoMjkbuVf2A1iA6NRmEgpnDvDK9i814QOHSd92KtU0scroxInhVyg==","signatures":[{"sig":"MEQCIATJkNyRX60irIDP433WKA6zqhfFgHbxL3bD72yOg9BYAiBrB/gUWFZkRLg+1Tm9OEKa2KKP8mHfk5opQ/467zqHOQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC5BRCgc/r4nt4Vv4S+lkeHmdu5PJrIXXsPNTnIdLhtTgIhAOEpE+tmALN21YRG22hGk8Oi5Q4CgefFvMGKSpgZDm3I"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/glm-acp-agent@1.19.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1153297,"size":271953},"main":"dist/index.js","name":"glm-acp-agent","type":"module","types":"./dist/index.d.ts","author":{"name":"Stefan de Vogelaere","email":"stefan.de.vogelaere@gmail.com"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"gitHead":"b5c9a7a9790c6ca0c26c7109222456d93e9ad98d","license":"Apache-2.0","scripts":{"dev":"tsc --watch","lint":"eslint src","test":"npm run build && node scripts/run-tests.mjs","build":"tsc","start":"node dist/index.js","version":"npm run build --silent && node dist/registry/sync-manifest.js","test:only":"node scripts/run-tests.mjs"},"version":"1.19.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"894c13aa-76db-44ce-bd86-452dd00b9736"}},"homepage":"https://github.com/stefandevo/glm-acp-agent#readme","keywords":["acp","agent","glm","zhipu","coding-agent"],"repository":{"url":"git+https://github.com/stefandevo/glm-acp-agent.git","type":"git"},"_npmVersion":"12.2.3","description":"ACP agent in TypeScript that uses the Z.AI / Zhipu AI GLM Coding Plan models (GLM-5.4, GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as the reasoning core","directories":{},"maintainers":[{"name":"anonymous","email":"stefan.de.vogelaere@gmail.com"}],"_nodeVersion":"22.23.5","dependencies":{"zod":"^3.25.76","openai":"^6.34.0","undici":"^6.29.0","@agentclientprotocol/sdk":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.4.0","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^25.6.0","typescript-eslint":"^8.59.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/glm-acp-agent_1.19.0_1795891435529_0.41832708410201247"},"_cnpmcore_publish_time":"2026-11-28T18:43:55.634Z","publish_time":1795891435634,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.19.0"},"name":"glm-acp-agent","time":{"created":"2026-04-29T19:13:49.878Z","modified":"2026-11-28T18:44:08.763Z","1.0.0":"2026-04-29T19:13:40.692Z","1.1.2":"2026-05-01T16:53:37.440Z","1.1.3":"2026-05-11T15:35:41.136Z","1.1.4":"2026-05-16T14:31:51.035Z","1.2.0":"2026-07-18T18:07:44.856Z","1.3.0":"2026-07-20T15:51:50.027Z","1.4.0":"2026-08-15T12:29:20.318Z","1.5.0":"2026-08-15T13:53:19.863Z","1.6.0":"2026-08-18T07:48:15.468Z","1.6.1":"2026-08-24T18:19:23.867Z","1.7.0":"2026-08-28T08:47:55.292Z","1.8.0":"2026-08-31T14:45:11.857Z","1.9.0":"2026-09-14T17:39:24.726Z","1.10.0":"2026-09-16T06:11:12.634Z","1.11.0":"2026-09-17T10:06:23.091Z","1.12.0":"2026-09-20T07:15:55.082Z","1.13.0":"2026-09-28T13:35:59.348Z","1.14.0":"2026-10-02T19:11:18.053Z","1.14.1":"2026-10-13T06:15:03.176Z","1.15.0":"2026-10-13T13:00:52.290Z","1.16.0":"2026-10-27T20:19:38.375Z","1.17.0":"2026-10-30T11:20:52.972Z","1.17.1":"2026-11-09T19:24:00.646Z","1.18.0":"2026-11-27T11:08:05.705Z","1.19.0":"2026-11-28T18:43:55.634Z"},"readme":"# glm-acp-agent\n\nAn [Agent Client Protocol (ACP)](https://agentclientprotocol.com) agent written in TypeScript that uses the **Z.AI / Zhipu AI GLM** model family (GLM-5.4, GLM-5.3, GLM-5.3 Flash, GLM-5 Turbo, GLM-4.7) as its reasoning core.\n\nThe agent connects to any ACP-compatible IDE or client over **stdio**, streams responses back in real time, and can call a rich set of tools to interact with the user's file system, terminal, and the web.\n\nStreaming responses must include a supported terminal finish reason. An early connection close is reported as an interrupted response, with received text retained for session replay. Tool calls run only after a complete `tool_calls` response; calls in output-limit (`length`) or filtered (`content_filter`) responses are discarded and the corresponding stop reason is preserved.\n\nCompleted provider reasoning is retained unchanged in conversation history and saved sessions for subsequent model calls, even when thought display is disabled. `ACP_GLM_STREAM_THINKING=false` controls client display only. Reasoning from cancelled, incomplete, or output-limited responses is not replayed as a completed reasoning chain.\n\n---\n\n## Coding Plan Only\n\n`glm-acp-agent` is intentionally built for the **Z.AI GLM Coding Plan**. It is not a general-purpose Z.AI Open Platform API client.\n\nBy default, model calls use the Coding Plan endpoint:\n\n```text\nhttps://api.z.ai/api/coding/paas/v4\n```\n\nThe same Coding Plan API key is used for the agent's GLM model calls and supported Coding Plan tools. General Z.AI API/resource-package billing surfaces, such as direct `/api/paas/v4` Tool API calls, are intentionally out of scope for this ACP agent.\n\nBuilt-in web tools use Coding Plan-compatible MCP endpoints, not the general `/api/paas/v4` Tool API. If you need general Z.AI API billing, separate resource packages, or non-Coding Plan endpoints, use a different provider configuration or fork this agent for that purpose.\n\n---\n\n## Features\n\n- **Full ACP compliance** – implements `initialize`, `authenticate`, `session/new`, `session/set_mode`, `session/prompt`, `session/cancel`, `session/close`, `session/list`, `session/load`, `session/fork`, `session/resume`, and `session/set_model`, and pushes `session_info_update`, `config_option_update`, `current_mode_update`, and `available_commands_update` notifications\n- **Streaming** – assistant text and reasoning tokens are forwarded as incremental ACP chunks\n- **Tool calling** – agentic loop with a configurable cap of GLM function-calling turns (default 100; see `ACP_GLM_MAX_TURNS` / `--max-turns`). Reaching the cap finishes the turn's tool calls and saves their real results. A user abort keeps only calls that had started.\n- **Thinking mode** – GLM's `reasoning_content` tokens are surfaced as `agent_thought_chunk` blocks so the client can show the model's chain of thought\n- **Session permission modes** – supports `default`, `accept_edits`, and `bypass_permissions` via `session/set_mode`. Clients like DevFlow can use this to toggle between prompting for every edit, auto-approving edits while prompting for commands, or bypassing permissions entirely.\n- **Per-session model switching** – `session/set_model` lets clients change the active GLM model mid-conversation; `session/new` returns the curated `availableModels` list\n- **Slash commands** – commands and skills found under the session's `.claude/` directory are advertised to the client with `available_commands_update`, so `/` autocomplete is populated (see [Slash commands](#slash-commands))\n- **Goals (`/goal`)** – `/goal <condition>` keeps the agent working across turns until a separate evaluator model confirms the condition is met, judges it impossible, or you pause it; the round budget, a round's turn limit, a no-progress streak, a cancel, or an evaluator outage pause the goal instead of running unbounded (see [Goals](#goals-goal))\n- **Image input via Coding Plan-native vision or Vision MCP** – `promptCapabilities.image` is advertised; `glm-5.4` and `glm-5.3-flash` send supported pasted ACP image blocks directly as native `image_url` content parts, while `glm-5.3`, `glm-5-turbo` and `glm-4.7` route them through Z.AI Vision MCP (`@z_ai/mcp-server`). `glm-5v-turbo` keeps the same native-vision path when re-added via `ACP_GLM_AVAILABLE_MODELS` — it is no longer on the Coding Plan allowlist. Direct chat-image-only models (e.g. `glm-4v-plus`) are intentionally not used.\n- **Session persistence** – conversations are written to `~/.local/state/glm-acp-agent/sessions/` and can be reloaded via `session/load`, branched via `session/fork`, or resumed without replay via `session/resume`\n- **Ten built-in tools** (see below)\n- **Structured questions** – `ask_user_question` renders in the client's own UI as an ACP form elicitation (or permission buttons when the client has no form support); session modes never bypass a question\n- **Self-sufficient local tools** – directory listings and shell commands always run in the agent process; file tools fall back to local filesystem access when ACP client `fs` capabilities are unavailable\n- **Configurable permissions** – `write_file`, `run_command`, `web_reader`, and non-local `image_analysis` behavior depends on the active session mode (prompts by default)\n- **Protocol-correct stop reasons** – maps model and runtime conditions to ACP `end_turn`, `max_tokens`, `max_turn_requests`, `refusal`, and `cancelled`\n- **Protocol-correct tool statuses** – `pending` → `in_progress` → `completed` / `failed`\n- **Token usage reporting** – aggregated usage is returned on the `session/prompt` response; after each model request the agent also sends a `usage_update` (`used` = that request's prompt + completion tokens, `size` = the model's context window) so clients can show how full the context is\n- **Coding Plan quota** – built-in `/usage` reports account allowance and reset times without a model call; clients can query the advertised `_glm/usage` extension\n\n---\n\n## Architecture\n\n```text\nACP Client (IDE plugin, CLI, …)\n        │  stdio (ndjson)\n        ▼\n  GlmAcpAgent          ← ACP protocol layer  (src/protocol/)\n        │\n        ├─ GlmClient   ← Z.AI / Zhipu AI Coding Plan Chat Completions  (src/llm/)\n        │\n        ├─ ToolExecutor ← executes tool calls  (src/tools/)\n        │    ├─ read_file / list_files        → ACP client fs for read_file when reads are advertised, else Agent process (Node fs); read_file and list_files workspace-confined, read_file paginated (offset/limit)\n        │    ├─ write_file / edit_file        → ACP client fs when advertised (editor-buffer diffs), else Agent process (Node fs)\n        │    ├─ list_files / run_command     → Agent process (Node fs / child_process)\n        │    ├─ web_search / web_reader      → Z.AI Coding Plan Web MCP (HTTP)\n        │    ├─ image_analysis               → Z.AI Coding Plan Vision MCP (stdio)\n        │    ├─ todowrite                    → Agent process (per-session task list; replaces chat narration)\n        │    └─ ask_user_question            → ACP client (elicitation/create form; permission buttons without form support)\n        │\n        └─ VisionMcpClient ← spawns `npx @z_ai/mcp-server` on demand\n```\n\nThe agent process needs network access to `api.z.ai` for chat completions and Web MCP, plus `npx` available on `PATH` so it can launch `@z_ai/mcp-server` for vision. Filesystem and shell operations use paths resolved against the ACP session working directory. `read_file` and `list_files` are confined to the session workspace: paths and symlink targets resolving outside are rejected, and a rejected `list_files` enumerates nothing. It uses the editor buffer when `fs.readTextFile` is advertised, including new buffers whose parent directory exists inside the workspace; otherwise it uses the agent process filesystem. When the client advertises `fs.writeTextFile`, writes and edits are routed through the ACP client so they render as native diffs. Edit-file reads still require both `fs.readTextFile` and `fs.writeTextFile` to use the editor buffer; otherwise they fall back to the agent process filesystem. Writes and arbitrary shell commands still go through ACP `session/request_permission`, as do `web_reader` calls and `image_analysis` calls whose `image_source` is a non-local source, and the permission payload is always the **full** tool arguments — the user approves exactly what will run.\n\nAgent-side `list_files` and local `image_analysis` always use an existing canonical target, even when the client advertises file reads. Only editor-backed `read_file` preserves the caller's absolute alias and allows a missing file for a new editor buffer; those exceptions do not apply to agent-side tools.\n\nEven ACP-backed `read_file` requests use the agent filesystem for canonicalized confinement checks. The workspace and existing parent directories must be visible to the agent with matching path and symlink semantics. If canonicalization is unavailable, the read fails closed; client-only paths do not bypass the containment check. Containment is canonicalization-based hardening, not a race-proof sandbox: a concurrent symlink swap between the check and the open can still redirect a local read, and on client-backed reads the editor's `fs/read_text_file` receives the caller's alias, so a symlink swapped in between the check and the editor read is likewise followed by the editor. On case-insensitive filesystems (the default on macOS APFS and Windows), `realpath` may not normalize letter case consistently between the session workspace and a target path, so the likely failure mode is a false rejection — the safe direction; a cross-platform assertion for this is not feasible in the test suite (Linux CI is case-sensitive, macOS and Windows are not), which is why it is documented here rather than tested.\n\nClient-facing tool cards stay compact: long strings in `rawInput`/`rawOutput` are elided to a short head plus a character count, and every completed or failed card's visible text — including the `read_file` content preview — is bounded to an aggregate 16 KiB UTF-8 budget; oversized previews end with `[… N bytes elided in preview; full result sent to model]` and card titles are elided to 240 characters. The model still receives the full tool result, capped at 256 KiB by `ACP_GLM_TOOL_RESULT_LIMIT_BYTES`; write payloads and permission requests remain complete. Progress narration lives in the `todowrite` task list rather than prose, and reasoning tokens are only forwarded as `agent_thought_chunk` when `ACP_GLM_STREAM_THINKING` is not `false` (the default preserves streaming).\n\n## Client MCP, context, and trust boundary\n\nAll MCP transports share an 8 MiB response cap (`MCP_RESPONSE_LIMIT_BYTES`): HTTP response bodies are read incrementally and a larger body cancels the read and fails the tool call, while an oversized or newline-less stdio JSON-RPC frame fails the connection, rejecting pending requests and terminating the child process. The cap applies to client-provided servers and to the built-in Web MCP and Vision MCP clients.\n\n### Client-provided MCP servers\n\nACP clients may attach MCP server definitions when creating or loading a session. The agent supports client-configured **stdio** and **HTTP** MCP servers. **SSE is unsupported and rejected** when the agent tries to connect. In the ACP SDK capability schema, `mcpCapabilities.http` advertises HTTP support and `mcpCapabilities.sse` advertises SSE support. This agent advertises only `http: true` and does not advertise SSE; the capability object has no stdio flag.\n\nA stdio MCP child starts with a copy of the agent process environment, then the server's configured environment entries override matching inherited values. This can pass credentials such as `Z_AI_API_KEY` to that child. Review client-supplied MCP commands and environment values as trusted code/configuration.\n\n### Context compaction\n\nBefore provider requests, the agent estimates context use with a heuristic rather than the provider's tokenizer. When history exceeds the model budget, it can remove older complete exchanges and shorten tool results; the system context and latest user request are retained. If those, the tool schemas, and reserved output/safety space still exceed the model's context window, the request fails with guidance to narrow it or choose a larger-context model. Earlier conversation details may therefore not remain verbatim in model context. An active `/goal` is not affected: every continuation message restates the condition, so the model keeps working toward it even after the original directive has been compacted away.\n\n### Trust boundary\n\nThe agent does not run tools inside an OS or container sandbox. Shell commands and local filesystem fallbacks run with the agent process's OS-user permissions; shell children inherit its environment, and commands can access the network available to that user. ACP permission prompts and session modes govern consent behavior but do not provide process isolation. Built-in network tools follow that consent model: `web_search` is deliberately silent because its query goes only to Z.AI's service (there is no attacker-chosen host), `web_reader` fetches only the approved initial URL (redirects followed by the reader service are not re-prompted), and `image_analysis` passes non-local sources to Vision only after approval. Treat workspaces, prompts, and MCP configurations as trusted, and use external OS/container isolation when you need a stronger boundary.\n\n---\n\n## Available Tools\n\n| Tool | Runs on | Permission behavior | Description |\n|------|---------|---------------------|-------------|\n| `read_file` | ACP client when fs read capability is advertised, otherwise agent process | Always silent | Read a text file or editor buffer, paginated by offset/limit (default 2000 lines, capped at 5000). Paths and symlink targets resolving outside the workspace are rejected. Local scans are byte-bounded; totals can be unknown and an incomplete line is never given a next offset. |\n| `write_file` | Agent process (ACP client `fs` when advertised) | Mode-dependent | Write or overwrite a text file. Silent in `accept_edits` and `bypass_permissions`. |\n| `edit_file` | Agent process (ACP client `fs` when advertised) | Mode-dependent | Replace one exact, unique snippet in an existing file. It refuses an input or editor buffer over the read/edit budget, and re-validates after permission and progress notification delivery to preserve changes present at the final read. Silent in `accept_edits` and `bypass_permissions`. |\n| `todowrite` | Agent process | Always silent | Create or replace the session's structured task list so multi-step progress is tracked instead of narrated in chat. Each call replaces the list; the tool result renders it back to the model. |\n| `list_files` | Agent process | Always silent | List a directory through a bounded iterator; paths or symlink targets resolving outside the workspace are rejected with no enumeration, and a truncated result is a disclosed subset. |\n| `run_command` | Agent process | Mode-dependent | Run an arbitrary shell command; cancelling a turn terminates its shell process group, while intentionally backgrounded processes survive a normal shell exit. Silent only in `bypass_permissions`. |\n| `web_search` | Agent (Z.AI Coding Plan MCP) | Always silent | Search the web — returns titles, URLs, and summaries. Deliberately silent egress: the query goes to Z.AI's service only; there is no attacker-chosen host. |\n| `web_reader` | Agent (Z.AI Coding Plan MCP) | Mode-dependent | Fetch and parse a web page (markdown or plain text). The approval prompt carries the full URL; rejection, cancellation, or permission transport errors make no network request. The approval covers the initial URL — redirects followed by the reader service are not re-prompted. Silent only in `bypass_permissions`. |\n| `ask_user_question` | ACP client (form elicitation, else permission buttons) | Never gated | Ask the user structured multiple-choice questions (1–4 questions of 2–4 options, per-question free-text \"Other\"). With `clientCapabilities.elicitation.form` the client renders an inline form; otherwise a single single-select question renders as permission buttons plus a \"None of these\" decline. A question is user input, not an operation, so no session mode bypasses it: declining completes with empty answers, dismissing the form aborts the tool call and no later call in the batch runs. |\n| `image_analysis` | Agent (Z.AI Vision MCP, stdio) | Mode-dependent (non-local) | Analyze a local image path or remote URL using `@z_ai/mcp-server`. A non-local source requires approval first: the prompt carries the full `image_source`, and rejection, cancellation, or permission transport errors make no Vision MCP call. Non-local sources are silent only in `bypass_permissions`; clearly local paths stay silent in all modes and are workspace-confined — a local `image_source` whose path or symlink target resolves outside the workspace is rejected before any Vision MCP call. |\n\nEditor edits use an optimistic read followed by a full-buffer write. ACP's `fs/write_text_file` request has no version precondition, so edits made during that write RPC can still race with the replacement. The final read preserves unrelated changes already present and rejects a target snippet that has disappeared or become ambiguous.\n\n### Session Modes\n\nClients can use `session/set_mode` to drive the permission policy:\n\n| Mode ID | Name | `write_file` | `run_command` | `web_reader` | `image_analysis` (non-local) |\n|---|---|---|---|---|---|\n| `default` | Ask for permission | **Prompt** | **Prompt** | **Prompt** | **Prompt** |\n| `accept_edits` | Auto-approve edits | Silent | **Prompt** | **Prompt** | **Prompt** |\n| `bypass_permissions` | Bypass all permissions | Silent | Silent | Silent | Silent |\n\nReads, listings, `web_search`, and session MCP tool calls are always silent across all modes, while `web_reader` and `image_analysis` with a non-local source follow the mode-dependent approval above. Local `image_analysis` paths stay silent in every mode and are confined to the session workspace.\n\nAfter the existing leading/trailing whitespace trimming, `image_analysis` skips approval only for clearly local paths: ordinary relative/absolute paths and absolute Windows drive paths such as `C:/images/cat.png`. Scheme-bearing sources (including nonstandard HTTP forms and `file:`/`data:`), network-style paths (`//host/...` or UNC paths), and sources with remaining ASCII control characters require approval. This conservative classification performs no further normalization and does not add format support to the Vision MCP. Local analysis still announces an `in_progress` tool card before dispatch; silent means no permission prompt, not no progress card.\n\nPermission prompts always carry the full, unelided tool arguments, so the user approves exactly what will run. The prompt offers exactly `allow` and `reject`, and a tool runs only when the response selects `allow` with outcome `selected`; anything else — a missing or unrecognised option id, an unknown outcome string, or a null/absent response — is treated as reject. An explicit `cancelled` outcome remains distinct from rejection.\n\n---\n\n## Slash commands\n\nAfter `session/new`, `session/load`, `session/fork`, and `session/resume`, the agent\nsends an ACP [`available_commands_update`](https://agentclientprotocol.com/protocol/v2/slash-commands)\nnotification. Clients such as Zed and Paseo use it to populate their `/` autocomplete.\nEach notification is a full snapshot that replaces the previous list.\n\nThe snapshot always includes the built-in `/usage` and `/goal` commands. Other commands use the same on-disk layout Claude Code uses, read from the\nsession's working directory and from `~/.claude` for user-level definitions:\n\n| Path | Command name |\n|---|---|\n| `<cwd>/.claude/commands/commit.md` | `/commit` |\n| `<cwd>/.claude/commands/review/pr.md` | `/review:pr` |\n| `<cwd>/.claude/skills/audit/SKILL.md` | `/audit` |\n\nProject definitions shadow user-level ones with the same name. The `description`\nand `argument-hint` keys of a file's YAML frontmatter become the menu entry's\ndescription and input hint; without a `description`, the first heading (then the\nfirst line) of the body is used instead.\n\nAdvertised names are sent **without** a leading slash — the client prepends it for\ndisplay and invokes the command by sending `/name …` as ordinary prompt text. When\nthat text names an advertised command, the agent injects the definition's body into\nthe user message, substituting `$ARGUMENTS` where the file asks for it and otherwise\nappending the typed arguments. Unknown `/foo` is left untouched and reaches the model\nas prose, so typing a slash by accident never fails the turn.\n\n### Coding Plan usage and quota\n\nSend `/usage` by itself to see the account's Coding Plan quota windows, percentage\nused, remaining allowance, and reset times when the provider supplies them. The\ncommand runs locally in the agent: it makes a quota API request but no model or\ntool calls, and its request and output are not added to model history or saved\nsession replay. `/usage` is reserved and takes precedence over a file-backed\ncommand or skill with that name. Arguments and attachments produce usage guidance.\n\nQuota queries use the existing `Z_AI_API_KEY` / `--setup` credentials and\n`GET /api/monitor/usage/quota/limit`, the endpoint used by\n[Z.AI's official usage plugin](https://github.com/zai-org/zai-coding-plugins/blob/main/plugins/glm-plan-usage/skills/usage-query-skill/scripts/query-usage.mjs).\nThe origin follows `ACP_GLM_BASE_URL`: only HTTPS on `api.z.ai`,\n`open.bigmodel.cn`, and `dev.bigmodel.cn` is supported. Custom proxies, custom\nports, and redirects are rejected for quota lookup; no key is sent to them.\nThis does not change model endpoint configuration.\n\n#### Team-seat API keys\n\nA key issued for a Z.AI **team seat** has no personal Coding Plan, so the default\nlookup fails (the provider reports that the user has no coding plan). When that\nhappens, the agent discovers the team seat automatically with the same key: it\ncalls `GET /api/biz/customer/getCustomerInfo` on the same origin, picks the\naccount's single active project with `\"projectType\": 2`, and retries with\n`GET /api/monitor/usage/quota/limit?type=2` plus\n`bigmodel-organization: <organization ID>` and `bigmodel-project: <project ID>`,\nmatching Z.AI's own desktop client. All three requests share the refresh's\ndeadline and response cap. A discovered seat is remembered in memory until the\nkey or origin changes or a lookup with it fails, so later refreshes make one\nrequest. Personal keys still make exactly one request, and authentication,\nHTTP, network, or malformed-response failures never trigger discovery. Only the\ntwo IDs are read from the account reply; names, contact details, and IDs are\nnever included in errors. If discovery fails or finds no team project, the\noriginal \"no coding plan\" error is reported.\n\nIf the account belongs to more than one active team project (or lists more than\n64 organizations or projects), the agent does not guess: quota is reported as\n`requestFailed` and asks you to choose the seat. Set the team's organization ID\nand project ID explicitly to override discovery:\n\n```bash\nexport Z_AI_ORGANIZATION_ID=org-xxxxxxxxxxxxxxxx\nexport Z_AI_PROJECT_ID=proj-xxxxxxxxxxxxxxxx\n```\n\n…or enter both when `glm-acp-agent --setup` asks for them (stored as\n`z_ai_organization_id` / `z_ai_project_id` in `credentials.json`). When either\nenvironment variable is set (including to a blank value to clear a stored seat),\nthe environment pair wins over the file as a unit.\nWith both set, discovery is skipped and the lookup goes straight to `?type=2`\nwith those IDs. If only one is set, or a value contains whitespace or control\ncharacters, quota is reported as `missingCredentials` and no request is sent.\nThese settings only affect quota lookup; model requests are unchanged.\n\nResults are cached in memory for 60 seconds and concurrent lookups share one\nrequest per account. Failed attempts are also cached for 60 seconds. A refresh\nhas a 10-second deadline and a 256 KiB response cap. A transient failure retains\nthe previous values with an explicit stale notice and their last successful\ntimestamp. Authentication failures clear previous values; changing credentials,\nteam seat, or origin invalidates the cache. Cancelling `/usage` stops waiting immediately; a\nshared request can finish and populate the cache for another caller. Disconnecting\nthe ACP transport aborts the request.\n\nThe reader accepts both `CREDIT_LIMIT` and legacy `TOKENS_LIMIT` entries, plus\n`TIME_LIMIT` MCP allowances. It uses returned percentages and counts, deriving\npercentages or remaining counts only when the necessary totals are present.\nUnknown quota types are ignored; missing or unrecognized data is reported as\nunavailable rather than zero. No fixed plan allowances are assumed. Duration\nunits known to the reader are hours, days, and weeks (a team seat's\n`unit: 6, number: 1` window is reported as `1-week`, `kind: \"weekly\"`,\n`windowDurationMins: 10080`); other units retain an unspecified duration. The monitoring endpoint is not a versioned public quota\ncontract, so provider changes or account restrictions may make quota unavailable.\n\n### Goals (`/goal`)\n\n`/goal` sets one condition for the session and keeps the agent working toward it across turns, so you state an outcome once instead of sending \"keep going\" after every premature stop. It follows the `/goal` commands of Claude Code, Codex CLI, Kimi Code, and Hermes Agent, adapted to ACP: the agent cannot start a turn on its own, so the loop runs inside the `session/prompt` call. The client sees one long turn, and `session/cancel` (the stop button) is the escape hatch.\n\n```\n/goal all tests in test/auth pass and the lint step is clean\n```\n\nSetting a goal starts working immediately. When the model ends a turn, a separate **evaluator** model — a plain, tool-less completion on the session's model by default — reads the condition and a bounded window of the recent transcript and returns one verdict:\n\n| Verdict | What happens |\n|---|---|\n| `met` | The goal is marked achieved and the loop ends. |\n| `impossible` | The goal is marked blocked and paused; re-scope it with `/goal <condition>` or override with `/goal resume`. |\n| `not_met` | The evaluator's reason is fed back as the next round's instructions and the agent continues. |\n| `needs_input` | The round ended with a question for you. The goal pauses as `paused (awaiting input)` and shows the question; your reply resumes it. No round is spent. |\n\nThe evaluator never runs tools, so it can only judge what the agent has surfaced: the directive tells the model to run the verification the condition names (tests, lint, a build) and show the output before stopping. The agent's own goal directives are replaced by one-line markers in the evaluator's window, so instructions are never mistaken for evidence. Write conditions with one measurable end state and a stated check, as you would for the other agents' `/goal` commands.\n\nTo confirm which model actually judged, `/goal` status reports the model the provider says served the last evaluation next to the configured one: `- Evaluator: glm-5.3-flash (last verdict answered by glm-5.3-flash)`. The provider stamps every response with the serving model, so a routed alias shows up as such (`glm-5.2` … answered by `glm-5.3`). With `ACP_GLM_DEBUG=1` the agent also logs every provider call to stderr; the evaluator is the `streamChat: model=<id> … tools=0` line. Zed forwards only warnings and errors from an agent's stderr to its log, so inside Zed the status line is the check.\n\n| Command | Action |\n|---|---|\n| `/goal <condition>` | Set or replace the goal (up to 4,000 characters) and start the first round. |\n| `/goal --judge <model> <condition>` | Same, with this goal evaluated by `<model>` instead of the agent-wide default. `<model>` is an advertised model id (the `session/set_model` list, matched case-insensitively); an unknown id is rejected with the list. |\n| `/goal --turns <n> <condition>` | Same, with each round allowed up to `<n>` model/tool turns instead of the agent-wide default. |\n| `/goal --turns unlimited <condition>` | Same, with no turn limit at all; a round ends only when the model stops, you cancel, or a request fails. |\n| `/goal` or `/goal status` | Show the condition, status, rounds used, running time, turn limit, evaluator, token spend, and the last verdict with its reason. Sent while a round is running, it answers and the round picks back up — as does `/usage`, or any other command the agent answers itself. |\n| `/goal pause` | Stop auto-continuation and keep the goal. |\n| `/goal resume` | Continue a paused or blocked goal with a fresh round budget. `--turns <n\\|unlimited>` and `--judge <model>` update the paused goal before it continues, so a turn-limit pause is fixable without retyping the condition; invalid values are errors that leave the goal untouched. |\n| `/goal clear` | Drop the goal (`stop`, `off`, `reset`, `cancel`, and `none` are aliases). |\n\nOptions may come before or after the condition, in any order, and both are optional: `/goal --turns 300 --judge glm-5.3-flash fix the build` and `/goal fix the build --judge glm-5.3-flash` are equivalent. A control word counts only as the whole command: `/goal pause after verification` is an error (`/goal pause takes no arguments`), never a goal with that text, and `/goal resume` accepts nothing but its two options. Any `--word` in the input is read as an option and rejected if it is not one of the two above, so a mistyped `--judge Uncle Bob` is an error rather than goal text; a trailing option's value runs to the end of the input. Use `-- ` before the condition to turn option parsing off entirely, for a condition that contains `--word` prose or starts with a control word.\n\nTwo independent budgets bound a goal. The **round budget** (`ACP_GLM_GOAL_MAX_ROUNDS`, 20) counts how many times the evaluator sends the agent back to work. The **turn limit** bounds each round's own tool-calling loop, exactly as it bounds an ordinary prompt (`ACP_GLM_MAX_TURNS`, 100 by default). A long round — a big migration, a full test-suite fix-up — can therefore stop with `[stopped: reached the 100-turn limit]` and pause the goal before the evaluator ever runs. `--turns <n>` raises (or lowers) that limit for one goal and `--turns unlimited` removes it; `ACP_GLM_GOAL_MAX_TURNS` changes the default for every goal. `/goal resume` starts a fresh round with the goal's limit intact, so a goal paused on its turn limit hits the same wall again unless you set a new goal with a higher `--turns`.\n\nThe loop pauses itself — keeping the goal, so `/goal resume` continues it — when:\n\n- the round budget is used up (`ACP_GLM_GOAL_MAX_ROUNDS`, default 20 continuation rounds per activation);\n- three rounds in a row without progress — no tool call, or only questions you declined and calls you rejected (the model is answering the evaluator instead of working);\n- a round uses up its turn limit, or ends on another stop reason such as `max_tokens`;\n- a round dies on a thrown error — a dropped provider connection, a failed request — so the next ordinary message does not quietly restart autonomous work;\n- the evaluator cannot be reached or does not answer in the verdict format (one retry, then pause);\n- you dismiss an `ask_user_question` form the agent opened mid-round (`paused (question dismissed)`: answer in a message, then `/goal resume`);\n- the agent ends a round with a question for you (`paused (awaiting input)`): reply to continue, with a fresh round budget;\n- you cancel the turn. A newer prompt sent while a round is running does not pause the goal: it supersedes the round, its own turn is judged when it ends, and the loop continues from there.\n\nThe directive tells the model not to ask you what to do next, but not to avoid questions: when a decision only you can make is blocking the work, it asks with `ask_user_question` when the client offers it (see [Available Tools](#available-tools)), and otherwise ends its turn with the question — the evaluator then returns `needs_input`, the goal waits, and your reply continues it. A question you *decline* completes the round — the model may proceed on a stated assumption — but it does not count as progress, and neither does a tool call you reject at the permission prompt, so a model that keeps asking or retrying a rejected edit instead of working stops after three rounds. Token spend counts every call, including failed evaluator attempts, and the usage reported for a goal prompt covers all of its rounds.\n\nYour messages steer the goal: a plain message sent while a round is running aborts that round, runs your message's turn, judges it, and continues the loop; a reply while the goal is `awaiting input` resumes it with a fresh budget. Every other pause keeps needing `/goal resume`. Because ACP makes every prompt a turn, a command the agent answers itself — `/goal status`, `/usage`, even a mistyped `/goal` command — also interrupts the running round; it answers and the round then picks back up (`[goal] Continuing after /usage — picking up the interrupted round`), costing no round. Only `/goal pause` and `/goal clear` stop the goal. A new thread started with `/goal <condition>` is titled by the condition, not the command.\n\nA goal does not change the permission mode. In `default` mode every edit and command of every round still prompts, so run a goal under `accept_edits` or `bypass_permissions` if you want it unattended. Each round is a normal user-role message (the client shows it as `[goal 3/20] Continuing — not met yet: <reason>`), which keeps the system prompt untouched and lets the goal survive context compaction. Goals are persisted with the session and restored by `session/load`, `session/resume`, and `session/fork` with their round counter, no-progress streak, and timer reset; the condition, status, and token spend carry over.\n\n### ACP quota extension (version 1)\n\nInitialization advertises this custom capability in `agentCapabilities._meta`:\n\n```json\n{\n  \"glm-acp-agent/usage\": { \"version\": 1, \"method\": \"_glm/usage\" }\n}\n```\n\nClients can then send an account-level request, without creating a session:\n\n```json\n{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"_glm/usage\", \"params\": {} }\n```\n\nThe response's `result` has this shape (illustrative values):\n\n```json\n{\n  \"version\": 1,\n  \"checkedAt\": \"2026-10-24T12:00:00.000Z\",\n  \"stale\": false,\n  \"windows\": [{\n    \"id\": \"credit_limit-3-5\",\n    \"label\": \"5-hour Model quota\",\n    \"kind\": \"session\",\n    \"windowDurationMins\": 300,\n    \"usedPercent\": 25,\n    \"used\": 500,\n    \"limit\": 2000,\n    \"remaining\": 1500,\n    \"unit\": \"credits\",\n    \"resetsAt\": \"2026-10-24T17:00:00.000Z\"\n  }]\n}\n```\n\n`kind` is `session`, `weekly`, `monthly`, or `other`. `usedPercent` is bounded to\n0–100. Duration, counts, count unit (`credits` or `calls`), and reset timestamp\nare optional; legacy counts intentionally have no asserted unit. `checkedAt`\nand `resetsAt` are UTC ISO timestamps. Window IDs identify the provider's quota\ntype and duration; clients should replace the window list on each response.\n\nUnavailable results include `unavailable: { \"reason\": \"…\", \"message\": \"…\" }`.\nReasons are `missingCredentials`, `unsupportedEndpoint`, `authenticationFailed`,\n`requestFailed`, and `invalidResponse`. With cached data, `stale` is true and\n`checkedAt` remains the time of the last successful read; otherwise `windows` is\nempty, `stale` is false, and `checkedAt` is the attempt time. Provider bodies,\nkeys, and raw network errors are never returned. Nonempty or invalid parameters\nproduce JSON-RPC `-32602`; unknown methods produce `-32601`.\n\nThis extension describes account quota, not the model's context window or\nper-prompt token usage. It does not emit ACP `usage_update`. Clients such as T3\nCode must explicitly implement the extension to populate native plan-limit bars;\nthe built-in `/usage` command works without that integration. There is no quota\nrequest during initialization or ordinary model prompts, and no background poller.\n\n---\n\n## Prerequisites\n\n- **Node.js** 20.19.0+, 22.13.0+, or 24+ (native `fetch` and Web Streams required)\n- **npm** 9 or later\n- A **Z.AI API key** — obtain one at <https://z.ai/manage-apikey/apikey-list>\n\n---\n\n## Installation\n\n### Quick Start\n\nInstall the published package globally to get the `glm-acp-agent` command on your `PATH`:\n\n```bash\nnpm install -g glm-acp-agent@latest\n```\n\nThen either export your Z.AI API key and run it directly:\n\n```bash\nexport Z_AI_API_KEY=your_key_here\nglm-acp-agent\n```\n\n…or run the interactive setup once to persist the key to disk (see [One-time setup](#one-time-setup)) and point any ACP-compatible client at the `glm-acp-agent` command.\n\n### From Source (Development)\n\nClone the repository if you want to hack on the agent or pin a specific commit:\n\n```bash\ngit clone https://github.com/stefandevo/glm-acp-agent.git\ncd glm-acp-agent\nnpm install\nnpm run build\n```\n\nThe build output lands in `dist/`; the rest of this README uses `node dist/index.js` whenever it refers to the source-build entry point.\n\n---\n\n## Configuration\n\nThe agent reads its configuration from environment variables, plus an optional credentials file written by `glm-acp-agent --setup`.\n\n| Variable | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `Z_AI_API_KEY` | One of env / `--setup` | — | API key for the Z.AI / Zhipu AI service. If unset, the credentials file is consulted. |\n| `Z_AI_ORGANIZATION_ID` | No | — | Team-seat organization ID override, used only for quota lookup (team seats are normally discovered automatically). Set together with `Z_AI_PROJECT_ID`; see [Team-seat API keys](#team-seat-api-keys). Falls back to the credentials file. |\n| `Z_AI_PROJECT_ID` | No | — | Team-seat project ID override (`projectType: 2`), used only for quota lookup. Set together with `Z_AI_ORGANIZATION_ID`. |\n| `ACP_GLM_MODEL` | No | `glm-5.4` | Default GLM model for new sessions |\n| `ACP_GLM_AVAILABLE_MODELS` | No | built-in list | Comma-separated list of model ids advertised in `session/set_model` |\n| `ACP_GLM_BASE_URL` | No | `https://api.z.ai/api/coding/paas/v4` | Override the API base URL |\n| `ACP_GLM_MAX_TOKENS` | No | `32768` | Cap on `max_tokens` for each completion. Invalid values fall back to the default with a stderr warning. |\n| `ACP_GLM_MAX_TURNS` | No | `100` | Max model turns per prompt (also settable via `--max-turns`). The final turn's tool calls still run and their results are saved |\n| `ACP_GLM_GOAL_MAX_ROUNDS` | No | `20` | Continuation rounds a `/goal` may run per activation before it pauses itself. Invalid values fall back to the default with a stderr warning. |\n| `ACP_GLM_GOAL_MAX_TURNS` | No | `ACP_GLM_MAX_TURNS` (100) | Model/tool turns each `/goal` round may take before it pauses on its turn limit; a positive integer or `unlimited`. A goal's `--turns` flag takes precedence. Invalid values fall back to the default with a stderr warning. |\n| `ACP_GLM_GOAL_JUDGE_MODEL` | No | session model | Model that evaluates `/goal`; must be an advertised model id. A goal's `--judge <model>` flag takes precedence. Invalid values are ignored with a stderr warning. |\n| `ACP_GLM_COMMAND_TIMEOUT_MS` | No | `120000` | Deadline for each `run_command`, in milliseconds. Invalid values fall back to the default with a stderr warning. |\n| `ACP_GLM_COMMAND_OUTPUT_LIMIT_BYTES` | No | `65536` | Maximum combined bytes captured from each `run_command` stdout and stderr. Further output is drained and reported as truncated. Invalid values fall back to the default with a stderr warning. |\n| `ACP_GLM_TOOL_RESULT_LIMIT_BYTES` | No | `262144` | Inclusive UTF-8 byte limit for every model-facing tool result. It preserves a prefix and suffix with an omitted-bytes marker; values below 128 fall back with a stderr warning. |\n| `ACP_GLM_READ_FILE_LIMIT_BYTES` | No | `8388608` | Maximum local bytes consumed while reading a page or whole file for `edit_file`. A bounded scan may not know the total line count. |\n| `ACP_GLM_LIST_FILES_MAX_ENTRIES` | No | `2000` | Maximum entries collected by `list_files`; larger directories return a disclosed subset. |\n| `ACP_GLM_LIST_FILES_LIMIT_BYTES` | No | `262144` | Maximum bytes assembled for a `list_files` result before its truncation marker. |\n| `ACP_GLM_THINKING` | No | auto-detected | Force thinking mode `true` / `false` |\n| `ACP_GLM_STREAM_THINKING` | No | `true` | Forward reasoning tokens to the client as `agent_thought_chunk`; set `false` to keep reasoning off the wire (the model still thinks — only the client-side stream is silenced) |\n| `ACP_GLM_STREAM_IDLE_TIMEOUT_MS` | No | `300000` | Idle deadline in milliseconds for a stalled model-provider stream read; invalid values fall back to the default with a stderr warning. |\n| `ACP_GLM_SESSION_DIR` | No | `$XDG_STATE_HOME/glm-acp-agent/sessions` | Where session JSON files are persisted |\n| `ACP_GLM_DEBUG` | No | — | Set to `true` or `1` to enable verbose debug logging to stderr (shows model selection, API key resolution, tool calls, and usage stats) |\n| `XDG_CONFIG_HOME` | No | `~/.config` | Where the credentials file is read/written |\n\n### One-time setup\n\nIf you'd rather not pass `Z_AI_API_KEY` through your ACP client's environment block, run the interactive setup once and the agent will read the key from disk on subsequent launches:\n\n```bash\nglm-acp-agent --setup\n```\n\nIf you're working from a source clone instead of the published package, use the build output directly:\n\n```bash\nnode dist/index.js --setup\n```\n\nThe key is written to `$XDG_CONFIG_HOME/glm-acp-agent/credentials.json` (default: `~/.config/glm-acp-agent/credentials.json`) with `0600` permissions. The `Z_AI_API_KEY` environment variable, when set, always wins over the file.\n\nSetup then asks for an optional team-seat organization ID and project ID; leave both blank for a personal key or to let the agent discover the team seat. Entering only one aborts setup. See [Team-seat API keys](#team-seat-api-keys).\n\n### Supported models\n\nThe agent advertises only the models on the current Z.AI Coding Plan allowlist:\n\n| Model | Notes |\n|-------|-------|\n| `glm-5.4` | **Default.** Newest flagship. Native-vision 1M-context model; thinking mode always on; 128K maximum output |\n| `glm-5.3` | Previous default. 1M-context coding model; thinking mode always on; text-only (images go through Vision MCP) |\n| `glm-5.3-flash` | Native-vision 1M-context model; cheaper Coding Plan quota |\n| `glm-5-turbo` | Faster Coding Plan reasoning model; 128K context |\n| `glm-4.7` | 200K-context reasoning model |\n\nNew sessions start on `glm-5.4`. Set `ACP_GLM_MODEL=glm-5.3` to start them on the previous default. A loaded or resumed session keeps the model it was saved with.\n\nThe Coding Plan endpoint serves `glm-5.4` under its own name. A request for it comes back with `\"model\": \"glm-5.4\"`. Its 1M context, 128K maximum output and image input come from Z.AI's [GLM-5.4 model page](https://docs.z.ai/guides/llm/glm-5.4). Use the plain id in `ACP_GLM_MODEL` and `ACP_GLM_AVAILABLE_MODELS`. Z.AI's Claude Code guide writes the model as `glm-5.4[1m]`, but the OpenAI-compatible Coding Plan endpoint rejects that form with business code `1211` (\"Unknown Model\").\n\nOnly models the Coding Plan endpoint serves **under their own name** are advertised. Several ids that used to be listed are now aliases: a request for `glm-5.2` or `glm-5.1` comes back with `\"model\": \"glm-5.3\"`, and `glm-4.5-air` comes back as `glm-4.7`. They still work, but advertising them would report a model you are not actually talking to. Z.AI's Coding Plan overview currently also claims `glm-5-turbo` and `glm-4.7` requests are routed to GLM-5.3-Flash; that has not been confirmed by a live probe here, so both ids stay in the picker. `glm-5v-turbo` is no longer on the Coding Plan allowlist — selecting it fails with business code `1311` (\"subscription plan does not yet include access\").\n\nThe `usage_update` context size comes from a built-in per-model table; ids outside it (for example custom `ACP_GLM_AVAILABLE_MODELS` entries) report a 128K window, so the size can be wrong for them.\n\n`ACP_GLM_AVAILABLE_MODELS` lets you advertise any id you like, including the ones above. Custom ids sit outside the supported Coding Plan list — the endpoint rejects any model code Z.AI hasn't whitelisted (business code `1211`). The native-vision path is unchanged, so if your plan does include `glm-5v-turbo`, add it back with `ACP_GLM_AVAILABLE_MODELS` and image blocks still reach it as native `image_url` content parts.\n\nVision-only chat models (`glm-4v-plus` etc.) are **not** advertised. `glm-5.4` and `glm-5.3-flash` are the built-in native-vision Coding Plan models (`image_url` content parts). `glm-5.3`, `glm-5-turbo`, and `glm-4.7` still use the [Vision MCP](#vision-mcp) path. `glm-5v-turbo`, when re-added via the override above, keeps native `image_url` handling as an opt-in exception.\n\nWhen the model name matches `glm-4.5`, `glm-4.6`, `glm-4.7`, or the `glm-5` family, the agent enables Z.AI's `thinking: { type: \"enabled\" }` extension and forwards reasoning tokens to the client as `agent_thought_chunk` blocks. This includes `glm-5.3-flash` and `glm-5v-turbo`. `ACP_GLM_THINKING=false` asks for plain completions on models that still accept `thinking.type: \"disabled\"` (GLM-4.7, GLM-5 Turbo). On GLM-5.4, GLM-5.3 and GLM-5.3-Flash the flag is a no-op: GLM-5.3 and Flash reject `disabled`, and GLM-5.4 accepts it but keeps reasoning, so the agent leaves thinking enabled rather than sending it (see [Thought level](#thought-level-reasoning-effort) below).\n\nThe provider stream itself is guarded against stalls. The Z.AI SDK's HTTP timeout only covers waiting for response headers — a response whose body stops mid-stream would otherwise hang the turn forever. The agent therefore aborts a provider stream read that produces no data for `ACP_GLM_STREAM_IDLE_TIMEOUT_MS` milliseconds (default `300000`; invalid values for the variable fall back to the default with a stderr warning). On timeout, whatever partial output already reached the user is kept, an `[error]` message is appended as an agent message, the turn ends, and the last valid on-disk session checkpoint is preserved. A slow ACP client back-pressuring chunks it already received does not trip the watchdog — only silence from the provider between reads does.\n\nA dropped network connection is handled separately from a stall. Each provider client has its own connection pool. When a request fails before an HTTP status arrives (`APIConnectionError`, including a connection timeout, or a socket error such as `ECONNRESET`), the agent closes that pool once nothing is still sending on it, and later requests open another. A retry another session already started follows that replacement, so closing the old pool does not fail the retry locally. The OpenAI client retries a failed open twice (`maxRetries: 2`). Those same two retries cover HTTP 408, 409, 429, and 5xx. The agent does not wrap the client in a second retry loop. If the link is still down after that budget, the turn ends with `stopReason: \"cancelled\"` instead of a JSON-RPC internal error, and the session stays open. ACP's stop reasons have no transport-failure value. `cancelled` is the incomplete turn: `refusal` would tell the client to leave this prompt out of the next one, and a thrown JSON-RPC error is what makes some clients reuse the dead connection. The user message stays in the session. When the turn produced no assistant text and no tool result, the agent also stores `Connection lost before a reply was saved. Your message is still in the session. Send another message to continue.` as an assistant message, and sends that same sentence as the live notice. That note is the record of the failed turn. It is not a retry id: sending the same text again appends a second user message, and sending different text continues with the original prompt still in context. Assistant text or a tool result that already arrived is kept unchanged, with no extra note. The next message continues the same session on a new connection. An HTTP status such as 400 or 401 fails the turn.\n\nA socket reset after response bytes have started is not retried. That turn still ends with `stopReason: \"cancelled\"` and a connection-lost notice, and the text or tool result already in the session stays there. The idle-stream watchdog and an incomplete tool-call stream still fail the turn with an error and leave the previous checkpoint in place.\n\nCancelling a turn keeps the user's prompt whether or not the history was compacted for that request. When compaction already ran and the turn produced no assistant text or tool result, a cancel and a dropped connection both restore the pre-compaction messages and keep the prompt, so the saved checkpoint still contains the earlier exchange. A drop that already produced assistant text or a tool result keeps that shortened transcript, because the output was generated against it.\n\n`ACP_GLM_MAX_TURNS` (default 100, also `--max-turns`) counts model turns, not tool calls. Reaching it does not cancel the turn in progress. Every tool call the model already issued in that final turn runs to completion, its real result is saved, and the prompt stops with `max_turn_requests`. The client notice is `[stopped: reached the N-turn limit — send a message to continue (the last turn's tool results were saved)]`.\n\nA user abort is a different path: `session/cancel`, a new `session/prompt` on the same session, the connection closing, or `session/load` / `session/resume` / `session/close` while a prompt is still draining. The executor reports each call as not started, interrupted, or completed. History keeps only calls that actually started, in their original order. A call that never ran — including one aborted while it was waiting for permission — is removed from the assistant message, and its tool card is marked failed if the client already showed it. The transcript does not gain `Tool call cancelled before execution.` or `cancelled by turn` placeholders for those calls. A call that was running when the abort arrived is saved with an explicit result: `Interrupted: the user cancelled this turn while this tool was running. Its outcome is unknown and may be partial; inspect state before relying on or repeating it.` A command killed mid-run keeps the output captured so far and then that marker. Every remaining `tool_call` has a matching tool message. If that list is shorter than the model requested, `reasoning_content` on that assistant message is dropped. If the abort arrives while the model is still streaming, the assistant `tool_calls` message is not saved; assistant text already received is kept as a plain assistant message. A tool that fails on its own, before any abort, still records `Tool call not started because an earlier tool's outcome is unknown.` for the calls after it.\n\n#### Thought level (reasoning effort)\n\nThe agent advertises a `thought_level` [SessionConfigOption](https://agentclientprotocol.com) so clients that support config options (e.g. a \"Thinking\" selector) can control reasoning effort per session. The available levels depend on the active model:\n\n| Model | Levels | Mapping to the Z.AI request |\n|-------|--------|-----------------------------|\n| `glm-5.3` (and `glm-5.2` / `glm-5.1`, which route to 5.3) | `Minimal` / `Low` / `Medium` / `High` / `X-High` / `Max` | `thinking: { type: \"enabled\" }` + `reasoning_effort` set to the matching value |\n| `glm-5.4` | `Minimal` / `Low` / `Medium` / `High` / `X-High` / `Max` | Same mapping |\n| `glm-5.3-flash` | `Low` / `High` / `Max` | Same mapping; Z.AI only documents these three levels for Flash |\n| other thinking-capable models | `Off` / `On` | `Off` → `thinking: { type: \"disabled\" }`; `On` → `thinking: { type: \"enabled\" }` |\n\n**GLM-5.4, GLM-5.3 and GLM-5.3-Flash have no `Off` level, because thinking cannot be turned off on them.** On GLM-5.3 and GLM-5.3-Flash, sending `thinking: { type: \"disabled\" }` now errors (it is no longer a silent no-op). GLM-5.4 accepts `disabled` and `reasoning_effort: \"none\"` without an error, but still reasons at about its `Low` level. On all three the agent leaves thinking enabled rather than sending `disabled`, so `ACP_GLM_THINKING=false` is a no-op. Use `glm-4.7` if you need non-reasoning completions — with the caveat that if Coding Plan really routes turbo/4.7 to Flash, a session that picks `glm-4.7` + thought level `Off` may 4xx.\n\n`reasoning_effort` takes effect on GLM-5.4 and the GLM-5.3 family; `glm-5-turbo` and `glm-4.7` accept the field without validating it and answer identically either way, so the agent omits it for them. New sessions default to `Max`, which is also Z.AI's default when the field is omitted, so out-of-the-box behaviour is unchanged. Switching models re-clamps the level (an effort-ladder selection reverts to `On` when you move to GLM-4.7; an `Off` selection becomes `Max` on GLM-5.4 / GLM-5.3 / Flash; switching from GLM-5.3 onto Flash maps `minimal`→`low`, `medium`→`high`, `xhigh`→`max`) and pushes a `config_option_update`. Clients that don't support config options simply ignore the advertised option and get the default behaviour.\n\nThe endpoint validates `reasoning_effort` against `none | minimal | low | medium | high | xhigh | max` on GLM-5.3. GLM-5.3-Flash's documented values are only `low | high | max`, so the agent advertises that shorter ladder for Flash. `none` is never offered on either model.\n\nGLM-5.4 does not validate `reasoning_effort`. An unknown value returns HTTP 200 and runs at the default level, `max`. A probe on 2026-11-23 with 16 samples per level found that GLM-5.4 and GLM-5.3 respond to the ladder the same way: `minimal` behaved like `low`, `xhigh` like `max`, and `low`, `medium` and `high` each produced a distinct reasoning budget. The agent therefore advertises the full ladder for GLM-5.4 too.\n\n`ACP_GLM_PROMPT_IMAGES=false` still hides the image-attachment capability at session startup. With that flag set, clients should not offer image attachments at all.\n\nSwitching to a text-only model is rejected while retained conversation history contains native images. Keep an image-capable model or start a text-only session with a textual description; images are never silently discarded or analyzed as part of a model switch. During an active prompt on a native-image model, wait for the turn to finish before switching to text-only capability. Other compatible selections affect subsequent model calls, while an in-flight call keeps its captured model and reasoning level. Restored histories receive the same compatibility check before a provider request.\n\n### Vision MCP\n\nFor `glm-5.4` and `glm-5.3-flash` (built-in) and `glm-5v-turbo` (opt-in via `ACP_GLM_AVAILABLE_MODELS`), pasted ACP image blocks with `image/jpeg`, `image/jpg`, or `image/png` are sent directly to chat completions as `image_url` content parts. A prompt without a supported image is sent as plain text, the same as on every other model. HTTPS image URLs are forwarded as URLs; inline base64 data is sent as a `data:<mime>;base64,...` URI. Unsupported image MIME types are rejected client-side with an inline `<image_unsupported_format>` annotation so the prompt can continue without a provider 4xx.\n\nFor non-native models (`glm-5.3`, `glm-5-turbo` and `glm-4.7`), pasted ACP image blocks are not sent to the chat-completions endpoint. Instead, the agent boots `@z_ai/mcp-server` over stdio (via `npx -y @z_ai/mcp-server@latest`) and calls its `image_analysis` tool. The text result is spliced into the user message as `<image_analysis index=\"N\">…</image_analysis>` so the regular Coding Plan model can reason about it.\n\nPrerequisites:\n\n- `npx` on `PATH` (Node 18+ / npm 9+).\n- The same `Z_AI_API_KEY` used for chat completions; the agent forwards it to the MCP server as `Z_AI_API_KEY` plus `Z_AI_MODE=ZAI`.\n\nThe model can also call `image_analysis` explicitly with `{ image_source: \"/path/or/url\", prompt?: \"…\" }`. A non-local source requires the same ACP permission approval as `web_reader` before the Vision MCP call — the prompt carries the full `image_source`, and only `bypass_permissions` skips it — while local paths stay silent and are workspace-confined: a local `image_source` whose path or symlink target resolves outside the session workspace is rejected before any Vision MCP call. Vision failures (missing `npx`, MCP startup, quota) are surfaced as actionable errors but never abort the prompt; an inline `<image_analysis_error>` annotation is used so the conversation can continue.\n\n---\n\n## Running\n\n### Standalone (stdio)\n\nIf you installed the published package globally, just run the CLI:\n\n```bash\nexport Z_AI_API_KEY=your_key_here\nglm-acp-agent\n```\n\nIf you built from source, invoke the entry point directly:\n\n```bash\nexport Z_AI_API_KEY=your_key_here\nnode dist/index.js\n```\n\nThe agent speaks the ACP newline-delimited JSON protocol over stdin/stdout. You can connect any ACP-compatible client to it.\n\n### Development mode (watch)\n\nWhen working from a source clone, run `tsc` in watch mode so `dist/` rebuilds on every save:\n\n```bash\nexport Z_AI_API_KEY=your_key_here\nnpm run dev        # tsc --watch\n```\n\n---\n\n## Connecting to an ACP Client\n\n### Zed (recommended for local testing)\n\n[Zed](https://zed.dev) is currently the most polished editor for trying out ACP agents locally — it spawns the agent process over stdio and surfaces it in the agent panel. This is the fastest way to iterate on `glm-acp-agent` before publishing it to the ACP registry or to npm.\n\n#### 1. Prerequisites\n\n- A recent build of [Zed](https://zed.dev/download) that supports the `agent_servers` setting\n- Node.js 20.19.0+, 22.13.0+, or 24+ on your `PATH` (`node --version`)\n- A Z.AI API key — create one at <https://z.ai/manage-apikey/apikey-list>\n\n#### 2. Install the agent\n\nFollow either path from the [Installation](#installation) section above:\n\n- **Quick Start** — `npm install -g glm-acp-agent@latest`. Zed can then spawn the agent with `\"command\": \"glm-acp-agent\"`.\n- **From source** — clone, `npm install`, `npm run build`. Zed needs the absolute path to the built entry point (no `~`, no `$HOME` shortcuts):\n\n  ```bash\n  echo \"$(pwd)/dist/index.js\"\n  ```\n\n#### 3. Wire it into Zed\n\nOpen (or create) `~/.config/zed/settings.json` and add an `agent_servers` entry. Pick **one** of the two API-key strategies below.\n\n**Option A — inline `env` block (simplest):**\n\n```json\n{\n  \"agent_servers\": {\n    \"glm\": {\n      \"command\": \"glm-acp-agent\",\n      \"env\": { \"Z_AI_API_KEY\": \"sk-…\" }\n    }\n  }\n}\n```\n\nIf you installed from source instead of the published package, replace `command` / `args` with the absolute path to the build output:\n\n```json\n{\n  \"agent_servers\": {\n    \"glm\": {\n      \"command\": \"node\",\n      \"args\": [\"/absolute/path/to/glm-acp-agent/dist/index.js\"],\n      \"env\": { \"Z_AI_API_KEY\": \"sk-…\" }\n    }\n  }\n}\n```\n\n**Option B — credentials file (no key in your editor settings):**\n\nRun the interactive setup once:\n\n```bash\nglm-acp-agent --setup\n```\n\nIf you're working from a source clone, use the build output directly: `node dist/index.js --setup`.\n\nThe key is written to `~/.config/glm-acp-agent/credentials.json` with `0600` permissions. Then drop the `env` block from the Zed entry — the agent will read the file on launch:\n\n```json\n{\n  \"agent_servers\": {\n    \"glm\": {\n      \"command\": \"glm-acp-agent\"\n    }\n  }\n}\n```\n\nIf `Z_AI_API_KEY` is set in the environment **and** a credentials file exists, the environment variable wins.\n\n#### 4. Verify it works\n\n1. Save `settings.json`. Zed reloads settings automatically.\n2. Open the **agent panel** (use the command palette: `agent panel: toggle focus`).\n3. In the agent picker, select **glm** — Zed labels external agents by their `agent_servers` key.\n4. Start a new thread and send a small prompt that exercises a tool, e.g. `Read package.json and tell me the project name.`\n5. You should see streaming text, a `read_file` tool call that runs without a permission prompt, and (with a thinking-capable model like `glm-5.3`) reasoning surfaced as a separate thought block. Writes and shell commands require approval in the default mode.\n\n#### 5. Iterating on the agent\n\nAfter editing the source, rebuild:\n\n```bash\nnpm run build\n```\n\nZed spawns a fresh agent process per thread, so the easiest way to pick up changes is to **start a new thread** with the glm agent. If you see stale behavior, fully quit and reopen Zed — that guarantees no in-flight process is reused.\n\nFor a tighter inner loop, run `npm run dev` in a terminal so `dist/` rebuilds on every save; you only need to start a new Zed thread to test the latest code.\n\n#### 6. Troubleshooting\n\n- **The \"glm\" agent doesn't appear in the picker.** — `settings.json` likely has a JSON parse error, or your Zed build is older than `agent_servers` support. Open the Zed log via the command palette (`zed: open log`) and look for settings errors.\n- **`Error: Cannot find module '/.../dist/index.js'`** — you skipped `npm run build`, or the path in `args` is wrong. It must be absolute and point at a file that exists.\n- **`No API key found.`** — neither `Z_AI_API_KEY` nor `~/.config/glm-acp-agent/credentials.json` is set. Use Option A or Option B in step 3.\n- **`HTTP 401: Invalid API key`** — your key is wrong, expired, or for the wrong region. Rotate it on <https://z.ai/manage-apikey/apikey-list>.\n- **A write or command did not run.** — approve the ACP permission prompt for that tool call. Rejected or cancelled prompts are reported back to the model as skipped operations.\n\n### Neovim / VS Code / JetBrains / any ACP client\n\nAny client that supports configuring an ACP agent via a `command` + `args` invocation works the same way:\n\n- If you installed via `npm install -g glm-acp-agent@latest`, set `command` to `glm-acp-agent` (no args required).\n- If you built from source, set `command` to `node` and `args` to `[\"/absolute/path/to/glm-acp-agent/dist/index.js\"]`.\n\nSupply `Z_AI_API_KEY` in the environment, or run `glm-acp-agent --setup` once so the agent reads the key from disk on launch.\n\n### Authentication\n\nThe agent advertises two authentication methods at `initialize` time:\n\n1. An **`agent`-default** method — the agent will read the API key itself, either from the `Z_AI_API_KEY` environment variable or from the credentials file written by `glm-acp-agent --setup`.\n2. An **`env_var`** method (experimental SDK extension) describing the `Z_AI_API_KEY` variable so capable clients can prompt the user and inject it.\n\nACP clients that support the auth-methods proposal will use whichever method they recognise; clients that don't handle auth methods should set `Z_AI_API_KEY` themselves before launching the agent (or run `glm-acp-agent --setup` once and let the agent read it from disk).\n\n---\n\n## Project Structure\n\n```text\nsrc/\n├── index.ts                  # Entry point – starts stdio connection or --setup flow\n├── setup.ts                  # Interactive credential setup (`--setup`)\n├── llm/\n│   ├── glm-client.ts         # OpenAI-compatible client for Z.AI / Zhipu AI\n│   └── credentials.ts        # API-key resolution (env var > credentials.json)\n├── protocol/\n│   ├── connection.ts         # Sets up the ACP stdio connection\n│   ├── agent.ts              # GlmAcpAgent – ACP protocol implementation\n│   ├── slash-commands.ts     # Discovers .claude commands/skills; expands `/name`\n│   ├── goal.ts               # /goal state, command grammar, and prompt rendering\n│   ├── goal-evaluator.ts     # Tool-less evaluator model call behind /goal\n│   └── session-store.ts      # On-disk persistence for load/fork/resume\n├── tools/\n│   ├── definitions.ts        # Tool JSON schemas (function-calling format)\n│   └── executor.ts           # ToolExecutor – dispatches tool calls\n└── tests/\n    ├── agent.test.ts         # Protocol-level tests for GlmAcpAgent\n    ├── credentials.test.ts   # Credential resolution and --setup persistence\n    ├── executor.test.ts      # Tests for ToolExecutor\n    ├── glm-client.test.ts    # Tests for streaming / tool-call assembly\n    ├── transport-recovery.test.ts # Connection-loss retry and session recovery\n    ├── slash-commands.test.ts # Command discovery and `/name` expansion\n    ├── goal.test.ts          # /goal grammar, state, and rendering\n    ├── goal-evaluator.test.ts # Evaluator prompt, transcript window, and verdict parsing\n    ├── goal-agent.test.ts    # The /goal loop end to end through GlmAcpAgent\n    └── integration.test.ts   # End-to-end tests over the real ACP ndjson transport\n```\n\n---\n\n## Building & Testing\n\n```bash\nnpm run build   # one-shot TypeScript compilation → dist/\nnpm run dev     # watch mode\nnpm test        # build + run unit tests with the node:test runner\n```\n\nThe test suite covers:\n\n- ACP protocol-version negotiation, capability advertising, and auth method shape\n- Session lifecycle (`new` / `list` / `close`, filter by `cwd`)\n- Prompt loop streaming, tool-call assembly, max-turn cap, cancellation, stop-reason mapping (`stop` → `end_turn`, `length` → `max_tokens`, `content_filter` → `refusal`, `tool_calls` exhausted → `max_turn_requests`)\n- Content-block conversion (`text`, `resource_link`, embedded `resource`)\n- Token usage reporting on the `PromptResponse`\n- Per-request `usage_update` context usage, including skipped updates and cancellation during delivery\n- Coding Plan quota parsing, cache and stale behavior, bounded failures, `/usage` cancellation, and extension requests over the real ACP transport\n- Tool call lifecycle (`pending` → `in_progress` → `completed` / `failed`)\n- Agent-owned local file and shell tools that work without ACP `fs` / `terminal` client capabilities\n- Permission flows for `write_file` and `run_command` (allow / reject / cancel)\n- Shell-quoted argument handling for `list_files` and `run_command`\n- GLM streaming: text deltas, `reasoning_content` deltas, multi-chunk tool-call assembly, and trailing usage\n- Connection loss: one retry budget for a dropped open and for HTTP 408/409/429/5xx, a cancelled turn, an unanswered prompt kept with a connection-lost note, an identical resend kept as a second user turn, partial text or a tool result kept, and the same session accepting the next prompt\n- Image preprocessing through a mocked Vision MCP client and graceful degradation on Vision MCP failures\n\n---\n\n## Troubleshooting\n\n- **`No API key found.`** — either set `Z_AI_API_KEY` in the environment, or run `glm-acp-agent --setup` (or `node dist/index.js --setup` from a source clone) once to store the key on disk.\n- **`HTTP 401: Invalid API key`** — your key is wrong or expired; rotate it on <https://z.ai/manage-apikey/apikey-list>.\n- **`Connection lost before a reply was saved. Your message is still in the session. Send another message to continue.`** — the link to Z.AI dropped before this turn produced assistant text or a tool result. The prompt response is `stopReason: \"cancelled\"`. Your message is still in the session, and this sentence is saved as an assistant note so a later load or fork shows it too. Send another message to continue. Sending the same text again adds a second copy of that prompt; it does not replace or collapse the one that was kept. Sending different text continues with the original prompt still in context.\n- **`Connection lost. Send a message to continue.`** — the link dropped after this turn already produced assistant text or a tool result. That work is still in the session, with no extra note added. Send another message to continue.\n- **Writes or commands never get to run.** — make sure your ACP client supports `session/request_permission` and that you approve the prompt for the specific tool call.\n\n---\n\n## License\n\nApache 2.0 – see [LICENSE](LICENSE).","users":{}}