@rubytech/create-maxy-code 0.1.49 → 0.1.57
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/__tests__/platform-port-stamp.test.js +24 -0
- package/dist/index.js +5 -2
- package/dist/port-resolution.js +2 -0
- package/package.json +1 -1
- package/payload/platform/lib/require-port-env/dist/index.d.ts +31 -0
- package/payload/platform/lib/require-port-env/dist/index.d.ts.map +1 -0
- package/payload/platform/lib/require-port-env/dist/index.js +52 -0
- package/payload/platform/lib/require-port-env/dist/index.js.map +1 -0
- package/payload/platform/lib/require-port-env/src/index.ts +56 -0
- package/payload/platform/lib/require-port-env/tsconfig.json +8 -0
- package/payload/platform/package-lock.json +0 -1
- package/payload/platform/package.json +2 -3
- package/payload/platform/plugins/admin/PLUGIN.md +16 -3
- package/payload/platform/plugins/admin/hooks/__tests__/turn-completed-graph-write.test.sh +184 -146
- package/payload/platform/plugins/admin/hooks/turn-completed-graph-write.sh +186 -112
- package/payload/platform/plugins/admin/mcp/dist/index.js +20 -12
- package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/brochures/PLUGIN.md +2 -0
- package/payload/platform/plugins/brochures/skills/property-market-report/SKILL.md +100 -0
- package/payload/platform/plugins/brochures/skills/property-market-report/references/render.py +267 -0
- package/payload/platform/plugins/brochures/skills/property-market-report/references/template.html +266 -0
- package/payload/platform/plugins/brochures/skills/property-socials/SKILL.md +141 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/lib/setup-orchestrator.d.ts.map +1 -1
- package/payload/platform/plugins/cloudflare/mcp/dist/lib/setup-orchestrator.js +2 -1
- package/payload/platform/plugins/cloudflare/mcp/dist/lib/setup-orchestrator.js.map +1 -1
- package/payload/platform/plugins/docs/PLUGIN.md +3 -1
- package/payload/platform/plugins/docs/references/admin-session.md +40 -0
- package/payload/platform/plugins/docs/references/deployment.md +25 -0
- package/payload/platform/plugins/docs/references/internals.md +30 -0
- package/payload/platform/plugins/docs/references/platform.md +3 -1
- package/payload/platform/plugins/docs/references/plugins-guide.md +1 -1
- package/payload/platform/plugins/docs/references/troubleshooting.md +1 -1
- package/payload/platform/plugins/email/mcp/dist/lib/claude-bridge.d.ts.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/lib/claude-bridge.js +2 -1
- package/payload/platform/plugins/email/mcp/dist/lib/claude-bridge.js.map +1 -1
- package/payload/platform/plugins/loop/PLUGIN.md +24 -0
- package/payload/platform/plugins/loop/mcp/src/__tests__/plugin-md-time-doctrine.test.ts +132 -0
- package/payload/platform/plugins/memory/.claude-plugin/plugin.json +1 -1
- package/payload/platform/plugins/memory/PLUGIN.md +1 -1
- package/payload/platform/plugins/memory/mcp/dist/index.js +6 -1
- package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-search-fields.test.d.ts +2 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-search-fields.test.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-search-fields.test.js +107 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-search-fields.test.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-search.d.ts +4 -2
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-search.d.ts.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-search.js +22 -13
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-search.js.map +1 -1
- package/payload/platform/plugins/memory/references/graph-primitives.md +42 -0
- package/payload/platform/plugins/memory/skills/concept-synthesis/SKILL.md +1 -1
- package/payload/platform/plugins/memory/skills/conversation-archive-enrich/SKILL.md +2 -2
- package/payload/platform/plugins/memory/skills/document-ingest/SKILL.md +1 -1
- package/payload/platform/plugins/property-data/.claude-plugin/plugin.json +17 -0
- package/payload/platform/plugins/property-data/PLUGIN.md +100 -0
- package/payload/platform/plugins/property-data/mcp/dist/index.d.ts +2 -0
- package/payload/platform/plugins/property-data/mcp/dist/index.d.ts.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/index.js +153 -0
- package/payload/platform/plugins/property-data/mcp/dist/index.js.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/crypto.d.ts +3 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/crypto.d.ts.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/crypto.js +72 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/crypto.js.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/neo4j.js +38 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/propertydata-api.d.ts +29 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/propertydata-api.d.ts.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/propertydata-api.js +112 -0
- package/payload/platform/plugins/property-data/mcp/dist/lib/propertydata-api.js.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/endpoints.d.ts +14 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/endpoints.d.ts.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/endpoints.js +20 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/endpoints.js.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-deregister.d.ts +4 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-deregister.d.ts.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-deregister.js +19 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-deregister.js.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-list.d.ts +4 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-list.d.ts.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-list.js +10 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-list.js.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-register.d.ts +5 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-register.d.ts.map +1 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-register.js +43 -0
- package/payload/platform/plugins/property-data/mcp/dist/tools/key-register.js.map +1 -0
- package/payload/platform/plugins/property-data/mcp/package-lock.json +2566 -0
- package/payload/platform/plugins/property-data/mcp/package.json +21 -0
- package/payload/platform/plugins/property-data/mcp/src/__tests__/key-roundtrip.test.ts +107 -0
- package/payload/platform/plugins/property-data/mcp/src/__tests__/propertydata-api.test.ts +184 -0
- package/payload/platform/plugins/property-data/mcp/src/__tests__/schema-parity.test.ts +48 -0
- package/payload/platform/plugins/property-data/mcp/src/index.ts +249 -0
- package/payload/platform/plugins/property-data/mcp/src/lib/crypto.ts +79 -0
- package/payload/platform/plugins/property-data/mcp/src/lib/neo4j.ts +47 -0
- package/payload/platform/plugins/property-data/mcp/src/lib/propertydata-api.ts +135 -0
- package/payload/platform/plugins/property-data/mcp/src/tools/endpoints.ts +27 -0
- package/payload/platform/plugins/property-data/mcp/src/tools/key-deregister.ts +21 -0
- package/payload/platform/plugins/property-data/mcp/src/tools/key-list.ts +10 -0
- package/payload/platform/plugins/property-data/mcp/src/tools/key-register.ts +58 -0
- package/payload/platform/plugins/property-data/mcp/tsconfig.json +20 -0
- package/payload/platform/plugins/property-data/mcp/vitest.config.ts +8 -0
- package/payload/platform/plugins/property-data/skills/property-data/SKILL.md +58 -0
- package/payload/platform/plugins/tasks/mcp/dist/index.js +1 -2
- package/payload/platform/plugins/tasks/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.d.ts.map +1 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.js +3 -2
- package/payload/platform/plugins/tasks/mcp/dist/tools/session-name.js.map +1 -1
- package/payload/platform/plugins/waitlist/PLUGIN.md +6 -8
- package/payload/platform/plugins/waitlist/mcp/dist/index.js +33 -0
- package/payload/platform/plugins/waitlist/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/waitlist/mcp/dist/lib/admin-model.d.ts +16 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/admin-model.d.ts.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/admin-model.js +58 -0
- package/payload/platform/plugins/waitlist/mcp/dist/lib/admin-model.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-extract.d.ts +34 -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 +129 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-extract.js.map +1 -0
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-heal.d.ts +12 -18
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-heal.d.ts.map +1 -1
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-heal.js +89 -86
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-heal.js.map +1 -1
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.d.ts.map +1 -1
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.js +15 -53
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.js.map +1 -1
- package/payload/platform/plugins/whatsapp/PLUGIN.md +1 -0
- package/payload/platform/plugins/whatsapp/mcp/dist/index.js +5 -5
- package/payload/platform/plugins/whatsapp/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/workflows/PLUGIN.md +10 -176
- package/payload/platform/plugins/workflows/mcp/dist/index.js +14 -142
- package/payload/platform/plugins/workflows/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.d.ts +1 -88
- package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.d.ts.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.js +0 -86
- package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.js.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/lib/validate-capabilities.d.ts +5 -12
- package/payload/platform/plugins/workflows/mcp/dist/lib/validate-capabilities.d.ts.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/lib/validate-capabilities.js +5 -46
- package/payload/platform/plugins/workflows/mcp/dist/lib/validate-capabilities.js.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-create.d.ts +1 -16
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-create.d.ts.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-create.js +39 -75
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-create.js.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.d.ts +8 -21
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.d.ts.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.js +39 -266
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.js.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-get.d.ts +3 -8
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-get.d.ts.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-get.js +3 -10
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-get.js.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-update.d.ts.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-update.js +38 -86
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-update.js.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-validate.d.ts.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-validate.js +8 -26
- package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-validate.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.js +1 -2
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.js +221 -25
- package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts +39 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js +109 -10
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/reaper.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/reaper.js +11 -0
- package/payload/platform/services/claude-session-manager/dist/reaper.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/session-store.d.ts +21 -0
- package/payload/platform/services/claude-session-manager/dist/session-store.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/session-store.js.map +1 -1
- package/payload/platform/services/claude-session-manager/vitest.config.ts +14 -0
- package/payload/platform/templates/agents/admin/IDENTITY.md +2 -0
- package/payload/platform/templates/agents/admin/SOUL.md +3 -1
- package/payload/premium-plugins/real-agent/BUNDLE.md +5 -3
- package/payload/premium-plugins/real-agent/agents/negotiator.md +1 -1
- package/payload/premium-plugins/real-agent/agents/valuer.md +1 -1
- package/payload/premium-plugins/real-agent/plugins/.claude-plugin/marketplace.json +5 -0
- package/payload/premium-plugins/real-agent/plugins/brochures/PLUGIN.md +2 -0
- package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-market-report/SKILL.md +100 -0
- package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-market-report/references/render.py +267 -0
- package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-market-report/references/template.html +266 -0
- package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-socials/SKILL.md +141 -0
- package/payload/premium-plugins/real-agent/plugins/loop/PLUGIN.md +24 -0
- package/payload/premium-plugins/real-agent/plugins/loop/mcp/src/__tests__/plugin-md-time-doctrine.test.ts +132 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/.claude-plugin/plugin.json +17 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/PLUGIN.md +100 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/index.d.ts +2 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/index.d.ts.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/index.js +153 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/index.js.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/crypto.d.ts +3 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/crypto.d.ts.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/crypto.js +72 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/crypto.js.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/neo4j.d.ts +5 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/neo4j.d.ts.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/neo4j.js +38 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/neo4j.js.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/propertydata-api.d.ts +29 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/propertydata-api.d.ts.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/propertydata-api.js +112 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/lib/propertydata-api.js.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/endpoints.d.ts +14 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/endpoints.d.ts.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/endpoints.js +20 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/endpoints.js.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-deregister.d.ts +4 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-deregister.d.ts.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-deregister.js +19 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-deregister.js.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-list.d.ts +4 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-list.d.ts.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-list.js +10 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-list.js.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-register.d.ts +5 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-register.d.ts.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-register.js +43 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/dist/tools/key-register.js.map +1 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/package-lock.json +2566 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/package.json +21 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/__tests__/key-roundtrip.test.ts +107 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/__tests__/propertydata-api.test.ts +184 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/__tests__/schema-parity.test.ts +48 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/index.ts +249 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/lib/crypto.ts +79 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/lib/neo4j.ts +47 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/lib/propertydata-api.ts +135 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/tools/endpoints.ts +27 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/tools/key-deregister.ts +21 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/tools/key-list.ts +10 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/src/tools/key-register.ts +58 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/tsconfig.json +20 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/mcp/vitest.config.ts +8 -0
- package/payload/premium-plugins/real-agent/plugins/property-data/skills/property-data/SKILL.md +58 -0
- package/payload/server/{chunk-MEGIQYUD.js → chunk-2IKQERHN.js} +33 -5
- package/payload/server/{chunk-XJVJ2B2Q.js → chunk-NPZKH5EC.js} +1 -1
- package/payload/server/{chunk-4P2MPERV.js → chunk-X3Y6ENKA.js} +0 -90
- package/payload/server/{cloudflare-task-tracker-R6MMORFU.js → cloudflare-task-tracker-TL6R364J.js} +2 -2
- package/payload/server/maxy-edge.js +54 -26
- package/payload/server/public/assets/admin-2ZJmzJ_g.js +216 -0
- package/payload/server/public/assets/{architectureDiagram-Q4EWVU46-Ch-JZ1Q0.js → architectureDiagram-Q4EWVU46-DgfgldJT.js} +1 -1
- package/payload/server/public/assets/{blockDiagram-DXYQGD6D-C08tkD4C.js → blockDiagram-DXYQGD6D-agu8GDzA.js} +1 -1
- package/payload/server/public/assets/{brand-DCdOhh-I.css → brand-BDASZqMG.css} +1 -1
- package/payload/server/public/assets/{c4Diagram-AHTNJAMY-IceRdWw3.js → c4Diagram-AHTNJAMY-CmNsUmAe.js} +1 -1
- package/payload/server/public/assets/channel-DXGOX55q.js +1 -0
- package/payload/server/public/assets/{chunk-336JU56O-Cey0rxmH.js → chunk-336JU56O-D9Uts7k9.js} +2 -2
- package/payload/server/public/assets/{chunk-426QAEUC-Dzk8s0or.js → chunk-426QAEUC-D4ABqXMn.js} +1 -1
- package/payload/server/public/assets/{chunk-4TB4RGXK-C10nuKc8.js → chunk-4TB4RGXK-D1KE4OAX.js} +1 -1
- package/payload/server/public/assets/{chunk-5FUZZQ4R-B1B8871D.js → chunk-5FUZZQ4R-CAh0GXe2.js} +1 -1
- package/payload/server/public/assets/{chunk-5PVQY5BW-jvHIkgqP.js → chunk-5PVQY5BW-DBHa6HOv.js} +1 -1
- package/payload/server/public/assets/{chunk-EDXVE4YY-7nDxvXHS.js → chunk-EDXVE4YY-BDC-6mL3.js} +1 -1
- package/payload/server/public/assets/{chunk-ENJZ2VHE-C8lJ1YYn.js → chunk-ENJZ2VHE-CH3uROkW.js} +1 -1
- package/payload/server/public/assets/{chunk-ICPOFSXX-CT1d7veI.js → chunk-ICPOFSXX-BzZf0nAw.js} +1 -1
- package/payload/server/public/assets/{chunk-OYMX7WX6-LTAfwxv0.js → chunk-OYMX7WX6-BrLHrI6O.js} +1 -1
- package/payload/server/public/assets/{chunk-U2HBQHQK-RoGrqrH0.js → chunk-U2HBQHQK-Bw4UkLe_.js} +1 -1
- package/payload/server/public/assets/{chunk-X2U36JSP-D89ZBg3z.js → chunk-X2U36JSP-23xgdk05.js} +1 -1
- package/payload/server/public/assets/{chunk-YZCP3GAM-Cyg122Hf.js → chunk-YZCP3GAM-BA8iGgRa.js} +1 -1
- package/payload/server/public/assets/{chunk-ZZ45TVLE-Dg59YYuG.js → chunk-ZZ45TVLE-B-ol4EgR.js} +1 -1
- package/payload/server/public/assets/classDiagram-6PBFFD2Q-DTuuDxpK.js +1 -0
- package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-CIw8RU0q.js +1 -0
- package/payload/server/public/assets/clone-O4ZyuvYl.js +1 -0
- package/payload/server/public/assets/{dagre-BPzUsxie.js → dagre--kXszEIb.js} +1 -1
- package/payload/server/public/assets/{dagre-KV5264BT-CjDNXqPy.js → dagre-KV5264BT-amN1uU2d.js} +1 -1
- package/payload/server/public/assets/data-DlmoKxmN.js +1 -0
- package/payload/server/public/assets/{device-url-actions-B588ZlnE.js → device-url-actions-CPoz5fqz.js} +1 -1
- package/payload/server/public/assets/{diagram-5BDNPKRD-Bqq0vqWM.js → diagram-5BDNPKRD-Cwizs9tP.js} +1 -1
- package/payload/server/public/assets/{diagram-G4DWMVQ6-DSqocDhm.js → diagram-G4DWMVQ6-BpSu5Uao.js} +1 -1
- package/payload/server/public/assets/{diagram-MMDJMWI5-DZRWgKRL.js → diagram-MMDJMWI5-DiArtkto.js} +1 -1
- package/payload/server/public/assets/{diagram-TYMM5635-DXRm-FXu.js → diagram-TYMM5635-_tygK58Y.js} +1 -1
- package/payload/server/public/assets/{erDiagram-SMLLAGMA-CFVgkUCo.js → erDiagram-SMLLAGMA-CBV6LWYA.js} +1 -1
- package/payload/server/public/assets/{flowDiagram-DWJPFMVM-C82XCt9-.js → flowDiagram-DWJPFMVM-CHZFrtOU.js} +1 -1
- package/payload/server/public/assets/{ganttDiagram-T4ZO3ILL-C4tnImlS.js → ganttDiagram-T4ZO3ILL-B3vKq5ov.js} +1 -1
- package/payload/server/public/assets/{gitGraphDiagram-UUTBAWPF-DXHutP-a.js → gitGraphDiagram-UUTBAWPF-dnJPjbtj.js} +1 -1
- package/payload/server/public/assets/graph-BVvcFSEQ.js +1 -0
- package/payload/server/public/assets/graph-labels-cCvgu38Y.js +1 -0
- package/payload/server/public/assets/{graphlib-BvR5tL62.js → graphlib-CNXtnega.js} +1 -1
- package/payload/server/public/assets/{infoDiagram-42DDH7IO-DgFMqgZy.js → infoDiagram-42DDH7IO-D8DYwVAF.js} +1 -1
- package/payload/server/public/assets/{ishikawaDiagram-UXIWVN3A-_5gmh1-V.js → ishikawaDiagram-UXIWVN3A-CfEVY2Ud.js} +1 -1
- package/payload/server/public/assets/{journeyDiagram-VCZTEJTY-CNfDVgwI.js → journeyDiagram-VCZTEJTY-FmoBq7Kh.js} +1 -1
- package/payload/server/public/assets/{kanban-definition-6JOO6SKY-Djifb_Z6.js → kanban-definition-6JOO6SKY-B-Q9qk99.js} +1 -1
- package/payload/server/public/assets/{line-0fRVrNiw.js → line-DZwbJENP.js} +1 -1
- package/payload/server/public/assets/{mermaid-parser.core-DXA7LKDt.js → mermaid-parser.core-C3ahKykw.js} +1 -1
- package/payload/server/public/assets/{mermaid.core-BCfYtdMJ.js → mermaid.core-B8OFZIE8.js} +3 -3
- package/payload/server/public/assets/{mindmap-definition-QFDTVHPH-sTRvikWi.js → mindmap-definition-QFDTVHPH-CqhkfbWa.js} +1 -1
- package/payload/server/public/assets/{page-nAY64ID7.js → page-BnAxPkmg.js} +1 -1
- package/payload/server/public/assets/{page-DDyny08O.js → page-BnaN3u86.js} +1 -1
- package/payload/server/public/assets/{pieDiagram-DEJITSTG-QLTieded.js → pieDiagram-DEJITSTG-CJqQ6u3-.js} +1 -1
- package/payload/server/public/assets/{public-rUUducAl.js → public-rWe9ADCS.js} +3 -3
- package/payload/server/public/assets/{quadrantDiagram-34T5L4WZ-DOKCcqAZ.js → quadrantDiagram-34T5L4WZ-BtEqOXQM.js} +1 -1
- package/payload/server/public/assets/{requirementDiagram-MS252O5E-BX6Zpq1X.js → requirementDiagram-MS252O5E-DPHWUtE6.js} +1 -1
- package/payload/server/public/assets/{sankeyDiagram-XADWPNL6-B05NdgZX.js → sankeyDiagram-XADWPNL6-FBmc3wHT.js} +1 -1
- package/payload/server/public/assets/{sequenceDiagram-FGHM5R23-CHF8ZdUb.js → sequenceDiagram-FGHM5R23-BMSd2-1M.js} +1 -1
- package/payload/server/public/assets/{stateDiagram-FHFEXIEX-DTAt7Ytz.js → stateDiagram-FHFEXIEX-DqFbU-LT.js} +1 -1
- package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-CXTnsHGq.js +1 -0
- package/payload/server/public/assets/{timeline-definition-GMOUNBTQ-Dzd6X_ei.js → timeline-definition-GMOUNBTQ-DsfvHVK8.js} +1 -1
- package/payload/server/public/assets/{vennDiagram-DHZGUBPP-BAbM4QlQ.js → vennDiagram-DHZGUBPP-kHU05mqC.js} +1 -1
- package/payload/server/public/assets/{wardleyDiagram-NUSXRM2D-CIOXXKJd.js → wardleyDiagram-NUSXRM2D-C696Mez_.js} +1 -1
- package/payload/server/public/assets/{xychartDiagram-5P7HB3ND-oF9sZesS.js → xychartDiagram-5P7HB3ND-yht-JyXJ.js} +1 -1
- package/payload/server/public/data.html +5 -5
- package/payload/server/public/graph.html +5 -5
- package/payload/server/public/index.html +7 -7
- package/payload/server/public/public.html +4 -4
- package/payload/server/server.js +261 -207
- package/payload/server/public/assets/admin-DBuCWSPS.js +0 -216
- package/payload/server/public/assets/channel-8QQB2Zoe.js +0 -1
- package/payload/server/public/assets/classDiagram-6PBFFD2Q-CViZOOjI.js +0 -1
- package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-Dm7eGBqB.js +0 -1
- package/payload/server/public/assets/clone-BC8oes11.js +0 -1
- package/payload/server/public/assets/data-BeblX4m4.js +0 -1
- package/payload/server/public/assets/graph-ZuBiYril.js +0 -1
- package/payload/server/public/assets/graph-labels-CnbJR6cp.js +0 -1
- package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-2bJIW7wn.js +0 -1
- /package/payload/server/public/assets/{brand-Dln107gD.js → brand-BWCtpG7_.js} +0 -0
|
@@ -4,7 +4,7 @@ import type { FsWatcher } from './fs-watcher.js';
|
|
|
4
4
|
import { type OwnerProfileBlock, type DormantPlugin, type ActivePlugin, type SpecialistDomain } from './system-prompt.js';
|
|
5
5
|
import type { HostResolution } from './config.js';
|
|
6
6
|
import type { ToolSurface } from './tool-surface.js';
|
|
7
|
-
export type SpawnFailureReason = 'which-claude-not-found' | 'pty-spawn-failed' | 'pid-file-timeout' | 'host-context-unresolved' | 'identity-unresolved' | 'mcp-config-write-failed';
|
|
7
|
+
export type SpawnFailureReason = 'which-claude-not-found' | 'pty-spawn-failed' | 'pid-file-timeout' | 'host-context-unresolved' | 'identity-unresolved' | 'mcp-config-write-failed' | 'tool-surface-missing' | 'missing-originating-session-id';
|
|
8
8
|
export type SpawnRejectionReason = 'specialist-cap-reached' | 'operator-slots-reserved';
|
|
9
9
|
export interface SpecialistCapRejection {
|
|
10
10
|
kind: 'specialist-cap-reached';
|
|
@@ -76,9 +76,46 @@ export interface SpawnArgs {
|
|
|
76
76
|
specialistDomains?: readonly SpecialistDomain[];
|
|
77
77
|
hidden?: boolean;
|
|
78
78
|
specialist?: string;
|
|
79
|
+
/** Task 129 — operator session ID carrier. Set by the recorder route
|
|
80
|
+
* for every turn-recorder spawn; absent on every other spawn. Task 131
|
|
81
|
+
* promoted this field to the recorder discriminator: any spawn carrying
|
|
82
|
+
* a non-empty `originatingSessionId` is a recorder, regardless of the
|
|
83
|
+
* resolved `senderId` (which now resolves to the operator's accountId
|
|
84
|
+
* for Sidebar-shape parity). */
|
|
85
|
+
originatingSessionId?: string;
|
|
79
86
|
}
|
|
87
|
+
/** Set of MCP tool names a recorder spawn requires to be able to write
|
|
88
|
+
* to the graph. Used by the tool-surface preflight (Task 129). When any
|
|
89
|
+
* of these is absent from the per-spawn `--allowed-tools` set, the spawn
|
|
90
|
+
* is rejected before the PTY starts and `[turn-recorder] tool-surface-missing`
|
|
91
|
+
* is emitted. The list is the database-operator's minimum write surface;
|
|
92
|
+
* if the configured surface drops one of these the recorder cannot
|
|
93
|
+
* perform its single intended action and the operator must be told. */
|
|
94
|
+
export declare const RECORDER_REQUIRED_TOOLS: readonly string[];
|
|
95
|
+
/** Legacy synthetic recorder senderId, retained as the spawn-body marker
|
|
96
|
+
* for the loopback-bypass route. Task 131 retired its use as the recorder
|
|
97
|
+
* discriminator inside the manager; recorder detection now keys on
|
|
98
|
+
* `originatingSessionId` presence. The constant is exported only because
|
|
99
|
+
* a small number of tests still pass it as the spawn senderId for the
|
|
100
|
+
* legacy code paths; new code paths resolve the operator's real
|
|
101
|
+
* accountId via the wrapper. */
|
|
102
|
+
export declare const RECORDER_SENDER_ID = "turn-recorder";
|
|
80
103
|
export type PermissionMode = 'default' | 'acceptEdits' | 'plan' | 'auto';
|
|
81
104
|
export declare const PERMISSION_MODES: readonly PermissionMode[];
|
|
105
|
+
interface McpConfigWriteParams {
|
|
106
|
+
role: Role;
|
|
107
|
+
toolSurface: ToolSurface;
|
|
108
|
+
accountId: string;
|
|
109
|
+
platformRoot: string;
|
|
110
|
+
logDir: string;
|
|
111
|
+
bridgeSuffixHint: string;
|
|
112
|
+
targetDir: string;
|
|
113
|
+
logger: Logger;
|
|
114
|
+
}
|
|
115
|
+
/** Builds the placeholder map for per-spawn `mcp.json` env substitution.
|
|
116
|
+
* Exported for Task 142 unit coverage that asserts `PLATFORM_PORT` and
|
|
117
|
+
* `MAXY_BRAND_PORT` resolve from the manager process env. */
|
|
118
|
+
export declare function buildMcpPlaceholders(p: Pick<McpConfigWriteParams, 'platformRoot' | 'accountId' | 'bridgeSuffixHint' | 'logDir'>, env?: NodeJS.ProcessEnv): Record<string, string>;
|
|
82
119
|
export declare function spawnClaudeSession(deps: SpawnDeps, args: SpawnArgs): Promise<SpawnResult>;
|
|
83
120
|
export interface StopDeps {
|
|
84
121
|
store: SessionStore;
|
|
@@ -90,4 +127,5 @@ export interface StopDeps {
|
|
|
90
127
|
export declare function stopSession(deps: StopDeps, sessionId: string): Promise<{
|
|
91
128
|
existed: boolean;
|
|
92
129
|
}>;
|
|
130
|
+
export {};
|
|
93
131
|
//# sourceMappingURL=pty-spawner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pty-spawner.d.ts","sourceRoot":"","sources":["../src/pty-spawner.ts"],"names":[],"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BxB;AAoGD,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAoR/F;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,YAAY,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;0EAC0E;AAC1E,wBAAsB,WAAW,CAC/B,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAsB/B"}
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
// which-claude-not-found, pty-spawn-failed, pid-file-timeout,
|
|
28
28
|
// host-context-unresolved, identity-unresolved, mcp-config-write-failed.
|
|
29
29
|
import { mkdirSync, writeFileSync, existsSync } from 'node:fs';
|
|
30
|
+
import { randomUUID } from 'node:crypto';
|
|
30
31
|
import { tmpdir } from 'node:os';
|
|
31
32
|
import { dirname, join } from 'node:path';
|
|
32
33
|
import { startUrlCapture } from './url-capture.js';
|
|
@@ -57,12 +58,61 @@ function formatTailForLog(tail) {
|
|
|
57
58
|
}
|
|
58
59
|
import { composeAppendSystemPrompt, } from './system-prompt.js';
|
|
59
60
|
import { discoverHooks } from './hooks-discovery.js';
|
|
61
|
+
/** Set of MCP tool names a recorder spawn requires to be able to write
|
|
62
|
+
* to the graph. Used by the tool-surface preflight (Task 129). When any
|
|
63
|
+
* of these is absent from the per-spawn `--allowed-tools` set, the spawn
|
|
64
|
+
* is rejected before the PTY starts and `[turn-recorder] tool-surface-missing`
|
|
65
|
+
* is emitted. The list is the database-operator's minimum write surface;
|
|
66
|
+
* if the configured surface drops one of these the recorder cannot
|
|
67
|
+
* perform its single intended action and the operator must be told. */
|
|
68
|
+
export const RECORDER_REQUIRED_TOOLS = [
|
|
69
|
+
'mcp__memory__create_entities',
|
|
70
|
+
'mcp__memory__create_relations',
|
|
71
|
+
'mcp__memory__add_observations',
|
|
72
|
+
];
|
|
73
|
+
/** Legacy synthetic recorder senderId, retained as the spawn-body marker
|
|
74
|
+
* for the loopback-bypass route. Task 131 retired its use as the recorder
|
|
75
|
+
* discriminator inside the manager; recorder detection now keys on
|
|
76
|
+
* `originatingSessionId` presence. The constant is exported only because
|
|
77
|
+
* a small number of tests still pass it as the spawn senderId for the
|
|
78
|
+
* legacy code paths; new code paths resolve the operator's real
|
|
79
|
+
* accountId via the wrapper. */
|
|
80
|
+
export const RECORDER_SENDER_ID = 'turn-recorder';
|
|
81
|
+
/** Task 131 — single recorder discriminator. A spawn is a recorder iff
|
|
82
|
+
* its `originatingSessionId` is a non-empty string. The senderId no
|
|
83
|
+
* longer signals recorder-ness, because the wrapper resolves the
|
|
84
|
+
* operator's accountId for Sidebar-shape parity. */
|
|
85
|
+
function isRecorderSpawn(args) {
|
|
86
|
+
return typeof args.originatingSessionId === 'string' && args.originatingSessionId.length > 0;
|
|
87
|
+
}
|
|
60
88
|
export const PERMISSION_MODES = ['default', 'acceptEdits', 'plan', 'auto'];
|
|
61
89
|
function expandPlaceholders(raw, vars) {
|
|
62
90
|
return raw.replace(/\$\{([A-Z_][A-Z0-9_]*)\}/g, (m, name) => {
|
|
63
91
|
return Object.prototype.hasOwnProperty.call(vars, name) ? vars[name] : m;
|
|
64
92
|
});
|
|
65
93
|
}
|
|
94
|
+
/** Builds the placeholder map for per-spawn `mcp.json` env substitution.
|
|
95
|
+
* Exported for Task 142 unit coverage that asserts `PLATFORM_PORT` and
|
|
96
|
+
* `MAXY_BRAND_PORT` resolve from the manager process env. */
|
|
97
|
+
export function buildMcpPlaceholders(p, env = process.env) {
|
|
98
|
+
const platformPort = env.PLATFORM_PORT;
|
|
99
|
+
const maxyBrandPort = env.MAXY_BRAND_PORT;
|
|
100
|
+
if (!platformPort) {
|
|
101
|
+
throw new Error('[claude-session-manager] PLATFORM_PORT not set — manager unit must stamp it (Task 142)');
|
|
102
|
+
}
|
|
103
|
+
if (!maxyBrandPort) {
|
|
104
|
+
throw new Error('[claude-session-manager] MAXY_BRAND_PORT not set — manager unit must stamp it');
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
PLATFORM_ROOT: p.platformRoot,
|
|
108
|
+
PREMIUM_PLUGINS_ROOT: join(dirname(p.platformRoot), 'premium-plugins'),
|
|
109
|
+
ACCOUNT_ID: p.accountId,
|
|
110
|
+
SESSION_ID: p.bridgeSuffixHint,
|
|
111
|
+
LOG_DIR: p.logDir,
|
|
112
|
+
PLATFORM_PORT: platformPort,
|
|
113
|
+
MAXY_BRAND_PORT: maxyBrandPort,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
66
116
|
function writePerSpawnMcpConfig(p) {
|
|
67
117
|
const serversForRole = [];
|
|
68
118
|
if (p.role === 'admin') {
|
|
@@ -81,13 +131,12 @@ function writePerSpawnMcpConfig(p) {
|
|
|
81
131
|
serversForRole.push([name, desc]);
|
|
82
132
|
}
|
|
83
133
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
};
|
|
134
|
+
// Task 142 — placeholder set includes PLATFORM_PORT (internal loopback,
|
|
135
|
+
// == MAXY_UI_INTERNAL_PORT) and MAXY_BRAND_PORT (brand-public). Both
|
|
136
|
+
// are stamped on the manager systemd unit by
|
|
137
|
+
// `buildClaudeSessionManagerUnitFile`, so the manager process inherits
|
|
138
|
+
// them and the substitution can never silently fall back.
|
|
139
|
+
const placeholders = buildMcpPlaceholders(p);
|
|
91
140
|
const mcpServers = {};
|
|
92
141
|
for (const [name, desc] of serversForRole) {
|
|
93
142
|
const entry = {
|
|
@@ -211,6 +260,43 @@ export async function spawnClaudeSession(deps, args) {
|
|
|
211
260
|
? Array.from(deps.toolSurface.admin).filter((t) => !deps.toolSurface.public.has(t)).sort().slice(0, 5).join(',')
|
|
212
261
|
: '';
|
|
213
262
|
deps.logger(`tool-allowlist role=${args.role} count=${allowed.length} excluded=${excludedSample}`);
|
|
263
|
+
// Task 129 — recorder preflight. Two structural checks fire *before*
|
|
264
|
+
// the PTY is spawned, so failures emit a named line and abort without
|
|
265
|
+
// a recorder PID ever being allocated to the host kernel:
|
|
266
|
+
// 1. originatingSessionId is required (the operator-ID carrier).
|
|
267
|
+
// 2. every RECORDER_REQUIRED_TOOLS entry must be in the allowed set.
|
|
268
|
+
// For (2), allocate a placeholder recorder UUID via crypto.randomUUID()
|
|
269
|
+
// so the failure line still carries a stable identifier the operator
|
|
270
|
+
// can correlate — the spec calls for `recorderSessionId=<rec-allocated-uuid>`
|
|
271
|
+
// on `tool-surface-missing` even though no PTY exists yet.
|
|
272
|
+
// Legacy preflight kept as defense-in-depth: if a caller still sets
|
|
273
|
+
// senderId='turn-recorder' (pre-Task 131 callers, direct-manager
|
|
274
|
+
// tests), originatingSessionId remains required. The post-Task-131
|
|
275
|
+
// recorder route now sends the operator's accountId as senderId and
|
|
276
|
+
// the recorder discriminator is `originatingSessionId` presence.
|
|
277
|
+
if (args.senderId === RECORDER_SENDER_ID && !isRecorderSpawn(args)) {
|
|
278
|
+
deps.logger(`[turn-recorder] spawn-failed sessionId=unknown reason=missing-originating-session-id`);
|
|
279
|
+
return {
|
|
280
|
+
ok: false,
|
|
281
|
+
reason: 'missing-originating-session-id',
|
|
282
|
+
stderrTail: 'recorder spawn requires originatingSessionId',
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
if (isRecorderSpawn(args)) {
|
|
286
|
+
const op = args.originatingSessionId;
|
|
287
|
+
const allowedNames = new Set(allowed.map((t) => (t.includes('(') ? t.slice(0, t.indexOf('(')) : t)));
|
|
288
|
+
const missing = RECORDER_REQUIRED_TOOLS.filter((t) => !allowedNames.has(t));
|
|
289
|
+
if (missing.length > 0) {
|
|
290
|
+
const placeholderRec = randomUUID();
|
|
291
|
+
const present = RECORDER_REQUIRED_TOOLS.filter((t) => allowedNames.has(t));
|
|
292
|
+
deps.logger(`[turn-recorder] tool-surface-missing sessionId=${op} recorderSessionId=${placeholderRec} required=${RECORDER_REQUIRED_TOOLS.join(',')} present=${present.join(',') || 'none'}`);
|
|
293
|
+
return {
|
|
294
|
+
ok: false,
|
|
295
|
+
reason: 'tool-surface-missing',
|
|
296
|
+
stderrTail: `missing=${missing.join(',')}`,
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
214
300
|
if (args.permissionMode && args.permissionMode !== 'default') {
|
|
215
301
|
argv.push('--permission-mode', args.permissionMode);
|
|
216
302
|
}
|
|
@@ -252,6 +338,11 @@ export async function spawnClaudeSession(deps, args) {
|
|
|
252
338
|
TERM: 'xterm-256color',
|
|
253
339
|
MAXY_SESSION_ROLE: args.role,
|
|
254
340
|
MAXY_HIDDEN_SPAWN: args.hidden ? '1' : '0',
|
|
341
|
+
// Task 131 — dedicated recorder gate for the Stop hook. UI
|
|
342
|
+
// visibility (`hidden`) and recorder identity are now separate
|
|
343
|
+
// concepts: a Sidebar-shape recorder runs with hidden=false but
|
|
344
|
+
// must still skip the Stop hook to avoid infinite recursion.
|
|
345
|
+
MAXY_IS_RECORDER: isRecorderSpawn(args) ? '1' : '0',
|
|
255
346
|
});
|
|
256
347
|
}
|
|
257
348
|
catch (err) {
|
|
@@ -316,9 +407,17 @@ export async function spawnClaudeSession(deps, args) {
|
|
|
316
407
|
exited: false,
|
|
317
408
|
hidden: args.hidden === true,
|
|
318
409
|
specialist: args.specialist ?? row.agent ?? null,
|
|
410
|
+
originatingSessionId: isRecorderSpawn(args) ? args.originatingSessionId : undefined,
|
|
411
|
+
recorderTally: isRecorderSpawn(args) ? { calls: 0, oks: 0, errors: 0 } : undefined,
|
|
412
|
+
recorderJsonlPosition: isRecorderSpawn(args) ? 0 : undefined,
|
|
319
413
|
};
|
|
320
414
|
deps.store.add(session);
|
|
321
|
-
if (args
|
|
415
|
+
if (isRecorderSpawn(args) && session.originatingSessionId) {
|
|
416
|
+
// Task 129 — replaces the prior `hidden-spawn` line. Carries both IDs
|
|
417
|
+
// so the operator-ID-keyed grep returns the spawn moment.
|
|
418
|
+
deps.logger(`[turn-recorder] spawn-success sessionId=${session.originatingSessionId} recorderSessionId=${session.sessionId} pid=${pty.pid} latency-ms=${Date.now() - start}`);
|
|
419
|
+
}
|
|
420
|
+
else if (args.hidden === true) {
|
|
322
421
|
deps.logger(`hidden-spawn specialist=${session.specialist ?? 'none'} sessionId=${session.sessionId} pid=${pty.pid}`);
|
|
323
422
|
}
|
|
324
423
|
// PTY exit: mark exited; the watcher will fire a delete event when
|
|
@@ -331,8 +430,8 @@ export async function spawnClaudeSession(deps, args) {
|
|
|
331
430
|
deps.logger(`kill pid=${pty.pid} reason=process-exited exit-code=${e.exitCode} signal=${e.signal ?? 'none'} stderr-tail=${formatTailForLog(stderrTail)}`);
|
|
332
431
|
});
|
|
333
432
|
const responseMs = Date.now() - start;
|
|
334
|
-
deps.logger(`spawn-response-returned sessionId=${session.sessionId}
|
|
335
|
-
deps.logger(`spawn pid=${pty.pid} sessionId=${session.sessionId}
|
|
433
|
+
deps.logger(`spawn-response-returned sessionId=${session.sessionId} pid=${pty.pid} ms=${responseMs}`);
|
|
434
|
+
deps.logger(`spawn pid=${pty.pid} sessionId=${session.sessionId} senderId=${args.senderId} role=${args.role} channel=${args.channel} permissionMode=${args.permissionMode ?? 'default'} latency-ms=${responseMs}`);
|
|
336
435
|
deps.logger(`[pty-spawn] sessionId=${session.sessionId} appendSystemPromptBytes=${Buffer.byteLength(appendSystemPrompt, 'utf8')} identityBytes=${composed.identityBytes} soulBytes=${composed.soulBytes} aboutOwnerBytes=${composed.aboutOwnerBytes} dormantPluginsBytes=${composed.dormantPluginsBytes} accountDir=${deps.accountDir} role=${args.role} hostname=${deps.host.hostname} lanIPv4=${deps.host.lanIPv4} adminUrl=${deps.host.adminUrl} tunnelUrl=${composedHost.tunnelUrl ?? 'none'}`);
|
|
337
436
|
deps.onSessionReady?.(session);
|
|
338
437
|
return { ok: true, session };
|
|
@@ -1 +1 @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AA;CAChD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAiGrD"}
|
|
@@ -53,6 +53,17 @@ export function createReaper(deps) {
|
|
|
53
53
|
live.pty.onExit(() => clearTimeout(grace));
|
|
54
54
|
}
|
|
55
55
|
deps.logger(`[reaper] reaped sessionId=${row.sessionId} agent=${row.agent} idle-ms=${idleMs} reason=stale-recorder`);
|
|
56
|
+
// Task 129 — when the reaped row is a turn-recorder, also emit the
|
|
57
|
+
// `[turn-recorder]` line so the operator-ID-keyed grep returns the
|
|
58
|
+
// stale-recorder outcome. The `[reaper]` line is retained for the
|
|
59
|
+
// broader PTY-lifecycle audit (it carries `agent` and is keyed on
|
|
60
|
+
// `recorderSessionId`); the new line is additive, not a replacement.
|
|
61
|
+
// Task 131 — discriminator is originatingSessionId presence, not the
|
|
62
|
+
// legacy synthetic senderId. The recorder's senderId is the operator's
|
|
63
|
+
// accountId now.
|
|
64
|
+
if (live && live.originatingSessionId) {
|
|
65
|
+
deps.logger(`[turn-recorder] auto-archive sessionId=${live.originatingSessionId} recorderSessionId=${row.sessionId} reason=stale-recorder idle-ms=${idleMs}`);
|
|
66
|
+
}
|
|
56
67
|
}
|
|
57
68
|
function tickOnce() {
|
|
58
69
|
let scanned = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reaper.js","sourceRoot":"","sources":["../src/reaper.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,6EAA6E;AAC7E,0EAA0E;AAC1E,8EAA8E;AAC9E,2EAA2E;AAC3E,6EAA6E;AAC7E,8BAA8B;AAC9B,EAAE;AACF,uCAAuC;AACvC,4DAA4D;AAC5D,wEAAwE;AACxE,yEAAyE;AACzE,4DAA4D;AAC5D,EAAE;AACF,4EAA4E;AAC5E,2EAA2E;AAC3E,qEAAqE;AAwBrE,MAAM,UAAU,YAAY,CAAC,IAAgB;IAC3C,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CA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AM,CAAC,kBAAkB,CAAC,CAAA;IACjC,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;AAClC,CAAC"}
|
|
@@ -23,6 +23,27 @@ export interface StoredSession {
|
|
|
23
23
|
exited: boolean;
|
|
24
24
|
hidden: boolean;
|
|
25
25
|
specialist: string | null;
|
|
26
|
+
/** Operator session ID that originated this spawn — the `<op>` carrier
|
|
27
|
+
* documented in Task 129. Required on `senderId === 'turn-recorder'`
|
|
28
|
+
* rows; undefined on every other row. Every `[turn-recorder]` log line
|
|
29
|
+
* reads this field to satisfy the operator-ID-keyed grep contract.
|
|
30
|
+
* Once set, never mutated. */
|
|
31
|
+
originatingSessionId: string | undefined;
|
|
32
|
+
/** Tool-call tally maintained by the recorder JSONL observer
|
|
33
|
+
* (Task 129). Only populated when `senderId === 'turn-recorder'`. The
|
|
34
|
+
* observer increments `calls` on every tool_use record, `oks` on every
|
|
35
|
+
* tool_result with `is_error !== true`, `errors` on every tool_result
|
|
36
|
+
* with `is_error === true`. Read at `write-complete` time. */
|
|
37
|
+
recorderTally: {
|
|
38
|
+
calls: number;
|
|
39
|
+
oks: number;
|
|
40
|
+
errors: number;
|
|
41
|
+
} | undefined;
|
|
42
|
+
/** Byte position the recorder JSONL observer has parsed up to.
|
|
43
|
+
* Lets the subscriber parse only newly-appended bytes on each modify
|
|
44
|
+
* event instead of re-reading the whole file. Only used when
|
|
45
|
+
* `senderId === 'turn-recorder'`. */
|
|
46
|
+
recorderJsonlPosition: number | undefined;
|
|
26
47
|
}
|
|
27
48
|
export declare class SessionStore {
|
|
28
49
|
private readonly bySessionId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../src/session-store.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAE1D,MAAM,WAAW,aAAa;IAC5B,y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B;;;;mCAI+B;IAC/B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC;;;;mEAI+D;IAC/D,aAAa,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;IACzE;;;0CAGsC;IACtC,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1C;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmC;IAE/D,GAAG,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAI3B,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IAIjD,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IAOpD,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAE;QAAE,aAAa,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,aAAa,EAAE;IAWvF,GAAG,IAAI,aAAa,EAAE;IAItB,IAAI,IAAI,MAAM;CAGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.js","sourceRoot":"","sources":["../src/session-store.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,uEAAuE;AACvE,sEAAsE;AACtE,oEAAoE;AACpE,0EAA0E;AAC1E,wEAAwE;AACxE,kCAAkC;AAClC,EAAE;AACF,aAAa;AACb,oEAAoE;AACpE,yEAAyE;AACzE,uEAAuE;AACvE,uEAAuE;AACvE,+CAA+C;AAC/C,kEAAkE;AAClE,uEAAuE;AACvE,0DAA0D;AAC1D,wEAAwE;AACxE,uEAAuE;
|
|
1
|
+
{"version":3,"file":"session-store.js","sourceRoot":"","sources":["../src/session-store.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,uEAAuE;AACvE,sEAAsE;AACtE,oEAAoE;AACpE,0EAA0E;AAC1E,wEAAwE;AACxE,kC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IACvC,CAAC;IAED,IAAI;QACF,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAA;IAC9B,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Vitest config — stamps the env vars that the manager systemd unit
|
|
2
|
+
// stamps in production. Tests that exercise `spawnClaudeSession` end up
|
|
3
|
+
// in `writePerSpawnMcpConfig` → `buildMcpPlaceholders`, which loud-fails
|
|
4
|
+
// if `PLATFORM_PORT` or `MAXY_BRAND_PORT` is absent (Task 142). The
|
|
5
|
+
// dedicated `pty-spawner-placeholder-port.test.ts` exercises the
|
|
6
|
+
// loud-fail branches directly with explicit env arguments.
|
|
7
|
+
|
|
8
|
+
import { defineConfig } from 'vitest/config'
|
|
9
|
+
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
test: {
|
|
12
|
+
setupFiles: ['./src/__tests__/helpers/env-setup.ts'],
|
|
13
|
+
},
|
|
14
|
+
})
|
|
@@ -13,7 +13,9 @@ These three rules win when anything else in this prompt conflicts with them.
|
|
|
13
13
|
Quality of work is bounded by what you know about the operator. Every standing-offer pillar in `SOUL.md` is bounded by named operator-profile fields on `Person` and `Organisation` in the graph:
|
|
14
14
|
|
|
15
15
|
- **Brochure production** is bounded by the operator's role, agency, fee structure, and preferred suppliers.
|
|
16
|
+
- **Property socials** is bounded by an existing brochure folder for the property at `estate-agents/<agent>/properties/<slug>/` (the output of the Brochure pillar).
|
|
16
17
|
- **Preval production** is bounded by the operator's comparable-data source.
|
|
18
|
+
- **Local market report** is bounded by the operator's agency DESIGN tokens path (`estate-agents/<agent>/DESIGN.md`) and a market-data source (paste-in dict, PropertyData credentials, or the `property-data` MCP when present).
|
|
17
19
|
- **Loop CRM management** is bounded by a registered Loop team key on the account and the operator's relationship to the contact under discussion (vendor, buyer, or portal source).
|
|
18
20
|
|
|
19
21
|
The outcome contract for every turn is deterministic: if any required field for any pillar is absent on `Person` or `Organisation` in the graph, the agent asks the one question whose answer closes the largest gap — the field whose absence bounds the most pillars. If every pillar's required fields are present, the agent surfaces the offer per `SOUL.md`. The choice is the agent's outcome contract on every turn, including the one that follows the platform's ISO-timestamp stimulus; it is not advice the agent weighs.
|
|
@@ -4,10 +4,12 @@ You are ${PRODUCT_NAME}, an AI operations manager. You free the operator from lo
|
|
|
4
4
|
|
|
5
5
|
## Phase 1 standing offer
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Five things you do end-to-end. Each is bounded by operator-profile fields on `Person` and `Organisation` (see `IDENTITY.md` § Information gathering for the field list per pillar). When the profile is complete enough to act on a pillar, offer the relevant one in plain language, then run it. When it is not, ask the one question that closes the largest gap; the offer surfaces once the gap closes.
|
|
8
8
|
|
|
9
9
|
- **Brochure production.** A listing URL plus an agent URL becomes a print-ready A4 brochure (HTML and PDF) without manual layout.
|
|
10
|
+
- **Property socials.** A produced brochure folder becomes a set of share-ready JPGs (landscape OG, square Instagram, portrait story) with captions, ready to post.
|
|
10
11
|
- **Preval production.** Property facts plus comparable data become a written pre-valuation the operator sends to a vendor before the appraisal visit.
|
|
12
|
+
- **Local market report.** An area or postcode, the operator's agency DESIGN tokens, and market data become a branded 4-page A4 PDF the operator sends to a vendor or prospect.
|
|
11
13
|
- **Loop CRM management.** Read and write across all 8 Loop resource groups (properties, people, viewings, feedback, team, marketing, customer preferences, supplier operations) on the operator's behalf.
|
|
12
14
|
|
|
13
15
|
## Loop value pillars
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: real-agent
|
|
3
|
-
description: "UK estate agency skills + Loop CRM
|
|
3
|
+
description: "UK estate agency skills + Loop CRM + PropertyData market analytics — 11 sub-plugins covering sales, listings, vendor management, buyer management, lead generation, coaching, business operations, teaching, Loop CRM, PropertyData, and property brochures. 3 specialist roles (negotiator, valuer, compliance). 34 skills + 35 MCP tools."
|
|
4
4
|
plugins:
|
|
5
5
|
- estate-sales
|
|
6
6
|
- listings
|
|
@@ -11,12 +11,13 @@ plugins:
|
|
|
11
11
|
- estate-business
|
|
12
12
|
- estate-teaching
|
|
13
13
|
- loop
|
|
14
|
+
- property-data
|
|
14
15
|
- brochures
|
|
15
16
|
---
|
|
16
17
|
|
|
17
18
|
# Real Agent
|
|
18
19
|
|
|
19
|
-
Premium plugin bundle for UK estate agency professionals. Shipped on every non-Maxy brand install (today: Real Agent); Maxy installs do not receive it. All
|
|
20
|
+
Premium plugin bundle for UK estate agency professionals. Shipped on every non-Maxy brand install (today: Real Agent); Maxy installs do not receive it. All 11 sub-plugins ship as a set, each independently activatable via `enabledPlugins`. Every admin boot walks every bundle under `premium-plugins/` (brand-gated — Maxy short-circuits) and reconciles `account.json` `enabledPlugins` against on-disk presence: any sub-plugin from the `plugins:` list above whose `platform/plugins/<sub>/PLUGIN.md` exists gets stamped via an idempotent set-union, so `mcp__loop__*` tools and the other sub-plugin surfaces are visible to the admin agent from the first turn after install — and on first boot post-deploy for accounts that already had the bundle on disk from a prior install. Disable individual sub-plugins with `plugin-toggle-enabled`. The bundle also delivers three specialist roles (negotiator, valuer, and compliance) that embed domain knowledge from the sub-plugins and operate autonomously with Loop CRM tools.
|
|
20
21
|
|
|
21
22
|
## Specialist Roles
|
|
22
23
|
|
|
@@ -39,4 +40,5 @@ Premium plugin bundle for UK estate agency professionals. Shipped on every non-M
|
|
|
39
40
|
| `estate-business` | 4 | — | Business owner skills — growth, operations, brand, partnerships |
|
|
40
41
|
| `estate-teaching` | 1 | — | Structured education module browsing and delivery |
|
|
41
42
|
| `loop` | — | 23 | Loop CRM integration — properties, people, viewings, feedback, team, marketing, customer preferences, supplier |
|
|
42
|
-
| `
|
|
43
|
+
| `property-data` | 1 | 12 | PropertyData UK market analytics — postcode-keyed valuation, asking prices, sold prices, demand, yields, growth, national HPI |
|
|
44
|
+
| `brochures` | 7 | — | Property brochure pipeline — brand extract, property extract, A4 layout, print constraints, social-share images, A4 market reports |
|
|
@@ -3,7 +3,7 @@ name: negotiator
|
|
|
3
3
|
description: "CRM operations, buyer pipeline management, viewing coordination, feedback analysis, offer preparation, and deal progression. Delegate when the task involves querying or correlating CRM data, managing buyer interactions, preparing offer packages, or tracking deal status."
|
|
4
4
|
summary: "Your negotiator — manages buyer pipeline, viewings, feedback, offers, and deal progression using Loop CRM."
|
|
5
5
|
model: claude-sonnet-4-6
|
|
6
|
-
tools: mcp__loop__loop-key-register, mcp__loop__loop-key-deregister, mcp__loop__loop-key-list, mcp__loop__loop-people-search, mcp__loop__loop-people-detail, mcp__loop__loop-property-search, mcp__loop__loop-property-detail, mcp__loop__loop-property-listed, mcp__loop__loop-property-sold, mcp__loop__loop-property-viewing, mcp__loop__loop-property-callback, mcp__loop__loop-property-information, mcp__loop__loop-viewing-search, mcp__loop__loop-viewing-detail, mcp__loop__loop-viewing-create, mcp__loop__loop-viewing-update, mcp__loop__loop-feedback-get, mcp__loop__loop-feedback-submit, mcp__loop__loop-team-info, mcp__loop__loop-team-availability, mcp__loop__loop-marketing-match, mcp__loop__loop-marketing-match-batch, mcp__loop__loop-marketing-match-request, mcp__loop__loop-marketing-enquiry, mcp__loop__loop-auto-responder, mcp__loop__loop-customer-preferences, mcp__loop__loop-supplier, mcp__memory__memory-search
|
|
6
|
+
tools: mcp__loop__loop-key-register, mcp__loop__loop-key-deregister, mcp__loop__loop-key-list, mcp__loop__loop-people-search, mcp__loop__loop-people-detail, mcp__loop__loop-property-search, mcp__loop__loop-property-detail, mcp__loop__loop-property-listed, mcp__loop__loop-property-sold, mcp__loop__loop-property-viewing, mcp__loop__loop-property-callback, mcp__loop__loop-property-information, mcp__loop__loop-viewing-search, mcp__loop__loop-viewing-detail, mcp__loop__loop-viewing-create, mcp__loop__loop-viewing-update, mcp__loop__loop-feedback-get, mcp__loop__loop-feedback-submit, mcp__loop__loop-team-info, mcp__loop__loop-team-availability, mcp__loop__loop-marketing-match, mcp__loop__loop-marketing-match-batch, mcp__loop__loop-marketing-match-request, mcp__loop__loop-marketing-enquiry, mcp__loop__loop-auto-responder, mcp__loop__loop-customer-preferences, mcp__loop__loop-supplier, mcp__property-data__property-data-key-list, mcp__property-data__property-data-demand, mcp__property-data__property-data-yields, mcp__property-data__property-data-growth, mcp__property-data__property-data-sold-prices, mcp__memory__memory-search
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Negotiator
|
|
@@ -3,7 +3,7 @@ name: valuer
|
|
|
3
3
|
description: "Market appraisal preparation, comparable evidence analysis, and valuation booking support. Delegate when the task involves preparing for a valuation appointment, assembling comparable sales data, analysing competing listings, or handling valuation enquiries."
|
|
4
4
|
summary: "Your valuer — prepares market appraisals, assembles comparable evidence, and analyses local market conditions using Loop CRM."
|
|
5
5
|
model: claude-sonnet-4-6
|
|
6
|
-
tools: mcp__loop__loop-property-search, mcp__loop__loop-property-detail, mcp__loop__loop-property-listed, mcp__loop__loop-property-sold, mcp__loop__loop-people-search, mcp__memory__memory-search
|
|
6
|
+
tools: mcp__loop__loop-property-search, mcp__loop__loop-property-detail, mcp__loop__loop-property-listed, mcp__loop__loop-property-sold, mcp__loop__loop-people-search, mcp__property-data__property-data-key-list, mcp__property-data__property-data-valuation-sale, mcp__property-data__property-data-valuation-rent, mcp__property-data__property-data-prices, mcp__property-data__property-data-prices-rent, mcp__property-data__property-data-sold-prices, mcp__property-data__property-data-demand, mcp__property-data__property-data-yields, mcp__property-data__property-data-growth, mcp__property-data__property-data-national-hpi, mcp__memory__memory-search
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Valuer
|
|
@@ -22,6 +22,8 @@ The user wants to produce a property brochure — either end-to-end from a listi
|
|
|
22
22
|
| `property-extract` | Stage property assets from a listing URL (photos, floorplans, EPC, structured metadata) |
|
|
23
23
|
| `property-brochure` | Lay out an A4 brochure from a brand pack + property assets (HTML + per-page print snapshots + recompressed PDF) |
|
|
24
24
|
| `a4-print-documents` | Print constraints for A4 HTML documents — glassmorphism survival, page margins, full-bleed, whitespace discipline |
|
|
25
|
+
| `property-socials` | Generate Open Graph / social-share images (landscape, square, portrait JPGs) for a published property page, branded to match the brochure |
|
|
26
|
+
| `property-market-report` | A4 print-ready area market report branded with the agent's design tokens, illustrated by up to 10 featured property listings |
|
|
25
27
|
|
|
26
28
|
## Commands
|
|
27
29
|
|