@rubytech/create-maxy-code 0.1.37 → 0.1.38
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.
- package/package.json +1 -1
- package/payload/platform/package-lock.json +752 -512
- package/payload/platform/plugins/loop/PLUGIN.md +11 -0
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js +10 -4
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/tool-surface.d.ts +4 -1
- package/payload/platform/services/claude-session-manager/dist/tool-surface.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/tool-surface.js +4 -1
- package/payload/platform/services/claude-session-manager/dist/tool-surface.js.map +1 -1
- package/payload/premium-plugins/real-agent/plugins/loop/PLUGIN.md +11 -0
- package/dist/__tests__/onboarding-state-readback.test.js +0 -61
- package/dist/onboarding-readback.js +0 -27
- package/payload/platform/lib/anthropic-key/dist/index.d.ts +0 -22
- package/payload/platform/lib/anthropic-key/dist/index.d.ts.map +0 -1
- package/payload/platform/lib/anthropic-key/dist/index.js +0 -232
- package/payload/platform/lib/anthropic-key/dist/index.js.map +0 -1
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.d.ts +0 -39
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.d.ts.map +0 -1
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.js +0 -249
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/.claude-plugin/marketplace.json +0 -13
- package/payload/platform/plugins/real-agency/plugins/loop/.claude-plugin/plugin.json +0 -17
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/index.d.ts +0 -2
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/index.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/index.js +0 -293
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/index.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.d.ts +0 -10
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.js +0 -88
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.d.ts +0 -82
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.js +0 -427
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.d.ts +0 -5
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.js +0 -40
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.d.ts +0 -10
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.js +0 -24
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.d.ts +0 -16
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.js +0 -35
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.d.ts +0 -5
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.js +0 -19
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.d.ts +0 -4
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.js +0 -14
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.d.ts +0 -9
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.js +0 -60
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts +0 -13
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.js +0 -41
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.d.ts +0 -9
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.js +0 -16
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.d.ts +0 -15
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.js +0 -11
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.d.ts +0 -10
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.js +0 -39
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.d.ts +0 -9
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.js +0 -125
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.d.ts +0 -18
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.js +0 -87
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.d.ts +0 -10
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.js +0 -82
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.d.ts +0 -12
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.js +0 -32
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.d.ts +0 -15
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.js +0 -11
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.d.ts +0 -16
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.js +0 -41
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.d.ts +0 -13
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.js +0 -49
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.d.ts +0 -7
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.js +0 -19
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.d.ts +0 -5
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.js +0 -32
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.d.ts +0 -14
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.js +0 -11
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.d.ts +0 -9
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.js +0 -85
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.d.ts +0 -13
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.js +0 -44
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.js.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.d.ts +0 -14
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.d.ts.map +0 -1
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.js +0 -18
- package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/.claude-plugin/marketplace.json +0 -13
- package/payload/premium-plugins/real-agency/plugins/loop/.claude-plugin/plugin.json +0 -17
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/index.d.ts +0 -2
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/index.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/index.js +0 -293
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/index.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.d.ts +0 -10
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.js +0 -88
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/crypto.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.d.ts +0 -82
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.js +0 -427
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/loop-api.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.d.ts +0 -5
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.js +0 -40
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.d.ts +0 -10
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.js +0 -24
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.d.ts +0 -16
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.js +0 -35
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/feedback.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.d.ts +0 -5
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.js +0 -19
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.d.ts +0 -4
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.js +0 -14
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-list.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.d.ts +0 -9
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.js +0 -60
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts +0 -13
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.js +0 -41
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.d.ts +0 -9
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.js +0 -16
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.d.ts +0 -15
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.js +0 -11
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.d.ts +0 -10
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.js +0 -39
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.d.ts +0 -9
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.js +0 -125
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.d.ts +0 -18
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.js +0 -87
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/people-search.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.d.ts +0 -10
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.js +0 -82
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-detail.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.d.ts +0 -12
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.js +0 -32
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-listed.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.d.ts +0 -15
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.js +0 -11
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-request.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.d.ts +0 -16
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.js +0 -41
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/property-search.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.d.ts +0 -13
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.js +0 -49
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/supplier.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.d.ts +0 -7
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.js +0 -19
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/team-availability.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.d.ts +0 -5
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.js +0 -32
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/team-info.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.d.ts +0 -14
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.js +0 -11
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-create.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.d.ts +0 -9
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.js +0 -85
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-detail.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.d.ts +0 -13
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.js +0 -44
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-search.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.d.ts +0 -14
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.js +0 -18
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/tools/viewing-update.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j.d.ts","sourceRoot":"","sources":["../../src/lib/neo4j.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuBtD,wBAAgB,SAAS,IAAI,MAAM,CAgBlC;AAED,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAKjD"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import neo4j from "neo4j-driver";
|
|
2
|
-
import { readFileSync } from "node:fs";
|
|
3
|
-
import { resolve } from "node:path";
|
|
4
|
-
let driver = null;
|
|
5
|
-
function readPassword() {
|
|
6
|
-
if (process.env.NEO4J_PASSWORD)
|
|
7
|
-
return process.env.NEO4J_PASSWORD;
|
|
8
|
-
const passwordFile = resolve(process.env.PLATFORM_ROOT ?? resolve(import.meta.dirname, "../../../.."), "config/.neo4j-password");
|
|
9
|
-
try {
|
|
10
|
-
return readFileSync(passwordFile, "utf-8").trim();
|
|
11
|
-
}
|
|
12
|
-
catch {
|
|
13
|
-
throw new Error(`Neo4j password not found. Expected at ${passwordFile} or in NEO4J_PASSWORD env var.`);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export function getDriver() {
|
|
17
|
-
if (!driver) {
|
|
18
|
-
// Task 580: NEO4J_URI must be explicit. Silent default to :7687 was the
|
|
19
|
-
// vector for Task 577's orphan data in Maxy's DB from a realagent install.
|
|
20
|
-
const uri = process.env.NEO4J_URI;
|
|
21
|
-
if (!uri) {
|
|
22
|
-
throw new Error("[loop] NEO4J_URI unset — refusing to default to bolt://localhost:7687 (Task 580)");
|
|
23
|
-
}
|
|
24
|
-
const user = process.env.NEO4J_USER ?? "neo4j";
|
|
25
|
-
const password = readPassword();
|
|
26
|
-
console.error(`[loop] resolved neo4j_uri=${uri}`);
|
|
27
|
-
driver = neo4j.driver(uri, neo4j.auth.basic(user, password));
|
|
28
|
-
}
|
|
29
|
-
return driver;
|
|
30
|
-
}
|
|
31
|
-
export function getSession() {
|
|
32
|
-
return getDriver().session();
|
|
33
|
-
}
|
|
34
|
-
export async function closeDriver() {
|
|
35
|
-
if (driver) {
|
|
36
|
-
await driver.close();
|
|
37
|
-
driver = null;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=neo4j.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j.js","sourceRoot":"","sources":["../../src/lib/neo4j.ts"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,IAAI,MAAM,GAAkB,IAAI,CAAC;AAEjC,SAAS,YAAY;IACnB,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc;QAAE,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;IAElE,MAAM,YAAY,GAAG,OAAO,CAC1B,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,aAAa,CAAC,EACxE,wBAAwB,CACzB,CAAC;IAEF,IAAI,CAAC;QACH,OAAO,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACpD,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CACb,yCAAyC,YAAY,gCAAgC,CACtF,CAAC;IACJ,CAAC;AACH,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,wEAAwE;QACxE,2EAA2E;QAC3E,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC;QAC/C,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;QAChC,OAAO,CAAC,KAAK,CAAC,6BAA6B,GAAG,EAAE,CAAC,CAAC;QAClD,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,OAAO,SAAS,EAAE,CAAC,OAAO,EAAE,CAAC;AAC/B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACrB,MAAM,GAAG,IAAI,CAAC;IAChB,CAAC;AACH,CAAC"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type PreferencesAction = "read" | "write";
|
|
2
|
-
export declare function customerPreferences(params: {
|
|
3
|
-
accountId: string;
|
|
4
|
-
teamName: string;
|
|
5
|
-
personCode: number;
|
|
6
|
-
action: PreferencesAction;
|
|
7
|
-
preferences?: Record<string, unknown>;
|
|
8
|
-
}): Promise<string>;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=customer-preferences.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customer-preferences.d.ts","sourceRoot":"","sources":["../../src/tools/customer-preferences.ts"],"names":[],"mappings":"AAEA,KAAK,iBAAiB,GAAG,MAAM,GAAG,OAAO,CAAC;AAmB1C,wBAAsB,mBAAmB,CAAC,MAAM,EAAE;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC,GAAG,OAAO,CAAC,MAAM,CAAC,CAsClB"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/customer-preferences.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { loopGet, loopPost, withTeamKey } from "../lib/loop-api.js";
|
|
2
|
-
export async function customerPreferences(params) {
|
|
3
|
-
const { accountId, teamName, personCode, action } = params;
|
|
4
|
-
if (action === "read") {
|
|
5
|
-
const result = await withTeamKey(accountId, teamName, "customer", "loop-customer-preferences", async (apiKey) => {
|
|
6
|
-
return loopGet(apiKey, `/customer/preferences/${personCode}`, "loop-customer-preferences", teamName);
|
|
7
|
-
});
|
|
8
|
-
if (!result || (Array.isArray(result) && result.length === 0)) {
|
|
9
|
-
return `No preferences found for person ${personCode} via team "${teamName}".`;
|
|
10
|
-
}
|
|
11
|
-
return JSON.stringify(result, null, 2);
|
|
12
|
-
}
|
|
13
|
-
if (action === "write") {
|
|
14
|
-
if (!params.preferences) {
|
|
15
|
-
throw new Error("preferences object is required when action is 'write'.");
|
|
16
|
-
}
|
|
17
|
-
await withTeamKey(accountId, teamName, "customer", "loop-customer-preferences", async (apiKey) => {
|
|
18
|
-
return loopPost(apiKey, `/customer/preferences/${personCode}`, params.preferences, "loop-customer-preferences", teamName);
|
|
19
|
-
});
|
|
20
|
-
return `Preferences updated for person ${personCode} via team "${teamName}".`;
|
|
21
|
-
}
|
|
22
|
-
throw new Error(`Unknown action: ${action}. Use "read" or "write".`);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=customer-preferences.js.map
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/custom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M,CAAC,WAAY,EAAE,2BAA2B,EAAE,QAAQ,CAC3D,CAAC;QACJ,CAAC,CACF,CAAC;QACF,OAAO,kCAAkC,UAAU,cAAc,QAAQ,IAAI,CAAC;IAChF,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,mBAAmB,MAAM,0BAA0B,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type Department = "sales" | "lettings";
|
|
2
|
-
export declare function feedbackGet(params: {
|
|
3
|
-
accountId: string;
|
|
4
|
-
teamName: string;
|
|
5
|
-
viewingId: number;
|
|
6
|
-
department: Department;
|
|
7
|
-
}): Promise<string>;
|
|
8
|
-
export declare function feedbackSubmit(params: {
|
|
9
|
-
accountId: string;
|
|
10
|
-
teamName: string;
|
|
11
|
-
viewingId: number;
|
|
12
|
-
department: Department;
|
|
13
|
-
feedback: string;
|
|
14
|
-
}): Promise<string>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=feedback.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../../src/tools/feedback.ts"],"names":[],"mappings":"AAMA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;AAwBvC,wBAAsB,WAAW,CAAC,MAAM,EAAE;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;CACxB,GAAG,OAAO,CAAC,MAAM,CAAC,CA2BlB;AAED,wBAAsB,cAAc,CAAC,MAAM,EAAE;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,MAAM,CAAC,CAelB"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { loopGet, loopPost, withTeamKey, } from "../lib/loop-api.js";
|
|
2
|
-
export async function feedbackGet(params) {
|
|
3
|
-
const { accountId, teamName, viewingId, department } = params;
|
|
4
|
-
const result = await withTeamKey(accountId, teamName, "feedback", "loop-feedback-get", async (apiKey) => {
|
|
5
|
-
const path = `/feedback/residential/${department}/viewings/${viewingId}`;
|
|
6
|
-
return loopGet(apiKey, path, "loop-feedback-get", teamName);
|
|
7
|
-
});
|
|
8
|
-
if (!result || (Array.isArray(result) && result.length === 0)) {
|
|
9
|
-
return `No feedback found for viewing ${viewingId} (${department}) via team "${teamName}".`;
|
|
10
|
-
}
|
|
11
|
-
const f = result;
|
|
12
|
-
const lines = [`**Feedback for viewing ${viewingId}**`];
|
|
13
|
-
if (f.propertyAddress)
|
|
14
|
-
lines.push(`Property: ${f.propertyAddress}`);
|
|
15
|
-
if (f.date)
|
|
16
|
-
lines.push(`Date: ${f.date}`);
|
|
17
|
-
if (f.attendeeName)
|
|
18
|
-
lines.push(`Attendee: ${f.attendeeName}`);
|
|
19
|
-
if (f.rating != null)
|
|
20
|
-
lines.push(`Rating: ★${f.rating}`);
|
|
21
|
-
if (f.status)
|
|
22
|
-
lines.push(`Status: ${f.status}`);
|
|
23
|
-
if (f.feedback)
|
|
24
|
-
lines.push(`Feedback: ${f.feedback}`);
|
|
25
|
-
return lines.join("\n");
|
|
26
|
-
}
|
|
27
|
-
export async function feedbackSubmit(params) {
|
|
28
|
-
const { accountId, teamName, viewingId, department, feedback } = params;
|
|
29
|
-
await withTeamKey(accountId, teamName, "feedback", "loop-feedback-submit", async (apiKey) => {
|
|
30
|
-
const path = `/feedback/residential/${department}/viewings/${viewingId}/feedback`;
|
|
31
|
-
return loopPost(apiKey, path, { result: feedback }, "loop-feedback-submit", teamName);
|
|
32
|
-
});
|
|
33
|
-
return `Feedback submitted for viewing ${viewingId} (${department}) via team "${teamName}".`;
|
|
34
|
-
}
|
|
35
|
-
//# source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D,IAAI,CAAC,CAAC,MAAM,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzD,IAAI,CAAC,CAAC,MAAM;QAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,IAAI,CAAC,CAAC,QAAQ;QAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IACtD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,MAMpC;IACC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAExE,MAAM,WAAW,CACf,SAAS,EACT,QAAQ,EACR,UAAU,EACV,sBAAsB,EACtB,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,MAAM,IAAI,GAAG,yBAAyB,UAAU,aAAa,SAAS,WAAW,CAAC;QAClF,OAAO,QAAQ,CAAsB,MAAM,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,sBAAsB,EAAE,QAAQ,CAAC,CAAC;IAC7G,CAAC,CACF,CAAC;IAEF,OAAO,kCAAkC,SAAS,KAAK,UAAU,eAAe,QAAQ,IAAI,CAAC;AAC/F,CAAC"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-deregister.d.ts","sourceRoot":"","sources":["../../src/tools/key-deregister.ts"],"names":[],"mappings":"AAEA,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBhB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getSession } from "../lib/neo4j.js";
|
|
2
|
-
export async function keyDeregister(params) {
|
|
3
|
-
const { teamName, accountId } = params;
|
|
4
|
-
const session = getSession();
|
|
5
|
-
try {
|
|
6
|
-
const result = await session.run(`MATCH (k:LoopTeamKey {teamName: $teamName, accountId: $accountId})
|
|
7
|
-
DELETE k
|
|
8
|
-
RETURN count(k) AS deleted`, { teamName, accountId });
|
|
9
|
-
const deleted = result.records[0]?.get("deleted")?.toNumber?.() ?? 0;
|
|
10
|
-
if (deleted === 0) {
|
|
11
|
-
throw new Error(`Team "${teamName}" not found.`);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
finally {
|
|
15
|
-
await session.close();
|
|
16
|
-
}
|
|
17
|
-
console.error(`[loop] key-deregister team=${teamName} account=${accountId}`);
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=key-deregister.js.map
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-deregister.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-deregister.js","sourceRoot":"","sources":["../../src/tools/key-deregister.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,MAGnC;IACC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAEvC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,GAAG,CAC9B;;kCAE4B,EAC5B,EAAE,QAAQ,EAAE,SAAS,EAAE,CACxB,CAAC;QAEF,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC;QACrE,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,SAAS,QAAQ,cAAc,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;YAAS,CAAC;QACT,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,8BAA8B,QAAQ,YAAY,SAAS,EAAE,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-list.d.ts","sourceRoot":"","sources":["../../src/tools/key-list.ts"],"names":[],"mappings":"AAEA,wBAAsB,OAAO,CAAC,MAAM,EAAE;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,CAAC,CAclB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { loadTeamKeys } from "../lib/loop-api.js";
|
|
2
|
-
export async function keyList(params) {
|
|
3
|
-
const keys = await loadTeamKeys(params.accountId);
|
|
4
|
-
if (keys.length === 0) {
|
|
5
|
-
return "No Loop teams registered. Use loop-key-register to add team API keys.";
|
|
6
|
-
}
|
|
7
|
-
const lines = keys.map((k) => {
|
|
8
|
-
const perms = k.permissions.join(", ");
|
|
9
|
-
const addr = k.teamAddress ? ` — ${k.teamAddress}` : "";
|
|
10
|
-
return `- **${k.teamName}**${addr} (permissions: ${perms}, registered: ${k.createdAt})`;
|
|
11
|
-
});
|
|
12
|
-
return `${keys.length} Loop team(s) registered:\n\n${lines.join("\n")}`;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=key-list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-list.js","sourceRoot":"","sources":["../../src/tools/key-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,MAE7B;IACC,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAElD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,uEAAuE,CAAC;IACjF,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QAC3B,MAAM,KAAK,GAAG,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACxD,OAAO,OAAO,CAAC,CAAC,QAAQ,KAAK,IAAI,kBAAkB,KAAK,iBAAiB,CAAC,CAAC,SAAS,GAAG,CAAC;IAC1F,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,IAAI,CAAC,MAAM,gCAAgC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAC1E,CAAC"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-register.d.ts","sourceRoot":"","sources":["../../src/tools/key-register.ts"],"names":[],"mappings":"AAcA,wBAAsB,WAAW,CAAC,MAAM,EAAE;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,GAAG,OAAO,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA2EhC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { getSession } from "../lib/neo4j.js";
|
|
2
|
-
import { encrypt } from "../lib/crypto.js";
|
|
3
|
-
import { loopGet, LoopApiError } from "../lib/loop-api.js";
|
|
4
|
-
const ALL_PERMISSIONS = ["properties", "people", "viewings", "feedback", "team", "marketing", "customer", "supplier"];
|
|
5
|
-
export async function keyRegister(params) {
|
|
6
|
-
const { teamName, apiKey, accountId } = params;
|
|
7
|
-
const permissions = params.permissions ?? ALL_PERMISSIONS;
|
|
8
|
-
// Validate key against Loop API — try /team endpoint
|
|
9
|
-
let teamAddress = "";
|
|
10
|
-
let agentId = "";
|
|
11
|
-
let warning;
|
|
12
|
-
try {
|
|
13
|
-
const teamData = await loopGet(apiKey, "/team", "loop-key-register", teamName);
|
|
14
|
-
if (Array.isArray(teamData) && teamData.length === 0) {
|
|
15
|
-
// 204 was converted to empty array — ambiguous scope
|
|
16
|
-
warning =
|
|
17
|
-
"Key accepted but Loop returned no team data (204). " +
|
|
18
|
-
"Verify the key's scope in Loop's dashboard.";
|
|
19
|
-
}
|
|
20
|
-
else if (teamData && typeof teamData === "object") {
|
|
21
|
-
teamAddress = String(teamData.address ?? "");
|
|
22
|
-
agentId = String(teamData.agentId ?? teamData.id ?? "");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
catch (err) {
|
|
26
|
-
if (err instanceof LoopApiError && err.status === 401) {
|
|
27
|
-
throw new Error(`Loop API rejected the key for team "${teamName}" (HTTP 401). ` +
|
|
28
|
-
`Check that the key is valid and not expired.`);
|
|
29
|
-
}
|
|
30
|
-
// Network/timeout errors — still reject, key is unverified
|
|
31
|
-
throw new Error(`Could not validate key against Loop API: ${err instanceof Error ? err.message : String(err)}`);
|
|
32
|
-
}
|
|
33
|
-
// Encrypt and store
|
|
34
|
-
const encryptedKey = encrypt(apiKey);
|
|
35
|
-
const now = new Date().toISOString();
|
|
36
|
-
const writeSession = getSession();
|
|
37
|
-
try {
|
|
38
|
-
await writeSession.run(`CREATE INDEX loop_team_key_account_team IF NOT EXISTS
|
|
39
|
-
FOR (k:LoopTeamKey) ON (k.accountId, k.teamName)`, {});
|
|
40
|
-
const mergeResult = await writeSession.run(`MERGE (k:LoopTeamKey {teamName: $teamName, accountId: $accountId})
|
|
41
|
-
ON CREATE SET
|
|
42
|
-
k.encryptedKey = $encryptedKey,
|
|
43
|
-
k.teamAddress = $teamAddress,
|
|
44
|
-
k.agentId = $agentId,
|
|
45
|
-
k.permissions = $permissions,
|
|
46
|
-
k.createdAt = $now,
|
|
47
|
-
k.updatedAt = $now
|
|
48
|
-
RETURN k.createdAt = $now AS created`, { teamName, encryptedKey, teamAddress, agentId, accountId, permissions, now });
|
|
49
|
-
const created = mergeResult.records[0]?.get("created");
|
|
50
|
-
if (!created) {
|
|
51
|
-
throw new Error(`Team "${teamName}" is already registered for this account.`);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
finally {
|
|
55
|
-
await writeSession.close();
|
|
56
|
-
}
|
|
57
|
-
console.error(`[loop] key-register team=${teamName} account=${accountId}`);
|
|
58
|
-
return { warning };
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=key-register.js.map
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/key-register.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-register.js","sourceRoot":"","sources":["../../src/tools/key-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAU3D,MAAM,eAAe,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;AAEtH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAKjC;IACC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAC/C,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,eAAe,CAAC;IAE1D,qDAAqD;IAC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YAAY,CAAC,GAAG,CACpB;wDACkD,EAClD,EAAE,CACH,CAAC;QAEF,MAAM,WAAW,GAAG,MAAM,YAAY,CAAC,GAAG,CACxC;;;;;;;;4CAQsC,EACtC,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,EAAE,CAC9E,CAAC;QAEF,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,SAAS,QAAQ,2CAA2C,CAAC,CAAC;QAChF,CAAC;IACH,CAAC;YAAS,CAAC;QACT,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,4BAA4B,QAAQ,YAAY,SAAS,EAAE,CAAC,CAAC;IAE3E,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type EnquiryAction = "seller-enquiry" | "autoresponder-get" | "autoresponder-answers" | "autoresponder-details" | "autoresponder-refer";
|
|
2
|
-
export declare function marketingEnquiry(params: {
|
|
3
|
-
accountId: string;
|
|
4
|
-
teamName: string;
|
|
5
|
-
action: EnquiryAction;
|
|
6
|
-
sellerEnquiryData?: Record<string, unknown>;
|
|
7
|
-
autoResponderId?: number;
|
|
8
|
-
autoResponderKey?: string;
|
|
9
|
-
answers?: unknown[];
|
|
10
|
-
details?: Record<string, unknown>;
|
|
11
|
-
}): Promise<string>;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=marketing-enquiry.d.ts.map
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marketing-enquiry.d.ts","sourceRoot":"","sources":["../../src/tools/marketing-enquiry.ts"],"names":[],"mappings":"AAEA,KAAK,aAAa,GAAG,gBAAgB,GAAG,mBAAmB,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,qBAAqB,CAAC;AAsBxI,wBAAsB,gBAAgB,CAAC,MAAM,EAAE;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,aAAa,CAAC;IAEtB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE5C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,GAAG,OAAO,CAAC,MAAM,CAAC,CA2ElB"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { loopGet, loopPost, loopPut, withTeamKey } from "../lib/loop-api.js";
|
|
2
|
-
export async function marketingEnquiry(params) {
|
|
3
|
-
const { accountId, teamName, action } = params;
|
|
4
|
-
if (action === "seller-enquiry") {
|
|
5
|
-
await withTeamKey(accountId, teamName, "marketing", "loop-marketing-enquiry", async (apiKey) => {
|
|
6
|
-
return loopPost(apiKey, "/marketing/enquiries/seller", params.sellerEnquiryData ?? {}, "loop-marketing-enquiry", teamName);
|
|
7
|
-
});
|
|
8
|
-
return `Seller enquiry submitted via team "${teamName}".`;
|
|
9
|
-
}
|
|
10
|
-
if (!params.autoResponderId || !params.autoResponderKey) {
|
|
11
|
-
throw new Error("autoResponderId and autoResponderKey are required for autoresponder actions.");
|
|
12
|
-
}
|
|
13
|
-
const id = params.autoResponderId;
|
|
14
|
-
const key = params.autoResponderKey;
|
|
15
|
-
if (action === "autoresponder-get") {
|
|
16
|
-
const result = await withTeamKey(accountId, teamName, "marketing", "loop-marketing-enquiry", async (apiKey) => {
|
|
17
|
-
return loopGet(apiKey, `/marketing/enquiries/auto-responder/${id}/${key}`, "loop-marketing-enquiry", teamName);
|
|
18
|
-
});
|
|
19
|
-
return JSON.stringify(result, null, 2);
|
|
20
|
-
}
|
|
21
|
-
if (action === "autoresponder-answers") {
|
|
22
|
-
await withTeamKey(accountId, teamName, "marketing", "loop-marketing-enquiry", async (apiKey) => {
|
|
23
|
-
return loopPut(apiKey, `/marketing/enquiries/auto-responder/${id}/answers/${key}`, params.answers ?? [], "loop-marketing-enquiry", teamName);
|
|
24
|
-
});
|
|
25
|
-
return `Auto-responder answers submitted for enquiry ${id} via team "${teamName}".`;
|
|
26
|
-
}
|
|
27
|
-
if (action === "autoresponder-details") {
|
|
28
|
-
await withTeamKey(accountId, teamName, "marketing", "loop-marketing-enquiry", async (apiKey) => {
|
|
29
|
-
return loopPut(apiKey, `/marketing/enquiries/auto-responder/${id}/details/${key}`, params.details ?? {}, "loop-marketing-enquiry", teamName);
|
|
30
|
-
});
|
|
31
|
-
return `Auto-responder details updated for enquiry ${id} via team "${teamName}".`;
|
|
32
|
-
}
|
|
33
|
-
if (action === "autoresponder-refer") {
|
|
34
|
-
await withTeamKey(accountId, teamName, "marketing", "loop-marketing-enquiry", async (apiKey) => {
|
|
35
|
-
return loopPut(apiKey, `/marketing/enquiries/auto-responder/${id}/refer/${key}`, {}, "loop-marketing-enquiry", teamName);
|
|
36
|
-
});
|
|
37
|
-
return `Enquiry ${id} referred via team "${teamName}".`;
|
|
38
|
-
}
|
|
39
|
-
throw new Error(`Unknown action: ${action}`);
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=marketing-enquiry.js.map
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-enquiry.js.map
DELETED
|
@@ -1 +0,0 @@
|
|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C"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type Department = "sales" | "lettings";
|
|
2
|
-
export declare function marketingMatchBatch(params: {
|
|
3
|
-
accountId: string;
|
|
4
|
-
propertyIds: number[];
|
|
5
|
-
department: Department;
|
|
6
|
-
teamName?: string;
|
|
7
|
-
}): Promise<string>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=marketing-match-batch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marketing-match-batch.d.ts","sourceRoot":"","sources":["../../src/tools/marketing-match-batch.ts"],"names":[],"mappings":"AAoBA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;AAEvC,wBAAsB,mBAAmB,CAAC,MAAM,EAAE;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyBlB"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-batch.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { aggregateAcrossTeams, formatAggregationResult, loopPut, } from "../lib/loop-api.js";
|
|
2
|
-
export async function marketingMatchBatch(params) {
|
|
3
|
-
const { accountId, propertyIds, department, teamName } = params;
|
|
4
|
-
const result = await aggregateAcrossTeams(accountId, "marketing", "loop-marketing-match-batch", async (apiKey, team) => {
|
|
5
|
-
const prefix = department === "lettings" ? "/marketing/rentals" : "/marketing";
|
|
6
|
-
const path = `${prefix}/matching/other-matches`;
|
|
7
|
-
const data = await loopPut(apiKey, path, propertyIds, "loop-marketing-match-batch", team);
|
|
8
|
-
return Array.isArray(data) ? data : [];
|
|
9
|
-
}, { teamName });
|
|
10
|
-
return formatAggregationResult(result, (p) => {
|
|
11
|
-
const price = p.price ? ` — £${p.price.toLocaleString("en-GB")}` : "";
|
|
12
|
-
const beds = p.bedrooms ? ` ${p.bedrooms}bed` : "";
|
|
13
|
-
return `- ${p.address ?? "Unknown"}${price}${beds}`;
|
|
14
|
-
}, "matching properties");
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=marketing-match-batch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marketing-match-batch.js","sourceRoot":"","sources":["../../src/tools/marketing-match-batch.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,OAAO,GACR,MAAM,oBAAoB,CAAC;AAkB5B,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,MAKzC;IACC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAEhE,MAAM,MAAM,GAAG,MAAM,oBAAoB,CACvC,SAAS,EACT,WAAW,EACX,4BAA4B,EAC5B,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QACrB,MAAM,MAAM,GAAG,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,YAAY,CAAC;QAC/E,MAAM,IAAI,GAAG,GAAG,MAAM,yBAAyB,CAAC;QAChD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAwB,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,4BAA4B,EAAE,IAAI,CAAC,CAAC;QACjH,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,CAAC,EAAE,EAAE;QACJ,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtE,MAAM,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACnD,OAAO,KAAK,CAAC,CAAC,OAAO,IAAI,SAAS,GAAG,KAAK,GAAG,IAAI,EAAE,CAAC;IACtD,CAAC,EACD,qBAAqB,CACtB,CAAC;AACJ,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type Department = "sales" | "lettings";
|
|
2
|
-
type MatchAction = "viewing" | "information" | "callback";
|
|
3
|
-
export declare function marketingMatchRequest(params: {
|
|
4
|
-
accountId: string;
|
|
5
|
-
teamName: string;
|
|
6
|
-
propertyId: number;
|
|
7
|
-
department: Department;
|
|
8
|
-
action: MatchAction;
|
|
9
|
-
name?: string;
|
|
10
|
-
email?: string;
|
|
11
|
-
phone?: string;
|
|
12
|
-
message?: string;
|
|
13
|
-
}): Promise<string>;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=marketing-match-request.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marketing-match-request.d.ts","sourceRoot":"","sources":["../../src/tools/marketing-match-request.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;AACvC,KAAK,WAAW,GAAG,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;AAY1D,wBAAsB,qBAAqB,CAAC,MAAM,EAAE;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,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"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match-request.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { loopPost, withTeamKey } from "../lib/loop-api.js";
|
|
2
|
-
export async function marketingMatchRequest(params) {
|
|
3
|
-
const { accountId, teamName, propertyId, department, action, ...body } = params;
|
|
4
|
-
await withTeamKey(accountId, teamName, "marketing", "loop-marketing-match-request", async (apiKey) => {
|
|
5
|
-
const prefix = department === "lettings" ? "/marketing/rentals" : "/marketing";
|
|
6
|
-
const path = `${prefix}/matching/${propertyId}/${action}`;
|
|
7
|
-
return loopPost(apiKey, path, body, "loop-marketing-match-request", teamName);
|
|
8
|
-
});
|
|
9
|
-
return `${action} request submitted for matching property ${propertyId} (${department}) via team "${teamName}".`;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=marketing-match-request.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marketing-match-request.js","sourceRoot":"","sources":["../../src/tools/marketing-match-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAe3D,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,MAU3C;IACC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAEhF,MAAM,WAAW,CACf,SAAS,EACT,QAAQ,EACR,WAAW,EACX,8BAA8B,EAC9B,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,MAAM,MAAM,GAAG,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,YAAY,CAAC;QAC/E,MAAM,IAAI,GAAG,GAAG,MAAM,aAAa,UAAU,IAAI,MAAM,EAAE,CAAC;QAC1D,OAAO,QAAQ,CAAsB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,8BAA8B,EAAE,QAAQ,CAAC,CAAC;IACrG,CAAC,CACF,CAAC;IAEF,OAAO,GAAG,MAAM,4CAA4C,UAAU,KAAK,UAAU,eAAe,QAAQ,IAAI,CAAC;AACnH,CAAC"}
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type Department = "sales" | "lettings";
|
|
2
|
-
export declare function marketingMatchDetail(params: {
|
|
3
|
-
accountId: string;
|
|
4
|
-
propertyId: number;
|
|
5
|
-
department: Department;
|
|
6
|
-
includeTeamProfile?: boolean;
|
|
7
|
-
teamName?: string;
|
|
8
|
-
}): Promise<string>;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=marketing-match.d.ts.map
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marketing-match.d.ts","sourceRoot":"","sources":["../../src/tools/marketing-match.ts"],"names":[],"mappings":"AAgCA,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;AAEvC,wBAAsB,oBAAoB,CAAC,MAAM,EAAE;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,CAAC,CA2ClB"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { aggregateAcrossTeams, formatAggregationResult, loopGet, } from "../lib/loop-api.js";
|
|
2
|
-
export async function marketingMatchDetail(params) {
|
|
3
|
-
const { accountId, propertyId, department, includeTeamProfile = false, teamName } = params;
|
|
4
|
-
const result = await aggregateAcrossTeams(accountId, "marketing", "loop-marketing-match", async (apiKey, team) => {
|
|
5
|
-
const prefix = department === "lettings" ? "/marketing/rentals" : "/marketing";
|
|
6
|
-
const path = `${prefix}/matching/${propertyId}`;
|
|
7
|
-
const data = await loopGet(apiKey, path, "loop-marketing-match", team);
|
|
8
|
-
if (data && typeof data === "object" && !Array.isArray(data)) {
|
|
9
|
-
if (includeTeamProfile) {
|
|
10
|
-
const profilePath = `${prefix}/matching/${propertyId}/team-profile`;
|
|
11
|
-
const profile = await loopGet(apiKey, profilePath, "loop-marketing-match", team).catch(() => null);
|
|
12
|
-
if (profile) {
|
|
13
|
-
data._teamProfile = profile;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return [data];
|
|
17
|
-
}
|
|
18
|
-
return [];
|
|
19
|
-
}, { teamName });
|
|
20
|
-
return formatAggregationResult(result, (p) => {
|
|
21
|
-
const lines = [`**${p.address ?? "Unknown address"}**`];
|
|
22
|
-
if (p.price)
|
|
23
|
-
lines.push(`Price: £${p.price.toLocaleString("en-GB")}`);
|
|
24
|
-
if (p.type)
|
|
25
|
-
lines.push(`Type: ${p.type}`);
|
|
26
|
-
if (p.bedrooms)
|
|
27
|
-
lines.push(`Bedrooms: ${p.bedrooms}`);
|
|
28
|
-
if (p.status)
|
|
29
|
-
lines.push(`Status: ${p.status}`);
|
|
30
|
-
if (p.description)
|
|
31
|
-
lines.push(`\n${p.description}`);
|
|
32
|
-
const profile = p._teamProfile;
|
|
33
|
-
if (profile) {
|
|
34
|
-
lines.push(`\n**Team:** ${profile.name ?? ""} — ${profile.address ?? ""} | ${profile.phone ?? ""} | ${profile.email ?? ""}`);
|
|
35
|
-
}
|
|
36
|
-
return lines.join("\n");
|
|
37
|
-
}, "matching property details");
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=marketing-match.js.map
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/marketing-match.js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renters" | "landlords";
|
|
2
|
-
export declare function peopleDetail(params: {
|
|
3
|
-
accountId: string;
|
|
4
|
-
personId: number;
|
|
5
|
-
role?: PeopleRole;
|
|
6
|
-
teamName?: string;
|
|
7
|
-
}): Promise<string>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=people-detail.d.ts.map
|
package/payload/platform/plugins/real-agency/plugins/loop/mcp/dist/tools/people-detail.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"people-detail.d.ts","sourceRoot":"","sources":["../../src/tools/people-detail.ts"],"names":[],"mappings":"AAkHA,KAAK,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEjE,wBAAsB,YAAY,CAAC,MAAM,EAAE;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,CAAC,CAwBlB"}
|