@rubytech/create-maxy-code 0.1.94 → 0.1.96
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/plugins/.claude-plugin/marketplace.json +0 -5
- package/payload/platform/plugins/admin/PLUGIN.md +1 -0
- package/payload/platform/plugins/cloudflare/.claude-plugin/plugin.json +0 -9
- package/payload/platform/plugins/cloudflare/PLUGIN.md +1 -0
- package/payload/platform/plugins/contacts/PLUGIN.md +1 -0
- package/payload/platform/plugins/email/PLUGIN.md +1 -0
- package/payload/platform/plugins/memory/PLUGIN.md +1 -0
- package/payload/platform/plugins/outlook/PLUGIN.md +1 -0
- package/payload/platform/plugins/replicate/PLUGIN.md +1 -0
- package/payload/platform/plugins/scheduling/PLUGIN.md +1 -0
- package/payload/platform/plugins/telegram/PLUGIN.md +1 -0
- package/payload/platform/plugins/waitlist/PLUGIN.md +1 -0
- package/payload/platform/plugins/whatsapp/.claude-plugin/plugin.json +0 -9
- package/payload/platform/plugins/whatsapp/PLUGIN.md +1 -0
- package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/boot-without-env.test.d.ts +2 -0
- package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/boot-without-env.test.d.ts.map +1 -0
- package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/boot-without-env.test.js +58 -0
- package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/boot-without-env.test.js.map +1 -0
- package/payload/platform/plugins/whatsapp/mcp/dist/index.js +34 -17
- package/payload/platform/plugins/whatsapp/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/whatsapp/mcp/package.json +4 -2
- package/payload/platform/plugins/whatsapp/mcp/vitest.config.ts +9 -0
- package/payload/platform/plugins/work/PLUGIN.md +1 -0
- package/payload/platform/plugins/workflows/PLUGIN.md +1 -0
- package/payload/platform/scripts/smoke-boot-services.sh +59 -0
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.d.ts +1 -1
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.js +20 -9
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.d.ts +1 -0
- package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.js +160 -5
- package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts +6 -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 +11 -0
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
- package/payload/premium-plugins/real-agent/plugins/.claude-plugin/marketplace.json +0 -5
- package/payload/premium-plugins/real-agent/plugins/loop/.claude-plugin/plugin.json +0 -9
- package/payload/premium-plugins/real-agent/plugins/loop/PLUGIN.md +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/.claude-plugin/plugin.json +0 -9
- package/payload/premium-plugins/real-agent/plugins/property-data/PLUGIN.md +1 -0
- package/payload/server/public/assets/admin-Bt4mImui.js +217 -0
- package/payload/server/public/assets/{data-BK4r8Dqy.js → data-laRW9zIG.js} +1 -1
- package/payload/server/public/assets/{graph-Cb6A8Hhs.js → graph-SnA01HCP.js} +1 -1
- package/payload/server/public/assets/graph-labels-BGa1MHXG.js +1 -0
- package/payload/server/public/assets/{page-DVNp-Dfy.js → page-8KS8gKWq.js} +2 -2
- package/payload/server/public/assets/{page-BeYR_GI2.js → page-BSgRQNig.js} +1 -1
- package/payload/server/public/data.html +3 -3
- package/payload/server/public/graph.html +3 -3
- package/payload/server/public/index.html +4 -4
- package/payload/server/server.js +12 -0
- 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/platform/plugins/tasks/.claude-plugin/plugin.json +0 -17
- package/payload/platform/plugins/tasks/mcp/dist/index.d.ts +0 -2
- package/payload/platform/plugins/tasks/mcp/dist/index.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/index.js +0 -543
- package/payload/platform/plugins/tasks/mcp/dist/index.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/lib/embeddings.d.ts +0 -7
- package/payload/platform/plugins/tasks/mcp/dist/lib/embeddings.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/lib/embeddings.js +0 -24
- package/payload/platform/plugins/tasks/mcp/dist/lib/embeddings.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.d.ts +0 -5
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.js +0 -40
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-complete.d.ts +0 -17
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-complete.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-complete.js +0 -76
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-complete.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-create.d.ts +0 -29
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-create.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-create.js +0 -235
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-create.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-get.d.ts +0 -40
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-get.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-get.js +0 -125
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-get.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-list.d.ts +0 -26
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-list.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-list.js +0 -81
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-list.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-update.d.ts +0 -19
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-update.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-update.js +0 -102
- package/payload/platform/plugins/tasks/mcp/dist/tools/project-update.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-list.d.ts +0 -20
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-list.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-list.js +0 -37
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-list.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.d.ts +0 -12
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.js +0 -28
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-complete.d.ts +0 -16
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-complete.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-complete.js +0 -33
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-complete.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.d.ts +0 -63
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.js +0 -141
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-get.d.ts +0 -19
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-get.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-get.js +0 -51
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-get.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-list.d.ts +0 -18
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-list.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-list.js +0 -66
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-list.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-ready.d.ts +0 -21
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-ready.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-ready.js +0 -54
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-ready.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-relate.d.ts +0 -12
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-relate.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-relate.js +0 -59
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-relate.js.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.d.ts +0 -32
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.d.ts.map +0 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.js +0 -112
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-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
- package/payload/premium-plugins/real-agent/plugins/epc/.claude-plugin/plugin.json +0 -17
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/index.d.ts +0 -2
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/index.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/index.js +0 -117
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/index.js.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/crypto.d.ts +0 -3
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/crypto.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/crypto.js +0 -72
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/crypto.js.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/epc-api.d.ts +0 -60
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/epc-api.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/epc-api.js +0 -181
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/epc-api.js.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/file-crypto.d.ts +0 -3
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/file-crypto.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/file-crypto.js +0 -49
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/file-crypto.js.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/key-store.d.ts +0 -15
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/key-store.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/key-store.js +0 -130
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/key-store.js.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/neo4j.d.ts +0 -5
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/neo4j.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/neo4j.js +0 -38
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/lib/neo4j.js.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-deregister.d.ts +0 -4
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-deregister.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-deregister.js +0 -9
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-deregister.js.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-list.d.ts +0 -4
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-list.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-list.js +0 -10
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-list.js.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-register.d.ts +0 -5
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-register.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-register.js +0 -36
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/key-register.js.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/lookup.d.ts +0 -10
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/lookup.d.ts.map +0 -1
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/lookup.js +0 -30
- package/payload/premium-plugins/real-agent/plugins/epc/mcp/dist/tools/lookup.js.map +0 -1
- package/payload/server/public/assets/admin-ux6TKHS1.js +0 -217
- package/payload/server/public/assets/graph-labels-DCsUNtnE.js +0 -1
|
@@ -1,543 +0,0 @@
|
|
|
1
|
-
import { initStderrTee } from "../../../../lib/mcp-stderr-tee/dist/index.js";
|
|
2
|
-
initStderrTee("tasks");
|
|
3
|
-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
4
|
-
import { eagerTool } from "../../../../lib/mcp-eager/dist/index.js";
|
|
5
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
import { taskCreate } from "./tools/task-create.js";
|
|
8
|
-
import { taskUpdate } from "./tools/task-update.js";
|
|
9
|
-
import { taskList } from "./tools/task-list.js";
|
|
10
|
-
import { taskGet } from "./tools/task-get.js";
|
|
11
|
-
import { taskRelate } from "./tools/task-relate.js";
|
|
12
|
-
import { taskComplete } from "./tools/task-complete.js";
|
|
13
|
-
import { taskReady } from "./tools/task-ready.js";
|
|
14
|
-
import { sessionList } from "./tools/session-list.js";
|
|
15
|
-
import { sessionName } from "./tools/session-name.js";
|
|
16
|
-
import { projectCreate } from "./tools/project-create.js";
|
|
17
|
-
import { projectList } from "./tools/project-list.js";
|
|
18
|
-
import { projectGet } from "./tools/project-get.js";
|
|
19
|
-
import { projectUpdate } from "./tools/project-update.js";
|
|
20
|
-
import { projectComplete } from "./tools/project-complete.js";
|
|
21
|
-
import { closeDriver } from "./lib/neo4j.js";
|
|
22
|
-
// Cast to `any` to avoid TS2589. TypeScript hits its 50-level instantiation
|
|
23
|
-
// limit when accumulating 6 typed tool signatures on a generic McpServer.
|
|
24
|
-
// Individual tool handlers retain full type safety in their own files.
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
|
-
const server = new McpServer({
|
|
27
|
-
name: "maxy-tasks",
|
|
28
|
-
version: "0.1.0",
|
|
29
|
-
});
|
|
30
|
-
// Plugin-system boot tolerance — see Task 202.
|
|
31
|
-
// Module-init must never throw; plugin-system spawn enumerates tools/list
|
|
32
|
-
// before ACCOUNT_ID is set. Per-call refusal preserves account isolation.
|
|
33
|
-
const accountId = process.env.ACCOUNT_ID ?? null;
|
|
34
|
-
process.stderr.write(`[tasks] boot accountId=${accountId ?? "null"}\n`);
|
|
35
|
-
function refuseNoAccount(toolName) {
|
|
36
|
-
process.stderr.write(`[tasks] tool=${toolName} refuse reason=no-account-context\n`);
|
|
37
|
-
return {
|
|
38
|
-
content: [
|
|
39
|
-
{
|
|
40
|
-
type: "text",
|
|
41
|
-
text: `${toolName} cannot execute: this MCP instance was launched without ACCOUNT_ID (plugin-system metadata-only mode). Per-account task/project writes require ACCOUNT_ID at spawn.`,
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
isError: true,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
const sessionId = process.env.SESSION_ID || undefined;
|
|
48
|
-
const agentSlug = process.env.AGENT_SLUG || undefined;
|
|
49
|
-
// ---------------------------------------------------------------------------
|
|
50
|
-
// Shared schema fragments — extracted to keep tool registration concise
|
|
51
|
-
// ---------------------------------------------------------------------------
|
|
52
|
-
const statusSchema = z
|
|
53
|
-
.enum(["pending", "active", "running", "completed", "failed", "cancelled"])
|
|
54
|
-
.optional()
|
|
55
|
-
.describe("Task status. `running` marks the Task as an action mid-flight (auto-sets startedAt) — distinct from `active` (operator-accepted commitment). Transitions to `completed` or `failed` auto-set completedAt; `failed` requires errorMessage.");
|
|
56
|
-
const prioritySchema = z
|
|
57
|
-
.enum(["low", "normal", "high", "urgent"])
|
|
58
|
-
.optional()
|
|
59
|
-
.describe("Task priority");
|
|
60
|
-
const dueDateSchema = z.string().optional().describe("ISO 8601 due date");
|
|
61
|
-
const taskIdSchema = z.string().describe("Task ID (UUID)");
|
|
62
|
-
const noteSchema = z.string().optional().describe("Note appended to task history with timestamp");
|
|
63
|
-
// ---------------------------------------------------------------------------
|
|
64
|
-
// task-create
|
|
65
|
-
// ---------------------------------------------------------------------------
|
|
66
|
-
eagerTool(server, "task-create", "Create a Task node in the graph. Every Task must link to at least one node — the current session's Conversation (automatic when called inside an admin session), a raisedBy Person, or at least one affects entity. Embeds for memory-search discovery. For durable-action records: pass `kind` to discriminate this Task as an action record (e.g. \"onboarding-establish-owner\", \"cloudflare-tunnel-login\") with status `running` to mark it mid-flight; pass `inputsProvided` to record the call shape; pass `raisedDuringConversationKey` when the action was raised by a different surface than the current session. Pass `inputs` with the action's form payload and `inputSchema` declaring any secret-tagged keys — values land on the Task as `inputs.<field>` props after secrets are stripped centrally.", {
|
|
67
|
-
name: z.string().describe("Short task title"),
|
|
68
|
-
description: z.string().describe("Full scope and acceptance criteria — embedded for semantic search"),
|
|
69
|
-
status: statusSchema,
|
|
70
|
-
priority: prioritySchema,
|
|
71
|
-
dueDate: dueDateSchema,
|
|
72
|
-
raisedBy: z.string().optional().describe("Person elementId — creates a RAISED_BY relationship"),
|
|
73
|
-
affects: z.array(z.string()).optional().describe("Entity elementIds — creates AFFECTS relationships for conflict detection"),
|
|
74
|
-
kind: z.string().optional().describe("Discriminator that marks this Task as an action record — e.g. \"onboarding-establish-owner\", \"cloudflare-tunnel-login\". Enables the lifecycle (started/step/done) and `[task] action-*` log lines."),
|
|
75
|
-
inputsProvided: z.array(z.string()).optional().describe("Property names supplied at action start — the call-shape record. Coexists with `inputs.*` redacted values."),
|
|
76
|
-
inputs: z.record(z.any()).optional().describe("Form payload. Persisted as `inputs.<field>` props after `redactSecrets` strips any keys declared in `inputSchema.secretFields`. Pass values the operator supplied that are meaningful for the audit (mode, hostname, emailProvided). Never include passwords or other secret material in the schema's secretFields list — they will be dropped server-side regardless."),
|
|
77
|
-
inputSchema: z
|
|
78
|
-
.object({
|
|
79
|
-
secretFields: z.array(z.string()).optional().describe("Field names whose values must never land on the Task. Declared at the form definition; the writer strips them before persisting."),
|
|
80
|
-
})
|
|
81
|
-
.optional()
|
|
82
|
-
.describe("Form schema declaring secret-tagged fields. Omit when the action records no secrets."),
|
|
83
|
-
raisedDuringConversationKey: z.string().optional().describe("Conversation sessionKey for the RAISED_DURING edge. Defaults to the current session. Use this when the Task is raised by an out-of-band surface (e.g. an HTTP endpoint) but should still link to a specific conversation."),
|
|
84
|
-
}, async (params) => {
|
|
85
|
-
if (!accountId)
|
|
86
|
-
return refuseNoAccount("task-create");
|
|
87
|
-
try {
|
|
88
|
-
const result = await taskCreate({
|
|
89
|
-
...params,
|
|
90
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
91
|
-
inputs: params.inputs,
|
|
92
|
-
accountId,
|
|
93
|
-
sessionKey: sessionId,
|
|
94
|
-
createdBy: { agent: agentSlug, session: sessionId, tool: "task-create" },
|
|
95
|
-
});
|
|
96
|
-
return {
|
|
97
|
-
content: [{
|
|
98
|
-
type: "text",
|
|
99
|
-
text: `Task created: "${params.name}" (ID: ${result.taskId}, status: ${params.status ?? "pending"}, priority: ${params.priority ?? "normal"}${params.kind ? `, kind: ${params.kind}` : ""})`,
|
|
100
|
-
}],
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
catch (err) {
|
|
104
|
-
return {
|
|
105
|
-
content: [{ type: "text", text: `Failed to create task: ${err instanceof Error ? err.message : String(err)}` }],
|
|
106
|
-
isError: true,
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
// ---------------------------------------------------------------------------
|
|
111
|
-
// task-update
|
|
112
|
-
// ---------------------------------------------------------------------------
|
|
113
|
-
eagerTool(server, "task-update", "Update a task's name, description, status, priority, or due date. Append a note to its history. Notes are append-only — never overwritten. Use this to correct a task's name or description without losing note history or relationships. For action-record updates: pass `appendStep` to atomically append one entry to the Task's `steps[]` array (call once per phase of an action); pass `errorMessage` when transitioning status to `failed` (required); transitions to `completed` or `failed` auto-set `completedAt`.", {
|
|
114
|
-
taskId: taskIdSchema,
|
|
115
|
-
name: z.string().optional().describe("New task name — replaces the existing name"),
|
|
116
|
-
description: z.string().optional().describe("New task description — replaces the existing description"),
|
|
117
|
-
status: statusSchema,
|
|
118
|
-
priority: prioritySchema,
|
|
119
|
-
dueDate: dueDateSchema,
|
|
120
|
-
note: z.string().optional().describe("Progress note to append. Timestamped and appended to history — never replaces existing notes."),
|
|
121
|
-
appendStep: z.string().optional().describe("Append a single step label to the Task's `steps[]` array. Atomic — one Cypher round-trip; safe under concurrent calls. Use one call per action phase."),
|
|
122
|
-
errorMessage: z.string().optional().describe("Error message stored on the Task when status transitions to `failed`. Required for the `failed` transition; non-empty errorMessage strings only."),
|
|
123
|
-
}, async (params) => {
|
|
124
|
-
if (!accountId)
|
|
125
|
-
return refuseNoAccount("task-update");
|
|
126
|
-
try {
|
|
127
|
-
await taskUpdate({ ...params, accountId });
|
|
128
|
-
return { content: [{ type: "text", text: `Task updated: ${params.taskId}` }] };
|
|
129
|
-
}
|
|
130
|
-
catch (err) {
|
|
131
|
-
return {
|
|
132
|
-
content: [{ type: "text", text: `Failed to update task: ${err instanceof Error ? err.message : String(err)}` }],
|
|
133
|
-
isError: true,
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
// ---------------------------------------------------------------------------
|
|
138
|
-
// task-list
|
|
139
|
-
// ---------------------------------------------------------------------------
|
|
140
|
-
eagerTool(server, "task-list", "List tasks filtered by status, priority, or related entity. Always scoped to this account. Ordered by priority then creation date.", {
|
|
141
|
-
status: statusSchema,
|
|
142
|
-
priority: prioritySchema,
|
|
143
|
-
relatedEntityId: z.string().optional().describe("Neo4j elementId — return tasks related to this entity"),
|
|
144
|
-
limit: z.number().optional().describe("Max results (default 50)"),
|
|
145
|
-
}, async (params) => {
|
|
146
|
-
if (!accountId)
|
|
147
|
-
return refuseNoAccount("task-list");
|
|
148
|
-
try {
|
|
149
|
-
const tasks = await taskList({ ...params, accountId });
|
|
150
|
-
if (tasks.length === 0) {
|
|
151
|
-
return { content: [{ type: "text", text: "No tasks match the filters." }] };
|
|
152
|
-
}
|
|
153
|
-
const lines = tasks.map((t) => {
|
|
154
|
-
const due = t.dueDate ? ` due:${t.dueDate.slice(0, 10)}` : "";
|
|
155
|
-
return `[${t.priority.toUpperCase()}] ${t.status} — ${t.name}${due} (${t.taskId})`;
|
|
156
|
-
});
|
|
157
|
-
return {
|
|
158
|
-
content: [{ type: "text", text: `${tasks.length} task(s):\n\n${lines.join("\n")}` }],
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
catch (err) {
|
|
162
|
-
return {
|
|
163
|
-
content: [{ type: "text", text: `List failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
164
|
-
isError: true,
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
// ---------------------------------------------------------------------------
|
|
169
|
-
// task-get
|
|
170
|
-
// ---------------------------------------------------------------------------
|
|
171
|
-
eagerTool(server, "task-get", "Fetch a single task with its full description, notes history, and all graph relationships.", {
|
|
172
|
-
taskId: taskIdSchema,
|
|
173
|
-
}, async ({ taskId }) => {
|
|
174
|
-
if (!accountId)
|
|
175
|
-
return refuseNoAccount("task-get");
|
|
176
|
-
try {
|
|
177
|
-
const task = await taskGet(taskId, accountId);
|
|
178
|
-
if (!task) {
|
|
179
|
-
return { content: [{ type: "text", text: `Task not found: ${taskId}` }] };
|
|
180
|
-
}
|
|
181
|
-
const relLines = task.relationships.length > 0
|
|
182
|
-
? task.relationships
|
|
183
|
-
.map((r) => ` -[${r.type}]-> ${r.targetLabel}: ${r.targetName ?? r.targetId}`)
|
|
184
|
-
.join("\n")
|
|
185
|
-
: " (none)";
|
|
186
|
-
const parts = [
|
|
187
|
-
`Task: ${task.name}`,
|
|
188
|
-
`ID: ${task.taskId}`,
|
|
189
|
-
`Status: ${task.status} | Priority: ${task.priority}`,
|
|
190
|
-
task.dueDate ? `Due: ${task.dueDate}` : null,
|
|
191
|
-
``,
|
|
192
|
-
`Description:\n${task.description}`,
|
|
193
|
-
task.notes ? `\nNotes:\n${task.notes}` : null,
|
|
194
|
-
``,
|
|
195
|
-
`Relationships:\n${relLines}`,
|
|
196
|
-
``,
|
|
197
|
-
`Created: ${task.createdAt} | Updated: ${task.updatedAt}`,
|
|
198
|
-
].filter((line) => line !== null);
|
|
199
|
-
return { content: [{ type: "text", text: parts.join("\n") }] };
|
|
200
|
-
}
|
|
201
|
-
catch (err) {
|
|
202
|
-
return {
|
|
203
|
-
content: [{ type: "text", text: `Get failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
204
|
-
isError: true,
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
// ---------------------------------------------------------------------------
|
|
209
|
-
// task-relate
|
|
210
|
-
// ---------------------------------------------------------------------------
|
|
211
|
-
eagerTool(server, "task-relate", "Add a typed relationship from a task to any graph entity. AFFECTS marks entities the task will modify (used for conflict detection). BLOCKS creates sequential dependencies. PART_OF links subtasks. RAISED_BY links to the requesting person.", {
|
|
212
|
-
taskId: taskIdSchema,
|
|
213
|
-
targetId: z.string().describe("Target identifier. For Task targets: the taskId (UUID) returned by task-create. For all other labels: the Neo4j elementId from memory-search."),
|
|
214
|
-
targetLabel: z.string().describe("Label of the target node (e.g. Person, Service, LocalBusiness, Task)"),
|
|
215
|
-
relType: z.enum(["AFFECTS", "RAISED_BY", "PART_OF", "BLOCKS"]).describe("Relationship type"),
|
|
216
|
-
}, async (params) => {
|
|
217
|
-
if (!accountId)
|
|
218
|
-
return refuseNoAccount("task-relate");
|
|
219
|
-
try {
|
|
220
|
-
await taskRelate({ ...params, accountId });
|
|
221
|
-
return {
|
|
222
|
-
content: [{
|
|
223
|
-
type: "text",
|
|
224
|
-
text: `Relationship created: Task(${params.taskId}) -[${params.relType}]-> ${params.targetLabel}(${params.targetId})`,
|
|
225
|
-
}],
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
catch (err) {
|
|
229
|
-
return {
|
|
230
|
-
content: [{ type: "text", text: `Relate failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
231
|
-
isError: true,
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
// ---------------------------------------------------------------------------
|
|
236
|
-
// task-complete
|
|
237
|
-
// ---------------------------------------------------------------------------
|
|
238
|
-
eagerTool(server, "task-complete", "Mark a task as completed. Re-embeds for memory-search and surfaces any tasks that were blocked by this one and are now ready to start.", {
|
|
239
|
-
taskId: taskIdSchema,
|
|
240
|
-
note: noteSchema,
|
|
241
|
-
}, async (params) => {
|
|
242
|
-
if (!accountId)
|
|
243
|
-
return refuseNoAccount("task-complete");
|
|
244
|
-
try {
|
|
245
|
-
const result = await taskComplete({ ...params, accountId });
|
|
246
|
-
const parts = [`Task completed: ${params.taskId}`];
|
|
247
|
-
if (result.unblockedTasks.length > 0) {
|
|
248
|
-
parts.push("", "Newly unblocked tasks:", ...result.unblockedTasks.map((t) => ` [${t.priority}] ${t.name} (${t.taskId})`));
|
|
249
|
-
}
|
|
250
|
-
return { content: [{ type: "text", text: parts.join("\n") }] };
|
|
251
|
-
}
|
|
252
|
-
catch (err) {
|
|
253
|
-
return {
|
|
254
|
-
content: [{ type: "text", text: `Complete failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
255
|
-
isError: true,
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
// ---------------------------------------------------------------------------
|
|
260
|
-
// task-ready
|
|
261
|
-
// ---------------------------------------------------------------------------
|
|
262
|
-
eagerTool(server, "task-ready", "Returns tasks that are safe to start: status=pending, zero unresolved BLOCKS, and no AFFECTS conflict with currently active tasks. Use at session start to surface the ready set, or before starting any task to verify it is safe.", {}, async () => {
|
|
263
|
-
if (!accountId)
|
|
264
|
-
return refuseNoAccount("task-ready");
|
|
265
|
-
try {
|
|
266
|
-
const tasks = await taskReady(accountId);
|
|
267
|
-
if (tasks.length === 0) {
|
|
268
|
-
return {
|
|
269
|
-
content: [{
|
|
270
|
-
type: "text",
|
|
271
|
-
text: "No tasks are ready to start. All pending tasks have unresolved blockers or AFFECTS conflicts with active tasks.",
|
|
272
|
-
}],
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
const lines = tasks.map((t) => `[${t.priority}] ${t.name} (${t.taskId})${t.dueDate ? ` — due: ${t.dueDate}` : ""}`);
|
|
276
|
-
return {
|
|
277
|
-
content: [{
|
|
278
|
-
type: "text",
|
|
279
|
-
text: `${tasks.length} task(s) ready to start:\n\n${lines.join("\n")}`,
|
|
280
|
-
}],
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
catch (err) {
|
|
284
|
-
return {
|
|
285
|
-
content: [{ type: "text", text: `Ready check failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
286
|
-
isError: true,
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
// ---------------------------------------------------------------------------
|
|
291
|
-
// session-list
|
|
292
|
-
// ---------------------------------------------------------------------------
|
|
293
|
-
eagerTool(server, "session-list", "List recent conversation sessions for this account, newest first. Each session shows its name (if set), conversationId, session key, agent type, timestamps, and any linked tasks. Use conversationId when calling session-resume.", {
|
|
294
|
-
limit: z.number().int().min(1).max(50).optional().describe("Max sessions to return (default 20)"),
|
|
295
|
-
}, async (params) => {
|
|
296
|
-
if (!accountId)
|
|
297
|
-
return refuseNoAccount("session-list");
|
|
298
|
-
try {
|
|
299
|
-
const sessions = await sessionList({ accountId, limit: params.limit });
|
|
300
|
-
if (sessions.length === 0) {
|
|
301
|
-
return { content: [{ type: "text", text: "No sessions found." }] };
|
|
302
|
-
}
|
|
303
|
-
const lines = sessions.map(s => {
|
|
304
|
-
const label = s.name ? `"${s.name}"` : "(unnamed)";
|
|
305
|
-
const tasks = s.tasks.length > 0
|
|
306
|
-
? s.tasks.map(t => ` • ${t.name} [${t.status}]`).join("\n")
|
|
307
|
-
: " (no linked tasks)";
|
|
308
|
-
return `${label} · ${s.conversationId} · ${s.agentType} · updated ${s.updatedAt}\n${tasks}`;
|
|
309
|
-
});
|
|
310
|
-
return { content: [{ type: "text", text: lines.join("\n\n") }] };
|
|
311
|
-
}
|
|
312
|
-
catch (err) {
|
|
313
|
-
return {
|
|
314
|
-
content: [{ type: "text", text: `Failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
315
|
-
isError: true,
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
// ---------------------------------------------------------------------------
|
|
320
|
-
// session-name
|
|
321
|
-
// ---------------------------------------------------------------------------
|
|
322
|
-
eagerTool(server, "session-name", "Set a human-readable name on the current conversation session. Call this as soon as the session's purpose is clear. Use a short label that reflects the work being done (e.g. 'Telegram setup', 'Q1 invoicing').", {
|
|
323
|
-
sessionKey: z.string().describe("Current session key (from system prompt)"),
|
|
324
|
-
name: z.string().describe("Short human-readable session label"),
|
|
325
|
-
}, async (params) => {
|
|
326
|
-
if (!accountId)
|
|
327
|
-
return refuseNoAccount("session-name");
|
|
328
|
-
try {
|
|
329
|
-
const { affected } = await sessionName(params);
|
|
330
|
-
// affected=0 on a webchat pre-flush first turn — Conversation not yet
|
|
331
|
-
// created (deferred persistence). Surface the deferral
|
|
332
|
-
// so the silent no-op is observable to the agent. The agent should
|
|
333
|
-
// re-call session-name on a later turn (post-flush) if the chosen
|
|
334
|
-
// title needs to land.
|
|
335
|
-
const text = affected > 0
|
|
336
|
-
? `Session named: "${params.name}"`
|
|
337
|
-
: `Session not yet bound — Conversation will be created at the first completed turn. Re-call session-name on a later turn to apply this title.`;
|
|
338
|
-
return { content: [{ type: "text", text }] };
|
|
339
|
-
}
|
|
340
|
-
catch (err) {
|
|
341
|
-
return {
|
|
342
|
-
content: [{ type: "text", text: `Failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
343
|
-
isError: true,
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
// ---------------------------------------------------------------------------
|
|
348
|
-
// project-create
|
|
349
|
-
// ---------------------------------------------------------------------------
|
|
350
|
-
const workItemSchema = z.object({
|
|
351
|
-
name: z.string().min(1).describe("Work item name"),
|
|
352
|
-
description: z.string().min(1).describe("Work item scope"),
|
|
353
|
-
priority: prioritySchema,
|
|
354
|
-
dueDate: dueDateSchema,
|
|
355
|
-
blocks: z.array(z.number().int().min(0)).optional().describe("Indices of other workItems this item blocks"),
|
|
356
|
-
});
|
|
357
|
-
eagerTool(server, "project-create", "Create a project with child work items in a single atomic transaction. Each work item becomes a Task linked via HAS_TASK. Dependency ordering via blocks (array indices). Embeds parent and children for memory-search. Use for any multi-step body of work with a defined scope and client. The Project must have at least one adjacency — pass workItems (≥1), raisedBy, or affects, or invoke inside an admin session with an existing Conversation.", {
|
|
358
|
-
name: z.string().min(1).describe("Project name (e.g. 'Kitchen Refit — Mrs. Chen')"),
|
|
359
|
-
description: z.string().min(1).describe("Project scope description — embedded for semantic search"),
|
|
360
|
-
tier: z.enum(["quick", "standard", "full"]).describe("Execution complexity: quick (1-3 tasks), standard (4-15), full (16-50)"),
|
|
361
|
-
clientRef: z.string().optional().describe("Client reference (e.g. 'Mrs. Chen')"),
|
|
362
|
-
targetDate: z.string().optional().describe("ISO 8601 target completion date"),
|
|
363
|
-
dueDate: dueDateSchema,
|
|
364
|
-
raisedBy: z.string().optional().describe("Person elementId — creates RAISED_BY relationship. Rolls back entire project if not found."),
|
|
365
|
-
affects: z.array(z.string()).optional().describe("Entity elementIds — creates AFFECTS relationships. Rolls back entire project if any not found."),
|
|
366
|
-
workItems: z.array(workItemSchema).optional().describe("Child tasks to create (max 50). Use blocks to express dependencies by array index."),
|
|
367
|
-
}, async (params) => {
|
|
368
|
-
if (!accountId)
|
|
369
|
-
return refuseNoAccount("project-create");
|
|
370
|
-
try {
|
|
371
|
-
const result = await projectCreate({
|
|
372
|
-
...params,
|
|
373
|
-
accountId,
|
|
374
|
-
sessionKey: sessionId,
|
|
375
|
-
createdBy: { agent: agentSlug, session: sessionId, tool: "project-create" },
|
|
376
|
-
});
|
|
377
|
-
return {
|
|
378
|
-
content: [{
|
|
379
|
-
type: "text",
|
|
380
|
-
text: `Project created: "${params.name}" (ID: ${result.projectId}, tier: ${params.tier}, ${result.childTaskIds.length} work items)`,
|
|
381
|
-
}],
|
|
382
|
-
};
|
|
383
|
-
}
|
|
384
|
-
catch (err) {
|
|
385
|
-
return {
|
|
386
|
-
content: [{ type: "text", text: `Failed to create project: ${err instanceof Error ? err.message : String(err)}` }],
|
|
387
|
-
isError: true,
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
// ---------------------------------------------------------------------------
|
|
392
|
-
// project-list
|
|
393
|
-
// ---------------------------------------------------------------------------
|
|
394
|
-
eagerTool(server, "project-list", "List active projects with server-computed health signals. Returns structured data: completion percentage, overdue count, blocker count, and health signal (green/amber/red/grey). Use to answer 'what are my projects?' or 'how are things going?'", {
|
|
395
|
-
status: z.string().optional().describe("Filter by status (default: pending + active)"),
|
|
396
|
-
limit: z.number().optional().describe("Max projects to return (default 20)"),
|
|
397
|
-
}, async (params) => {
|
|
398
|
-
if (!accountId)
|
|
399
|
-
return refuseNoAccount("project-list");
|
|
400
|
-
try {
|
|
401
|
-
const projects = await projectList({ ...params, accountId });
|
|
402
|
-
if (projects.length === 0) {
|
|
403
|
-
return { content: [{ type: "text", text: "No projects match the filters." }] };
|
|
404
|
-
}
|
|
405
|
-
const lines = projects.map((p) => {
|
|
406
|
-
const health = p.health;
|
|
407
|
-
const progress = `${health.completedTasks}/${health.totalTasks} done`;
|
|
408
|
-
const issues = [
|
|
409
|
-
health.overdueTasks > 0 ? `${health.overdueTasks} overdue` : null,
|
|
410
|
-
health.blockedTasks > 0 ? `${health.blockedTasks} blocked` : null,
|
|
411
|
-
].filter(Boolean).join(", ");
|
|
412
|
-
const issueStr = issues ? ` — ${issues}` : "";
|
|
413
|
-
const client = p.clientRef ? ` (${p.clientRef})` : "";
|
|
414
|
-
return `[${health.signal.toUpperCase()}] ${p.name}${client} — ${p.tier} tier, ${p.phase}, ${progress}${issueStr}`;
|
|
415
|
-
});
|
|
416
|
-
return {
|
|
417
|
-
content: [{ type: "text", text: `${projects.length} project(s):\n\n${lines.join("\n")}` }],
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
catch (err) {
|
|
421
|
-
return {
|
|
422
|
-
content: [{ type: "text", text: `List failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
423
|
-
isError: true,
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
// ---------------------------------------------------------------------------
|
|
428
|
-
// project-get
|
|
429
|
-
// ---------------------------------------------------------------------------
|
|
430
|
-
eagerTool(server, "project-get", "Fetch full project detail: description, children with status and blockers, health signal, lifecycle notes, and relationships. Use when the user asks about a specific project's status or details.", {
|
|
431
|
-
projectId: z.string().describe("Project taskId (UUID)"),
|
|
432
|
-
}, async ({ projectId }) => {
|
|
433
|
-
if (!accountId)
|
|
434
|
-
return refuseNoAccount("project-get");
|
|
435
|
-
try {
|
|
436
|
-
const project = await projectGet(projectId, accountId);
|
|
437
|
-
const childLines = project.children.length > 0
|
|
438
|
-
? project.children.map((c) => {
|
|
439
|
-
const blocked = c.blockedBy.length > 0 ? ` [blocked by: ${c.blockedBy.join(", ")}]` : "";
|
|
440
|
-
const due = c.dueDate ? ` due:${c.dueDate.slice(0, 10)}` : "";
|
|
441
|
-
return ` [${c.priority.toUpperCase()}] ${c.status} — ${c.name}${due}${blocked} (${c.taskId})`;
|
|
442
|
-
}).join("\n")
|
|
443
|
-
: " (no work items)";
|
|
444
|
-
const relLines = project.relationships.length > 0
|
|
445
|
-
? project.relationships
|
|
446
|
-
.map((r) => ` -[${r.type}]-> ${r.targetLabel}: ${r.targetName ?? r.targetId}`)
|
|
447
|
-
.join("\n")
|
|
448
|
-
: " (none)";
|
|
449
|
-
const health = project.health;
|
|
450
|
-
const healthLine = `Health: ${health.signal.toUpperCase()} — ${health.completedTasks}/${health.totalTasks} done, ${health.overdueTasks} overdue, ${health.blockedTasks} blocked`;
|
|
451
|
-
const parts = [
|
|
452
|
-
`Project: ${project.name}`,
|
|
453
|
-
`ID: ${project.projectId}`,
|
|
454
|
-
`Tier: ${project.tier} | Phase: ${project.phase} | Status: ${project.status}`,
|
|
455
|
-
project.clientRef ? `Client: ${project.clientRef}` : null,
|
|
456
|
-
project.targetDate ? `Target: ${project.targetDate}` : null,
|
|
457
|
-
project.dueDate ? `Due: ${project.dueDate}` : null,
|
|
458
|
-
healthLine,
|
|
459
|
-
``,
|
|
460
|
-
`Description:\n${project.description}`,
|
|
461
|
-
project.notes ? `\nNotes:\n${project.notes}` : null,
|
|
462
|
-
``,
|
|
463
|
-
`Work Items:\n${childLines}`,
|
|
464
|
-
``,
|
|
465
|
-
`Relationships:\n${relLines}`,
|
|
466
|
-
``,
|
|
467
|
-
`Created: ${project.createdAt} | Updated: ${project.updatedAt}`,
|
|
468
|
-
].filter((line) => line !== null);
|
|
469
|
-
return { content: [{ type: "text", text: parts.join("\n") }] };
|
|
470
|
-
}
|
|
471
|
-
catch (err) {
|
|
472
|
-
return {
|
|
473
|
-
content: [{ type: "text", text: `Get failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
474
|
-
isError: true,
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
// ---------------------------------------------------------------------------
|
|
479
|
-
// project-update
|
|
480
|
-
// ---------------------------------------------------------------------------
|
|
481
|
-
eagerTool(server, "project-update", "Update project properties. Phase changes automatically append a [PROJECT:PHASE] lifecycle note. Re-embeds for memory-search. Use for phase transitions, scope notes, tier adjustments, and status changes.", {
|
|
482
|
-
projectId: z.string().describe("Project taskId (UUID)"),
|
|
483
|
-
phase: z.string().optional().describe("New lifecycle phase: planning, active, blocked, verifying, complete, abandoned"),
|
|
484
|
-
tier: z.enum(["quick", "standard", "full"]).optional().describe("Updated execution tier"),
|
|
485
|
-
targetDate: z.string().optional().describe("Updated target completion date (ISO 8601)"),
|
|
486
|
-
clientRef: z.string().optional().describe("Updated client reference"),
|
|
487
|
-
note: noteSchema,
|
|
488
|
-
status: z.enum(["pending", "active", "completed", "failed", "cancelled", "abandoned"]).optional().describe("Updated status"),
|
|
489
|
-
}, async (params) => {
|
|
490
|
-
if (!accountId)
|
|
491
|
-
return refuseNoAccount("project-update");
|
|
492
|
-
try {
|
|
493
|
-
const result = await projectUpdate({ ...params, accountId });
|
|
494
|
-
const parts = [`Project updated: ${params.projectId}`];
|
|
495
|
-
if (result.phaseChanged) {
|
|
496
|
-
parts.push(`Phase: ${result.phaseChanged.from} → ${result.phaseChanged.to}`);
|
|
497
|
-
}
|
|
498
|
-
if (result.fieldsUpdated.length > 0) {
|
|
499
|
-
parts.push(`Fields: ${result.fieldsUpdated.join(", ")}`);
|
|
500
|
-
}
|
|
501
|
-
return { content: [{ type: "text", text: parts.join("\n") }] };
|
|
502
|
-
}
|
|
503
|
-
catch (err) {
|
|
504
|
-
return {
|
|
505
|
-
content: [{ type: "text", text: `Update failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
506
|
-
isError: true,
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
// ---------------------------------------------------------------------------
|
|
511
|
-
// project-complete
|
|
512
|
-
// ---------------------------------------------------------------------------
|
|
513
|
-
eagerTool(server, "project-complete", "Complete a project. Returns any incomplete children so the agent can confirm with the user. Always completes — does not gate on unfinished work items. Appends [PROJECT:COMPLETE] lifecycle note.", {
|
|
514
|
-
projectId: z.string().describe("Project taskId (UUID)"),
|
|
515
|
-
note: noteSchema,
|
|
516
|
-
}, async (params) => {
|
|
517
|
-
if (!accountId)
|
|
518
|
-
return refuseNoAccount("project-complete");
|
|
519
|
-
try {
|
|
520
|
-
const result = await projectComplete({ ...params, accountId });
|
|
521
|
-
const parts = [`Project completed: ${params.projectId} (${result.completedTasks}/${result.totalTasks} tasks done)`];
|
|
522
|
-
if (result.incompleteChildren.length > 0) {
|
|
523
|
-
parts.push("", "Incomplete work items:", ...result.incompleteChildren.map((c) => ` [${c.status}] ${c.name} (${c.taskId})`));
|
|
524
|
-
}
|
|
525
|
-
return { content: [{ type: "text", text: parts.join("\n") }] };
|
|
526
|
-
}
|
|
527
|
-
catch (err) {
|
|
528
|
-
return {
|
|
529
|
-
content: [{ type: "text", text: `Complete failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
530
|
-
isError: true,
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
});
|
|
534
|
-
// ---------------------------------------------------------------------------
|
|
535
|
-
// Shutdown + start
|
|
536
|
-
// ---------------------------------------------------------------------------
|
|
537
|
-
process.on("SIGINT", async () => {
|
|
538
|
-
await closeDriver();
|
|
539
|
-
process.exit(0);
|
|
540
|
-
});
|
|
541
|
-
const transport = new StdioServerTransport();
|
|
542
|
-
await server.connect(transport);
|
|
543
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,aAAa,CAAC,OAAO,CAAC,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,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M,WAAW,EAAE,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAO,MAAoB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Non-fatal embedding: returns empty array if Ollama is unavailable.
|
|
3
|
-
* Task operations succeed without embeddings — memory-search just won't
|
|
4
|
-
* find the task by similarity until the next update re-embeds.
|
|
5
|
-
*/
|
|
6
|
-
export declare function computeEmbedding(text: string): Promise<number[]>;
|
|
7
|
-
//# sourceMappingURL=embeddings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embeddings.d.ts","sourceRoot":"","sources":["../../src/lib/embeddings.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAatE"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const OLLAMA_URL = process.env.OLLAMA_URL ?? "http://localhost:11434";
|
|
2
|
-
const EMBED_MODEL = process.env.EMBED_MODEL ?? "nomic-embed-text";
|
|
3
|
-
/**
|
|
4
|
-
* Non-fatal embedding: returns empty array if Ollama is unavailable.
|
|
5
|
-
* Task operations succeed without embeddings — memory-search just won't
|
|
6
|
-
* find the task by similarity until the next update re-embeds.
|
|
7
|
-
*/
|
|
8
|
-
export async function computeEmbedding(text) {
|
|
9
|
-
try {
|
|
10
|
-
const res = await fetch(`${OLLAMA_URL}/api/embed`, {
|
|
11
|
-
method: "POST",
|
|
12
|
-
headers: { "Content-Type": "application/json" },
|
|
13
|
-
body: JSON.stringify({ model: EMBED_MODEL, input: text }),
|
|
14
|
-
});
|
|
15
|
-
if (!res.ok)
|
|
16
|
-
return [];
|
|
17
|
-
const data = (await res.json());
|
|
18
|
-
return data.embeddings[0] ?? [];
|
|
19
|
-
}
|
|
20
|
-
catch {
|
|
21
|
-
return [];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=embeddings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embeddings.js","sourceRoot":"","sources":["../../src/lib/embeddings.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,wBAAwB,CAAC;AACtE,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,kBAAkB,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,IAAY;IACjD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,UAAU,YAAY,EAAE;YACjD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;YAC/C,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;SAC1D,CAAC,CAAC;QACH,IAAI,CAAC,GAAG,CAAC,EAAE;YAAE,OAAO,EAAE,CAAC;QACvB,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAA+B,CAAC;QAC9D,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -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"}
|