@rubytech/create-realagent 1.0.406
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/dist/index.js +915 -0
- package/dist/uninstall.js +569 -0
- package/package.json +31 -0
- package/payload/maxy/package.json +9 -0
- package/payload/maxy/public/assets/ChatInput-7sHhJaNJ.js +42 -0
- package/payload/maxy/public/assets/ChatInput-oLFewltq.css +1 -0
- package/payload/maxy/public/assets/admin-k0izNYS1.js +352 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-300-normal-CzPHYadL.woff +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-300-normal-DFUoTmrg.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-400-normal-C8QS47vb.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-400-normal-D3EsxgFc.woff +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-500-normal-B7dJQtg-.woff +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-500-normal-BLlg2W5x.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-ext-300-normal-BXl3lXsi.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-ext-300-normal-DmxSOTe3.woff +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-ext-400-normal-Bgrpe4p1.woff +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-ext-400-normal-BlcaxZtM.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-ext-500-normal-CdQuyvtc.woff +0 -0
- package/payload/maxy/public/assets/cormorant-cyrillic-ext-500-normal-pZw22qtS.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-latin-300-normal-CJ5dfen0.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-latin-300-normal-DQZObO_3.woff +0 -0
- package/payload/maxy/public/assets/cormorant-latin-400-normal-BGH8Vunh.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-latin-400-normal-C3_-2Ua-.woff +0 -0
- package/payload/maxy/public/assets/cormorant-latin-500-normal-Dj3SQ6fR.woff +0 -0
- package/payload/maxy/public/assets/cormorant-latin-500-normal-EBdSCOD3.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-latin-ext-300-normal-CkiUx0UG.woff +0 -0
- package/payload/maxy/public/assets/cormorant-latin-ext-300-normal-De3D72RL.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-latin-ext-400-normal-DuQ88yz3.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-latin-ext-400-normal-DuXFa1Dr.woff +0 -0
- package/payload/maxy/public/assets/cormorant-latin-ext-500-normal-AH9qog1s.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-latin-ext-500-normal-DAuUCO41.woff +0 -0
- package/payload/maxy/public/assets/cormorant-vietnamese-300-normal-BVqIp_mg.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-vietnamese-300-normal-CEMS9Pw-.woff +0 -0
- package/payload/maxy/public/assets/cormorant-vietnamese-400-normal-C-RiYxEf.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-vietnamese-400-normal-DmUuA7Y2.woff +0 -0
- package/payload/maxy/public/assets/cormorant-vietnamese-500-normal-DsPuwQHi.woff2 +0 -0
- package/payload/maxy/public/assets/cormorant-vietnamese-500-normal-tGBW_mI7.woff +0 -0
- package/payload/maxy/public/assets/dm-sans-latin-400-normal-BwCSEQnW.woff +0 -0
- package/payload/maxy/public/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2 +0 -0
- package/payload/maxy/public/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2 +0 -0
- package/payload/maxy/public/assets/dm-sans-latin-500-normal-Dr3UlScf.woff +0 -0
- package/payload/maxy/public/assets/dm-sans-latin-ext-400-normal-BjWJ59Pq.woff +0 -0
- package/payload/maxy/public/assets/dm-sans-latin-ext-400-normal-BtiwyxMk.woff2 +0 -0
- package/payload/maxy/public/assets/dm-sans-latin-ext-500-normal-BJfUCQsA.woff2 +0 -0
- package/payload/maxy/public/assets/dm-sans-latin-ext-500-normal-DR84L5F-.woff +0 -0
- package/payload/maxy/public/assets/public-3Y1Xk7cO.js +5 -0
- package/payload/maxy/public/brand/claude.png +0 -0
- package/payload/maxy/public/brand/maxy-black.png +0 -0
- package/payload/maxy/public/brand/maxy-monochrome.png +0 -0
- package/payload/maxy/public/brand/maxy.png +0 -0
- package/payload/maxy/public/brand-constants.json +8 -0
- package/payload/maxy/public/brand-defaults.css +12 -0
- package/payload/maxy/public/favicon.ico +0 -0
- package/payload/maxy/public/index.html +16 -0
- package/payload/maxy/public/public.html +16 -0
- package/payload/maxy/public/robots.txt +5 -0
- package/payload/maxy/public/vnc-popout.html +59 -0
- package/payload/maxy/server-init.cjs +115 -0
- package/payload/maxy/server.js +9876 -0
- package/payload/platform/config/brand.json +42 -0
- package/payload/platform/config/cloudflared.yml +17 -0
- package/payload/platform/knowledge/maxy.md +772 -0
- package/payload/platform/neo4j/migrations/001-backfill-scope.cypher +30 -0
- package/payload/platform/neo4j/schema.cypher +557 -0
- package/payload/platform/package-lock.json +2534 -0
- package/payload/platform/package.json +20 -0
- package/payload/platform/plugins/admin/PLUGIN.md +47 -0
- package/payload/platform/plugins/admin/hooks/agent-creation-approval.sh +153 -0
- package/payload/platform/plugins/admin/hooks/agent-creation-gate.sh +309 -0
- package/payload/platform/plugins/admin/hooks/agent-creation-post.sh +157 -0
- package/payload/platform/plugins/admin/hooks/pre-tool-use.sh +49 -0
- package/payload/platform/plugins/admin/hooks/session-start.sh +88 -0
- package/payload/platform/plugins/admin/hooks/test-agent-creation-gate.sh +878 -0
- package/payload/platform/plugins/admin/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/admin/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/index.js +616 -0
- package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/neo4j.js +34 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.d.ts +23 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.d.ts.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.js +160 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.js.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.test.d.ts +2 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.test.d.ts.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.test.js +224 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.test.js.map +1 -0
- package/payload/platform/plugins/admin/mcp/package.json +21 -0
- package/payload/platform/plugins/admin/references/chat-ui-guide.md +31 -0
- package/payload/platform/plugins/admin/references/contextual-ui.md +107 -0
- package/payload/platform/plugins/admin/skills/access-manager/SKILL.md +28 -0
- package/payload/platform/plugins/admin/skills/access-manager/references/operations.md +197 -0
- package/payload/platform/plugins/admin/skills/business-profile/SKILL.md +42 -0
- package/payload/platform/plugins/admin/skills/datetime/SKILL.md +91 -0
- package/payload/platform/plugins/admin/skills/onboarding/skill.md +136 -0
- package/payload/platform/plugins/admin/skills/plugin-management/skill.md +76 -0
- package/payload/platform/plugins/admin/skills/public-agent-manager/skill.md +212 -0
- package/payload/platform/plugins/admin/skills/qr-code/SKILL.md +35 -0
- package/payload/platform/plugins/admin/skills/qr-code/references/data-formats.md +113 -0
- package/payload/platform/plugins/admin/skills/skill-builder/SKILL.md +112 -0
- package/payload/platform/plugins/admin/skills/skill-builder/references/lean-pattern.md +110 -0
- package/payload/platform/plugins/admin/skills/specialist-management/skill.md +44 -0
- package/payload/platform/plugins/admin/skills/stream-log-review/SKILL.md +40 -0
- package/payload/platform/plugins/admin/skills/stream-log-review/references/analysis-patterns.md +161 -0
- package/payload/platform/plugins/admin/skills/update-knowledge/skill.md +47 -0
- package/payload/platform/plugins/anthropic/PLUGIN.md +38 -0
- package/payload/platform/plugins/anthropic/references/setup-guide.md +114 -0
- package/payload/platform/plugins/anthropic/skills/get-api-key.md +57 -0
- package/payload/platform/plugins/business-assistant/PLUGIN.md +59 -0
- package/payload/platform/plugins/business-assistant/references/crm.md +112 -0
- package/payload/platform/plugins/business-assistant/references/document-management.md +96 -0
- package/payload/platform/plugins/business-assistant/references/escalation.md +126 -0
- package/payload/platform/plugins/business-assistant/references/invoicing.md +163 -0
- package/payload/platform/plugins/business-assistant/references/profiling.md +50 -0
- package/payload/platform/plugins/business-assistant/references/quoting.md +56 -0
- package/payload/platform/plugins/business-assistant/references/scheduling.md +127 -0
- package/payload/platform/plugins/business-assistant/references/task-management.md +155 -0
- package/payload/platform/plugins/cloudflare/PLUGIN.md +48 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/index.js +698 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/lib/cloudflared.d.ts +101 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/lib/cloudflared.d.ts.map +1 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/lib/cloudflared.js +525 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/lib/cloudflared.js.map +1 -0
- package/payload/platform/plugins/cloudflare/mcp/package.json +19 -0
- package/payload/platform/plugins/cloudflare/references/setup-guide.md +126 -0
- package/payload/platform/plugins/cloudflare/skills/setup-tunnel.md +217 -0
- package/payload/platform/plugins/contacts/PLUGIN.md +20 -0
- package/payload/platform/plugins/contacts/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/contacts/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/index.js +210 -0
- package/payload/platform/plugins/contacts/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/platform/plugins/contacts/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/lib/neo4j.js +34 -0
- package/payload/platform/plugins/contacts/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-create.d.ts +19 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-create.d.ts.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-create.js +68 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-create.js.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-delete.d.ts +12 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-delete.d.ts.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-delete.js +35 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-delete.js.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-list.d.ts +22 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-list.d.ts.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-list.js +47 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-list.js.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.d.ts +20 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.d.ts.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.js +57 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.js.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-update.d.ts +13 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-update.d.ts.map +1 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-update.js +54 -0
- package/payload/platform/plugins/contacts/mcp/dist/tools/contact-update.js.map +1 -0
- package/payload/platform/plugins/contacts/mcp/package.json +19 -0
- package/payload/platform/plugins/deep-research/PLUGIN.md +14 -0
- package/payload/platform/plugins/deep-research/skills/deep-research/SKILL.md +46 -0
- package/payload/platform/plugins/deep-research/skills/deep-research/references/citation-styles.md +52 -0
- package/payload/platform/plugins/deep-research/skills/deep-research/references/research-modes.md +22 -0
- package/payload/platform/plugins/deep-research/skills/deep-research/references/search-strategy.md +24 -0
- package/payload/platform/plugins/docs/PLUGIN.md +44 -0
- package/payload/platform/plugins/docs/references/access-control.md +51 -0
- package/payload/platform/plugins/docs/references/contacts-guide.md +59 -0
- package/payload/platform/plugins/docs/references/deployment.md +71 -0
- package/payload/platform/plugins/docs/references/getting-started.md +45 -0
- package/payload/platform/plugins/docs/references/memory-guide.md +87 -0
- package/payload/platform/plugins/docs/references/platform.md +64 -0
- package/payload/platform/plugins/docs/references/plugins-guide.md +83 -0
- package/payload/platform/plugins/docs/references/settings.md +89 -0
- package/payload/platform/plugins/docs/references/telegram-guide.md +58 -0
- package/payload/platform/plugins/docs/references/troubleshooting.md +88 -0
- package/payload/platform/plugins/documents/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/documents/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/documents/mcp/dist/index.js +98 -0
- package/payload/platform/plugins/documents/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/email/PLUGIN.md +222 -0
- package/payload/platform/plugins/email/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/email/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/index.js +288 -0
- package/payload/platform/plugins/email/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/credentials.d.ts +111 -0
- package/payload/platform/plugins/email/mcp/dist/lib/credentials.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/credentials.js +357 -0
- package/payload/platform/plugins/email/mcp/dist/lib/credentials.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/embedding.d.ts +2 -0
- package/payload/platform/plugins/email/mcp/dist/lib/embedding.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/embedding.js +24 -0
- package/payload/platform/plugins/email/mcp/dist/lib/embedding.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/graph.d.ts +87 -0
- package/payload/platform/plugins/email/mcp/dist/lib/graph.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/graph.js +324 -0
- package/payload/platform/plugins/email/mcp/dist/lib/graph.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/imap.d.ts +215 -0
- package/payload/platform/plugins/email/mcp/dist/lib/imap.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/imap.js +735 -0
- package/payload/platform/plugins/email/mcp/dist/lib/imap.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/platform/plugins/email/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/neo4j.js +34 -0
- package/payload/platform/plugins/email/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/providers.d.ts +25 -0
- package/payload/platform/plugins/email/mcp/dist/lib/providers.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/providers.js +116 -0
- package/payload/platform/plugins/email/mcp/dist/lib/providers.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/screening.d.ts +29 -0
- package/payload/platform/plugins/email/mcp/dist/lib/screening.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/screening.js +101 -0
- package/payload/platform/plugins/email/mcp/dist/lib/screening.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/smtp.d.ts +21 -0
- package/payload/platform/plugins/email/mcp/dist/lib/smtp.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/lib/smtp.js +77 -0
- package/payload/platform/plugins/email/mcp/dist/lib/smtp.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/scripts/email-auto-respond.d.ts +38 -0
- package/payload/platform/plugins/email/mcp/dist/scripts/email-auto-respond.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/scripts/email-auto-respond.js +844 -0
- package/payload/platform/plugins/email/mcp/dist/scripts/email-auto-respond.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/scripts/email-fetch.d.ts +25 -0
- package/payload/platform/plugins/email/mcp/dist/scripts/email-fetch.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/scripts/email-fetch.js +214 -0
- package/payload/platform/plugins/email/mcp/dist/scripts/email-fetch.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-auto-respond-config.d.ts +19 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-auto-respond-config.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-auto-respond-config.js +151 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-auto-respond-config.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-graph-query.d.ts +22 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-graph-query.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-graph-query.js +188 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-graph-query.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-otp-extract.d.ts +15 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-otp-extract.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-otp-extract.js +142 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-otp-extract.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-read.d.ts +14 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-read.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-read.js +75 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-read.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-reply.d.ts +10 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-reply.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-reply.js +83 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-reply.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-search.d.ts +15 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-search.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-search.js +63 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-search.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-send.d.ts +10 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-send.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-send.js +25 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-send.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-setup.d.ts +22 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-setup.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-setup.js +183 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-setup.js.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-status.d.ts +6 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-status.d.ts.map +1 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-status.js +43 -0
- package/payload/platform/plugins/email/mcp/dist/tools/email-status.js.map +1 -0
- package/payload/platform/plugins/email/mcp/package.json +23 -0
- package/payload/platform/plugins/memory/PLUGIN.md +52 -0
- package/payload/platform/plugins/memory/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/memory/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/index.js +899 -0
- package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/attachments.d.ts +37 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/attachments.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/attachments.js +68 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/attachments.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/document-hierarchy.d.ts +31 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/document-hierarchy.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/document-hierarchy.js +62 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/document-hierarchy.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/embeddings.d.ts +3 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/embeddings.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/embeddings.js +29 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/embeddings.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/neo4j.js +34 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/semantic-chunker.d.ts +61 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/semantic-chunker.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/semantic-chunker.js +266 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/semantic-chunker.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/semantic-chunker.test.d.ts +2 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/semantic-chunker.test.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/semantic-chunker.test.js +233 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/semantic-chunker.test.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-delete.d.ts +19 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-delete.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-delete.js +98 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-delete.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-edit-attachment.d.ts +17 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-edit-attachment.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-edit-attachment.js +92 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-edit-attachment.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest-extract.d.ts +40 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest-extract.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest-extract.js +116 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest-extract.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest-web.d.ts +20 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest-web.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest-web.js +108 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest-web.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest.d.ts +35 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest.js +233 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-list-attachments.d.ts +17 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-list-attachments.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-list-attachments.js +86 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-list-attachments.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-read-attachment.d.ts +12 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-read-attachment.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-read-attachment.js +100 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-read-attachment.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-reindex.d.ts +8 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-reindex.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-reindex.js +71 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-reindex.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-rename-attachment.d.ts +13 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-rename-attachment.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-rename-attachment.js +63 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-rename-attachment.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-search.d.ts +34 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-search.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-search.js +380 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-search.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-update.d.ts +13 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-update.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-update.js +62 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-update.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.d.ts +21 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js +60 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-delete.d.ts +13 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-delete.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-delete.js +18 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-delete.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-read.d.ts +41 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-read.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-read.js +192 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-read.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.d.ts +21 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.js +235 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/package.json +19 -0
- package/payload/platform/plugins/memory/references/schema-base.md +102 -0
- package/payload/platform/plugins/memory/references/schema-creator.md +35 -0
- package/payload/platform/plugins/memory/references/schema-estate-agent.md +35 -0
- package/payload/platform/plugins/memory/references/schema-food-beverage.md +32 -0
- package/payload/platform/plugins/memory/references/schema-hospitality.md +31 -0
- package/payload/platform/plugins/memory/references/schema-logistics.md +30 -0
- package/payload/platform/plugins/memory/references/schema-professional-services.md +33 -0
- package/payload/platform/plugins/memory/references/schema-retail.md +33 -0
- package/payload/platform/plugins/memory/references/schema-trades.md +36 -0
- package/payload/platform/plugins/memory/skills/conversational-memory.md +99 -0
- package/payload/platform/plugins/projects/PLUGIN.md +87 -0
- package/payload/platform/plugins/projects/references/investigation.md +63 -0
- package/payload/platform/plugins/projects/references/retrospective.md +71 -0
- package/payload/platform/plugins/projects/references/review.md +51 -0
- package/payload/platform/plugins/projects/references/sprint.md +168 -0
- package/payload/platform/plugins/sales/PLUGIN.md +106 -0
- package/payload/platform/plugins/sales/references/close-tracking.md +69 -0
- package/payload/platform/plugins/sales/references/comparisons.md +99 -0
- package/payload/platform/plugins/sales/references/competitive-positioning.md +51 -0
- package/payload/platform/plugins/sales/references/faq.md +62 -0
- package/payload/platform/plugins/sales/references/objection-handling.md +157 -0
- package/payload/platform/plugins/sales/references/pricing.md +71 -0
- package/payload/platform/plugins/scheduling/PLUGIN.md +79 -0
- package/payload/platform/plugins/scheduling/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/scheduling/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/index.js +201 -0
- package/payload/platform/plugins/scheduling/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/embedding.d.ts +2 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/embedding.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/embedding.js +19 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/embedding.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.js +34 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.d.ts +20 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js +475 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.d.ts +7 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.js +23 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-event.d.ts +23 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-event.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-event.js +107 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-event.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.d.ts +25 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.js +53 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.d.ts +20 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js +58 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.d.ts +18 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.js +167 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/package.json +21 -0
- package/payload/platform/plugins/tasks/.claude-plugin/plugin.json +18 -0
- package/payload/platform/plugins/tasks/.mcp.json +13 -0
- package/payload/platform/plugins/tasks/PLUGIN.md +56 -0
- package/payload/platform/plugins/tasks/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/tasks/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/index.js +287 -0
- package/payload/platform/plugins/tasks/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/lib/embeddings.d.ts +7 -0
- package/payload/platform/plugins/tasks/mcp/dist/lib/embeddings.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/lib/embeddings.js +24 -0
- package/payload/platform/plugins/tasks/mcp/dist/lib/embeddings.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.js +34 -0
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-list.d.ts +20 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-list.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-list.js +37 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-list.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.d.ts +6 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.js +13 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-complete.d.ts +16 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-complete.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-complete.js +33 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-complete.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.d.ts +18 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.js +55 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-get.d.ts +19 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-get.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-get.js +51 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-get.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-list.d.ts +18 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-list.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-list.js +66 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-list.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-ready.d.ts +21 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-ready.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-ready.js +54 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-ready.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-relate.d.ts +12 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-relate.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-relate.js +31 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-relate.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.d.ts +11 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.d.ts.map +1 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.js +62 -0
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.js.map +1 -0
- package/payload/platform/plugins/tasks/mcp/package.json +20 -0
- package/payload/platform/plugins/waitlist/PLUGIN.md +63 -0
- package/payload/platform/plugins/waitlist/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/waitlist/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/index.js +276 -0
- package/payload/platform/plugins/waitlist/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/anthropic.d.ts +23 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/anthropic.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/anthropic.js +115 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/anthropic.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/embedding.d.ts +3 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/embedding.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/embedding.js +48 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/embedding.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/neo4j.js +34 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-extract.d.ts +12 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-extract.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-extract.js +197 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-extract.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-list.d.ts +22 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-list.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-list.js +57 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-list.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-persist.d.ts +60 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-persist.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-persist.js +342 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-persist.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-review.d.ts +18 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-review.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-review.js +80 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-review.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-scan.d.ts +27 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-scan.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-scan.js +40 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-scan.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.d.ts +31 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.js +336 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/package.json +21 -0
- package/payload/platform/plugins/workflows/.claude-plugin/plugin.json +17 -0
- package/payload/platform/plugins/workflows/.mcp.json +12 -0
- package/payload/platform/plugins/workflows/PLUGIN.md +187 -0
- package/payload/platform/plugins/workflows/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/workflows/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/index.js +408 -0
- package/payload/platform/plugins/workflows/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/embeddings.d.ts +2 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/embeddings.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/embeddings.js +19 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/embeddings.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/llm-call.d.ts +48 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/llm-call.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/llm-call.js +281 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/llm-call.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/neo4j.js +34 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.d.ts +71 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.js +183 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/validate-capabilities.d.ts +24 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/validate-capabilities.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/validate-capabilities.js +60 -0
- package/payload/platform/plugins/workflows/mcp/dist/lib/validate-capabilities.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-create.d.ts +35 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-create.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-create.js +124 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-create.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-delete.d.ts +6 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-delete.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-delete.js +25 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-delete.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.d.ts +50 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.js +383 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-get.d.ts +27 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-get.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-get.js +49 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-get.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-list.d.ts +16 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-list.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-list.js +43 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-list.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-runs.d.ts +27 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-runs.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-runs.js +64 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-runs.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-update.d.ts +11 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-update.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-update.js +162 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-update.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-validate.d.ts +13 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-validate.d.ts.map +1 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-validate.js +53 -0
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-validate.js.map +1 -0
- package/payload/platform/plugins/workflows/mcp/package.json +20 -0
- package/payload/platform/plugins/workflows/mcp/test-runner.mjs +710 -0
- package/payload/platform/plugins/workflows/mcp/test-workflows.sh +73 -0
- package/payload/platform/plugins/workflows/skills/workflow-manager/skill.md +88 -0
- package/payload/platform/scripts/hooks/pre-commit +111 -0
- package/payload/platform/scripts/resume-tunnel.sh +86 -0
- package/payload/platform/scripts/seed-neo4j.sh +273 -0
- package/payload/platform/scripts/setup.sh +177 -0
- package/payload/platform/scripts/vnc.sh +127 -0
- package/payload/platform/templates/account.json +13 -0
- package/payload/platform/templates/agents/admin/AGENTS.md +10 -0
- package/payload/platform/templates/agents/admin/IDENTITY.md +124 -0
- package/payload/platform/templates/agents/admin/LEARNINGS.md +21 -0
- package/payload/platform/templates/agents/admin/SOUL.md +1 -0
- package/payload/platform/templates/agents/public/IDENTITY.md +18 -0
- package/payload/platform/templates/agents/public/SOUL.md +7 -0
- package/payload/platform/templates/agents/public/config.json +9 -0
- package/payload/platform/templates/specialists/.claude-plugin/plugin.json +4 -0
- package/payload/platform/templates/specialists/agents/admin-specialist.md +13 -0
- package/payload/platform/templates/specialists/agents/browser-specialist.md +35 -0
- package/payload/platform/templates/specialists/agents/document-specialist.md +70 -0
- package/payload/platform/templates/specialists/agents/memory-specialist.md +13 -0
- package/payload/platform/templates/specialists/agents/researcher.md +52 -0
- package/payload/platform/templates/specialists/agents/scheduler.md +11 -0
- package/payload/platform/tsconfig.base.json +18 -0
- package/payload/premium-plugins/real-agency/PLUGIN.md +101 -0
- package/payload/premium-plugins/real-agency/references/agent-performance-atomic-habits.md +52 -0
- package/payload/premium-plugins/real-agency/references/agent-performance-daily-routine-scorecard.md +104 -0
- package/payload/premium-plugins/real-agency/references/agent-performance-hp6-model.md +63 -0
- package/payload/premium-plugins/real-agency/references/agent-performance-twelve-week-year.md +71 -0
- package/payload/premium-plugins/real-agency/references/bespoke-coaching-coaching-boundaries.md +56 -0
- package/payload/premium-plugins/real-agency/references/bespoke-coaching-feedback-framework.md +61 -0
- package/payload/premium-plugins/real-agency/references/bespoke-coaching-performance-framework.md +109 -0
- package/payload/premium-plugins/real-agency/references/bootstrap-onboarding-flow.md +63 -0
- package/payload/premium-plugins/real-agency/references/business-growth-buy-back-your-time.md +37 -0
- package/payload/premium-plugins/real-agency/references/business-growth-firewave-gost-scorecards.md +14 -0
- package/payload/premium-plugins/real-agency/references/business-growth-keller-org-model.md +17 -0
- package/payload/premium-plugins/real-agency/references/business-growth-lencioni-team-models.md +22 -0
- package/payload/premium-plugins/real-agency/references/business-growth-listing-management-system.md +11 -0
- package/payload/premium-plugins/real-agency/references/business-growth-net-figure-form.md +11 -0
- package/payload/premium-plugins/real-agency/references/business-growth-serhant-bizinbox-notes.md +13 -0
- package/payload/premium-plugins/real-agency/references/business-growth-team-roles-commission.md +14 -0
- package/payload/premium-plugins/real-agency/references/business-growth-va-2026-ops.md +43 -0
- package/payload/premium-plugins/real-agency/references/business-growth-wingman-structure.md +13 -0
- package/payload/premium-plugins/real-agency/references/business-operations-crm-systems.md +57 -0
- package/payload/premium-plugins/real-agency/references/business-operations-hiring-guide.md +59 -0
- package/payload/premium-plugins/real-agency/references/business-operations-impact-framework.md +47 -0
- package/payload/premium-plugins/real-agency/references/business-operations-minutes-equal-money.md +55 -0
- package/payload/premium-plugins/real-agency/references/business-operations-team-management.md +48 -0
- package/payload/premium-plugins/real-agency/references/buyer-management-buyer-qualification-questions.md +16 -0
- package/payload/premium-plugins/real-agency/references/buyer-management-buyer-qualification.md +59 -0
- package/payload/premium-plugins/real-agency/references/buyer-management-buyer-scripts.md +63 -0
- package/payload/premium-plugins/real-agency/references/buyer-management-buyer-working-scripts.md +54 -0
- package/payload/premium-plugins/real-agency/references/buyer-management-feedback-collection.md +42 -0
- package/payload/premium-plugins/real-agency/references/buyer-management-offer-capture.md +38 -0
- package/payload/premium-plugins/real-agency/references/buyer-management-viewing-booking.md +32 -0
- package/payload/premium-plugins/real-agency/references/buyer-management-viewing-management.md +52 -0
- package/payload/premium-plugins/real-agency/references/buyer-seller-guides-care-fees-guide.md +68 -0
- package/payload/premium-plugins/real-agency/references/buyer-seller-guides-divorce-sales-guide.md +61 -0
- package/payload/premium-plugins/real-agency/references/buyer-seller-guides-downsizing-guide.md +45 -0
- package/payload/premium-plugins/real-agency/references/buyer-seller-guides-first-time-buyers.md +92 -0
- package/payload/premium-plugins/real-agency/references/buyer-seller-guides-first-time-sellers.md +78 -0
- package/payload/premium-plugins/real-agency/references/buyer-seller-guides-probate-guide.md +53 -0
- package/payload/premium-plugins/real-agency/references/buyer-seller-guides-upsizing-guide.md +41 -0
- package/payload/premium-plugins/real-agency/references/coaching-toolkit-coaching-exercises.md +86 -0
- package/payload/premium-plugins/real-agency/references/coaching-toolkit-goal-setting.md +78 -0
- package/payload/premium-plugins/real-agency/references/coaching-toolkit-one-to-one-framework.md +92 -0
- package/payload/premium-plugins/real-agency/references/coaching-toolkit-soi-workbook.md +103 -0
- package/payload/premium-plugins/real-agency/references/content-directory-module-delivery.md +65 -0
- package/payload/premium-plugins/real-agency/references/content-directory-progress-tracking.md +47 -0
- package/payload/premium-plugins/real-agency/references/exp-partnership-12-reasons.md +39 -0
- package/payload/premium-plugins/real-agency/references/exp-partnership-95-5-system.md +66 -0
- package/payload/premium-plugins/real-agency/references/exp-partnership-agent-attraction-scripts.md +90 -0
- package/payload/premium-plugins/real-agency/references/exp-partnership-business-partnership.md +92 -0
- package/payload/premium-plugins/real-agency/references/exp-partnership-exp-model-overview.md +66 -0
- package/payload/premium-plugins/real-agency/references/exp-partnership-model-comparison.md +66 -0
- package/payload/premium-plugins/real-agency/references/exp-partnership-revenue-share-explained.md +57 -0
- package/payload/premium-plugins/real-agency/references/home-preparation-kerb-appeal.md +38 -0
- package/payload/premium-plugins/real-agency/references/home-preparation-photo-day.md +59 -0
- package/payload/premium-plugins/real-agency/references/home-preparation-situational-tips.md +50 -0
- package/payload/premium-plugins/real-agency/references/home-preparation-staging-guide.md +52 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-buyer-search-letter.md +28 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-buyer-search-letters.md +37 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-database-reactivation.md +30 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-email-nurture-sequences.md +45 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-facebook-referrals.md +30 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-firewave-email-nurture-sequences.md +41 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-keller-33-touch.md +34 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-neighbour-letters.md +31 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-neighbour-notification-letter.md +20 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-ofi-follow-up-dialogue.md +22 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-ofi-follow-up.md +26 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-serhant-three-fs-plus.md +21 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-sharran-10x10x10.md +18 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-sms-templates.md +40 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-sphere-of-influence-notes.md +34 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-sphere-of-influence.md +60 -0
- package/payload/premium-plugins/real-agency/references/lead-nurturing-tom-panos-sms-templates.md +59 -0
- package/payload/premium-plugins/real-agency/references/listing-presentation-booking-script.md +51 -0
- package/payload/premium-plugins/real-agency/references/listing-presentation-objection-scripts.md +193 -0
- package/payload/premium-plugins/real-agency/references/listing-presentation-penhaul-presentation.md +123 -0
- package/payload/premium-plugins/real-agency/references/listing-presentation-pre-listing-kit.md +139 -0
- package/payload/premium-plugins/real-agency/references/listing-presentation-set-to-sell.md +55 -0
- package/payload/premium-plugins/real-agency/references/listing-presentation-sharran-frameworks.md +107 -0
- package/payload/premium-plugins/real-agency/references/negotiation-deal-saving.md +47 -0
- package/payload/premium-plugins/real-agency/references/negotiation-negotiation-deep-guide.md +64 -0
- package/payload/premium-plugins/real-agency/references/negotiation-negotiation-prep-principles.md +29 -0
- package/payload/premium-plugins/real-agency/references/negotiation-negotiation-techniques.md +42 -0
- package/payload/premium-plugins/real-agency/references/negotiation-offer-presentation.md +43 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-attraction-agent-notes.md +31 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-attraction-agent.md +58 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-authenticity-boundaries.md +28 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-become-a-brand-leader-notes.md +19 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-blast-formula.md +42 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-brand-leader.md +48 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-brand-strategy-system.md +59 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-content-engine.md +49 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-firewave-blast-and-blogging.md +23 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-gary-v-content.md +52 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-gary-v-principles.md +20 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-oversubscribed-positioning.md +18 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-platforms.md +41 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-priestley-oversubscribed.md +54 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-storeys-style-examples.md +25 -0
- package/payload/premium-plugins/real-agency/references/personal-branding-visual-identity.md +27 -0
- package/payload/premium-plugins/real-agency/references/property-marketing-auction-report-template.md +41 -0
- package/payload/premium-plugins/real-agency/references/property-marketing-coming-soon-campaign.md +43 -0
- package/payload/premium-plugins/real-agency/references/property-marketing-direct-mail-templates.md +121 -0
- package/payload/premium-plugins/real-agency/references/property-marketing-eoi-form-template.md +62 -0
- package/payload/premium-plugins/real-agency/references/property-marketing-monthly-scorecard.md +63 -0
- package/payload/premium-plugins/real-agency/references/prospecting-database-matching.md +30 -0
- package/payload/premium-plugins/real-agency/references/prospecting-database-value.md +53 -0
- package/payload/premium-plugins/real-agency/references/prospecting-prospecting-dialogues.md +24 -0
- package/payload/premium-plugins/real-agency/references/prospecting-reactivation.md +34 -0
- package/payload/premium-plugins/real-agency/references/sales-closer-serhant-emotion-stages.md +36 -0
- package/payload/premium-plugins/real-agency/references/sales-discovery-chris-voss-discovery.md +88 -0
- package/payload/premium-plugins/real-agency/references/sales-discovery-firewave-gost-journey.md +68 -0
- package/payload/premium-plugins/real-agency/references/sales-discovery-phil-jones-openers.md +78 -0
- package/payload/premium-plugins/real-agency/references/sales-discovery-pre-listing-checklist.md +77 -0
- package/payload/premium-plugins/real-agency/references/sales-discovery-serhant-improv.md +22 -0
- package/payload/premium-plugins/real-agency/references/sales-discovery-tom-ferry-discovery.md +103 -0
- package/payload/premium-plugins/real-agency/references/sales-discovery-vendor-motivation-competitor.md +52 -0
- package/payload/premium-plugins/real-agency/references/sales-negotiation-chris-voss-negotiation.md +138 -0
- package/payload/premium-plugins/real-agency/references/sales-negotiation-phil-jones-price-words.md +68 -0
- package/payload/premium-plugins/real-agency/references/sales-negotiation-serhant-negotiation-plus.md +55 -0
- package/payload/premium-plugins/real-agency/references/sales-negotiation-tom-panos-commission-pricing.md +102 -0
- package/payload/premium-plugins/real-agency/references/sales-negotiation-tony-morris-questioning.md +71 -0
- package/payload/premium-plugins/real-agency/references/sales-progression-conveyancing-guide.md +54 -0
- package/payload/premium-plugins/real-agency/references/sales-progression-transaction-tracking.md +66 -0
- package/payload/premium-plugins/real-agency/references/serhant-training-agent-training-guide.md +70 -0
- package/payload/premium-plugins/real-agency/references/serhant-training-business-in-a-box.md +72 -0
- package/payload/premium-plugins/real-agency/references/serhant-training-buyers-guide.md +53 -0
- package/payload/premium-plugins/real-agency/references/serhant-training-codo-method.md +72 -0
- package/payload/premium-plugins/real-agency/references/serhant-training-website-planning-guide.md +79 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-fee-protection-and-agenda.md +28 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-listing-scripts.md +44 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-negotiation-deep-guide.md +70 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-price-alignment-scripts.md +33 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-price-alignment.md +34 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-scenario-scripts.md +38 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-seller-engagement.md +51 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-valuation-booking.md +76 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-vendor-scripts.md +63 -0
- package/payload/premium-plugins/real-agency/references/vendor-communication-vendor-updates.md +41 -0
- package/payload/premium-plugins/real-agency/skills/agent-performance.md +367 -0
- package/payload/premium-plugins/real-agency/skills/bespoke-coaching.md +28 -0
- package/payload/premium-plugins/real-agency/skills/bootstrap.md +26 -0
- package/payload/premium-plugins/real-agency/skills/business-growth.md +138 -0
- package/payload/premium-plugins/real-agency/skills/business-operations.md +32 -0
- package/payload/premium-plugins/real-agency/skills/buyer-feedback.md +109 -0
- package/payload/premium-plugins/real-agency/skills/buyer-management.md +41 -0
- package/payload/premium-plugins/real-agency/skills/buyer-seller-guides.md +407 -0
- package/payload/premium-plugins/real-agency/skills/coaching-toolkit.md +419 -0
- package/payload/premium-plugins/real-agency/skills/content-directory.md +39 -0
- package/payload/premium-plugins/real-agency/skills/exp-partnership.md +52 -0
- package/payload/premium-plugins/real-agency/skills/home-preparation.md +28 -0
- package/payload/premium-plugins/real-agency/skills/lead-nurturing.md +143 -0
- package/payload/premium-plugins/real-agency/skills/listing-presentation.md +286 -0
- package/payload/premium-plugins/real-agency/skills/negotiation.md +34 -0
- package/payload/premium-plugins/real-agency/skills/personal-branding.md +117 -0
- package/payload/premium-plugins/real-agency/skills/property-enquiry.md +126 -0
- package/payload/premium-plugins/real-agency/skills/property-marketing.md +337 -0
- package/payload/premium-plugins/real-agency/skills/prospecting.md +33 -0
- package/payload/premium-plugins/real-agency/skills/sales-closer.md +27 -0
- package/payload/premium-plugins/real-agency/skills/sales-discovery.md +34 -0
- package/payload/premium-plugins/real-agency/skills/sales-negotiation.md +31 -0
- package/payload/premium-plugins/real-agency/skills/sales-progression.md +27 -0
- package/payload/premium-plugins/real-agency/skills/serhant-training.md +410 -0
- package/payload/premium-plugins/real-agency/skills/valuation-booking.md +182 -0
- package/payload/premium-plugins/real-agency/skills/vendor-communication.md +42 -0
- package/payload/premium-plugins/real-agency/skills/vendor-updates.md +153 -0
- package/payload/premium-plugins/real-agency/skills/viewing-management.md +111 -0
- package/payload/premium-plugins/teaching/PLUGIN.md +58 -0
- package/payload/premium-plugins/teaching/references/assessment.md +70 -0
- package/payload/premium-plugins/teaching/references/classroom-conduct.md +43 -0
- package/payload/premium-plugins/teaching/references/context-gathering.md +41 -0
- package/payload/premium-plugins/teaching/references/disaggregation.md +49 -0
- package/payload/premium-plugins/teaching/references/materials.md +116 -0
- package/payload/premium-plugins/teaching/references/plan-structure.md +94 -0
- package/payload/premium-plugins/teaching/references/teaching-modes.md +83 -0
- package/payload/premium-plugins/teaching/skills/interactive-tutor.md +59 -0
- package/payload/premium-plugins/teaching/skills/lesson-planner.md +48 -0
- package/payload/premium-plugins/teaching/skills/study-pack-builder.md +52 -0
- package/payload/premium-plugins/writer-craft/PLUGIN.md +88 -0
- package/payload/premium-plugins/writer-craft/agents/writer-craft--manuscript-reviewer.md +92 -0
- package/payload/premium-plugins/writer-craft/references/audience-analysis.md +73 -0
- package/payload/premium-plugins/writer-craft/references/blueprinting-and-scene-cards.md +118 -0
- package/payload/premium-plugins/writer-craft/references/blueprinting-exercises.md +118 -0
- package/payload/premium-plugins/writer-craft/references/blueprinting-process.md +128 -0
- package/payload/premium-plugins/writer-craft/references/book-and-chapter-models.md +77 -0
- package/payload/premium-plugins/writer-craft/references/cause-effect-setup-payoff.md +79 -0
- package/payload/premium-plugins/writer-craft/references/citation-rules.md +103 -0
- package/payload/premium-plugins/writer-craft/references/conflict-escalation.md +81 -0
- package/payload/premium-plugins/writer-craft/references/copyediting.md +73 -0
- package/payload/premium-plugins/writer-craft/references/crafting-persuasive-story.md +76 -0
- package/payload/premium-plugins/writer-craft/references/developmental-editing.md +85 -0
- package/payload/premium-plugins/writer-craft/references/genre-specific-editing.md +78 -0
- package/payload/premium-plugins/writer-craft/references/hooking-readers.md +67 -0
- package/payload/premium-plugins/writer-craft/references/indirect-narration.md +72 -0
- package/payload/premium-plugins/writer-craft/references/inner-issue-and-protagonist-goal.md +66 -0
- package/payload/premium-plugins/writer-craft/references/journal-article-models.md +74 -0
- package/payload/premium-plugins/writer-craft/references/line-editing.md +55 -0
- package/payload/premium-plugins/writer-craft/references/misbelief-desire-worldview.md +87 -0
- package/payload/premium-plugins/writer-craft/references/neurochemistry-of-engagement.md +94 -0
- package/payload/premium-plugins/writer-craft/references/origin-scenes-and-escalation.md +82 -0
- package/payload/premium-plugins/writer-craft/references/other-source-models.md +146 -0
- package/payload/premium-plugins/writer-craft/references/persuasion-case-studies.md +67 -0
- package/payload/premium-plugins/writer-craft/references/pov-types-and-voice.md +91 -0
- package/payload/premium-plugins/writer-craft/references/prose-review-checklist.md +112 -0
- package/payload/premium-plugins/writer-craft/references/protagonist-filter.md +71 -0
- package/payload/premium-plugins/writer-craft/references/punctuation-and-grammar.md +72 -0
- package/payload/premium-plugins/writer-craft/references/reference-list-rules.md +70 -0
- package/payload/premium-plugins/writer-craft/references/repetition.md +71 -0
- package/payload/premium-plugins/writer-craft/references/review-manuscript-checklist.md +119 -0
- package/payload/premium-plugins/writer-craft/references/scene-analysis-framework.md +95 -0
- package/payload/premium-plugins/writer-craft/references/self-editing.md +89 -0
- package/payload/premium-plugins/writer-craft/references/sound-and-rhythm.md +64 -0
- package/payload/premium-plugins/writer-craft/references/tense-and-person.md +85 -0
- package/payload/premium-plugins/writer-craft/references/transformation-framework.md +86 -0
- package/payload/premium-plugins/writer-craft/references/word-economy.md +93 -0
- package/payload/premium-plugins/writer-craft/skills/citation-style.md +94 -0
- package/payload/premium-plugins/writer-craft/skills/editorial-practice.md +108 -0
- package/payload/premium-plugins/writer-craft/skills/persuasive-storytelling.md +114 -0
- package/payload/premium-plugins/writer-craft/skills/point-of-view.md +97 -0
- package/payload/premium-plugins/writer-craft/skills/prose-craft.md +100 -0
- package/payload/premium-plugins/writer-craft/skills/reader-engagement.md +100 -0
- package/payload/premium-plugins/writer-craft/skills/review-manuscript.md +111 -0
- package/payload/premium-plugins/writer-craft/skills/review-prose.md +99 -0
- package/payload/premium-plugins/writer-craft/skills/review-scene.md +99 -0
- package/payload/premium-plugins/writer-craft/skills/story-architecture.md +106 -0
- package/payload/premium-plugins/writer-craft/skills/story-blueprint.md +133 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { taskCreate } from "./tools/task-create.js";
|
|
5
|
+
import { taskUpdate } from "./tools/task-update.js";
|
|
6
|
+
import { taskList } from "./tools/task-list.js";
|
|
7
|
+
import { taskGet } from "./tools/task-get.js";
|
|
8
|
+
import { taskRelate } from "./tools/task-relate.js";
|
|
9
|
+
import { taskComplete } from "./tools/task-complete.js";
|
|
10
|
+
import { taskReady } from "./tools/task-ready.js";
|
|
11
|
+
import { sessionList } from "./tools/session-list.js";
|
|
12
|
+
import { sessionName } from "./tools/session-name.js";
|
|
13
|
+
import { closeDriver } from "./lib/neo4j.js";
|
|
14
|
+
// Cast to `any` to avoid TS2589. TypeScript hits its 50-level instantiation
|
|
15
|
+
// limit when accumulating 6 typed tool signatures on a generic McpServer.
|
|
16
|
+
// Individual tool handlers retain full type safety in their own files.
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
+
const server = new McpServer({
|
|
19
|
+
name: "maxy-tasks",
|
|
20
|
+
version: "0.1.0",
|
|
21
|
+
});
|
|
22
|
+
const accountId = process.env.ACCOUNT_ID;
|
|
23
|
+
if (!accountId) {
|
|
24
|
+
throw new Error("ACCOUNT_ID environment variable is required");
|
|
25
|
+
}
|
|
26
|
+
const sessionId = process.env.SESSION_ID || undefined;
|
|
27
|
+
// ---------------------------------------------------------------------------
|
|
28
|
+
// Shared schema fragments — extracted to keep tool registration concise
|
|
29
|
+
// ---------------------------------------------------------------------------
|
|
30
|
+
const statusSchema = z
|
|
31
|
+
.enum(["pending", "active", "completed", "failed", "cancelled"])
|
|
32
|
+
.optional()
|
|
33
|
+
.describe("Task status");
|
|
34
|
+
const prioritySchema = z
|
|
35
|
+
.enum(["low", "normal", "high", "urgent"])
|
|
36
|
+
.optional()
|
|
37
|
+
.describe("Task priority");
|
|
38
|
+
const dueDateSchema = z.string().optional().describe("ISO 8601 due date");
|
|
39
|
+
const taskIdSchema = z.string().describe("Task ID (UUID)");
|
|
40
|
+
const noteSchema = z.string().optional().describe("Note appended to task history with timestamp");
|
|
41
|
+
// ---------------------------------------------------------------------------
|
|
42
|
+
// task-create
|
|
43
|
+
// ---------------------------------------------------------------------------
|
|
44
|
+
server.tool("task-create", "Create a Task node in the graph. Automatically linked to the current session. Optionally link to a person (RAISED_BY) or entities the task will modify (AFFECTS) for conflict detection. Embeds for memory-search discovery.", {
|
|
45
|
+
name: z.string().describe("Short task title"),
|
|
46
|
+
description: z.string().describe("Full scope and acceptance criteria — embedded for semantic search"),
|
|
47
|
+
status: statusSchema,
|
|
48
|
+
priority: prioritySchema,
|
|
49
|
+
dueDate: dueDateSchema,
|
|
50
|
+
raisedBy: z.string().optional().describe("Person elementId — creates a RAISED_BY relationship"),
|
|
51
|
+
affects: z.array(z.string()).optional().describe("Entity elementIds — creates AFFECTS relationships for conflict detection"),
|
|
52
|
+
}, async (params) => {
|
|
53
|
+
try {
|
|
54
|
+
const result = await taskCreate({ ...params, accountId, sessionKey: sessionId });
|
|
55
|
+
return {
|
|
56
|
+
content: [{
|
|
57
|
+
type: "text",
|
|
58
|
+
text: `Task created: "${params.name}" (ID: ${result.taskId}, status: ${params.status ?? "pending"}, priority: ${params.priority ?? "normal"})`,
|
|
59
|
+
}],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
catch (err) {
|
|
63
|
+
return {
|
|
64
|
+
content: [{ type: "text", text: `Failed to create task: ${err instanceof Error ? err.message : String(err)}` }],
|
|
65
|
+
isError: true,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
// ---------------------------------------------------------------------------
|
|
70
|
+
// task-update
|
|
71
|
+
// ---------------------------------------------------------------------------
|
|
72
|
+
server.tool("task-update", "Update a task's status, priority, or due date. Append a note to its history. Notes are append-only — never overwritten.", {
|
|
73
|
+
taskId: taskIdSchema,
|
|
74
|
+
status: statusSchema,
|
|
75
|
+
priority: prioritySchema,
|
|
76
|
+
dueDate: dueDateSchema,
|
|
77
|
+
note: z.string().optional().describe("Progress note to append. Timestamped and appended to history — never replaces existing notes."),
|
|
78
|
+
}, async (params) => {
|
|
79
|
+
try {
|
|
80
|
+
await taskUpdate({ ...params, accountId });
|
|
81
|
+
return { content: [{ type: "text", text: `Task updated: ${params.taskId}` }] };
|
|
82
|
+
}
|
|
83
|
+
catch (err) {
|
|
84
|
+
return {
|
|
85
|
+
content: [{ type: "text", text: `Failed to update task: ${err instanceof Error ? err.message : String(err)}` }],
|
|
86
|
+
isError: true,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
// ---------------------------------------------------------------------------
|
|
91
|
+
// task-list
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
server.tool("task-list", "List tasks filtered by status, priority, or related entity. Always scoped to this account. Ordered by priority then creation date.", {
|
|
94
|
+
status: statusSchema,
|
|
95
|
+
priority: prioritySchema,
|
|
96
|
+
relatedEntityId: z.string().optional().describe("Neo4j elementId — return tasks related to this entity"),
|
|
97
|
+
limit: z.number().optional().describe("Max results (default 50)"),
|
|
98
|
+
}, async (params) => {
|
|
99
|
+
try {
|
|
100
|
+
const tasks = await taskList({ ...params, accountId });
|
|
101
|
+
if (tasks.length === 0) {
|
|
102
|
+
return { content: [{ type: "text", text: "No tasks match the filters." }] };
|
|
103
|
+
}
|
|
104
|
+
const lines = tasks.map((t) => {
|
|
105
|
+
const due = t.dueDate ? ` due:${t.dueDate.slice(0, 10)}` : "";
|
|
106
|
+
return `[${t.priority.toUpperCase()}] ${t.status} — ${t.name}${due} (${t.taskId})`;
|
|
107
|
+
});
|
|
108
|
+
return {
|
|
109
|
+
content: [{ type: "text", text: `${tasks.length} task(s):\n\n${lines.join("\n")}` }],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
catch (err) {
|
|
113
|
+
return {
|
|
114
|
+
content: [{ type: "text", text: `List failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
115
|
+
isError: true,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
// ---------------------------------------------------------------------------
|
|
120
|
+
// task-get
|
|
121
|
+
// ---------------------------------------------------------------------------
|
|
122
|
+
server.tool("task-get", "Fetch a single task with its full description, notes history, and all graph relationships.", {
|
|
123
|
+
taskId: taskIdSchema,
|
|
124
|
+
}, async ({ taskId }) => {
|
|
125
|
+
try {
|
|
126
|
+
const task = await taskGet(taskId, accountId);
|
|
127
|
+
if (!task) {
|
|
128
|
+
return { content: [{ type: "text", text: `Task not found: ${taskId}` }] };
|
|
129
|
+
}
|
|
130
|
+
const relLines = task.relationships.length > 0
|
|
131
|
+
? task.relationships
|
|
132
|
+
.map((r) => ` -[${r.type}]-> ${r.targetLabel}: ${r.targetName ?? r.targetId}`)
|
|
133
|
+
.join("\n")
|
|
134
|
+
: " (none)";
|
|
135
|
+
const parts = [
|
|
136
|
+
`Task: ${task.name}`,
|
|
137
|
+
`ID: ${task.taskId}`,
|
|
138
|
+
`Status: ${task.status} | Priority: ${task.priority}`,
|
|
139
|
+
task.dueDate ? `Due: ${task.dueDate}` : null,
|
|
140
|
+
``,
|
|
141
|
+
`Description:\n${task.description}`,
|
|
142
|
+
task.notes ? `\nNotes:\n${task.notes}` : null,
|
|
143
|
+
``,
|
|
144
|
+
`Relationships:\n${relLines}`,
|
|
145
|
+
``,
|
|
146
|
+
`Created: ${task.createdAt} | Updated: ${task.updatedAt}`,
|
|
147
|
+
].filter((line) => line !== null);
|
|
148
|
+
return { content: [{ type: "text", text: parts.join("\n") }] };
|
|
149
|
+
}
|
|
150
|
+
catch (err) {
|
|
151
|
+
return {
|
|
152
|
+
content: [{ type: "text", text: `Get failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
153
|
+
isError: true,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
// ---------------------------------------------------------------------------
|
|
158
|
+
// task-relate
|
|
159
|
+
// ---------------------------------------------------------------------------
|
|
160
|
+
server.tool("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.", {
|
|
161
|
+
taskId: taskIdSchema,
|
|
162
|
+
targetId: z.string().describe("Neo4j elementId of the target node"),
|
|
163
|
+
targetLabel: z.string().describe("Label of the target node (e.g. Person, Service, LocalBusiness, Task)"),
|
|
164
|
+
relType: z.enum(["AFFECTS", "RAISED_BY", "PART_OF", "BLOCKS"]).describe("Relationship type"),
|
|
165
|
+
}, async (params) => {
|
|
166
|
+
try {
|
|
167
|
+
await taskRelate({ ...params, accountId });
|
|
168
|
+
return {
|
|
169
|
+
content: [{
|
|
170
|
+
type: "text",
|
|
171
|
+
text: `Relationship created: Task(${params.taskId}) -[${params.relType}]-> ${params.targetLabel}(${params.targetId})`,
|
|
172
|
+
}],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
catch (err) {
|
|
176
|
+
return {
|
|
177
|
+
content: [{ type: "text", text: `Relate failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
178
|
+
isError: true,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
// ---------------------------------------------------------------------------
|
|
183
|
+
// task-complete
|
|
184
|
+
// ---------------------------------------------------------------------------
|
|
185
|
+
server.tool("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.", {
|
|
186
|
+
taskId: taskIdSchema,
|
|
187
|
+
note: noteSchema,
|
|
188
|
+
}, async (params) => {
|
|
189
|
+
try {
|
|
190
|
+
const result = await taskComplete({ ...params, accountId });
|
|
191
|
+
const parts = [`Task completed: ${params.taskId}`];
|
|
192
|
+
if (result.unblockedTasks.length > 0) {
|
|
193
|
+
parts.push("", "Newly unblocked tasks:", ...result.unblockedTasks.map((t) => ` [${t.priority}] ${t.name} (${t.taskId})`));
|
|
194
|
+
}
|
|
195
|
+
return { content: [{ type: "text", text: parts.join("\n") }] };
|
|
196
|
+
}
|
|
197
|
+
catch (err) {
|
|
198
|
+
return {
|
|
199
|
+
content: [{ type: "text", text: `Complete failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
200
|
+
isError: true,
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
// ---------------------------------------------------------------------------
|
|
205
|
+
// task-ready
|
|
206
|
+
// ---------------------------------------------------------------------------
|
|
207
|
+
server.tool("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 () => {
|
|
208
|
+
try {
|
|
209
|
+
const tasks = await taskReady(accountId);
|
|
210
|
+
if (tasks.length === 0) {
|
|
211
|
+
return {
|
|
212
|
+
content: [{
|
|
213
|
+
type: "text",
|
|
214
|
+
text: "No tasks are ready to start. All pending tasks have unresolved blockers or AFFECTS conflicts with active tasks.",
|
|
215
|
+
}],
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
const lines = tasks.map((t) => `[${t.priority}] ${t.name} (${t.taskId})${t.dueDate ? ` — due: ${t.dueDate}` : ""}`);
|
|
219
|
+
return {
|
|
220
|
+
content: [{
|
|
221
|
+
type: "text",
|
|
222
|
+
text: `${tasks.length} task(s) ready to start:\n\n${lines.join("\n")}`,
|
|
223
|
+
}],
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
catch (err) {
|
|
227
|
+
return {
|
|
228
|
+
content: [{ type: "text", text: `Ready check failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
229
|
+
isError: true,
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
// ---------------------------------------------------------------------------
|
|
234
|
+
// session-list
|
|
235
|
+
// ---------------------------------------------------------------------------
|
|
236
|
+
server.tool("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.", {
|
|
237
|
+
limit: z.number().int().min(1).max(50).optional().describe("Max sessions to return (default 20)"),
|
|
238
|
+
}, async (params) => {
|
|
239
|
+
try {
|
|
240
|
+
const sessions = await sessionList({ accountId, limit: params.limit });
|
|
241
|
+
if (sessions.length === 0) {
|
|
242
|
+
return { content: [{ type: "text", text: "No sessions found." }] };
|
|
243
|
+
}
|
|
244
|
+
const lines = sessions.map(s => {
|
|
245
|
+
const label = s.name ? `"${s.name}"` : "(unnamed)";
|
|
246
|
+
const tasks = s.tasks.length > 0
|
|
247
|
+
? s.tasks.map(t => ` • ${t.name} [${t.status}]`).join("\n")
|
|
248
|
+
: " (no linked tasks)";
|
|
249
|
+
return `${label} · ${s.conversationId} · ${s.agentType} · updated ${s.updatedAt}\n${tasks}`;
|
|
250
|
+
});
|
|
251
|
+
return { content: [{ type: "text", text: lines.join("\n\n") }] };
|
|
252
|
+
}
|
|
253
|
+
catch (err) {
|
|
254
|
+
return {
|
|
255
|
+
content: [{ type: "text", text: `Failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
256
|
+
isError: true,
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
// ---------------------------------------------------------------------------
|
|
261
|
+
// session-name
|
|
262
|
+
// ---------------------------------------------------------------------------
|
|
263
|
+
server.tool("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').", {
|
|
264
|
+
sessionKey: z.string().describe("Current session key (from system prompt)"),
|
|
265
|
+
name: z.string().describe("Short human-readable session label"),
|
|
266
|
+
}, async (params) => {
|
|
267
|
+
try {
|
|
268
|
+
await sessionName(params);
|
|
269
|
+
return { content: [{ type: "text", text: `Session named: "${params.name}"` }] };
|
|
270
|
+
}
|
|
271
|
+
catch (err) {
|
|
272
|
+
return {
|
|
273
|
+
content: [{ type: "text", text: `Failed: ${err instanceof Error ? err.message : String(err)}` }],
|
|
274
|
+
isError: true,
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
// ---------------------------------------------------------------------------
|
|
279
|
+
// Shutdown + start
|
|
280
|
+
// ---------------------------------------------------------------------------
|
|
281
|
+
process.on("SIGINT", async () => {
|
|
282
|
+
await closeDriver();
|
|
283
|
+
process.exit(0);
|
|
284
|
+
});
|
|
285
|
+
const transport = new StdioServerTransport();
|
|
286
|
+
await server.connect(transport);
|
|
287
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,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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H,MAAM,WAAW,CAAC,MAAM,CAAC,CAAC;QAC1B,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,mBAAmB,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,CAAC;IAC3F,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,WAAW,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACzG,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC,CACF,CAAC;AAEF,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC9B,MAAM,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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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,CAQlC;AAED,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAKjD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
const uri = process.env.NEO4J_URI ?? "bolt://localhost:7687";
|
|
19
|
+
const user = process.env.NEO4J_USER ?? "neo4j";
|
|
20
|
+
const password = readPassword();
|
|
21
|
+
driver = neo4j.driver(uri, neo4j.auth.basic(user, password));
|
|
22
|
+
}
|
|
23
|
+
return driver;
|
|
24
|
+
}
|
|
25
|
+
export function getSession() {
|
|
26
|
+
return getDriver().session();
|
|
27
|
+
}
|
|
28
|
+
export async function closeDriver() {
|
|
29
|
+
if (driver) {
|
|
30
|
+
await driver.close();
|
|
31
|
+
driver = null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=neo4j.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,uBAAuB,CAAC;QAC7D,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC;QAC/C,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;QAChC,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface SessionListParams {
|
|
2
|
+
accountId: string;
|
|
3
|
+
limit?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface SessionSummary {
|
|
6
|
+
sessionKey: string;
|
|
7
|
+
conversationId: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
agentType: string;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
tasks: Array<{
|
|
13
|
+
taskId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
status: string;
|
|
16
|
+
priority: string;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
export declare function sessionList(params: SessionListParams): Promise<SessionSummary[]>;
|
|
20
|
+
//# sourceMappingURL=session-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-list.d.ts","sourceRoot":"","sources":["../../src/tools/session-list.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClF;AAED,wBAAsB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAoCtF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { int } from "neo4j-driver";
|
|
2
|
+
import { getSession } from "../lib/neo4j.js";
|
|
3
|
+
export async function sessionList(params) {
|
|
4
|
+
const { accountId, limit = 20 } = params;
|
|
5
|
+
const neo4jSession = getSession();
|
|
6
|
+
try {
|
|
7
|
+
const result = await neo4jSession.run(`MATCH (c:Conversation {accountId: $accountId})
|
|
8
|
+
OPTIONAL MATCH (t:Task)-[:PART_OF]->(c)
|
|
9
|
+
RETURN c, collect(
|
|
10
|
+
CASE WHEN t IS NOT NULL
|
|
11
|
+
THEN { taskId: t.taskId, name: t.name, status: t.status, priority: t.priority }
|
|
12
|
+
ELSE null
|
|
13
|
+
END
|
|
14
|
+
) AS tasks
|
|
15
|
+
ORDER BY c.updatedAt DESC
|
|
16
|
+
LIMIT $limit`, { accountId, limit: int(limit) });
|
|
17
|
+
return result.records.map(rec => {
|
|
18
|
+
const c = rec.get("c").properties;
|
|
19
|
+
const rawTasks = rec.get("tasks");
|
|
20
|
+
const summary = {
|
|
21
|
+
sessionKey: c.sessionKey,
|
|
22
|
+
conversationId: c.conversationId,
|
|
23
|
+
agentType: c.agentType,
|
|
24
|
+
createdAt: c.createdAt,
|
|
25
|
+
updatedAt: c.updatedAt,
|
|
26
|
+
tasks: rawTasks.filter(t => t !== null),
|
|
27
|
+
};
|
|
28
|
+
if (c.name)
|
|
29
|
+
summary.name = c.name;
|
|
30
|
+
return summary;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
finally {
|
|
34
|
+
await neo4jSession.close();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=session-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-list.js","sourceRoot":"","sources":["../../src/tools/session-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAiB7C,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAAyB;IACzD,MAAM,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAEzC,MAAM,YAAY,GAAG,UAAU,EAAE,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,GAAG,CACnC;;;;;;;;;oBASc,EACd,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CACjC,CAAC;QAEF,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAC9B,MAAM,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC;YAClC,MAAM,QAAQ,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAqF,CAAC;YACtH,MAAM,OAAO,GAAmB;gBAC9B,UAAU,EAAE,CAAC,CAAC,UAAoB;gBAClC,cAAc,EAAE,CAAC,CAAC,cAAwB;gBAC1C,SAAS,EAAE,CAAC,CAAC,SAAmB;gBAChC,SAAS,EAAE,CAAC,CAAC,SAAmB;gBAChC,SAAS,EAAE,CAAC,CAAC,SAAmB;gBAChC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAA4B;aACnE,CAAC;YACF,IAAI,CAAC,CAAC,IAAI;gBAAE,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC,IAAc,CAAC;YAC5C,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC;YAAS,CAAC;QACT,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-name.d.ts","sourceRoot":"","sources":["../../src/tools/session-name.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAa1E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getSession } from "../lib/neo4j.js";
|
|
2
|
+
export async function sessionName(params) {
|
|
3
|
+
const { sessionKey, name } = params;
|
|
4
|
+
const neo4jSession = getSession();
|
|
5
|
+
try {
|
|
6
|
+
await neo4jSession.run(`MERGE (c:Conversation {sessionKey: $sessionKey})
|
|
7
|
+
SET c.name = $name, c.updatedAt = datetime()`, { sessionKey, name });
|
|
8
|
+
}
|
|
9
|
+
finally {
|
|
10
|
+
await neo4jSession.close();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=session-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-name.js","sourceRoot":"","sources":["../../src/tools/session-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAO7C,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAAyB;IACzD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAEpC,MAAM,YAAY,GAAG,UAAU,EAAE,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,YAAY,CAAC,GAAG,CACpB;oDAC8C,EAC9C,EAAE,UAAU,EAAE,IAAI,EAAE,CACrB,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface TaskCompleteParams {
|
|
2
|
+
taskId: string;
|
|
3
|
+
accountId: string;
|
|
4
|
+
/** Optional completion note appended to task history */
|
|
5
|
+
note?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface UnblockedTask {
|
|
8
|
+
taskId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
priority: string;
|
|
11
|
+
}
|
|
12
|
+
export interface TaskCompleteResult {
|
|
13
|
+
unblockedTasks: UnblockedTask[];
|
|
14
|
+
}
|
|
15
|
+
export declare function taskComplete(params: TaskCompleteParams): Promise<TaskCompleteResult>;
|
|
16
|
+
//# sourceMappingURL=task-complete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-complete.d.ts","sourceRoot":"","sources":["../../src/tools/task-complete.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC;AAED,wBAAsB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAmC1F"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { getSession } from "../lib/neo4j.js";
|
|
2
|
+
import { taskUpdate } from "./task-update.js";
|
|
3
|
+
export async function taskComplete(params) {
|
|
4
|
+
const { taskId, accountId, note } = params;
|
|
5
|
+
await taskUpdate({
|
|
6
|
+
taskId,
|
|
7
|
+
accountId,
|
|
8
|
+
status: "completed",
|
|
9
|
+
note: note ?? "Task completed.",
|
|
10
|
+
});
|
|
11
|
+
// Find tasks that were BLOCKS-ed by this one and are now potentially ready
|
|
12
|
+
const session = getSession();
|
|
13
|
+
try {
|
|
14
|
+
const result = await session.run(`MATCH (completed:Task {taskId: $taskId, accountId: $accountId})-[:BLOCKS]->(candidate:Task {accountId: $accountId})
|
|
15
|
+
WHERE candidate.status = 'pending'
|
|
16
|
+
AND NOT EXISTS {
|
|
17
|
+
MATCH (otherBlocker:Task {accountId: $accountId})-[:BLOCKS]->(candidate)
|
|
18
|
+
WHERE otherBlocker.status IN ['pending', 'active']
|
|
19
|
+
AND otherBlocker.taskId <> $taskId
|
|
20
|
+
}
|
|
21
|
+
RETURN candidate.taskId AS taskId, candidate.name AS name, candidate.priority AS priority`, { taskId, accountId });
|
|
22
|
+
const unblockedTasks = result.records.map((rec) => ({
|
|
23
|
+
taskId: rec.get("taskId"),
|
|
24
|
+
name: rec.get("name"),
|
|
25
|
+
priority: rec.get("priority"),
|
|
26
|
+
}));
|
|
27
|
+
return { unblockedTasks };
|
|
28
|
+
}
|
|
29
|
+
finally {
|
|
30
|
+
await session.close();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=task-complete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-complete.js","sourceRoot":"","sources":["../../src/tools/task-complete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAmB9C,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,MAA0B;IAC3D,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAE3C,MAAM,UAAU,CAAC;QACf,MAAM;QACN,SAAS;QACT,MAAM,EAAE,WAAW;QACnB,IAAI,EAAE,IAAI,IAAI,iBAAiB;KAChC,CAAC,CAAC;IAEH,2EAA2E;IAC3E,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,GAAG,CAC9B;;;;;;;iGAO2F,EAC3F,EAAE,MAAM,EAAE,SAAS,EAAE,CACtB,CAAC;QAEF,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAClD,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAW;YACnC,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAW;YAC/B,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAW;SACxC,CAAC,CAAC,CAAC;QAEJ,OAAO,EAAE,cAAc,EAAE,CAAC;IAC5B,CAAC;YAAS,CAAC;QACT,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface TaskCreateParams {
|
|
2
|
+
accountId: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
status?: "pending" | "active" | "completed" | "failed" | "cancelled";
|
|
6
|
+
priority?: "low" | "normal" | "high" | "urgent";
|
|
7
|
+
dueDate?: string;
|
|
8
|
+
sessionKey?: string;
|
|
9
|
+
/** Person elementId — creates a RAISED_BY relationship */
|
|
10
|
+
raisedBy?: string;
|
|
11
|
+
/** Entity elementIds — creates AFFECTS relationships */
|
|
12
|
+
affects?: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface TaskCreateResult {
|
|
15
|
+
taskId: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function taskCreate(params: TaskCreateParams): Promise<TaskCreateResult>;
|
|
18
|
+
//# sourceMappingURL=task-create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-create.d.ts","sourceRoot":"","sources":["../../src/tools/task-create.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACrE,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAyEpF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { getSession } from "../lib/neo4j.js";
|
|
3
|
+
import { computeEmbedding } from "../lib/embeddings.js";
|
|
4
|
+
export async function taskCreate(params) {
|
|
5
|
+
const { accountId, name, description, status = "pending", priority = "normal", dueDate, sessionKey, raisedBy, affects, } = params;
|
|
6
|
+
const taskId = randomUUID();
|
|
7
|
+
const now = new Date().toISOString();
|
|
8
|
+
const props = {
|
|
9
|
+
taskId,
|
|
10
|
+
accountId,
|
|
11
|
+
name,
|
|
12
|
+
description,
|
|
13
|
+
status,
|
|
14
|
+
priority,
|
|
15
|
+
createdAt: now,
|
|
16
|
+
updatedAt: now,
|
|
17
|
+
};
|
|
18
|
+
if (dueDate)
|
|
19
|
+
props.dueDate = dueDate;
|
|
20
|
+
const embeddingText = `Task: ${name} — ${description} status: ${status} priority: ${priority}`;
|
|
21
|
+
const embedding = await computeEmbedding(embeddingText);
|
|
22
|
+
if (embedding.length > 0)
|
|
23
|
+
props.embedding = embedding;
|
|
24
|
+
const neo4jSession = getSession();
|
|
25
|
+
try {
|
|
26
|
+
if (sessionKey) {
|
|
27
|
+
await neo4jSession.run(`CREATE (t:Task $props)
|
|
28
|
+
WITH t
|
|
29
|
+
MERGE (c:Conversation {sessionKey: $sessionKey})
|
|
30
|
+
MERGE (t)-[:PART_OF]->(c)`, { props, sessionKey });
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
await neo4jSession.run(`CREATE (t:Task $props)`, { props });
|
|
34
|
+
}
|
|
35
|
+
// Create RAISED_BY relationship if a person was specified
|
|
36
|
+
if (raisedBy) {
|
|
37
|
+
await neo4jSession.run(`MATCH (t:Task {taskId: $taskId, accountId: $accountId})
|
|
38
|
+
MATCH (p) WHERE elementId(p) = $raisedBy
|
|
39
|
+
MERGE (t)-[:RAISED_BY]->(p)`, { taskId, accountId, raisedBy });
|
|
40
|
+
}
|
|
41
|
+
// Create AFFECTS relationships if entities were specified
|
|
42
|
+
if (affects && affects.length > 0) {
|
|
43
|
+
for (const entityId of affects) {
|
|
44
|
+
await neo4jSession.run(`MATCH (t:Task {taskId: $taskId, accountId: $accountId})
|
|
45
|
+
MATCH (e) WHERE elementId(e) = $entityId
|
|
46
|
+
MERGE (t)-[:AFFECTS]->(e)`, { taskId, accountId, entityId });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
finally {
|
|
51
|
+
await neo4jSession.close();
|
|
52
|
+
}
|
|
53
|
+
return { taskId };
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=task-create.js.map
|