@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,233 @@
|
|
|
1
|
+
import { getSession } from "../lib/neo4j.js";
|
|
2
|
+
import { embedBatch } from "../lib/embeddings.js";
|
|
3
|
+
import { extractCache } from "./memory-ingest-extract.js";
|
|
4
|
+
import { deleteDocumentChildren } from "../lib/document-hierarchy.js";
|
|
5
|
+
export async function memoryIngest(params) {
|
|
6
|
+
const { accountId, attachmentId, documentSummary, sections, scope, entities, sourceUrl, sourceType, keywords: rawKeywords, userKeywords: rawUserKeywords, } = params;
|
|
7
|
+
if (!scope) {
|
|
8
|
+
throw new Error("scope is required — valid values: 'public', 'shared', 'admin', 'user:{identifier}'");
|
|
9
|
+
}
|
|
10
|
+
// Normalize and merge keywords: user-supplied ∪ LLM-extracted, deduplicated.
|
|
11
|
+
// User keywords appear first (cosmetic — both are equal after merge).
|
|
12
|
+
const normalizeArray = (arr) => arr.map((k) => k.toLowerCase().trim()).filter(Boolean);
|
|
13
|
+
const hasUserKeywords = rawUserKeywords && rawUserKeywords.length > 0;
|
|
14
|
+
const hasKeywords = rawKeywords && rawKeywords.length > 0;
|
|
15
|
+
const keywords = hasUserKeywords || hasKeywords
|
|
16
|
+
? [...new Set([
|
|
17
|
+
...normalizeArray(rawUserKeywords ?? []),
|
|
18
|
+
...normalizeArray(rawKeywords ?? []),
|
|
19
|
+
])]
|
|
20
|
+
: undefined;
|
|
21
|
+
const t0 = Date.now();
|
|
22
|
+
const log = (stage, detail) => console.error(`[memory-ingest] [${attachmentId.slice(0, 8)}] ${stage}${detail ? ` — ${detail}` : ""} (${Date.now() - t0}ms)`);
|
|
23
|
+
log("start", `${sections.length} sections, scope=${scope}`);
|
|
24
|
+
// 1. Retrieve cached content from memory-ingest-extract
|
|
25
|
+
const cached = extractCache.get(attachmentId);
|
|
26
|
+
if (!cached) {
|
|
27
|
+
throw new Error(`No cached extract found for attachment "${attachmentId}". ` +
|
|
28
|
+
`Call memory-ingest-extract first to extract and chunk the document.`);
|
|
29
|
+
}
|
|
30
|
+
log("cache-hit", cached.filename);
|
|
31
|
+
// Validate section count matches
|
|
32
|
+
if (sections.length !== cached.sections.length) {
|
|
33
|
+
throw new Error(`Section count mismatch: model provided ${sections.length} sections ` +
|
|
34
|
+
`but the extracted document has ${cached.sections.length} sections. ` +
|
|
35
|
+
`Provide exactly one summary per section returned by memory-ingest-extract.`);
|
|
36
|
+
}
|
|
37
|
+
// Validate chunk summary counts per section
|
|
38
|
+
for (let i = 0; i < sections.length; i++) {
|
|
39
|
+
const expectedChunks = cached.sections[i].chunks.length;
|
|
40
|
+
const providedSummaries = sections[i].chunkSummaries.length;
|
|
41
|
+
if (providedSummaries !== expectedChunks) {
|
|
42
|
+
throw new Error(`Chunk count mismatch in section "${sections[i].title}": ` +
|
|
43
|
+
`model provided ${providedSummaries} chunk summaries ` +
|
|
44
|
+
`but the section has ${expectedChunks} chunks.`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const { filename, mimeType } = cached;
|
|
48
|
+
const now = new Date().toISOString();
|
|
49
|
+
// 2. Collect all texts that need embedding in a flat array.
|
|
50
|
+
const textsToEmbed = [];
|
|
51
|
+
// Document-level summary
|
|
52
|
+
textsToEmbed.push(documentSummary);
|
|
53
|
+
const docEmbedIdx = 0;
|
|
54
|
+
// Section-level summaries
|
|
55
|
+
const sectionEmbedIndices = [];
|
|
56
|
+
for (const section of sections) {
|
|
57
|
+
sectionEmbedIndices.push(textsToEmbed.length);
|
|
58
|
+
textsToEmbed.push(section.summary);
|
|
59
|
+
}
|
|
60
|
+
// Chunk-level summaries
|
|
61
|
+
const chunkEmbedIndices = [];
|
|
62
|
+
for (let si = 0; si < sections.length; si++) {
|
|
63
|
+
for (let ci = 0; ci < sections[si].chunkSummaries.length; ci++) {
|
|
64
|
+
chunkEmbedIndices.push({
|
|
65
|
+
sectionIdx: si,
|
|
66
|
+
chunkIdx: ci,
|
|
67
|
+
embedIdx: textsToEmbed.length,
|
|
68
|
+
});
|
|
69
|
+
textsToEmbed.push(sections[si].chunkSummaries[ci]);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// 3. Batch embed all summaries in a single Ollama call.
|
|
73
|
+
log("embedding", `${textsToEmbed.length} texts`);
|
|
74
|
+
const embeddings = await embedBatch(textsToEmbed);
|
|
75
|
+
log("embedded", `${embeddings.length} vectors`);
|
|
76
|
+
// 4. Write nodes to Neo4j.
|
|
77
|
+
log("neo4j-write", "starting");
|
|
78
|
+
const session = getSession();
|
|
79
|
+
let documentNodeId = "";
|
|
80
|
+
let totalChunks = 0;
|
|
81
|
+
let entityLinks = 0;
|
|
82
|
+
try {
|
|
83
|
+
// 4a. Create KnowledgeDocument node
|
|
84
|
+
// Build optional SET clauses for web-sourced properties.
|
|
85
|
+
// When sourceUrl/sourceType/keywords are undefined (file uploads),
|
|
86
|
+
// the corresponding SET lines are omitted — existing values preserved on re-ingest.
|
|
87
|
+
const optionalSets = [];
|
|
88
|
+
const optionalParams = {};
|
|
89
|
+
if (sourceUrl !== undefined) {
|
|
90
|
+
optionalSets.push("d.sourceUrl = $sourceUrl");
|
|
91
|
+
optionalParams.sourceUrl = sourceUrl;
|
|
92
|
+
}
|
|
93
|
+
if (sourceType !== undefined) {
|
|
94
|
+
optionalSets.push("d.sourceType = $sourceType");
|
|
95
|
+
optionalParams.sourceType = sourceType;
|
|
96
|
+
}
|
|
97
|
+
if (keywords !== undefined) {
|
|
98
|
+
optionalSets.push("d.keywords = $keywords");
|
|
99
|
+
optionalParams.keywords = keywords;
|
|
100
|
+
}
|
|
101
|
+
const optionalSetClause = optionalSets.length > 0
|
|
102
|
+
? ", " + optionalSets.join(", ")
|
|
103
|
+
: "";
|
|
104
|
+
const docResult = await session.run(`MERGE (d:KnowledgeDocument { attachmentId: $attachmentId })
|
|
105
|
+
SET d.accountId = $accountId,
|
|
106
|
+
d.name = $filename,
|
|
107
|
+
d.encodingFormat = $mimeType,
|
|
108
|
+
d.summary = $documentSummary,
|
|
109
|
+
d.sectionCount = $sectionCount,
|
|
110
|
+
d.scope = $scope,
|
|
111
|
+
d.embedding = $embedding,
|
|
112
|
+
d.createdAt = $createdAt,
|
|
113
|
+
d.updatedAt = $updatedAt
|
|
114
|
+
${optionalSetClause}
|
|
115
|
+
RETURN elementId(d) AS nodeId`, {
|
|
116
|
+
attachmentId,
|
|
117
|
+
accountId,
|
|
118
|
+
filename,
|
|
119
|
+
mimeType,
|
|
120
|
+
documentSummary,
|
|
121
|
+
sectionCount: sections.length,
|
|
122
|
+
scope,
|
|
123
|
+
embedding: embeddings[docEmbedIdx],
|
|
124
|
+
createdAt: now,
|
|
125
|
+
updatedAt: now,
|
|
126
|
+
...optionalParams,
|
|
127
|
+
});
|
|
128
|
+
documentNodeId = docResult.records[0].get("nodeId");
|
|
129
|
+
// 4a-cleanup. Remove stale children before re-creating.
|
|
130
|
+
// On first ingestion the queries return nothing and the DELETEs are no-ops.
|
|
131
|
+
// Also clear any soft-delete marker on the document itself (re-ingestion revives).
|
|
132
|
+
const cleanup = await deleteDocumentChildren(attachmentId, session);
|
|
133
|
+
if (cleanup.sections > 0 || cleanup.chunks > 0 || cleanup.references > 0) {
|
|
134
|
+
log("cleanup", `deleted ${cleanup.sections} sections, ${cleanup.chunks} chunks, ${cleanup.references} references`);
|
|
135
|
+
}
|
|
136
|
+
// Clear deletedAt if the document was previously soft-deleted
|
|
137
|
+
await session.run(`MATCH (d:KnowledgeDocument { attachmentId: $attachmentId })
|
|
138
|
+
WHERE d.deletedAt IS NOT NULL
|
|
139
|
+
REMOVE d.deletedAt`, { attachmentId });
|
|
140
|
+
// 4b. Create Section nodes and link HAS_SECTION
|
|
141
|
+
const sectionNodeIds = [];
|
|
142
|
+
for (let si = 0; si < sections.length; si++) {
|
|
143
|
+
const section = sections[si];
|
|
144
|
+
const sectionResult = await session.run(`CREATE (s:Section {
|
|
145
|
+
accountId: $accountId,
|
|
146
|
+
title: $title,
|
|
147
|
+
summary: $summary,
|
|
148
|
+
position: $position,
|
|
149
|
+
scope: $scope,
|
|
150
|
+
embedding: $embedding,
|
|
151
|
+
createdAt: $createdAt,
|
|
152
|
+
updatedAt: $updatedAt
|
|
153
|
+
})
|
|
154
|
+
RETURN elementId(s) AS nodeId`, {
|
|
155
|
+
accountId,
|
|
156
|
+
title: section.title,
|
|
157
|
+
summary: section.summary,
|
|
158
|
+
position: si,
|
|
159
|
+
scope,
|
|
160
|
+
embedding: embeddings[sectionEmbedIndices[si]],
|
|
161
|
+
createdAt: now,
|
|
162
|
+
updatedAt: now,
|
|
163
|
+
});
|
|
164
|
+
const sectionNodeId = sectionResult.records[0].get("nodeId");
|
|
165
|
+
sectionNodeIds.push(sectionNodeId);
|
|
166
|
+
// Link KnowledgeDocument -[HAS_SECTION]-> Section
|
|
167
|
+
await session.run(`MATCH (d), (s)
|
|
168
|
+
WHERE elementId(d) = $docId AND elementId(s) = $sectionId
|
|
169
|
+
CREATE (d)-[:HAS_SECTION]->(s)`, { docId: documentNodeId, sectionId: sectionNodeId });
|
|
170
|
+
}
|
|
171
|
+
// 4c. Create Chunk nodes and link HAS_CHUNK — content from cache
|
|
172
|
+
for (const { sectionIdx, chunkIdx, embedIdx } of chunkEmbedIndices) {
|
|
173
|
+
const cachedChunk = cached.sections[sectionIdx].chunks[chunkIdx];
|
|
174
|
+
const chunkSummary = sections[sectionIdx].chunkSummaries[chunkIdx];
|
|
175
|
+
const chunkResult = await session.run(`CREATE (c:Chunk {
|
|
176
|
+
accountId: $accountId,
|
|
177
|
+
summary: $summary,
|
|
178
|
+
content: $content,
|
|
179
|
+
position: $position,
|
|
180
|
+
scope: $scope,
|
|
181
|
+
embedding: $embedding,
|
|
182
|
+
createdAt: $createdAt,
|
|
183
|
+
updatedAt: $updatedAt
|
|
184
|
+
})
|
|
185
|
+
RETURN elementId(c) AS nodeId`, {
|
|
186
|
+
accountId,
|
|
187
|
+
summary: chunkSummary,
|
|
188
|
+
content: cachedChunk.content,
|
|
189
|
+
position: chunkIdx,
|
|
190
|
+
scope,
|
|
191
|
+
embedding: embeddings[embedIdx],
|
|
192
|
+
createdAt: now,
|
|
193
|
+
updatedAt: now,
|
|
194
|
+
});
|
|
195
|
+
const chunkNodeId = chunkResult.records[0].get("nodeId");
|
|
196
|
+
totalChunks++;
|
|
197
|
+
// Link Section -[HAS_CHUNK]-> Chunk
|
|
198
|
+
await session.run(`MATCH (s), (c)
|
|
199
|
+
WHERE elementId(s) = $sectionId AND elementId(c) = $chunkId
|
|
200
|
+
CREATE (s)-[:HAS_CHUNK]->(c)`, { sectionId: sectionNodeIds[sectionIdx], chunkId: chunkNodeId });
|
|
201
|
+
}
|
|
202
|
+
// 4d. Create REFERENCES links to entities
|
|
203
|
+
if (entities && entities.length > 0) {
|
|
204
|
+
for (const entity of entities) {
|
|
205
|
+
try {
|
|
206
|
+
await session.run(`MATCH (d), (e)
|
|
207
|
+
WHERE elementId(d) = $docId AND elementId(e) = $entityId
|
|
208
|
+
MERGE (d)-[:REFERENCES]->(e)`, { docId: documentNodeId, entityId: entity.nodeId });
|
|
209
|
+
entityLinks++;
|
|
210
|
+
}
|
|
211
|
+
catch {
|
|
212
|
+
// Entity node may have been deleted — skip silently, log via caller
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
log("neo4j-done", `doc=${documentNodeId.slice(0, 12)} sections=${sections.length} chunks=${totalChunks} entityLinks=${entityLinks}`);
|
|
217
|
+
return {
|
|
218
|
+
documentNodeId,
|
|
219
|
+
sectionCount: sections.length,
|
|
220
|
+
chunkCount: totalChunks,
|
|
221
|
+
entityLinks,
|
|
222
|
+
documentSummary,
|
|
223
|
+
keywords,
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
finally {
|
|
227
|
+
// Evict cache entry — content is now persisted in Neo4j
|
|
228
|
+
extractCache.delete(attachmentId);
|
|
229
|
+
await session.close();
|
|
230
|
+
log("complete");
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=memory-ingest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-ingest.js","sourceRoot":"","sources":["../../src/tools/memory-ingest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAyDtE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,MAAoB;IACrD,MAAM,EACJ,SAAS,EACT,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,EAAE,WAAW,EACrB,YAAY,EAAE,eAAe,GAC9B,GAAG,MAAM,CAAC;IAEX,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,oFAAoF,CAAC,CAAC;IACxG,CAAC;IAED,6EAA6E;IAC7E,sEAAsE;IACtE,MAAM,cAAc,GAAG,CAAC,GAAa,EAAE,EAAE,CACvC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CA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M;YAC7B,UAAU,EAAE,WAAW;YACvB,WAAW;YACX,eAAe;YACf,QAAQ;SACT,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,wDAAwD;QACxD,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAClC,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;QACtB,GAAG,CAAC,UAAU,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AttachmentEntry {
|
|
2
|
+
attachmentId: string;
|
|
3
|
+
filename: string;
|
|
4
|
+
mimeType: string;
|
|
5
|
+
sizeBytes: number;
|
|
6
|
+
storedAt: string;
|
|
7
|
+
ingested: boolean;
|
|
8
|
+
softDeleted: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ListResult {
|
|
11
|
+
entries: AttachmentEntry[];
|
|
12
|
+
totalFiles: number;
|
|
13
|
+
ingestedCount: number;
|
|
14
|
+
skippedCount: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function memoryListAttachments(accountId: string): Promise<ListResult>;
|
|
17
|
+
//# sourceMappingURL=memory-list-attachments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-list-attachments.d.ts","sourceRoot":"","sources":["../../src/tools/memory-list-attachments.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAsB,qBAAqB,CACzC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,CAwGrB"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { readdir, readFile } from "node:fs/promises";
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
|
+
import { getSession } from "../lib/neo4j.js";
|
|
5
|
+
import { ATTACHMENTS_ROOT, } from "../lib/attachments.js";
|
|
6
|
+
export async function memoryListAttachments(accountId) {
|
|
7
|
+
const t0 = Date.now();
|
|
8
|
+
const log = (stage, detail) => console.error(`[memory-list-attachments] [${accountId.slice(0, 8)}] ${stage}${detail ? ` — ${detail}` : ""} (${Date.now() - t0}ms)`);
|
|
9
|
+
log("start");
|
|
10
|
+
const accountDir = resolve(ATTACHMENTS_ROOT, accountId);
|
|
11
|
+
if (!existsSync(accountDir)) {
|
|
12
|
+
log("empty", "no attachments directory");
|
|
13
|
+
return { entries: [], totalFiles: 0, ingestedCount: 0, skippedCount: 0 };
|
|
14
|
+
}
|
|
15
|
+
// Read all attachment subdirectories
|
|
16
|
+
const subdirs = await readdir(accountDir);
|
|
17
|
+
const entries = [];
|
|
18
|
+
let skippedCount = 0;
|
|
19
|
+
for (const subdir of subdirs) {
|
|
20
|
+
const metaPath = resolve(accountDir, subdir, `${subdir}.meta.json`);
|
|
21
|
+
if (!existsSync(metaPath)) {
|
|
22
|
+
skippedCount++;
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
const raw = await readFile(metaPath, "utf-8");
|
|
27
|
+
const meta = JSON.parse(raw);
|
|
28
|
+
entries.push({
|
|
29
|
+
attachmentId: meta.attachmentId,
|
|
30
|
+
filename: meta.filename,
|
|
31
|
+
mimeType: meta.mimeType,
|
|
32
|
+
sizeBytes: meta.sizeBytes,
|
|
33
|
+
storedAt: meta.storedAt,
|
|
34
|
+
ingested: false,
|
|
35
|
+
softDeleted: false,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
log("skip", `corrupt meta.json for ${subdir}`);
|
|
40
|
+
skippedCount++;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (entries.length === 0) {
|
|
44
|
+
log("empty", "no valid meta.json files found");
|
|
45
|
+
return { entries, totalFiles: 0, ingestedCount: 0, skippedCount };
|
|
46
|
+
}
|
|
47
|
+
// Cross-reference with Neo4j for ingestion status
|
|
48
|
+
const session = getSession();
|
|
49
|
+
try {
|
|
50
|
+
const attachmentIds = entries.map((e) => e.attachmentId);
|
|
51
|
+
const result = await session.run(`MATCH (k:KnowledgeDocument { accountId: $accountId })
|
|
52
|
+
WHERE k.attachmentId IN $attachmentIds
|
|
53
|
+
RETURN k.attachmentId AS aid, k.deletedAt AS deletedAt`, { accountId, attachmentIds });
|
|
54
|
+
const ingestionMap = new Map();
|
|
55
|
+
for (const record of result.records) {
|
|
56
|
+
const aid = record.get("aid");
|
|
57
|
+
const deletedAt = record.get("deletedAt");
|
|
58
|
+
ingestionMap.set(aid, {
|
|
59
|
+
ingested: true,
|
|
60
|
+
softDeleted: deletedAt != null,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
let ingestedCount = 0;
|
|
64
|
+
for (const entry of entries) {
|
|
65
|
+
const status = ingestionMap.get(entry.attachmentId);
|
|
66
|
+
if (status) {
|
|
67
|
+
entry.ingested = status.ingested;
|
|
68
|
+
entry.softDeleted = status.softDeleted;
|
|
69
|
+
ingestedCount++;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// Sort by storedAt descending (newest first)
|
|
73
|
+
entries.sort((a, b) => new Date(b.storedAt).getTime() - new Date(a.storedAt).getTime());
|
|
74
|
+
log("done", `${entries.length} files, ${ingestedCount} ingested, ${skippedCount} skipped`);
|
|
75
|
+
return {
|
|
76
|
+
entries,
|
|
77
|
+
totalFiles: entries.length,
|
|
78
|
+
ingestedCount,
|
|
79
|
+
skippedCount,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
finally {
|
|
83
|
+
await session.close();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=memory-list-attachments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-list-attachments.js","sourceRoot":"","sources":["../../src/tools/memory-list-attachments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC;AA6B/B,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,SAAiB;IAEjB,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACtB,MAAM,GAAG,GAAG,CAAC,KAAa,EAAE,MAAe,EAAE,EAAE,CAC7C,OAAO,CAAC,KAAK,CACX,8BAA8B,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CACtH,CAAC;IAEJ,GAAG,CAAC,OAAO,CAAC,CAAC;IAEb,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IACxD,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC5B,GAAG,CAAC,OAAO,EAAE,0BAA0B,CAAC,CAAC;QACzC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,YAAY,EAAE,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E,CAClE,CAAC;QAEF,GAAG,CACD,MAAM,EACN,GAAG,OAAO,CAAC,MAAM,WAAW,aAAa,cAAc,YAAY,UAAU,CAC9E,CAAC;QAEF,OAAO;YACL,OAAO;YACP,UAAU,EAAE,OAAO,CAAC,MAAM;YAC1B,aAAa;YACb,YAAY;SACb,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ReadResult {
|
|
2
|
+
attachmentId: string;
|
|
3
|
+
filename: string;
|
|
4
|
+
mimeType: string;
|
|
5
|
+
sizeBytes: number;
|
|
6
|
+
storedAt: string;
|
|
7
|
+
content?: string;
|
|
8
|
+
contentNote?: string;
|
|
9
|
+
httpUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function memoryReadAttachment(accountId: string, attachmentId: string): Promise<ReadResult>;
|
|
12
|
+
//# sourceMappingURL=memory-read-attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-read-attachment.d.ts","sourceRoot":"","sources":["../../src/tools/memory-read-attachment.ts"],"names":[],"mappings":"AAsBA,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,UAAU,CAAC,CAsGrB"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { execFile } from "node:child_process";
|
|
3
|
+
import { promisify } from "node:util";
|
|
4
|
+
import { assertUUID, readMeta, findDataFile, } from "../lib/attachments.js";
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// memory-read-attachment — read a stored attachment's content from disk.
|
|
7
|
+
//
|
|
8
|
+
// META.JSON ──▶ MIME CHECK ──▶ READ/EXTRACT ──▶ RETURN
|
|
9
|
+
// │ │
|
|
10
|
+
// ▼ ▼
|
|
11
|
+
// [image?] [text → raw]
|
|
12
|
+
// → metadata [pdf → pdftotext]
|
|
13
|
+
// + URL
|
|
14
|
+
// ---------------------------------------------------------------------------
|
|
15
|
+
const execFileAsync = promisify(execFile);
|
|
16
|
+
export async function memoryReadAttachment(accountId, attachmentId) {
|
|
17
|
+
assertUUID(attachmentId, "attachmentId");
|
|
18
|
+
const t0 = Date.now();
|
|
19
|
+
const tag = attachmentId.slice(0, 8);
|
|
20
|
+
const log = (stage, detail) => console.error(`[memory-read-attachment] [${tag}] ${stage}${detail ? ` — ${detail}` : ""} (${Date.now() - t0}ms)`);
|
|
21
|
+
log("start");
|
|
22
|
+
const meta = await readMeta(accountId, attachmentId);
|
|
23
|
+
if (!meta) {
|
|
24
|
+
throw new Error(`Attachment "${attachmentId}" not found. ` +
|
|
25
|
+
`No metadata file exists for this attachment in this account.`);
|
|
26
|
+
}
|
|
27
|
+
const dataFile = await findDataFile(accountId, attachmentId);
|
|
28
|
+
if (!dataFile) {
|
|
29
|
+
throw new Error(`Attachment "${attachmentId}" metadata exists but the data file is missing.`);
|
|
30
|
+
}
|
|
31
|
+
const { filename, mimeType, sizeBytes, storedAt } = meta;
|
|
32
|
+
// Images: return metadata + URL only (binary content not useful in text response)
|
|
33
|
+
if (mimeType.startsWith("image/")) {
|
|
34
|
+
log("image", `${filename} — metadata only`);
|
|
35
|
+
return {
|
|
36
|
+
attachmentId,
|
|
37
|
+
filename,
|
|
38
|
+
mimeType,
|
|
39
|
+
sizeBytes,
|
|
40
|
+
storedAt,
|
|
41
|
+
contentNote: "Image files are returned as metadata only. " +
|
|
42
|
+
"Use the HTTP URL to view the image in the chat UI.",
|
|
43
|
+
httpUrl: `/api/admin/attachment/${attachmentId}`,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
// Text/markdown: return full content
|
|
47
|
+
if (mimeType === "text/plain" || mimeType === "text/markdown") {
|
|
48
|
+
const content = await readFile(dataFile, "utf-8");
|
|
49
|
+
log("text", `${filename} — ${content.length} chars`);
|
|
50
|
+
return {
|
|
51
|
+
attachmentId,
|
|
52
|
+
filename,
|
|
53
|
+
mimeType,
|
|
54
|
+
sizeBytes,
|
|
55
|
+
storedAt,
|
|
56
|
+
content,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
// PDF: extract text via pdftotext
|
|
60
|
+
if (mimeType === "application/pdf") {
|
|
61
|
+
log("pdf-extract", filename);
|
|
62
|
+
try {
|
|
63
|
+
const { stdout } = await execFileAsync("pdftotext", [dataFile, "-"], {
|
|
64
|
+
maxBuffer: 10 * 1024 * 1024,
|
|
65
|
+
});
|
|
66
|
+
const content = stdout.trim();
|
|
67
|
+
log("pdf-extracted", `${content.length} chars`);
|
|
68
|
+
return {
|
|
69
|
+
attachmentId,
|
|
70
|
+
filename,
|
|
71
|
+
mimeType,
|
|
72
|
+
sizeBytes,
|
|
73
|
+
storedAt,
|
|
74
|
+
content,
|
|
75
|
+
contentNote: "This is extracted text from a PDF. " +
|
|
76
|
+
"The original layout and formatting are not preserved.",
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
catch (err) {
|
|
80
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
81
|
+
if (msg.includes("ENOENT") || msg.includes("not found")) {
|
|
82
|
+
throw new Error("pdftotext not found. Install poppler-utils: sudo apt-get install -y poppler-utils");
|
|
83
|
+
}
|
|
84
|
+
throw new Error(`PDF text extraction failed: ${msg}`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// CSV and other types: return metadata only with explanation
|
|
88
|
+
log("unsupported-content", `${filename} (${mimeType}) — metadata only`);
|
|
89
|
+
return {
|
|
90
|
+
attachmentId,
|
|
91
|
+
filename,
|
|
92
|
+
mimeType,
|
|
93
|
+
sizeBytes,
|
|
94
|
+
storedAt,
|
|
95
|
+
contentNote: `Content reading is not supported for MIME type "${mimeType}". ` +
|
|
96
|
+
`Supported for reading: text/plain, text/markdown, application/pdf. ` +
|
|
97
|
+
`Images return metadata and HTTP URL.`,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=memory-read-attachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-read-attachment.js","sourceRoot":"","sources":["../../src/tools/memory-read-attachment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,YAAY,GACb,MAAM,uBAAuB,CAAC;AAE/B,8EAA8E;AAC9E,yEAAyE;AACzE,EAAE;AACF,uDAAuD;AACvD,qCAAqC;AACrC,qCAAqC;AACrC,2CAA2C;AAC3C,gDAAgD;AAChD,sBAAsB;AACtB,8EAA8E;AAE9E,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAa1C,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,SAAiB,EACjB,YAAoB;IAEpB,UAAU,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAEzC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACtB,MAAM,GAAG,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACrC,MAAM,GAAG,GAAG,CAAC,KAAa,EAAE,MAAe,EAAE,EAAE,CAC7C,OAAO,C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QACR,QAAQ;QACR,SAAS;QACT,QAAQ;QACR,WAAW,EAAE,mDAAmD,QAAQ,KAAK;YAC3E,qEAAqE;YACrE,sCAAsC;KACzC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-reindex.d.ts","sourceRoot":"","sources":["../../src/tools/memory-reindex.ts"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC,CA4ExB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { getSession } from "../lib/neo4j.js";
|
|
2
|
+
import { embedBatch } from "../lib/embeddings.js";
|
|
3
|
+
export async function memoryReindex(accountId) {
|
|
4
|
+
const session = getSession();
|
|
5
|
+
const batchSize = 50;
|
|
6
|
+
let nodesProcessed = 0;
|
|
7
|
+
let nodesSkipped = 0;
|
|
8
|
+
const errors = [];
|
|
9
|
+
try {
|
|
10
|
+
// Find all nodes missing embeddings or with stale embeddings
|
|
11
|
+
const countResult = await session.run(`MATCH (n) WHERE n.accountId = $accountId AND n.embedding IS NULL RETURN count(n) AS total`, { accountId });
|
|
12
|
+
const total = countResult.records[0].get("total").toNumber();
|
|
13
|
+
if (total === 0) {
|
|
14
|
+
return { nodesProcessed: 0, nodesSkipped: 0, errors: [] };
|
|
15
|
+
}
|
|
16
|
+
// Process in batches
|
|
17
|
+
let offset = 0;
|
|
18
|
+
while (offset < total) {
|
|
19
|
+
const batchResult = await session.run(`MATCH (n)
|
|
20
|
+
WHERE n.accountId = $accountId AND n.embedding IS NULL
|
|
21
|
+
RETURN elementId(n) AS nodeId, labels(n) AS nodeLabels, properties(n) AS props
|
|
22
|
+
SKIP $offset LIMIT $batchSize`, { accountId, offset, batchSize });
|
|
23
|
+
if (batchResult.records.length === 0)
|
|
24
|
+
break;
|
|
25
|
+
const texts = [];
|
|
26
|
+
const nodeIds = [];
|
|
27
|
+
for (const record of batchResult.records) {
|
|
28
|
+
const nodeId = record.get("nodeId");
|
|
29
|
+
const labels = record.get("nodeLabels");
|
|
30
|
+
const props = record.get("props");
|
|
31
|
+
const text = buildTextForEmbedding(labels, props);
|
|
32
|
+
if (text.length < 5) {
|
|
33
|
+
nodesSkipped++;
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
texts.push(text);
|
|
37
|
+
nodeIds.push(nodeId);
|
|
38
|
+
}
|
|
39
|
+
if (texts.length > 0) {
|
|
40
|
+
try {
|
|
41
|
+
const embeddings = await embedBatch(texts);
|
|
42
|
+
for (let i = 0; i < nodeIds.length; i++) {
|
|
43
|
+
await session.run(`MATCH (n) WHERE elementId(n) = $nodeId SET n.embedding = $embedding`, { nodeId: nodeIds[i], embedding: embeddings[i] });
|
|
44
|
+
}
|
|
45
|
+
nodesProcessed += texts.length;
|
|
46
|
+
}
|
|
47
|
+
catch (err) {
|
|
48
|
+
errors.push(`Batch at offset ${offset}: ${err instanceof Error ? err.message : String(err)}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
offset += batchSize;
|
|
52
|
+
}
|
|
53
|
+
return { nodesProcessed, nodesSkipped, errors };
|
|
54
|
+
}
|
|
55
|
+
finally {
|
|
56
|
+
await session.close();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function buildTextForEmbedding(labels, properties) {
|
|
60
|
+
const parts = [`[${labels.join(", ")}]`];
|
|
61
|
+
for (const [key, value] of Object.entries(properties)) {
|
|
62
|
+
if (value !== null &&
|
|
63
|
+
value !== undefined &&
|
|
64
|
+
key !== "embedding" &&
|
|
65
|
+
key !== "accountId") {
|
|
66
|
+
parts.push(`${key}: ${String(value)}`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return parts.join(" | ");
|
|
70
|
+
}
|
|
71
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,CAAC;YAED,MAAM,IAAI,SAAS,CAAC;QACtB,CAAC;QAED,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC;IAClD,CAAC;YAAS,CAAC;QACT,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;AACH,CAAC;AAED,SAAS,qBAAqB,CAC5B,MAAgB,EAChB,UAAmC;IAEnC,MAAM,KAAK,GAAa,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEnD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QACtD,IACE,KAAK,KAAK,IAAI;YACd,KAAK,KAAK,SAAS;YACnB,GAAG,KAAK,WAAW;YACnB,GAAG,KAAK,WAAW,EACnB,CAAC;YACD,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface RenameParams {
|
|
2
|
+
accountId: string;
|
|
3
|
+
attachmentId: string;
|
|
4
|
+
newFilename: string;
|
|
5
|
+
}
|
|
6
|
+
export interface RenameResult {
|
|
7
|
+
attachmentId: string;
|
|
8
|
+
oldFilename: string;
|
|
9
|
+
newFilename: string;
|
|
10
|
+
graphUpdated: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function memoryRenameAttachment(params: RenameParams): Promise<RenameResult>;
|
|
13
|
+
//# sourceMappingURL=memory-rename-attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-rename-attachment.d.ts","sourceRoot":"","sources":["../../src/tools/memory-rename-attachment.ts"],"names":[],"mappings":"AAwBA,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,YAAY,CAAC,CA6EvB"}
|