@rubytech/create-maxy-code 0.1.28 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (518) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
  3. package/payload/platform/plugins/admin/mcp/dist/index.js +1 -1
  4. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  5. package/payload/platform/plugins/admin/skills/plugin-management/SKILL.md +1 -1
  6. package/payload/platform/plugins/buyers/.claude-plugin/plugin.json +1 -1
  7. package/payload/platform/plugins/buyers/PLUGIN.md +1 -1
  8. package/payload/platform/plugins/docs/references/deployment.md +2 -2
  9. package/payload/platform/plugins/docs/references/plugins-guide.md +1 -1
  10. package/payload/platform/plugins/estate-business/.claude-plugin/plugin.json +1 -1
  11. package/payload/platform/plugins/estate-business/PLUGIN.md +1 -1
  12. package/payload/platform/plugins/estate-coaching/.claude-plugin/plugin.json +1 -1
  13. package/payload/platform/plugins/estate-coaching/PLUGIN.md +1 -1
  14. package/payload/platform/plugins/estate-onboarding/.claude-plugin/plugin.json +1 -1
  15. package/payload/platform/plugins/estate-onboarding/PLUGIN.md +1 -1
  16. package/payload/platform/plugins/estate-sales/.claude-plugin/plugin.json +1 -1
  17. package/payload/platform/plugins/estate-sales/PLUGIN.md +1 -1
  18. package/payload/platform/plugins/estate-teaching/.claude-plugin/plugin.json +1 -1
  19. package/payload/platform/plugins/estate-teaching/PLUGIN.md +1 -1
  20. package/payload/platform/plugins/leads/.claude-plugin/plugin.json +1 -1
  21. package/payload/platform/plugins/leads/PLUGIN.md +1 -1
  22. package/payload/platform/plugins/listings/.claude-plugin/plugin.json +1 -1
  23. package/payload/platform/plugins/listings/PLUGIN.md +1 -1
  24. package/payload/platform/plugins/loop/.claude-plugin/plugin.json +2 -2
  25. package/payload/platform/plugins/loop/PLUGIN.md +47 -24
  26. package/payload/platform/plugins/real-agency/plugins/.claude-plugin/marketplace.json +13 -0
  27. package/payload/platform/plugins/real-agency/plugins/loop/.claude-plugin/plugin.json +17 -0
  28. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/index.d.ts +2 -0
  29. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/index.d.ts.map +1 -0
  30. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/index.js +293 -0
  31. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/index.js.map +1 -0
  32. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.d.ts +10 -0
  33. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.d.ts.map +1 -0
  34. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.js +88 -0
  35. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.js.map +1 -0
  36. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.d.ts +82 -0
  37. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.d.ts.map +1 -0
  38. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.js +427 -0
  39. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.js.map +1 -0
  40. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.d.ts +5 -0
  41. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.d.ts.map +1 -0
  42. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.js +40 -0
  43. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.js.map +1 -0
  44. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.d.ts +10 -0
  45. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.d.ts.map +1 -0
  46. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.js +24 -0
  47. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.js.map +1 -0
  48. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.d.ts +16 -0
  49. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.d.ts.map +1 -0
  50. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.js +35 -0
  51. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.js.map +1 -0
  52. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.d.ts +5 -0
  53. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.d.ts.map +1 -0
  54. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.js +19 -0
  55. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.js.map +1 -0
  56. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.d.ts +4 -0
  57. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.d.ts.map +1 -0
  58. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.js +14 -0
  59. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.js.map +1 -0
  60. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.d.ts +9 -0
  61. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.d.ts.map +1 -0
  62. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.js +60 -0
  63. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.js.map +1 -0
  64. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts +13 -0
  65. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts.map +1 -0
  66. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.js +41 -0
  67. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.js.map +1 -0
  68. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.d.ts +9 -0
  69. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.d.ts.map +1 -0
  70. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.js +16 -0
  71. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.js.map +1 -0
  72. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.d.ts +15 -0
  73. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.d.ts.map +1 -0
  74. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.js +11 -0
  75. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.js.map +1 -0
  76. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.d.ts +10 -0
  77. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.d.ts.map +1 -0
  78. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.js +39 -0
  79. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.js.map +1 -0
  80. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.d.ts +9 -0
  81. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.d.ts.map +1 -0
  82. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.js +125 -0
  83. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.js.map +1 -0
  84. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.d.ts +18 -0
  85. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.d.ts.map +1 -0
  86. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.js +87 -0
  87. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.js.map +1 -0
  88. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.d.ts +10 -0
  89. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.d.ts.map +1 -0
  90. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.js +82 -0
  91. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.js.map +1 -0
  92. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.d.ts +12 -0
  93. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.d.ts.map +1 -0
  94. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.js +32 -0
  95. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.js.map +1 -0
  96. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.d.ts +15 -0
  97. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.d.ts.map +1 -0
  98. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.js +11 -0
  99. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.js.map +1 -0
  100. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.d.ts +16 -0
  101. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.d.ts.map +1 -0
  102. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.js +41 -0
  103. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.js.map +1 -0
  104. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.d.ts +13 -0
  105. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.d.ts.map +1 -0
  106. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.js +49 -0
  107. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.js.map +1 -0
  108. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.d.ts +7 -0
  109. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.d.ts.map +1 -0
  110. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.js +19 -0
  111. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.js.map +1 -0
  112. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.d.ts +5 -0
  113. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.d.ts.map +1 -0
  114. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.js +32 -0
  115. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.js.map +1 -0
  116. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.d.ts +14 -0
  117. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.d.ts.map +1 -0
  118. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.js +11 -0
  119. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.js.map +1 -0
  120. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.d.ts +9 -0
  121. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.d.ts.map +1 -0
  122. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.js +85 -0
  123. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.js.map +1 -0
  124. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.d.ts +13 -0
  125. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.d.ts.map +1 -0
  126. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.js +44 -0
  127. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.js.map +1 -0
  128. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.d.ts +14 -0
  129. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.d.ts.map +1 -0
  130. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.js +18 -0
  131. package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.js.map +1 -0
  132. package/payload/platform/plugins/vendors/.claude-plugin/plugin.json +1 -1
  133. package/payload/platform/plugins/vendors/PLUGIN.md +1 -1
  134. package/payload/premium-plugins/real-agency/plugins/.claude-plugin/marketplace.json +0 -50
  135. package/payload/premium-plugins/real-agency/plugins/loop/.claude-plugin/plugin.json +3 -3
  136. package/payload/premium-plugins/{real-agency → real-agent}/BUNDLE.md +2 -2
  137. package/payload/premium-plugins/{real-agency → real-agent}/agents/buyer-enquiry/template.json +1 -1
  138. package/payload/premium-plugins/real-agent/plugins/.claude-plugin/marketplace.json +63 -0
  139. package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/.claude-plugin/plugin.json +1 -1
  140. package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/PLUGIN.md +1 -1
  141. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/.claude-plugin/plugin.json +1 -1
  142. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/PLUGIN.md +1 -1
  143. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/.claude-plugin/plugin.json +1 -1
  144. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/PLUGIN.md +1 -1
  145. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-onboarding/.claude-plugin/plugin.json +1 -1
  146. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-onboarding/PLUGIN.md +1 -1
  147. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/.claude-plugin/plugin.json +1 -1
  148. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/PLUGIN.md +1 -1
  149. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-teaching/.claude-plugin/plugin.json +1 -1
  150. package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-teaching/PLUGIN.md +1 -1
  151. package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/.claude-plugin/plugin.json +1 -1
  152. package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/PLUGIN.md +1 -1
  153. package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/.claude-plugin/plugin.json +1 -1
  154. package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/PLUGIN.md +1 -1
  155. package/payload/premium-plugins/real-agent/plugins/loop/.claude-plugin/plugin.json +17 -0
  156. package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/PLUGIN.md +47 -24
  157. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/index.d.ts +2 -0
  158. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/index.d.ts.map +1 -0
  159. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/index.js +293 -0
  160. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/index.js.map +1 -0
  161. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/crypto.d.ts +10 -0
  162. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/crypto.d.ts.map +1 -0
  163. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/crypto.js +88 -0
  164. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/crypto.js.map +1 -0
  165. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/loop-api.d.ts +82 -0
  166. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/loop-api.d.ts.map +1 -0
  167. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/loop-api.js +427 -0
  168. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/loop-api.js.map +1 -0
  169. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/neo4j.d.ts +5 -0
  170. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/neo4j.d.ts.map +1 -0
  171. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/neo4j.js +40 -0
  172. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/lib/neo4j.js.map +1 -0
  173. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/customer-preferences.d.ts +10 -0
  174. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/customer-preferences.d.ts.map +1 -0
  175. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/customer-preferences.js +24 -0
  176. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/customer-preferences.js.map +1 -0
  177. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/feedback.d.ts +16 -0
  178. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/feedback.d.ts.map +1 -0
  179. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/feedback.js +35 -0
  180. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/feedback.js.map +1 -0
  181. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-deregister.d.ts +5 -0
  182. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-deregister.d.ts.map +1 -0
  183. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-deregister.js +19 -0
  184. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-deregister.js.map +1 -0
  185. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-list.d.ts +4 -0
  186. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-list.d.ts.map +1 -0
  187. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-list.js +14 -0
  188. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-list.js.map +1 -0
  189. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-register.d.ts +9 -0
  190. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-register.d.ts.map +1 -0
  191. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-register.js +60 -0
  192. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/key-register.js.map +1 -0
  193. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts +13 -0
  194. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts.map +1 -0
  195. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-enquiry.js +41 -0
  196. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-enquiry.js.map +1 -0
  197. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match-batch.d.ts +9 -0
  198. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match-batch.d.ts.map +1 -0
  199. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match-batch.js +16 -0
  200. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match-batch.js.map +1 -0
  201. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match-request.d.ts +15 -0
  202. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match-request.d.ts.map +1 -0
  203. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match-request.js +11 -0
  204. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match-request.js.map +1 -0
  205. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match.d.ts +10 -0
  206. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match.d.ts.map +1 -0
  207. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match.js +39 -0
  208. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/marketing-match.js.map +1 -0
  209. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/people-detail.d.ts +9 -0
  210. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/people-detail.d.ts.map +1 -0
  211. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/people-detail.js +125 -0
  212. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/people-detail.js.map +1 -0
  213. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/people-search.d.ts +18 -0
  214. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/people-search.d.ts.map +1 -0
  215. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/people-search.js +87 -0
  216. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/people-search.js.map +1 -0
  217. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-detail.d.ts +10 -0
  218. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-detail.d.ts.map +1 -0
  219. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-detail.js +82 -0
  220. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-detail.js.map +1 -0
  221. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-listed.d.ts +12 -0
  222. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-listed.d.ts.map +1 -0
  223. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-listed.js +32 -0
  224. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-listed.js.map +1 -0
  225. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-request.d.ts +15 -0
  226. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-request.d.ts.map +1 -0
  227. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-request.js +11 -0
  228. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-request.js.map +1 -0
  229. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-search.d.ts +16 -0
  230. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-search.d.ts.map +1 -0
  231. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-search.js +41 -0
  232. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/property-search.js.map +1 -0
  233. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/supplier.d.ts +13 -0
  234. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/supplier.d.ts.map +1 -0
  235. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/supplier.js +49 -0
  236. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/supplier.js.map +1 -0
  237. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/team-availability.d.ts +7 -0
  238. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/team-availability.d.ts.map +1 -0
  239. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/team-availability.js +19 -0
  240. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/team-availability.js.map +1 -0
  241. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/team-info.d.ts +5 -0
  242. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/team-info.d.ts.map +1 -0
  243. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/team-info.js +32 -0
  244. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/team-info.js.map +1 -0
  245. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-create.d.ts +14 -0
  246. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-create.d.ts.map +1 -0
  247. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-create.js +11 -0
  248. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-create.js.map +1 -0
  249. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-detail.d.ts +9 -0
  250. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-detail.d.ts.map +1 -0
  251. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-detail.js +85 -0
  252. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-detail.js.map +1 -0
  253. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-search.d.ts +13 -0
  254. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-search.d.ts.map +1 -0
  255. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-search.js +44 -0
  256. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-search.js.map +1 -0
  257. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-update.d.ts +14 -0
  258. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-update.d.ts.map +1 -0
  259. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-update.js +18 -0
  260. package/payload/premium-plugins/real-agent/plugins/loop/mcp/dist/tools/viewing-update.js.map +1 -0
  261. package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/.claude-plugin/plugin.json +1 -1
  262. package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/PLUGIN.md +1 -1
  263. package/payload/server/public/assets/{admin-DW8IJcLc.js → admin-CDvF5de6.js} +5 -5
  264. package/payload/server/public/index.html +1 -1
  265. /package/payload/premium-plugins/{real-agency → real-agent}/agents/buyer-enquiry/IDENTITY.md +0 -0
  266. /package/payload/premium-plugins/{real-agency → real-agent}/agents/buyer-enquiry/SOUL.md +0 -0
  267. /package/payload/premium-plugins/{real-agency → real-agent}/agents/compliance.md +0 -0
  268. /package/payload/premium-plugins/{real-agency → real-agent}/agents/negotiator.md +0 -0
  269. /package/payload/premium-plugins/{real-agency → real-agent}/agents/valuer.md +0 -0
  270. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/.claude-plugin/plugin.json +0 -0
  271. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/PLUGIN.md +0 -0
  272. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/commands/make-brochure.md +0 -0
  273. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/a4-print-documents/SKILL.md +0 -0
  274. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/brand-design/SKILL.md +0 -0
  275. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/make-brochure/SKILL.md +0 -0
  276. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/make-brochure/references/seller-brief-template.md +0 -0
  277. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/SKILL.md +0 -0
  278. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/build.md +0 -0
  279. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/copy.md +0 -0
  280. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/images.md +0 -0
  281. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/index-landing.md +0 -0
  282. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/index.html +0 -0
  283. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/placeholders.md +0 -0
  284. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/registers.md +0 -0
  285. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/seller-brief.md +0 -0
  286. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/structure.md +0 -0
  287. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-brochure/references/template.html +0 -0
  288. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/brochures/skills/property-extract/SKILL.md +0 -0
  289. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-feedback/SKILL.md +0 -0
  290. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-management/SKILL.md +0 -0
  291. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-management/references/buyer-qualification-questions.md +0 -0
  292. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-management/references/buyer-qualification.md +0 -0
  293. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-management/references/buyer-scripts.md +0 -0
  294. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-management/references/buyer-working-scripts.md +0 -0
  295. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-management/references/feedback-collection.md +0 -0
  296. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-management/references/offer-capture.md +0 -0
  297. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-management/references/viewing-booking.md +0 -0
  298. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-management/references/viewing-management.md +0 -0
  299. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-seller-guides/SKILL.md +0 -0
  300. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-seller-guides/references/care-fees-guide.md +0 -0
  301. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-seller-guides/references/divorce-sales-guide.md +0 -0
  302. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-seller-guides/references/downsizing-guide.md +0 -0
  303. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-seller-guides/references/first-time-buyers.md +0 -0
  304. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-seller-guides/references/first-time-sellers.md +0 -0
  305. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-seller-guides/references/probate-guide.md +0 -0
  306. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/buyer-seller-guides/references/upsizing-guide.md +0 -0
  307. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/property-enquiry/SKILL.md +0 -0
  308. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/buyers/skills/viewing-management/SKILL.md +0 -0
  309. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/SKILL.md +0 -0
  310. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/buy-back-your-time.md +0 -0
  311. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/firewave-gost-scorecards.md +0 -0
  312. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/keller-org-model.md +0 -0
  313. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/lencioni-team-models.md +0 -0
  314. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/listing-management-system.md +0 -0
  315. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/net-figure-form.md +0 -0
  316. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/serhant-bizinbox-notes.md +0 -0
  317. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/team-roles-commission.md +0 -0
  318. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/va-2026-ops.md +0 -0
  319. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-growth/references/wingman-structure.md +0 -0
  320. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-operations/SKILL.md +0 -0
  321. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-operations/references/crm-systems.md +0 -0
  322. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-operations/references/hiring-guide.md +0 -0
  323. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-operations/references/impact-framework.md +0 -0
  324. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-operations/references/minutes-equal-money.md +0 -0
  325. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/business-operations/references/team-management.md +0 -0
  326. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/commission-calculator/SKILL.md +0 -0
  327. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/exp-partnership/SKILL.md +0 -0
  328. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/exp-partnership/references/12-reasons.md +0 -0
  329. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/exp-partnership/references/95-5-system.md +0 -0
  330. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/exp-partnership/references/agent-attraction-scripts.md +0 -0
  331. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/exp-partnership/references/business-partnership.md +0 -0
  332. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/exp-partnership/references/exp-model-overview.md +0 -0
  333. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/exp-partnership/references/model-comparison.md +0 -0
  334. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/exp-partnership/references/revenue-share-explained.md +0 -0
  335. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/month-end-close/SKILL.md +0 -0
  336. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/payment-batch-stager/SKILL.md +0 -0
  337. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/period-reconciler/SKILL.md +0 -0
  338. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/SKILL.md +0 -0
  339. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/attraction-agent-notes.md +0 -0
  340. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/attraction-agent.md +0 -0
  341. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/authenticity-boundaries.md +0 -0
  342. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/become-a-brand-leader-notes.md +0 -0
  343. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/blast-formula.md +0 -0
  344. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/brand-leader.md +0 -0
  345. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/brand-strategy-system.md +0 -0
  346. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/content-engine.md +0 -0
  347. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/firewave-blast-and-blogging.md +0 -0
  348. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/gary-v-content.md +0 -0
  349. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/gary-v-principles.md +0 -0
  350. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/oversubscribed-positioning.md +0 -0
  351. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/platforms.md +0 -0
  352. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/priestley-oversubscribed.md +0 -0
  353. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/storeys-style-examples.md +0 -0
  354. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-business/skills/personal-branding/references/visual-identity.md +0 -0
  355. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/agent-performance/SKILL.md +0 -0
  356. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/agent-performance/references/atomic-habits.md +0 -0
  357. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/agent-performance/references/daily-routine-scorecard.md +0 -0
  358. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/agent-performance/references/hp6-model.md +0 -0
  359. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/agent-performance/references/twelve-week-year.md +0 -0
  360. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/bespoke-coaching/SKILL.md +0 -0
  361. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/bespoke-coaching/references/coaching-boundaries.md +0 -0
  362. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/bespoke-coaching/references/feedback-framework.md +0 -0
  363. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/bespoke-coaching/references/performance-framework.md +0 -0
  364. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/coaching-toolkit/SKILL.md +0 -0
  365. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/coaching-toolkit/references/coaching-exercises.md +0 -0
  366. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/coaching-toolkit/references/goal-setting.md +0 -0
  367. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/coaching-toolkit/references/one-to-one-framework.md +0 -0
  368. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/coaching-toolkit/references/soi-workbook.md +0 -0
  369. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/serhant-training/SKILL.md +0 -0
  370. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/serhant-training/references/agent-training-guide.md +0 -0
  371. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/serhant-training/references/business-in-a-box.md +0 -0
  372. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/serhant-training/references/buyers-guide.md +0 -0
  373. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/serhant-training/references/codo-method.md +0 -0
  374. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-coaching/skills/serhant-training/references/website-planning-guide.md +0 -0
  375. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-onboarding/skills/bootstrap/SKILL.md +0 -0
  376. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-onboarding/skills/bootstrap/references/onboarding-flow.md +0 -0
  377. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/chase-progression/SKILL.md +0 -0
  378. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/negotiation/SKILL.md +0 -0
  379. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/negotiation/references/deal-saving.md +0 -0
  380. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/negotiation/references/negotiation-deep-guide.md +0 -0
  381. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/negotiation/references/negotiation-prep-principles.md +0 -0
  382. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/negotiation/references/negotiation-techniques.md +0 -0
  383. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/negotiation/references/offer-presentation.md +0 -0
  384. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/risk-scorer/SKILL.md +0 -0
  385. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-closer/SKILL.md +0 -0
  386. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-closer/references/serhant-emotion-stages.md +0 -0
  387. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-discovery/SKILL.md +0 -0
  388. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-discovery/references/chris-voss-discovery.md +0 -0
  389. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-discovery/references/firewave-gost-journey.md +0 -0
  390. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-discovery/references/phil-jones-openers.md +0 -0
  391. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-discovery/references/pre-listing-checklist.md +0 -0
  392. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-discovery/references/serhant-improv.md +0 -0
  393. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-discovery/references/tom-ferry-discovery.md +0 -0
  394. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-discovery/references/vendor-motivation-competitor.md +0 -0
  395. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-negotiation/SKILL.md +0 -0
  396. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-negotiation/references/chris-voss-negotiation.md +0 -0
  397. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-negotiation/references/phil-jones-price-words.md +0 -0
  398. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-negotiation/references/serhant-negotiation-plus.md +0 -0
  399. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-negotiation/references/tom-panos-commission-pricing.md +0 -0
  400. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-negotiation/references/tony-morris-questioning.md +0 -0
  401. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-progression/SKILL.md +0 -0
  402. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-progression/references/conveyancing-guide.md +0 -0
  403. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-sales/skills/sales-progression/references/transaction-tracking.md +0 -0
  404. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-teaching/skills/content-directory/SKILL.md +0 -0
  405. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-teaching/skills/content-directory/references/module-delivery.md +0 -0
  406. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/estate-teaching/skills/content-directory/references/progress-tracking.md +0 -0
  407. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/chain-progression-tracker/SKILL.md +0 -0
  408. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/diary-builder/SKILL.md +0 -0
  409. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/enquiry-triage/SKILL.md +0 -0
  410. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/SKILL.md +0 -0
  411. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/buyer-search-letter.md +0 -0
  412. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/buyer-search-letters.md +0 -0
  413. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/database-reactivation.md +0 -0
  414. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/email-nurture-sequences.md +0 -0
  415. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/facebook-referrals.md +0 -0
  416. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/firewave-email-nurture-sequences.md +0 -0
  417. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/keller-33-touch.md +0 -0
  418. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/neighbour-letters.md +0 -0
  419. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/neighbour-notification-letter.md +0 -0
  420. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/ofi-follow-up-dialogue.md +0 -0
  421. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/ofi-follow-up.md +0 -0
  422. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/serhant-three-fs-plus.md +0 -0
  423. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/sharran-10x10x10.md +0 -0
  424. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/sms-templates.md +0 -0
  425. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/sphere-of-influence-notes.md +0 -0
  426. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/sphere-of-influence.md +0 -0
  427. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/lead-nurturing/references/tom-panos-sms-templates.md +0 -0
  428. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/morning-round/SKILL.md +0 -0
  429. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/prospecting/SKILL.md +0 -0
  430. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/prospecting/references/database-matching.md +0 -0
  431. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/prospecting/references/database-value.md +0 -0
  432. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/prospecting/references/prospecting-dialogues.md +0 -0
  433. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/leads/skills/prospecting/references/reactivation.md +0 -0
  434. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/comparable-finder/SKILL.md +0 -0
  435. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/epc-checker/SKILL.md +0 -0
  436. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/home-preparation/SKILL.md +0 -0
  437. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/home-preparation/references/kerb-appeal.md +0 -0
  438. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/home-preparation/references/photo-day.md +0 -0
  439. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/home-preparation/references/situational-tips.md +0 -0
  440. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/home-preparation/references/staging-guide.md +0 -0
  441. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/listing-copy-writer/SKILL.md +0 -0
  442. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/listing-presentation/SKILL.md +0 -0
  443. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/listing-presentation/references/booking-script.md +0 -0
  444. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/listing-presentation/references/objection-scripts.md +0 -0
  445. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/listing-presentation/references/penhaul-presentation.md +0 -0
  446. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/listing-presentation/references/pre-listing-kit.md +0 -0
  447. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/listing-presentation/references/set-to-sell.md +0 -0
  448. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/listing-presentation/references/sharran-frameworks.md +0 -0
  449. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/local-market-stats/SKILL.md +0 -0
  450. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/new-instruction/SKILL.md +0 -0
  451. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/particulars-builder/SKILL.md +0 -0
  452. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/portal-launch-scheduler/SKILL.md +0 -0
  453. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/pricing-scenario-builder/SKILL.md +0 -0
  454. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/property-marketing/SKILL.md +0 -0
  455. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/property-marketing/references/auction-report-template.md +0 -0
  456. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/property-marketing/references/coming-soon-campaign.md +0 -0
  457. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/property-marketing/references/direct-mail-templates.md +0 -0
  458. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/property-marketing/references/eoi-form-template.md +0 -0
  459. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/property-marketing/references/monthly-scorecard.md +0 -0
  460. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/supplier-booker/SKILL.md +0 -0
  461. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/talk-track-composer/SKILL.md +0 -0
  462. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/terms-of-business-drafter/SKILL.md +0 -0
  463. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/listings/skills/valuation-prep/SKILL.md +0 -0
  464. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/package-lock.json +0 -0
  465. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/package.json +0 -0
  466. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/__tests__/loop-swagger.snapshot.json +0 -0
  467. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/__tests__/swagger-write-coverage.test.ts +0 -0
  468. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/index.ts +0 -0
  469. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/lib/crypto.ts +0 -0
  470. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/lib/loop-api.ts +0 -0
  471. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/lib/neo4j.ts +0 -0
  472. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/customer-preferences.ts +0 -0
  473. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/feedback.ts +0 -0
  474. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/key-deregister.ts +0 -0
  475. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/key-list.ts +0 -0
  476. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/key-register.ts +0 -0
  477. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/marketing-enquiry.ts +0 -0
  478. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/marketing-match-batch.ts +0 -0
  479. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/marketing-match-request.ts +0 -0
  480. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/marketing-match.ts +0 -0
  481. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/people-detail.ts +0 -0
  482. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/people-search.ts +0 -0
  483. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/property-detail.ts +0 -0
  484. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/property-listed.ts +0 -0
  485. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/property-request.ts +0 -0
  486. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/property-search.ts +0 -0
  487. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/supplier.ts +0 -0
  488. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/team-availability.ts +0 -0
  489. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/team-info.ts +0 -0
  490. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/viewing-create.ts +0 -0
  491. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/viewing-detail.ts +0 -0
  492. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/viewing-search.ts +0 -0
  493. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/src/tools/viewing-update.ts +0 -0
  494. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/tsconfig.json +0 -0
  495. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/mcp/vitest.config.ts +0 -0
  496. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/skills/compliance-flag-checker/SKILL.md +0 -0
  497. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/skills/priority-ranker/SKILL.md +0 -0
  498. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/skills/tone-matched-drafter/SKILL.md +0 -0
  499. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/skills/variance-narrator/SKILL.md +0 -0
  500. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/loop/skills/vendor-research/SKILL.md +0 -0
  501. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/SKILL.md +0 -0
  502. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/fee-protection-and-agenda.md +0 -0
  503. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/listing-scripts.md +0 -0
  504. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/negotiation-deep-guide.md +0 -0
  505. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/price-alignment-scripts.md +0 -0
  506. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/price-alignment.md +0 -0
  507. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/scenario-scripts.md +0 -0
  508. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/seller-engagement.md +0 -0
  509. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/valuation-booking.md +0 -0
  510. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/vendor-scripts.md +0 -0
  511. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-communication/references/vendor-updates.md +0 -0
  512. /package/payload/premium-plugins/{real-agency → real-agent}/plugins/vendors/skills/vendor-updates/SKILL.md +0 -0
  513. /package/payload/premium-plugins/{real-agency → real-agent}/specs/00-architecture-and-customization.md +0 -0
  514. /package/payload/premium-plugins/{real-agency → real-agent}/specs/01-morning-round.md +0 -0
  515. /package/payload/premium-plugins/{real-agency → real-agent}/specs/02-valuation-prep.md +0 -0
  516. /package/payload/premium-plugins/{real-agency → real-agent}/specs/03-new-instruction.md +0 -0
  517. /package/payload/premium-plugins/{real-agency → real-agent}/specs/04-chase-progression.md +0 -0
  518. /package/payload/premium-plugins/{real-agency → real-agent}/specs/05-month-end-close.md +0 -0
@@ -0,0 +1,87 @@
1
+ import { aggregateAcrossTeams, formatAggregationResult, loopGet, } from "../lib/loop-api.js";
2
+ export async function peopleSearch(params) {
3
+ const { accountId, role, searchTerm, maxPrice, minBeds, searchAreas, propertyTypes, startDate, endDate, minPrice, maxRent, teamName, limit, } = params;
4
+ // Role-specific endpoints return different schemas — use a generic record
5
+ // type for aggregation, then cast per-role in the formatter.
6
+ const result = await aggregateAcrossTeams(accountId, "people", "loop-people-search", async (apiKey, team) => {
7
+ const qp = [];
8
+ if (searchTerm)
9
+ qp.push(`SearchTerm=${encodeURIComponent(searchTerm)}`);
10
+ if (role === "buyers") {
11
+ if (maxPrice != null)
12
+ qp.push(`MaxPrice=${maxPrice}`);
13
+ if (minBeds != null)
14
+ qp.push(`MinBeds=${minBeds}`);
15
+ if (searchAreas)
16
+ qp.push(`SearchAreas=${encodeURIComponent(searchAreas)}`);
17
+ if (propertyTypes)
18
+ qp.push(`PropertyTypes=${encodeURIComponent(propertyTypes)}`);
19
+ }
20
+ else if (role === "sellers" || role === "landlords") {
21
+ if (startDate)
22
+ qp.push(`StartDate=${encodeURIComponent(startDate)}`);
23
+ if (endDate)
24
+ qp.push(`EndDate=${encodeURIComponent(endDate)}`);
25
+ if (minPrice != null)
26
+ qp.push(`MinPrice=${minPrice}`);
27
+ if (maxPrice != null)
28
+ qp.push(`MaxPrice=${maxPrice}`);
29
+ }
30
+ else if (role === "renters") {
31
+ if (maxRent != null)
32
+ qp.push(`MaxRent=${maxRent}`);
33
+ if (minBeds != null)
34
+ qp.push(`MinBeds=${minBeds}`);
35
+ if (searchAreas)
36
+ qp.push(`SearchAreas=${encodeURIComponent(searchAreas)}`);
37
+ if (propertyTypes)
38
+ qp.push(`PropertyTypes=${encodeURIComponent(propertyTypes)}`);
39
+ }
40
+ else {
41
+ // Generic /people endpoint
42
+ if (startDate)
43
+ qp.push(`StartDate=${encodeURIComponent(startDate)}`);
44
+ if (endDate)
45
+ qp.push(`EndDate=${encodeURIComponent(endDate)}`);
46
+ }
47
+ const query = qp.length > 0 ? `?${qp.join("&")}` : "";
48
+ const basePath = role ? `/people/${role}` : "/people";
49
+ const path = `${basePath}${query}`;
50
+ const data = await loopGet(apiKey, path, "loop-people-search", team);
51
+ return Array.isArray(data) ? data : [];
52
+ }, { teamName, limitPerTeam: limit ?? 50, limitTotal: limit ?? 200 });
53
+ const entityName = role ?? "people";
54
+ return formatAggregationResult(result, (record) => formatPersonRecord(record, role), entityName);
55
+ }
56
+ function formatPersonRecord(record, role) {
57
+ if (role === "buyers") {
58
+ const p = record;
59
+ const name = p.buyerGroupName ?? "Unknown";
60
+ const id = p.id != null ? ` [ID: ${p.id}]` : "";
61
+ const price = p.maxPrice != null ? ` — max £${p.maxPrice.toLocaleString("en-GB")}` : "";
62
+ const beds = p.minBeds ? ` ${p.minBeds}+ beds` : "";
63
+ const position = p.position && p.position !== "none" ? ` (${p.position})` : "";
64
+ const viewings = p.viewingCount ? ` | ${p.viewingCount} viewing${p.viewingCount !== 1 ? "s" : ""}` : "";
65
+ const offers = p.offerCount ? ` | ${p.offerCount} offer${p.offerCount !== 1 ? "s" : ""}` : "";
66
+ return `- ${name}${id}${price}${beds}${position}${viewings}${offers}`;
67
+ }
68
+ if (role === "sellers" || role === "landlords") {
69
+ const p = record;
70
+ const name = p.sellerGroupName ?? "Unknown";
71
+ const id = p.id != null ? ` [ID: ${p.id}]` : "";
72
+ const addr = p.propertyAddress ? ` — ${p.propertyAddress}` : "";
73
+ const price = p.price != null ? ` £${p.price.toLocaleString("en-GB")}` : "";
74
+ const status = p.propertyStatus ? ` [${p.propertyStatus}]` : "";
75
+ const viewings = p.viewingCount ? ` | ${p.viewingCount} viewing${p.viewingCount !== 1 ? "s" : ""}` : "";
76
+ const offers = p.offerCount ? ` | ${p.offerCount} offer${p.offerCount !== 1 ? "s" : ""}` : "";
77
+ return `- ${name}${id}${addr}${price}${status}${viewings}${offers}`;
78
+ }
79
+ // Generic /people or /people/renters — uses PersonSummary schema
80
+ const p = record;
81
+ const name = [p.firstName, p.lastName].filter(Boolean).join(" ") || "Unknown";
82
+ const id = p.id != null ? ` [ID: ${p.id}]` : "";
83
+ const contact = p.primaryEmail ?? p.primaryPhone ?? "";
84
+ const title = p.title?.trim() ? `${p.title.trim()} ` : "";
85
+ return `- ${title}${name}${id}${contact ? ` <${contact}>` : ""}`;
86
+ }
87
+ //# sourceMappingURL=people-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"people-search.js","sourceRoot":"","sources":["../../src/tools/people-search.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,OAAO,GACR,MAAM,oBAAoB,CAAC;AAsE5B,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,MAiBlC;IACC,MAAM,EACJ,SAAS,EAAE,IAAI,EAAE,UAAU,EAC3B,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAC7C,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EACrC,QAAQ,EAAE,KAAK,GAChB,GAAG,MAAM,CAAC;IAEX,0EAA0E;IAC1E,6DAA6D;IAC7D,MAAM,MAAM,GAAG,MAAM,oBAAoB,CACvC,SAAS,EACT,QAAQ,EACR,oBAAoB,EACpB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QACrB,MAAM,EAAE,GAAa,EAAE,CAAC;QACxB,IAAI,UAAU;YAAE,EAAE,CAAC,IAAI,CAAC,cAAc,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAExE,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YACtB,IAAI,QAAQ,IAAI,IAAI;gBAAE,EAAE,CAAC,IAAI,CAAC,YAAY,QAAQ,EAAE,CAAC,CAAC;YACtD,IAAI,OAAO,IAAI,IAAI;gBAAE,EAAE,CAAC,IAAI,CAAC,WAAW,OAAO,EAAE,CAAC,CAAC;YACnD,IAAI,WAAW;gBAAE,EAAE,CAAC,IAAI,CAAC,eAAe,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YAC3E,IAAI,aAAa;gBAAE,EAAE,CAAC,IAAI,CA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M,OAAO,GAAG,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC,YAAY,IAAI,EAAE,CAAC;IACvD,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1D,OAAO,KAAK,KAAK,GAAG,IAAI,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACnE,CAAC"}
@@ -0,0 +1,10 @@
1
+ type Department = "sales" | "lettings";
2
+ export declare function propertyDetail(params: {
3
+ accountId: string;
4
+ propertyId: number;
5
+ department: Department;
6
+ previewHash?: number;
7
+ teamName?: string;
8
+ }): Promise<string>;
9
+ export {};
10
+ //# sourceMappingURL=property-detail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-detail.d.ts","sourceRoot":"","sources":["../../src/tools/property-detail.ts"],"names":[],"mappings":"AA0DA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;AAEvC,wBAAsB,cAAc,CAAC,MAAM,EAAE;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,CAAC,CA8ElB"}
@@ -0,0 +1,82 @@
1
+ import { aggregateAcrossTeams, formatAggregationResult, loopGet, } from "../lib/loop-api.js";
2
+ export async function propertyDetail(params) {
3
+ const { accountId, propertyId, department, previewHash, teamName } = params;
4
+ const result = await aggregateAcrossTeams(accountId, "properties", "loop-property-detail", async (apiKey, team) => {
5
+ const path = previewHash
6
+ ? `/property/residential/${department}/${propertyId}/preview/${previewHash}`
7
+ : `/property/residential/${department}/${propertyId}`;
8
+ const data = await loopGet(apiKey, path, "loop-property-detail", team);
9
+ if (data && typeof data === "object" && !Array.isArray(data)) {
10
+ return [data];
11
+ }
12
+ return [];
13
+ }, { teamName });
14
+ return formatAggregationResult(result, (p) => {
15
+ // Build display address from components
16
+ const addr = p.address_DisplayAddress
17
+ ?? ([
18
+ p.address_HouseSecondaryNameOrNumber,
19
+ p.address_HouseNameOrNumber,
20
+ p.address_Street,
21
+ p.address_Town,
22
+ p.address_Postcode,
23
+ ].filter(Boolean).join(", ") || "Unknown address");
24
+ const lines = [`**${addr}** [ID: ${p.id}]`];
25
+ if (p.price != null) {
26
+ const qualifier = p.priceQualifier && p.priceQualifier !== "none" ? ` (${p.priceQualifier})` : "";
27
+ lines.push(`Price: £${p.price.toLocaleString("en-GB")}${qualifier}`);
28
+ }
29
+ if (p.status)
30
+ lines.push(`Status: ${p.status}`);
31
+ if (p.propertyType)
32
+ lines.push(`Type: ${p.propertyType}`);
33
+ if (p.bedrooms != null)
34
+ lines.push(`Bedrooms: ${p.bedrooms}`);
35
+ if (p.bathrooms != null)
36
+ lines.push(`Bathrooms: ${p.bathrooms}`);
37
+ if (p.receptionRooms != null)
38
+ lines.push(`Reception rooms: ${p.receptionRooms}`);
39
+ if (p.floorArea)
40
+ lines.push(`Floor area: ${p.floorArea} sq ft`);
41
+ if (p.tenure && p.tenure !== "None")
42
+ lines.push(`Tenure: ${p.tenure}`);
43
+ if (p.councilTaxBand)
44
+ lines.push(`Council Tax: Band ${p.councilTaxBand}`);
45
+ if (p.parking)
46
+ lines.push(`Parking: ${p.parking}`);
47
+ if (p.outsideSpace)
48
+ lines.push(`Outside: ${p.outsideSpace}`);
49
+ if (p.serviceCharge)
50
+ lines.push(`Service charge: £${p.serviceCharge}`);
51
+ if (p.groundRent)
52
+ lines.push(`Ground rent: £${p.groundRent}`);
53
+ // Key dates
54
+ const dates = [];
55
+ if (p.dateInstructed)
56
+ dates.push(`Instructed: ${p.dateInstructed.split("T")[0]}`);
57
+ if (p.dateLaunched)
58
+ dates.push(`Launched: ${p.dateLaunched.split("T")[0]}`);
59
+ if (p.dateExchanged)
60
+ dates.push(`Exchanged: ${p.dateExchanged.split("T")[0]}`);
61
+ if (p.dateCompleted)
62
+ dates.push(`Completed: ${p.dateCompleted.split("T")[0]}`);
63
+ if (p.dateWithdrawn)
64
+ dates.push(`Withdrawn: ${p.dateWithdrawn.split("T")[0]}`);
65
+ if (dates.length)
66
+ lines.push(dates.join(" | "));
67
+ if (p.features?.length) {
68
+ lines.push(`Features: ${p.features.join(", ")}`);
69
+ }
70
+ if (p.images?.length) {
71
+ lines.push(`Images: ${p.images.length} photo${p.images.length !== 1 ? "s" : ""}`);
72
+ }
73
+ // Short description — strip HTML tags for readability
74
+ if (p.shortDescription) {
75
+ const clean = p.shortDescription.replace(/<[^>]+>/g, "").trim();
76
+ if (clean)
77
+ lines.push(`\n${clean}`);
78
+ }
79
+ return lines.join("\n");
80
+ }, "property details");
81
+ }
82
+ //# sourceMappingURL=property-detail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-detail.js","sourceRoot":"","sources":["../../src/tools/property-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,OAAO,GACR,MAAM,oBAAoB,CAAC;AAwD5B,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,MAMpC;IACC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAE5E,MAAM,MAAM,GAAG,MAAM,oBAAoB,CACvC,SAAS,EACT,YAAY,EACZ,sBAAsB,EACtB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QACrB,MAAM,IAAI,GAAG,WAAW;YACtB,CAAC,CAAC,yBAAyB,UAAU,IAAI,UAAU,YAAY,WAAW,EAAE;YAC5E,CAAC,CAAC,yBAAyB,UAAU,IAAI,UAAU,EAAE,CAAC;QACxD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AAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACpF,CAAC;QAED,sDAAsD;QACtD,IAAI,CAAC,CAAC,gBAAgB,EAAE,CAAC;YACvB,MAAM,KAAK,GAAG,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YAChE,IAAI,KAAK;gBAAE,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,EACD,kBAAkB,CACnB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,12 @@
1
+ type Department = "sales" | "lettings" | "both";
2
+ type Channel = "rightmove" | "onTheMarket" | "zoopla" | "website";
3
+ export declare function propertyListed(params: {
4
+ accountId: string;
5
+ channel: Channel;
6
+ department?: Department;
7
+ includeSold?: boolean;
8
+ teamName?: string;
9
+ limit?: number;
10
+ }): Promise<string>;
11
+ export {};
12
+ //# sourceMappingURL=property-listed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-listed.d.ts","sourceRoot":"","sources":["../../src/tools/property-listed.ts"],"names":[],"mappings":"AAkCA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;AAChD,KAAK,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElE,wBAAsB,cAAc,CAAC,MAAM,EAAE;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,MAAM,CAAC,CA2ClB"}
@@ -0,0 +1,32 @@
1
+ import { aggregateAcrossTeams, formatAggregationResult, loopGet, } from "../lib/loop-api.js";
2
+ export async function propertyListed(params) {
3
+ const { accountId, channel, department = "both", includeSold = false, teamName, limit } = params;
4
+ const result = await aggregateAcrossTeams(accountId, "properties", "loop-property-listed", async (apiKey, team) => {
5
+ const all = [];
6
+ const depts = department === "both" ? ["sales", "lettings"] : [department];
7
+ for (const dept of depts) {
8
+ const path = `/property/residential/${dept}/listed/${channel}`;
9
+ const data = await loopGet(apiKey, path, "loop-property-listed", team);
10
+ if (Array.isArray(data))
11
+ all.push(...data);
12
+ }
13
+ if (includeSold) {
14
+ const soldPath = `/property/residential/sold/${channel}`;
15
+ const soldData = await loopGet(apiKey, soldPath, "loop-property-listed", team);
16
+ if (Array.isArray(soldData))
17
+ all.push(...soldData);
18
+ }
19
+ return all;
20
+ }, { teamName, limitPerTeam: limit ?? 50, limitTotal: limit ?? 200 });
21
+ return formatAggregationResult(result, (p) => {
22
+ const addr = p.displayAddress ?? p.propertyAddress ?? "Unknown address";
23
+ const id = p.propertyId != null ? ` [ID: ${p.propertyId}]` : "";
24
+ const price = p.price ? ` — £${p.price.toLocaleString("en-GB")}` : "";
25
+ const beds = p.bedrooms ? ` ${p.bedrooms}bed` : "";
26
+ const propType = p.propertyType ? ` (${p.propertyType})` : "";
27
+ const status = p.status ? ` [${p.status}]` : "";
28
+ const photos = p.images?.length ? ` ${p.images.length} photo${p.images.length !== 1 ? "s" : ""}` : "";
29
+ return `- ${addr}${id}${price}${beds}${propType}${status}${photos}`;
30
+ }, `${channel} listings`);
31
+ }
32
+ //# sourceMappingURL=property-listed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-listed.js","sourceRoot":"","sources":["../../src/tools/property-listed.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,OAAO,GACR,MAAM,oBAAoB,CAAC;AAiC5B,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,MAOpC;IACC,MAAM,EAAE,SAAS,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 export declare function propertyRequest(params: {
4
+ accountId: string;
5
+ teamName: string;
6
+ propertyId: number;
7
+ department: Department;
8
+ action: RequestAction;
9
+ name?: string;
10
+ email?: string;
11
+ phone?: string;
12
+ message?: string;
13
+ }): Promise<string>;
14
+ export {};
15
+ //# sourceMappingURL=property-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-request.d.ts","sourceRoot":"","sources":["../../src/tools/property-request.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;AACvC,KAAK,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC;AAY7D,wBAAsB,eAAe,CAAC,MAAM,EAAE;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBlB"}
@@ -0,0 +1,11 @@
1
+ import { loopPost, withTeamKey } from "../lib/loop-api.js";
2
+ export async function propertyRequest(params) {
3
+ const { accountId, teamName, propertyId, department, action, ...body } = params;
4
+ const result = await withTeamKey(accountId, teamName, "properties", "loop-property-request", async (apiKey) => {
5
+ const path = `/property/residential/${department}/${propertyId}/${action}`;
6
+ return loopPost(apiKey, path, body, "loop-property-request", teamName);
7
+ });
8
+ const actionLabel = action === "call-back" ? "callback" : action;
9
+ return `${actionLabel} request submitted for property ${propertyId} (${department}) via team "${teamName}".`;
10
+ }
11
+ //# sourceMappingURL=property-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-request.js","sourceRoot":"","sources":["../../src/tools/property-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAe3D,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAUrC;IACC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAEhF,MAAM,MAAM,GAAG,MAAM,WAAW,CAC9B,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACvB,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,MAAM,IAAI,GAAG,yBAAyB,UAAU,IAAI,UAAU,IAAI,MAAM,EAAE,CAAC;QAC3E,OAAO,QAAQ,CAAsB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,uBAAuB,EAAE,QAAQ,CAAC,CAAC;IAC9F,CAAC,CACF,CAAC;IAEF,MAAM,WAAW,GAAG,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;IACjE,OAAO,GAAG,WAAW,mCAAmC,UAAU,KAAK,UAAU,eAAe,QAAQ,IAAI,CAAC;AAC/G,CAAC"}
@@ -0,0 +1,16 @@
1
+ type Department = "sales" | "lettings" | "both";
2
+ export declare function propertySearch(params: {
3
+ accountId: string;
4
+ department?: Department;
5
+ searchTerm?: string;
6
+ minPrice?: number;
7
+ maxPrice?: number;
8
+ minBedrooms?: number;
9
+ maxBedrooms?: number;
10
+ propertyStatuses?: string;
11
+ propertyTypes?: string;
12
+ teamName?: string;
13
+ limit?: number;
14
+ }): Promise<string>;
15
+ export {};
16
+ //# sourceMappingURL=property-search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-search.d.ts","sourceRoot":"","sources":["../../src/tools/property-search.ts"],"names":[],"mappings":"AA4BA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;AAEhD,wBAAsB,cAAc,CAAC,MAAM,EAAE;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDlB"}
@@ -0,0 +1,41 @@
1
+ import { aggregateAcrossTeams, formatAggregationResult, loopGet, } from "../lib/loop-api.js";
2
+ export async function propertySearch(params) {
3
+ const { accountId, department = "both", searchTerm, minPrice, maxPrice, minBedrooms, maxBedrooms, propertyStatuses, propertyTypes, teamName, limit, } = params;
4
+ const result = await aggregateAcrossTeams(accountId, "properties", "loop-property-search", async (apiKey, team) => {
5
+ const depts = department === "both" ? ["sales", "lettings"] : [department];
6
+ const all = [];
7
+ for (const dept of depts) {
8
+ const qp = [];
9
+ if (searchTerm)
10
+ qp.push(`SearchTerm=${encodeURIComponent(searchTerm)}`);
11
+ if (minPrice != null)
12
+ qp.push(`MinPrice=${minPrice}`);
13
+ if (maxPrice != null)
14
+ qp.push(`MaxPrice=${maxPrice}`);
15
+ if (minBedrooms != null)
16
+ qp.push(`MinBedrooms=${minBedrooms}`);
17
+ if (maxBedrooms != null)
18
+ qp.push(`MaxBedrooms=${maxBedrooms}`);
19
+ if (propertyStatuses)
20
+ qp.push(`PropertyStatuses=${encodeURIComponent(propertyStatuses)}`);
21
+ if (propertyTypes)
22
+ qp.push(`PropertyTypes=${encodeURIComponent(propertyTypes)}`);
23
+ const query = qp.length > 0 ? `?${qp.join("&")}` : "";
24
+ const path = `/property/residential/${dept}${query}`;
25
+ const data = await loopGet(apiKey, path, "loop-property-search", team);
26
+ if (Array.isArray(data))
27
+ all.push(...data);
28
+ }
29
+ return all;
30
+ }, { teamName, limitPerTeam: limit ?? 50, limitTotal: limit ?? 200 });
31
+ return formatAggregationResult(result, (p) => {
32
+ const id = p.id != null ? ` [ID: ${p.id}]` : "";
33
+ const price = p.price ? ` — £${p.price.toLocaleString("en-GB")}` : "";
34
+ const beds = p.bedrooms ? ` ${p.bedrooms}bed` : "";
35
+ const status = p.status ? ` [${p.status}]` : "";
36
+ const propType = p.propertyType ? ` (${p.propertyType})` : "";
37
+ const offers = p.offerCount ? ` ${p.offerCount} offer${p.offerCount !== 1 ? "s" : ""}` : "";
38
+ return `- ${p.propertyAddress ?? "Unknown address"}${id}${price}${beds}${propType}${status}${offers}`;
39
+ }, "properties");
40
+ }
41
+ //# sourceMappingURL=property-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-search.js","sourceRoot":"","sources":["../../src/tools/property-search.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,OAAO,GACR,MAAM,oBAAoB,CAAC;AA0B5B,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,MAYpC;IACC,MAAM,EACJ,SAAS,EAAE,UAAU,GAAG,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAC9D,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EACzD,QAAQ,EAAE,KAAK,GAChB,GAAG,MAAM,CAAC;IAEX,MAAM,MAAM,GAAG,MAAM,oBAAoB,CACvC,SAAS,EACT,YAAY,EACZ,sBAAsB,EACtB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QACrB,MAAM,KAAK,GACT,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,GAAG,G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 -0,0 +1,13 @@
1
+ type SupplierAction = "maintenance-jobs" | "maintenance-complete" | "maintenance-quotes" | "maintenance-submit-quote" | "board-jobs" | "board-complete";
2
+ export declare function supplier(params: {
3
+ accountId: string;
4
+ teamName: string;
5
+ action: SupplierAction;
6
+ code: string;
7
+ jobId?: number;
8
+ quoteId?: number;
9
+ quoteData?: Record<string, unknown>;
10
+ completionData?: Record<string, unknown>;
11
+ }): Promise<string>;
12
+ export {};
13
+ //# sourceMappingURL=supplier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier.d.ts","sourceRoot":"","sources":["../../src/tools/supplier.ts"],"names":[],"mappings":"AAEA,KAAK,cAAc,GACf,kBAAkB,GAClB,sBAAsB,GACtB,oBAAoB,GACpB,0BAA0B,GAC1B,YAAY,GACZ,gBAAgB,CAAC;AAoBrB,wBAAsB,QAAQ,CAAC,MAAM,EAAE;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEpC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C,GAAG,OAAO,CAAC,MAAM,CAAC,CAyFlB"}
@@ -0,0 +1,49 @@
1
+ import { loopGet, loopPost, loopPut, withTeamKey } from "../lib/loop-api.js";
2
+ export async function supplier(params) {
3
+ const { accountId, teamName, action, code } = params;
4
+ // jobId is required for all actions except maintenance-submit-quote
5
+ const jobId = params.jobId;
6
+ if (action !== "maintenance-submit-quote" && jobId == null) {
7
+ throw new Error(`jobId is required for action "${action}".`);
8
+ }
9
+ if (action === "maintenance-jobs") {
10
+ const result = await withTeamKey(accountId, teamName, "supplier", "loop-supplier", async (apiKey) => {
11
+ return loopGet(apiKey, `/supplier/maintenance/${encodeURIComponent(code)}/${jobId}/job-list`, "loop-supplier", teamName);
12
+ });
13
+ return JSON.stringify(result, null, 2);
14
+ }
15
+ if (action === "maintenance-complete") {
16
+ await withTeamKey(accountId, teamName, "supplier", "loop-supplier", async (apiKey) => {
17
+ return loopPost(apiKey, `/supplier/maintenance/${encodeURIComponent(code)}/${jobId}/complete`, {}, "loop-supplier", teamName);
18
+ });
19
+ return `Maintenance job ${jobId} marked complete via team "${teamName}".`;
20
+ }
21
+ if (action === "maintenance-quotes") {
22
+ const result = await withTeamKey(accountId, teamName, "supplier", "loop-supplier", async (apiKey) => {
23
+ return loopGet(apiKey, `/supplier/maintenance/${encodeURIComponent(code)}/${jobId}/quote-list`, "loop-supplier", teamName);
24
+ });
25
+ return JSON.stringify(result, null, 2);
26
+ }
27
+ if (action === "maintenance-submit-quote") {
28
+ if (!params.quoteId)
29
+ throw new Error("quoteId is required for maintenance-submit-quote.");
30
+ await withTeamKey(accountId, teamName, "supplier", "loop-supplier", async (apiKey) => {
31
+ return loopPut(apiKey, `/supplier/maintenance/${encodeURIComponent(code)}/${params.quoteId}/quote-for-job`, params.quoteData ?? {}, "loop-supplier", teamName);
32
+ });
33
+ return `Quote ${params.quoteId} submitted via team "${teamName}".`;
34
+ }
35
+ if (action === "board-jobs") {
36
+ const result = await withTeamKey(accountId, teamName, "supplier", "loop-supplier", async (apiKey) => {
37
+ return loopGet(apiKey, `/supplier/board-contractor/${encodeURIComponent(code)}/${jobId}/job-list`, "loop-supplier", teamName);
38
+ });
39
+ return JSON.stringify(result, null, 2);
40
+ }
41
+ if (action === "board-complete") {
42
+ await withTeamKey(accountId, teamName, "supplier", "loop-supplier", async (apiKey) => {
43
+ return loopPost(apiKey, `/supplier/board-contractor/${encodeURIComponent(code)}/${jobId}/complete`, params.completionData ?? {}, "loop-supplier", teamName);
44
+ });
45
+ return `Board contractor job ${jobId} marked complete via team "${teamName}".`;
46
+ }
47
+ throw new Error(`Unknown supplier action: ${action}`);
48
+ }
49
+ //# sourceMappingURL=supplier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier.js","sourceRoot":"","sources":["../../src/tools/supplier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AA4B7E,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,MAW9B;IACC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAErD,oEAAoE;IACpE,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAC3B,IAAI,MAAM,KAAK,0BAA0B,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAC3D,MAAM,IAAI,KAAK,CAAC,iCAAiC,MAAM,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,MAAM,KAAK,kBAAkB,EAAE,CAAC;QAClC,MAAM,MAAM,GAAG,MAAM,WAAW,CAC9B,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAChD,KAAK,EAAE,MAAM,EAAE,EAAE;YACf,OAAO,OAAO,CACZ,MAAM,EAAE,yBAAyB,kBAAkB,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,EAC7E,eAAe,EAAE,QAAQ,CAC1B,CAAC;QACJ,CAAC,CACF,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,MAAM,KAAK,sBAAsB,EAAE,CAAC;QACtC,MAAM,WAAW,CACf,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAChD,KAAK,EAAE,MAAM,EAAE,EAAE;YACf,OAAO,QAAQ,CACb,MAAM,EAAE,yBAAyB,kBAAkB,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,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AAO,CACZ,MAAM,EAAE,8BAA8B,kBAAkB,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,EAClF,eAAe,EAAE,QAAQ,CAC1B,CAAC;QACJ,CAAC,CACF,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,MAAM,KAAK,gBAAgB,EAAE,CAAC;QAChC,MAAM,WAAW,CACf,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAChD,KAAK,EAAE,MAAM,EAAE,EAAE;YACf,OAAO,QAAQ,CACb,MAAM,EAAE,8BAA8B,kBAAkB,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,EAClF,MAAM,CAAC,cAAc,IAAI,EAAE,EAAE,eAAe,EAAE,QAAQ,CACvD,CAAC;QACJ,CAAC,CACF,CAAC;QACF,OAAO,wBAAwB,KAAK,8BAA8B,QAAQ,IAAI,CAAC;IACjF,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAM,EAAE,CAAC,CAAC;AACxD,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare function teamAvailability(params: {
2
+ accountId: string;
3
+ agentId: string;
4
+ searchDate: string;
5
+ teamName?: string;
6
+ }): Promise<string>;
7
+ //# sourceMappingURL=team-availability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team-availability.d.ts","sourceRoot":"","sources":["../../src/tools/team-availability.ts"],"names":[],"mappings":"AAiBA,wBAAsB,gBAAgB,CAAC,MAAM,EAAE;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,CAAC,CAwBlB"}
@@ -0,0 +1,19 @@
1
+ import { aggregateAcrossTeams, formatAggregationResult, loopGet, } from "../lib/loop-api.js";
2
+ export async function teamAvailability(params) {
3
+ const { accountId, agentId, searchDate, teamName } = params;
4
+ const result = await aggregateAcrossTeams(accountId, "team", "loop-team-availability", async (apiKey, team) => {
5
+ const path = `/team/${encodeURIComponent(agentId)}/availability/${encodeURIComponent(searchDate)}`;
6
+ const data = await loopGet(apiKey, path, "loop-team-availability", team);
7
+ return Array.isArray(data) ? data : [];
8
+ }, { teamName });
9
+ return formatAggregationResult(result, (slot) => {
10
+ const start = slot.start ? formatTime(slot.start) : "?";
11
+ const end = slot.end ? formatTime(slot.end) : "?";
12
+ return `- ${start} — ${end}`;
13
+ }, `availability slots for ${searchDate}`);
14
+ }
15
+ function formatTime(iso) {
16
+ const timePart = iso.split("T")[1];
17
+ return timePart ? timePart.slice(0, 5) : iso;
18
+ }
19
+ //# sourceMappingURL=team-availability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team-availability.js","sourceRoot":"","sources":["../../src/tools/team-availability.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,OAAO,GACR,MAAM,oBAAoB,CAAC;AAa5B,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,MAKtC;IACC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAE5D,MAAM,MAAM,GAAG,MAAM,oBAAoB,CACvC,SAAS,EACT,MAAM,EACN,wBAAwB,EACxB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QACrB,MAAM,IAAI,GAAG,SAAS,kBAAkB,CAAC,OAAO,CAAC,iBAAiB,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;QACnG,MAAM,IAAI,GAAG,MAAM,OAAO,CAAkB,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,IAAI,CAAC,CAAC;QAC1F,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACzC,CAAC,EACD,EAAE,QAAQ,EAAE,CACb,CAAC;IAEF,OAAO,uBAAuB,CAC5B,MAAM,EACN,CAAC,IAAI,EAAE,EAAE;QACP,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QACxD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QAClD,OAAO,KAAK,KAAK,MAAM,GAAG,EAAE,CAAC;IAC/B,CAAC,EACD,0BAA0B,UAAU,EAAE,CACvC,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,GAAW;IAC7B,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,OAAO,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function teamInfo(params: {
2
+ accountId: string;
3
+ teamName?: string;
4
+ }): Promise<string>;
5
+ //# sourceMappingURL=team-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team-info.d.ts","sourceRoot":"","sources":["../../src/tools/team-info.ts"],"names":[],"mappings":"AA0CA,wBAAsB,QAAQ,CAAC,MAAM,EAAE;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDlB"}
@@ -0,0 +1,32 @@
1
+ import { aggregateAcrossTeams, formatAggregationResult, loopGet, } from "../lib/loop-api.js";
2
+ export async function teamInfo(params) {
3
+ const { accountId, teamName } = params;
4
+ const result = await aggregateAcrossTeams(accountId, "team", "loop-team-info", async (apiKey, team) => {
5
+ const data = await loopGet(apiKey, "/team", "loop-team-info", team);
6
+ // /team returns a single object, not an array
7
+ if (data && typeof data === "object" && !Array.isArray(data)) {
8
+ return [data];
9
+ }
10
+ return Array.isArray(data) ? data : [];
11
+ }, { teamName });
12
+ return formatAggregationResult(result, (t) => {
13
+ const name = t.teamName ?? t.clientName ?? "Unknown";
14
+ const client = t.clientName && t.clientName !== t.teamName ? ` (${t.clientName})` : "";
15
+ const addr = t.address1 ? ` — ${t.address1}` : "";
16
+ const phone = t.phoneNumber ? ` | ${t.phoneNumber}` : "";
17
+ const email = t.email ? ` | ${t.email}` : "";
18
+ const web = t.websiteUrl ? ` | ${t.websiteUrl}` : "";
19
+ const lines = [`- **${name}**${client}${addr}${phone}${email}${web}`];
20
+ if (t.members?.length) {
21
+ lines.push(` Team members (${t.members.length}):`);
22
+ for (const m of t.members) {
23
+ const mName = [m.firstName, m.lastName].filter(Boolean).join(" ");
24
+ const title = m.jobTitle ? ` (${m.jobTitle})` : "";
25
+ const mEmail = m.email ? ` — ${m.email}` : "";
26
+ lines.push(` - ${mName} [ID: ${m.id}]${title}${mEmail}`);
27
+ }
28
+ }
29
+ return lines.join("\n");
30
+ }, "teams");
31
+ }
32
+ //# sourceMappingURL=team-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team-info.js","sourceRoot":"","sources":["../../src/tools/team-info.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,OAAO,GACR,MAAM,oBAAoB,CAAC;AAsC5B,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,MAG9B;IACC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAEvC,MAAM,MAAM,GAAG,MAAM,oBAAoB,CACvC,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QACrB,MAAM,IAAI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OAAO,IAAI,KAAK,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,GAAG,EAAE,CAAC,CAAC;QAEtE,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;YACtB,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;YACpD,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;gBAC1B,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAClE,MAAM,KAAK,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;gBACnD,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9C,KAAK,CAAC,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,EAAE,IAAI,KAAK,GAAG,MAAM,EAAE,CAAC,CAAC;YAC9D,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,EACD,OAAO,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ type Department = "sales" | "lettings";
2
+ export declare function viewingCreate(params: {
3
+ accountId: string;
4
+ teamName: string;
5
+ department: Department;
6
+ propertyId: number;
7
+ date: string;
8
+ time: string;
9
+ attendeeName: string;
10
+ attendeeEmail?: string;
11
+ attendeePhone?: string;
12
+ }): Promise<string>;
13
+ export {};
14
+ //# sourceMappingURL=viewing-create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewing-create.d.ts","sourceRoot":"","sources":["../../src/tools/viewing-create.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;AAYvC,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBlB"}
@@ -0,0 +1,11 @@
1
+ import { loopPost, withTeamKey } from "../lib/loop-api.js";
2
+ export async function viewingCreate(params) {
3
+ const { accountId, teamName, department, ...body } = params;
4
+ const result = await withTeamKey(accountId, teamName, "viewings", "loop-viewing-create", async (apiKey) => {
5
+ const path = `/residential/${department}/viewings`;
6
+ return loopPost(apiKey, path, body, "loop-viewing-create", teamName);
7
+ });
8
+ const viewingId = result.result ?? "unknown";
9
+ return `Viewing created (ID: ${viewingId}) for property ${params.propertyId} on ${params.date} at ${params.time} via team "${teamName}".`;
10
+ }
11
+ //# sourceMappingURL=viewing-create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewing-create.js","sourceRoot":"","sources":["../../src/tools/viewing-create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAc3D,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,MAUnC;IACC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAE5D,MAAM,MAAM,GAAG,MAAM,WAAW,CAC9B,SAAS,EACT,QAAQ,EACR,UAAU,EACV,qBAAqB,EACrB,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,MAAM,IAAI,GAAG,gBAAgB,UAAU,WAAW,CAAC;QACnD,OAAO,QAAQ,CAAqB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IAC3F,CAAC,CACF,CAAC;IAEF,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC;IAC7C,OAAO,wBAAwB,SAAS,kBAAkB,MAAM,CAAC,UAAU,OAAO,MAAM,CAAC,IAAI,OAAO,MAAM,CAAC,IAAI,cAAc,QAAQ,IAAI,CAAC;AAC5I,CAAC"}
@@ -0,0 +1,9 @@
1
+ type Department = "sales" | "lettings";
2
+ export declare function viewingDetail(params: {
3
+ accountId: string;
4
+ viewingId: number;
5
+ department: Department;
6
+ teamName?: string;
7
+ }): Promise<string>;
8
+ export {};
9
+ //# sourceMappingURL=viewing-detail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewing-detail.d.ts","sourceRoot":"","sources":["../../src/tools/viewing-detail.ts"],"names":[],"mappings":"AA4EA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;AAEvC,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiFlB"}