@rubytech/create-realagent 1.0.406 → 1.0.423

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.
Files changed (355) hide show
  1. package/dist/index.js +12 -7
  2. package/package.json +2 -2
  3. package/payload/maxy/public/assets/ChatInput-BcuvuN5M.css +1 -0
  4. package/payload/maxy/public/assets/ChatInput-Bkvp46jn.js +42 -0
  5. package/payload/maxy/public/assets/{admin-k0izNYS1.js → admin-h_MCGiva.js} +2 -2
  6. package/payload/maxy/public/assets/{public-3Y1Xk7cO.js → public-CJdTPrH1.js} +1 -1
  7. package/payload/maxy/public/brand/demo-9pm-enquiry.svg +95 -0
  8. package/payload/maxy/public/brand/demo-create-agent.svg +110 -0
  9. package/payload/maxy/public/brand/demo-morning-briefing.svg +83 -0
  10. package/payload/maxy/public/brand/demo-post-viewing.svg +107 -0
  11. package/payload/maxy/public/brand/how-it-works.svg +152 -0
  12. package/payload/maxy/public/brand/realagent-favicon-dark-32.png +0 -0
  13. package/payload/maxy/public/brand/realagent-icon-dark-round-web.png +0 -0
  14. package/payload/maxy/public/brand/realagent-icon-dark-web.png +0 -0
  15. package/payload/maxy/public/brand/realagent-icon-web.png +0 -0
  16. package/payload/maxy/public/brand-constants.json +3 -3
  17. package/payload/maxy/public/brand-defaults.css +4 -4
  18. package/payload/maxy/public/index.html +3 -3
  19. package/payload/maxy/public/public.html +3 -3
  20. package/payload/maxy/server.js +618 -115
  21. package/payload/platform/config/brand.json +9 -7
  22. package/payload/platform/knowledge/maxy.md +4 -0
  23. package/payload/platform/plugins/admin/PLUGIN.md +7 -6
  24. package/payload/platform/plugins/admin/hooks/agent-creation-approval.sh +9 -1
  25. package/payload/platform/plugins/admin/hooks/agent-creation-gate.sh +9 -1
  26. package/payload/platform/plugins/admin/hooks/agent-creation-post.sh +9 -1
  27. package/payload/platform/plugins/admin/hooks/test-agent-creation-gate.sh +15 -0
  28. package/payload/platform/plugins/admin/mcp/dist/index.js +1 -1
  29. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  30. package/payload/platform/plugins/admin/skills/plugin-management/skill.md +56 -7
  31. package/payload/platform/plugins/admin/skills/public-agent-manager/skill.md +21 -2
  32. package/payload/platform/plugins/anthropic/PLUGIN.md +0 -1
  33. package/payload/platform/plugins/business-assistant/PLUGIN.md +1 -1
  34. package/payload/platform/plugins/cloudflare/PLUGIN.md +0 -1
  35. package/payload/platform/plugins/contacts/PLUGIN.md +0 -1
  36. package/payload/platform/plugins/deep-research/PLUGIN.md +0 -1
  37. package/payload/platform/plugins/docs/PLUGIN.md +1 -1
  38. package/payload/platform/plugins/docs/references/plugins-guide.md +11 -5
  39. package/payload/platform/plugins/email/PLUGIN.md +1 -2
  40. package/payload/platform/plugins/email/mcp/dist/scripts/email-auto-respond.d.ts +1 -1
  41. package/payload/platform/plugins/email/mcp/dist/scripts/email-auto-respond.js +1 -1
  42. package/payload/platform/plugins/memory/PLUGIN.md +24 -4
  43. package/payload/platform/plugins/memory/mcp/dist/index.js +1 -1
  44. package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -1
  45. package/payload/platform/plugins/memory/mcp/dist/lib/semantic-chunker.js +1 -1
  46. package/payload/platform/plugins/memory/mcp/dist/tools/memory-delete.js +2 -2
  47. package/payload/platform/plugins/memory/mcp/dist/tools/memory-edit-attachment.js +2 -2
  48. package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest-extract.js +2 -2
  49. package/payload/platform/plugins/memory/mcp/dist/tools/memory-read-attachment.js +2 -2
  50. package/payload/platform/plugins/memory/mcp/dist/tools/memory-search.js +5 -5
  51. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.d.ts.map +1 -1
  52. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js +31 -2
  53. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js.map +1 -1
  54. package/payload/platform/plugins/memory/skills/{conversational-memory.md → conversational-memory/SKILL.md} +10 -1
  55. package/payload/platform/plugins/projects/PLUGIN.md +1 -1
  56. package/payload/platform/plugins/sales/PLUGIN.md +1 -1
  57. package/payload/platform/plugins/scheduling/PLUGIN.md +15 -1
  58. package/payload/platform/plugins/scheduling/mcp/dist/index.js +36 -9
  59. package/payload/platform/plugins/scheduling/mcp/dist/index.js.map +1 -1
  60. package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.d.ts +6 -0
  61. package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.d.ts.map +1 -1
  62. package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.js +23 -0
  63. package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.js.map +1 -1
  64. package/payload/platform/plugins/scheduling/mcp/dist/lib/time-format.d.ts +48 -0
  65. package/payload/platform/plugins/scheduling/mcp/dist/lib/time-format.d.ts.map +1 -0
  66. package/payload/platform/plugins/scheduling/mcp/dist/lib/time-format.js +140 -0
  67. package/payload/platform/plugins/scheduling/mcp/dist/lib/time-format.js.map +1 -0
  68. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js +24 -14
  69. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js.map +1 -1
  70. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.d.ts.map +1 -1
  71. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js +24 -6
  72. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js.map +1 -1
  73. package/payload/platform/plugins/tasks/.claude-plugin/plugin.json +0 -1
  74. package/payload/platform/plugins/tasks/PLUGIN.md +11 -1
  75. package/payload/platform/plugins/waitlist/PLUGIN.md +2 -2
  76. package/payload/platform/plugins/waitlist/mcp/dist/index.js +44 -0
  77. package/payload/platform/plugins/waitlist/mcp/dist/index.js.map +1 -1
  78. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-heal.d.ts +33 -0
  79. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-heal.d.ts.map +1 -0
  80. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-heal.js +124 -0
  81. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-heal.js.map +1 -0
  82. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-list.d.ts +1 -0
  83. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-list.d.ts.map +1 -1
  84. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-list.js +1 -0
  85. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-list.js.map +1 -1
  86. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-persist.d.ts +6 -3
  87. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-persist.d.ts.map +1 -1
  88. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-persist.js +20 -9
  89. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-persist.js.map +1 -1
  90. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-review.d.ts +1 -0
  91. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-review.d.ts.map +1 -1
  92. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-review.js +1 -0
  93. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-review.js.map +1 -1
  94. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-scan.d.ts +3 -2
  95. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-scan.d.ts.map +1 -1
  96. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-scan.js +3 -2
  97. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-scan.js.map +1 -1
  98. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.d.ts.map +1 -1
  99. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.js +4 -35
  100. package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.js.map +1 -1
  101. package/payload/platform/plugins/workflows/.claude-plugin/plugin.json +0 -1
  102. package/payload/platform/plugins/workflows/PLUGIN.md +12 -3
  103. package/payload/platform/plugins/workflows/mcp/dist/lib/llm-call.d.ts +15 -23
  104. package/payload/platform/plugins/workflows/mcp/dist/lib/llm-call.d.ts.map +1 -1
  105. package/payload/platform/plugins/workflows/mcp/dist/lib/llm-call.js +64 -233
  106. package/payload/platform/plugins/workflows/mcp/dist/lib/llm-call.js.map +1 -1
  107. package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.d.ts +4 -4
  108. package/payload/platform/plugins/workflows/mcp/dist/lib/step-resolver.js +4 -4
  109. package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.d.ts +6 -6
  110. package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.js +7 -7
  111. package/payload/platform/plugins/workflows/mcp/dist/tools/workflow-execute.js.map +1 -1
  112. package/payload/platform/templates/agents/admin/IDENTITY.md +23 -6
  113. package/payload/platform/templates/specialists/agents/scheduler.md +1 -1
  114. package/payload/premium-plugins/real-agency/BUNDLE.md +32 -0
  115. package/payload/premium-plugins/real-agency/agents/buyer-enquiry/IDENTITY.md +13 -0
  116. package/payload/premium-plugins/real-agency/agents/buyer-enquiry/SOUL.md +9 -0
  117. package/payload/premium-plugins/real-agency/agents/buyer-enquiry/template.json +9 -0
  118. package/payload/premium-plugins/real-agency/plugins/real-agency-business/PLUGIN.md +34 -0
  119. package/payload/premium-plugins/real-agency/{skills/business-growth.md → plugins/real-agency-business/skills/business-growth/SKILL.md} +20 -25
  120. package/payload/premium-plugins/real-agency/{skills/business-operations.md → plugins/real-agency-business/skills/business-operations/SKILL.md} +5 -5
  121. package/payload/premium-plugins/real-agency/{skills/exp-partnership.md → plugins/real-agency-business/skills/exp-partnership/SKILL.md} +7 -7
  122. package/payload/premium-plugins/real-agency/{skills/personal-branding.md → plugins/real-agency-business/skills/personal-branding/SKILL.md} +17 -17
  123. package/payload/premium-plugins/real-agency/plugins/real-agency-buyers/PLUGIN.md +35 -0
  124. package/payload/premium-plugins/real-agency/{skills/buyer-feedback.md → plugins/real-agency-buyers/skills/buyer-feedback/SKILL.md} +2 -2
  125. package/payload/premium-plugins/real-agency/{skills/buyer-management.md → plugins/real-agency-buyers/skills/buyer-management/SKILL.md} +8 -8
  126. package/payload/premium-plugins/real-agency/{skills/buyer-seller-guides.md → plugins/real-agency-buyers/skills/buyer-seller-guides/SKILL.md} +7 -7
  127. package/payload/premium-plugins/real-agency/plugins/real-agency-coaching/PLUGIN.md +55 -0
  128. package/payload/premium-plugins/real-agency/{skills/agent-performance.md → plugins/real-agency-coaching/skills/agent-performance/SKILL.md} +5 -1
  129. package/payload/premium-plugins/real-agency/{skills/bespoke-coaching.md → plugins/real-agency-coaching/skills/bespoke-coaching/SKILL.md} +10 -2
  130. package/payload/premium-plugins/real-agency/{skills/coaching-toolkit.md → plugins/real-agency-coaching/skills/coaching-toolkit/SKILL.md} +3 -1
  131. package/payload/premium-plugins/real-agency/{skills/serhant-training.md → plugins/real-agency-coaching/skills/serhant-training/SKILL.md} +1 -1
  132. package/payload/premium-plugins/real-agency/plugins/real-agency-leads/PLUGIN.md +32 -0
  133. package/payload/premium-plugins/real-agency/{skills/lead-nurturing.md → plugins/real-agency-leads/skills/lead-nurturing/SKILL.md} +20 -26
  134. package/payload/premium-plugins/real-agency/{references/lead-nurturing-database-reactivation.md → plugins/real-agency-leads/skills/lead-nurturing/references/database-reactivation.md} +1 -1
  135. package/payload/premium-plugins/real-agency/{skills/prospecting.md → plugins/real-agency-leads/skills/prospecting/SKILL.md} +4 -4
  136. package/payload/premium-plugins/real-agency/plugins/real-agency-listings/PLUGIN.md +33 -0
  137. package/payload/premium-plugins/real-agency/{skills/home-preparation.md → plugins/real-agency-listings/skills/home-preparation/SKILL.md} +4 -4
  138. package/payload/premium-plugins/real-agency/{skills/listing-presentation.md → plugins/real-agency-listings/skills/listing-presentation/SKILL.md} +4 -4
  139. package/payload/premium-plugins/real-agency/{skills/property-marketing.md → plugins/real-agency-listings/skills/property-marketing/SKILL.md} +8 -8
  140. package/payload/premium-plugins/real-agency/plugins/real-agency-onboarding/PLUGIN.md +31 -0
  141. package/payload/premium-plugins/real-agency/{skills/bootstrap.md → plugins/real-agency-onboarding/skills/bootstrap/SKILL.md} +3 -3
  142. package/payload/premium-plugins/real-agency/{references/bootstrap-onboarding-flow.md → plugins/real-agency-onboarding/skills/bootstrap/references/onboarding-flow.md} +1 -1
  143. package/payload/premium-plugins/real-agency/plugins/real-agency-sales/PLUGIN.md +34 -0
  144. package/payload/premium-plugins/real-agency/{skills/sales-closer.md → plugins/real-agency-sales/skills/sales-closer/SKILL.md} +1 -4
  145. package/payload/premium-plugins/real-agency/{skills/sales-discovery.md → plugins/real-agency-sales/skills/sales-discovery/SKILL.md} +7 -11
  146. package/payload/premium-plugins/real-agency/{skills/sales-negotiation.md → plugins/real-agency-sales/skills/sales-negotiation/SKILL.md} +5 -8
  147. package/payload/premium-plugins/real-agency/{skills/sales-progression.md → plugins/real-agency-sales/skills/sales-progression/SKILL.md} +2 -2
  148. package/payload/premium-plugins/real-agency/plugins/real-agency-teaching/PLUGIN.md +32 -0
  149. package/payload/premium-plugins/real-agency/{skills/content-directory.md → plugins/real-agency-teaching/skills/content-directory/SKILL.md} +2 -2
  150. package/payload/premium-plugins/real-agency/plugins/real-agency-vendors/PLUGIN.md +34 -0
  151. package/payload/premium-plugins/real-agency/{skills/negotiation.md → plugins/real-agency-vendors/skills/negotiation/SKILL.md} +5 -5
  152. package/payload/premium-plugins/real-agency/{skills/vendor-communication.md → plugins/real-agency-vendors/skills/vendor-communication/SKILL.md} +10 -10
  153. package/payload/premium-plugins/real-agency/{skills/vendor-updates.md → plugins/real-agency-vendors/skills/vendor-updates/SKILL.md} +3 -3
  154. package/payload/premium-plugins/teaching/PLUGIN.md +1 -2
  155. package/payload/premium-plugins/writer-craft/PLUGIN.md +1 -2
  156. package/payload/maxy/public/assets/ChatInput-7sHhJaNJ.js +0 -42
  157. package/payload/maxy/public/assets/ChatInput-oLFewltq.css +0 -1
  158. package/payload/premium-plugins/real-agency/PLUGIN.md +0 -101
  159. /package/payload/platform/plugins/anthropic/skills/{get-api-key.md → get-api-key/SKILL.md} +0 -0
  160. /package/payload/platform/plugins/cloudflare/skills/{setup-tunnel.md → setup-tunnel/SKILL.md} +0 -0
  161. /package/payload/premium-plugins/real-agency/{references/business-growth-buy-back-your-time.md → plugins/real-agency-business/skills/business-growth/references/buy-back-your-time.md} +0 -0
  162. /package/payload/premium-plugins/real-agency/{references/business-growth-firewave-gost-scorecards.md → plugins/real-agency-business/skills/business-growth/references/firewave-gost-scorecards.md} +0 -0
  163. /package/payload/premium-plugins/real-agency/{references/business-growth-keller-org-model.md → plugins/real-agency-business/skills/business-growth/references/keller-org-model.md} +0 -0
  164. /package/payload/premium-plugins/real-agency/{references/business-growth-lencioni-team-models.md → plugins/real-agency-business/skills/business-growth/references/lencioni-team-models.md} +0 -0
  165. /package/payload/premium-plugins/real-agency/{references/business-growth-listing-management-system.md → plugins/real-agency-business/skills/business-growth/references/listing-management-system.md} +0 -0
  166. /package/payload/premium-plugins/real-agency/{references/business-growth-net-figure-form.md → plugins/real-agency-business/skills/business-growth/references/net-figure-form.md} +0 -0
  167. /package/payload/premium-plugins/real-agency/{references/business-growth-serhant-bizinbox-notes.md → plugins/real-agency-business/skills/business-growth/references/serhant-bizinbox-notes.md} +0 -0
  168. /package/payload/premium-plugins/real-agency/{references/business-growth-team-roles-commission.md → plugins/real-agency-business/skills/business-growth/references/team-roles-commission.md} +0 -0
  169. /package/payload/premium-plugins/real-agency/{references/business-growth-va-2026-ops.md → plugins/real-agency-business/skills/business-growth/references/va-2026-ops.md} +0 -0
  170. /package/payload/premium-plugins/real-agency/{references/business-growth-wingman-structure.md → plugins/real-agency-business/skills/business-growth/references/wingman-structure.md} +0 -0
  171. /package/payload/premium-plugins/real-agency/{references/business-operations-crm-systems.md → plugins/real-agency-business/skills/business-operations/references/crm-systems.md} +0 -0
  172. /package/payload/premium-plugins/real-agency/{references/business-operations-hiring-guide.md → plugins/real-agency-business/skills/business-operations/references/hiring-guide.md} +0 -0
  173. /package/payload/premium-plugins/real-agency/{references/business-operations-impact-framework.md → plugins/real-agency-business/skills/business-operations/references/impact-framework.md} +0 -0
  174. /package/payload/premium-plugins/real-agency/{references/business-operations-minutes-equal-money.md → plugins/real-agency-business/skills/business-operations/references/minutes-equal-money.md} +0 -0
  175. /package/payload/premium-plugins/real-agency/{references/business-operations-team-management.md → plugins/real-agency-business/skills/business-operations/references/team-management.md} +0 -0
  176. /package/payload/premium-plugins/real-agency/{references/exp-partnership-12-reasons.md → plugins/real-agency-business/skills/exp-partnership/references/12-reasons.md} +0 -0
  177. /package/payload/premium-plugins/real-agency/{references/exp-partnership-95-5-system.md → plugins/real-agency-business/skills/exp-partnership/references/95-5-system.md} +0 -0
  178. /package/payload/premium-plugins/real-agency/{references/exp-partnership-agent-attraction-scripts.md → plugins/real-agency-business/skills/exp-partnership/references/agent-attraction-scripts.md} +0 -0
  179. /package/payload/premium-plugins/real-agency/{references/exp-partnership-business-partnership.md → plugins/real-agency-business/skills/exp-partnership/references/business-partnership.md} +0 -0
  180. /package/payload/premium-plugins/real-agency/{references/exp-partnership-exp-model-overview.md → plugins/real-agency-business/skills/exp-partnership/references/exp-model-overview.md} +0 -0
  181. /package/payload/premium-plugins/real-agency/{references/exp-partnership-model-comparison.md → plugins/real-agency-business/skills/exp-partnership/references/model-comparison.md} +0 -0
  182. /package/payload/premium-plugins/real-agency/{references/exp-partnership-revenue-share-explained.md → plugins/real-agency-business/skills/exp-partnership/references/revenue-share-explained.md} +0 -0
  183. /package/payload/premium-plugins/real-agency/{references/personal-branding-attraction-agent-notes.md → plugins/real-agency-business/skills/personal-branding/references/attraction-agent-notes.md} +0 -0
  184. /package/payload/premium-plugins/real-agency/{references/personal-branding-attraction-agent.md → plugins/real-agency-business/skills/personal-branding/references/attraction-agent.md} +0 -0
  185. /package/payload/premium-plugins/real-agency/{references/personal-branding-authenticity-boundaries.md → plugins/real-agency-business/skills/personal-branding/references/authenticity-boundaries.md} +0 -0
  186. /package/payload/premium-plugins/real-agency/{references/personal-branding-become-a-brand-leader-notes.md → plugins/real-agency-business/skills/personal-branding/references/become-a-brand-leader-notes.md} +0 -0
  187. /package/payload/premium-plugins/real-agency/{references/personal-branding-blast-formula.md → plugins/real-agency-business/skills/personal-branding/references/blast-formula.md} +0 -0
  188. /package/payload/premium-plugins/real-agency/{references/personal-branding-brand-leader.md → plugins/real-agency-business/skills/personal-branding/references/brand-leader.md} +0 -0
  189. /package/payload/premium-plugins/real-agency/{references/personal-branding-brand-strategy-system.md → plugins/real-agency-business/skills/personal-branding/references/brand-strategy-system.md} +0 -0
  190. /package/payload/premium-plugins/real-agency/{references/personal-branding-content-engine.md → plugins/real-agency-business/skills/personal-branding/references/content-engine.md} +0 -0
  191. /package/payload/premium-plugins/real-agency/{references/personal-branding-firewave-blast-and-blogging.md → plugins/real-agency-business/skills/personal-branding/references/firewave-blast-and-blogging.md} +0 -0
  192. /package/payload/premium-plugins/real-agency/{references/personal-branding-gary-v-content.md → plugins/real-agency-business/skills/personal-branding/references/gary-v-content.md} +0 -0
  193. /package/payload/premium-plugins/real-agency/{references/personal-branding-gary-v-principles.md → plugins/real-agency-business/skills/personal-branding/references/gary-v-principles.md} +0 -0
  194. /package/payload/premium-plugins/real-agency/{references/personal-branding-oversubscribed-positioning.md → plugins/real-agency-business/skills/personal-branding/references/oversubscribed-positioning.md} +0 -0
  195. /package/payload/premium-plugins/real-agency/{references/personal-branding-platforms.md → plugins/real-agency-business/skills/personal-branding/references/platforms.md} +0 -0
  196. /package/payload/premium-plugins/real-agency/{references/personal-branding-priestley-oversubscribed.md → plugins/real-agency-business/skills/personal-branding/references/priestley-oversubscribed.md} +0 -0
  197. /package/payload/premium-plugins/real-agency/{references/personal-branding-storeys-style-examples.md → plugins/real-agency-business/skills/personal-branding/references/storeys-style-examples.md} +0 -0
  198. /package/payload/premium-plugins/real-agency/{references/personal-branding-visual-identity.md → plugins/real-agency-business/skills/personal-branding/references/visual-identity.md} +0 -0
  199. /package/payload/premium-plugins/real-agency/{references/buyer-management-buyer-qualification-questions.md → plugins/real-agency-buyers/skills/buyer-management/references/buyer-qualification-questions.md} +0 -0
  200. /package/payload/premium-plugins/real-agency/{references/buyer-management-buyer-qualification.md → plugins/real-agency-buyers/skills/buyer-management/references/buyer-qualification.md} +0 -0
  201. /package/payload/premium-plugins/real-agency/{references/buyer-management-buyer-scripts.md → plugins/real-agency-buyers/skills/buyer-management/references/buyer-scripts.md} +0 -0
  202. /package/payload/premium-plugins/real-agency/{references/buyer-management-buyer-working-scripts.md → plugins/real-agency-buyers/skills/buyer-management/references/buyer-working-scripts.md} +0 -0
  203. /package/payload/premium-plugins/real-agency/{references/buyer-management-feedback-collection.md → plugins/real-agency-buyers/skills/buyer-management/references/feedback-collection.md} +0 -0
  204. /package/payload/premium-plugins/real-agency/{references/buyer-management-offer-capture.md → plugins/real-agency-buyers/skills/buyer-management/references/offer-capture.md} +0 -0
  205. /package/payload/premium-plugins/real-agency/{references/buyer-management-viewing-booking.md → plugins/real-agency-buyers/skills/buyer-management/references/viewing-booking.md} +0 -0
  206. /package/payload/premium-plugins/real-agency/{references/buyer-management-viewing-management.md → plugins/real-agency-buyers/skills/buyer-management/references/viewing-management.md} +0 -0
  207. /package/payload/premium-plugins/real-agency/{references/buyer-seller-guides-care-fees-guide.md → plugins/real-agency-buyers/skills/buyer-seller-guides/references/care-fees-guide.md} +0 -0
  208. /package/payload/premium-plugins/real-agency/{references/buyer-seller-guides-divorce-sales-guide.md → plugins/real-agency-buyers/skills/buyer-seller-guides/references/divorce-sales-guide.md} +0 -0
  209. /package/payload/premium-plugins/real-agency/{references/buyer-seller-guides-downsizing-guide.md → plugins/real-agency-buyers/skills/buyer-seller-guides/references/downsizing-guide.md} +0 -0
  210. /package/payload/premium-plugins/real-agency/{references/buyer-seller-guides-first-time-buyers.md → plugins/real-agency-buyers/skills/buyer-seller-guides/references/first-time-buyers.md} +0 -0
  211. /package/payload/premium-plugins/real-agency/{references/buyer-seller-guides-first-time-sellers.md → plugins/real-agency-buyers/skills/buyer-seller-guides/references/first-time-sellers.md} +0 -0
  212. /package/payload/premium-plugins/real-agency/{references/buyer-seller-guides-probate-guide.md → plugins/real-agency-buyers/skills/buyer-seller-guides/references/probate-guide.md} +0 -0
  213. /package/payload/premium-plugins/real-agency/{references/buyer-seller-guides-upsizing-guide.md → plugins/real-agency-buyers/skills/buyer-seller-guides/references/upsizing-guide.md} +0 -0
  214. /package/payload/premium-plugins/real-agency/{skills/property-enquiry.md → plugins/real-agency-buyers/skills/property-enquiry/SKILL.md} +0 -0
  215. /package/payload/premium-plugins/real-agency/{skills/viewing-management.md → plugins/real-agency-buyers/skills/viewing-management/SKILL.md} +0 -0
  216. /package/payload/premium-plugins/real-agency/{references/agent-performance-atomic-habits.md → plugins/real-agency-coaching/skills/agent-performance/references/atomic-habits.md} +0 -0
  217. /package/payload/premium-plugins/real-agency/{references/agent-performance-daily-routine-scorecard.md → plugins/real-agency-coaching/skills/agent-performance/references/daily-routine-scorecard.md} +0 -0
  218. /package/payload/premium-plugins/real-agency/{references/agent-performance-hp6-model.md → plugins/real-agency-coaching/skills/agent-performance/references/hp6-model.md} +0 -0
  219. /package/payload/premium-plugins/real-agency/{references/agent-performance-twelve-week-year.md → plugins/real-agency-coaching/skills/agent-performance/references/twelve-week-year.md} +0 -0
  220. /package/payload/premium-plugins/real-agency/{references/bespoke-coaching-coaching-boundaries.md → plugins/real-agency-coaching/skills/bespoke-coaching/references/coaching-boundaries.md} +0 -0
  221. /package/payload/premium-plugins/real-agency/{references/bespoke-coaching-feedback-framework.md → plugins/real-agency-coaching/skills/bespoke-coaching/references/feedback-framework.md} +0 -0
  222. /package/payload/premium-plugins/real-agency/{references/bespoke-coaching-performance-framework.md → plugins/real-agency-coaching/skills/bespoke-coaching/references/performance-framework.md} +0 -0
  223. /package/payload/premium-plugins/real-agency/{references/coaching-toolkit-coaching-exercises.md → plugins/real-agency-coaching/skills/coaching-toolkit/references/coaching-exercises.md} +0 -0
  224. /package/payload/premium-plugins/real-agency/{references/coaching-toolkit-goal-setting.md → plugins/real-agency-coaching/skills/coaching-toolkit/references/goal-setting.md} +0 -0
  225. /package/payload/premium-plugins/real-agency/{references/coaching-toolkit-one-to-one-framework.md → plugins/real-agency-coaching/skills/coaching-toolkit/references/one-to-one-framework.md} +0 -0
  226. /package/payload/premium-plugins/real-agency/{references/coaching-toolkit-soi-workbook.md → plugins/real-agency-coaching/skills/coaching-toolkit/references/soi-workbook.md} +0 -0
  227. /package/payload/premium-plugins/real-agency/{references/serhant-training-agent-training-guide.md → plugins/real-agency-coaching/skills/serhant-training/references/agent-training-guide.md} +0 -0
  228. /package/payload/premium-plugins/real-agency/{references/serhant-training-business-in-a-box.md → plugins/real-agency-coaching/skills/serhant-training/references/business-in-a-box.md} +0 -0
  229. /package/payload/premium-plugins/real-agency/{references/serhant-training-buyers-guide.md → plugins/real-agency-coaching/skills/serhant-training/references/buyers-guide.md} +0 -0
  230. /package/payload/premium-plugins/real-agency/{references/serhant-training-codo-method.md → plugins/real-agency-coaching/skills/serhant-training/references/codo-method.md} +0 -0
  231. /package/payload/premium-plugins/real-agency/{references/serhant-training-website-planning-guide.md → plugins/real-agency-coaching/skills/serhant-training/references/website-planning-guide.md} +0 -0
  232. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-buyer-search-letter.md → plugins/real-agency-leads/skills/lead-nurturing/references/buyer-search-letter.md} +0 -0
  233. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-buyer-search-letters.md → plugins/real-agency-leads/skills/lead-nurturing/references/buyer-search-letters.md} +0 -0
  234. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-email-nurture-sequences.md → plugins/real-agency-leads/skills/lead-nurturing/references/email-nurture-sequences.md} +0 -0
  235. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-facebook-referrals.md → plugins/real-agency-leads/skills/lead-nurturing/references/facebook-referrals.md} +0 -0
  236. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-firewave-email-nurture-sequences.md → plugins/real-agency-leads/skills/lead-nurturing/references/firewave-email-nurture-sequences.md} +0 -0
  237. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-keller-33-touch.md → plugins/real-agency-leads/skills/lead-nurturing/references/keller-33-touch.md} +0 -0
  238. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-neighbour-letters.md → plugins/real-agency-leads/skills/lead-nurturing/references/neighbour-letters.md} +0 -0
  239. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-neighbour-notification-letter.md → plugins/real-agency-leads/skills/lead-nurturing/references/neighbour-notification-letter.md} +0 -0
  240. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-ofi-follow-up-dialogue.md → plugins/real-agency-leads/skills/lead-nurturing/references/ofi-follow-up-dialogue.md} +0 -0
  241. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-ofi-follow-up.md → plugins/real-agency-leads/skills/lead-nurturing/references/ofi-follow-up.md} +0 -0
  242. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-serhant-three-fs-plus.md → plugins/real-agency-leads/skills/lead-nurturing/references/serhant-three-fs-plus.md} +0 -0
  243. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-sharran-10x10x10.md → plugins/real-agency-leads/skills/lead-nurturing/references/sharran-10x10x10.md} +0 -0
  244. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-sms-templates.md → plugins/real-agency-leads/skills/lead-nurturing/references/sms-templates.md} +0 -0
  245. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-sphere-of-influence-notes.md → plugins/real-agency-leads/skills/lead-nurturing/references/sphere-of-influence-notes.md} +0 -0
  246. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-sphere-of-influence.md → plugins/real-agency-leads/skills/lead-nurturing/references/sphere-of-influence.md} +0 -0
  247. /package/payload/premium-plugins/real-agency/{references/lead-nurturing-tom-panos-sms-templates.md → plugins/real-agency-leads/skills/lead-nurturing/references/tom-panos-sms-templates.md} +0 -0
  248. /package/payload/premium-plugins/real-agency/{references/prospecting-database-matching.md → plugins/real-agency-leads/skills/prospecting/references/database-matching.md} +0 -0
  249. /package/payload/premium-plugins/real-agency/{references/prospecting-database-value.md → plugins/real-agency-leads/skills/prospecting/references/database-value.md} +0 -0
  250. /package/payload/premium-plugins/real-agency/{references/prospecting-prospecting-dialogues.md → plugins/real-agency-leads/skills/prospecting/references/prospecting-dialogues.md} +0 -0
  251. /package/payload/premium-plugins/real-agency/{references/prospecting-reactivation.md → plugins/real-agency-leads/skills/prospecting/references/reactivation.md} +0 -0
  252. /package/payload/premium-plugins/real-agency/{references/home-preparation-kerb-appeal.md → plugins/real-agency-listings/skills/home-preparation/references/kerb-appeal.md} +0 -0
  253. /package/payload/premium-plugins/real-agency/{references/home-preparation-photo-day.md → plugins/real-agency-listings/skills/home-preparation/references/photo-day.md} +0 -0
  254. /package/payload/premium-plugins/real-agency/{references/home-preparation-situational-tips.md → plugins/real-agency-listings/skills/home-preparation/references/situational-tips.md} +0 -0
  255. /package/payload/premium-plugins/real-agency/{references/home-preparation-staging-guide.md → plugins/real-agency-listings/skills/home-preparation/references/staging-guide.md} +0 -0
  256. /package/payload/premium-plugins/real-agency/{references/listing-presentation-booking-script.md → plugins/real-agency-listings/skills/listing-presentation/references/booking-script.md} +0 -0
  257. /package/payload/premium-plugins/real-agency/{references/listing-presentation-objection-scripts.md → plugins/real-agency-listings/skills/listing-presentation/references/objection-scripts.md} +0 -0
  258. /package/payload/premium-plugins/real-agency/{references/listing-presentation-penhaul-presentation.md → plugins/real-agency-listings/skills/listing-presentation/references/penhaul-presentation.md} +0 -0
  259. /package/payload/premium-plugins/real-agency/{references/listing-presentation-pre-listing-kit.md → plugins/real-agency-listings/skills/listing-presentation/references/pre-listing-kit.md} +0 -0
  260. /package/payload/premium-plugins/real-agency/{references/listing-presentation-set-to-sell.md → plugins/real-agency-listings/skills/listing-presentation/references/set-to-sell.md} +0 -0
  261. /package/payload/premium-plugins/real-agency/{references/listing-presentation-sharran-frameworks.md → plugins/real-agency-listings/skills/listing-presentation/references/sharran-frameworks.md} +0 -0
  262. /package/payload/premium-plugins/real-agency/{references/property-marketing-auction-report-template.md → plugins/real-agency-listings/skills/property-marketing/references/auction-report-template.md} +0 -0
  263. /package/payload/premium-plugins/real-agency/{references/property-marketing-coming-soon-campaign.md → plugins/real-agency-listings/skills/property-marketing/references/coming-soon-campaign.md} +0 -0
  264. /package/payload/premium-plugins/real-agency/{references/property-marketing-direct-mail-templates.md → plugins/real-agency-listings/skills/property-marketing/references/direct-mail-templates.md} +0 -0
  265. /package/payload/premium-plugins/real-agency/{references/property-marketing-eoi-form-template.md → plugins/real-agency-listings/skills/property-marketing/references/eoi-form-template.md} +0 -0
  266. /package/payload/premium-plugins/real-agency/{references/property-marketing-monthly-scorecard.md → plugins/real-agency-listings/skills/property-marketing/references/monthly-scorecard.md} +0 -0
  267. /package/payload/premium-plugins/real-agency/{references/sales-closer-serhant-emotion-stages.md → plugins/real-agency-sales/skills/sales-closer/references/serhant-emotion-stages.md} +0 -0
  268. /package/payload/premium-plugins/real-agency/{references/sales-discovery-chris-voss-discovery.md → plugins/real-agency-sales/skills/sales-discovery/references/chris-voss-discovery.md} +0 -0
  269. /package/payload/premium-plugins/real-agency/{references/sales-discovery-firewave-gost-journey.md → plugins/real-agency-sales/skills/sales-discovery/references/firewave-gost-journey.md} +0 -0
  270. /package/payload/premium-plugins/real-agency/{references/sales-discovery-phil-jones-openers.md → plugins/real-agency-sales/skills/sales-discovery/references/phil-jones-openers.md} +0 -0
  271. /package/payload/premium-plugins/real-agency/{references/sales-discovery-pre-listing-checklist.md → plugins/real-agency-sales/skills/sales-discovery/references/pre-listing-checklist.md} +0 -0
  272. /package/payload/premium-plugins/real-agency/{references/sales-discovery-serhant-improv.md → plugins/real-agency-sales/skills/sales-discovery/references/serhant-improv.md} +0 -0
  273. /package/payload/premium-plugins/real-agency/{references/sales-discovery-tom-ferry-discovery.md → plugins/real-agency-sales/skills/sales-discovery/references/tom-ferry-discovery.md} +0 -0
  274. /package/payload/premium-plugins/real-agency/{references/sales-discovery-vendor-motivation-competitor.md → plugins/real-agency-sales/skills/sales-discovery/references/vendor-motivation-competitor.md} +0 -0
  275. /package/payload/premium-plugins/real-agency/{references/sales-negotiation-chris-voss-negotiation.md → plugins/real-agency-sales/skills/sales-negotiation/references/chris-voss-negotiation.md} +0 -0
  276. /package/payload/premium-plugins/real-agency/{references/sales-negotiation-phil-jones-price-words.md → plugins/real-agency-sales/skills/sales-negotiation/references/phil-jones-price-words.md} +0 -0
  277. /package/payload/premium-plugins/real-agency/{references/sales-negotiation-serhant-negotiation-plus.md → plugins/real-agency-sales/skills/sales-negotiation/references/serhant-negotiation-plus.md} +0 -0
  278. /package/payload/premium-plugins/real-agency/{references/sales-negotiation-tom-panos-commission-pricing.md → plugins/real-agency-sales/skills/sales-negotiation/references/tom-panos-commission-pricing.md} +0 -0
  279. /package/payload/premium-plugins/real-agency/{references/sales-negotiation-tony-morris-questioning.md → plugins/real-agency-sales/skills/sales-negotiation/references/tony-morris-questioning.md} +0 -0
  280. /package/payload/premium-plugins/real-agency/{references/sales-progression-conveyancing-guide.md → plugins/real-agency-sales/skills/sales-progression/references/conveyancing-guide.md} +0 -0
  281. /package/payload/premium-plugins/real-agency/{references/sales-progression-transaction-tracking.md → plugins/real-agency-sales/skills/sales-progression/references/transaction-tracking.md} +0 -0
  282. /package/payload/premium-plugins/real-agency/{references/content-directory-module-delivery.md → plugins/real-agency-teaching/skills/content-directory/references/module-delivery.md} +0 -0
  283. /package/payload/premium-plugins/real-agency/{references/content-directory-progress-tracking.md → plugins/real-agency-teaching/skills/content-directory/references/progress-tracking.md} +0 -0
  284. /package/payload/premium-plugins/real-agency/{references/negotiation-deal-saving.md → plugins/real-agency-vendors/skills/negotiation/references/deal-saving.md} +0 -0
  285. /package/payload/premium-plugins/real-agency/{references/negotiation-negotiation-deep-guide.md → plugins/real-agency-vendors/skills/negotiation/references/negotiation-deep-guide.md} +0 -0
  286. /package/payload/premium-plugins/real-agency/{references/negotiation-negotiation-prep-principles.md → plugins/real-agency-vendors/skills/negotiation/references/negotiation-prep-principles.md} +0 -0
  287. /package/payload/premium-plugins/real-agency/{references/negotiation-negotiation-techniques.md → plugins/real-agency-vendors/skills/negotiation/references/negotiation-techniques.md} +0 -0
  288. /package/payload/premium-plugins/real-agency/{references/negotiation-offer-presentation.md → plugins/real-agency-vendors/skills/negotiation/references/offer-presentation.md} +0 -0
  289. /package/payload/premium-plugins/real-agency/{skills/valuation-booking.md → plugins/real-agency-vendors/skills/valuation-booking/SKILL.md} +0 -0
  290. /package/payload/premium-plugins/real-agency/{references/vendor-communication-fee-protection-and-agenda.md → plugins/real-agency-vendors/skills/vendor-communication/references/fee-protection-and-agenda.md} +0 -0
  291. /package/payload/premium-plugins/real-agency/{references/vendor-communication-listing-scripts.md → plugins/real-agency-vendors/skills/vendor-communication/references/listing-scripts.md} +0 -0
  292. /package/payload/premium-plugins/real-agency/{references/vendor-communication-negotiation-deep-guide.md → plugins/real-agency-vendors/skills/vendor-communication/references/negotiation-deep-guide.md} +0 -0
  293. /package/payload/premium-plugins/real-agency/{references/vendor-communication-price-alignment-scripts.md → plugins/real-agency-vendors/skills/vendor-communication/references/price-alignment-scripts.md} +0 -0
  294. /package/payload/premium-plugins/real-agency/{references/vendor-communication-price-alignment.md → plugins/real-agency-vendors/skills/vendor-communication/references/price-alignment.md} +0 -0
  295. /package/payload/premium-plugins/real-agency/{references/vendor-communication-scenario-scripts.md → plugins/real-agency-vendors/skills/vendor-communication/references/scenario-scripts.md} +0 -0
  296. /package/payload/premium-plugins/real-agency/{references/vendor-communication-seller-engagement.md → plugins/real-agency-vendors/skills/vendor-communication/references/seller-engagement.md} +0 -0
  297. /package/payload/premium-plugins/real-agency/{references/vendor-communication-valuation-booking.md → plugins/real-agency-vendors/skills/vendor-communication/references/valuation-booking.md} +0 -0
  298. /package/payload/premium-plugins/real-agency/{references/vendor-communication-vendor-scripts.md → plugins/real-agency-vendors/skills/vendor-communication/references/vendor-scripts.md} +0 -0
  299. /package/payload/premium-plugins/real-agency/{references/vendor-communication-vendor-updates.md → plugins/real-agency-vendors/skills/vendor-communication/references/vendor-updates.md} +0 -0
  300. /package/payload/premium-plugins/teaching/skills/{interactive-tutor.md → interactive-tutor/SKILL.md} +0 -0
  301. /package/payload/premium-plugins/teaching/{references → skills/interactive-tutor/references}/assessment.md +0 -0
  302. /package/payload/premium-plugins/teaching/{references → skills/interactive-tutor/references}/classroom-conduct.md +0 -0
  303. /package/payload/premium-plugins/teaching/{references → skills/interactive-tutor/references}/teaching-modes.md +0 -0
  304. /package/payload/premium-plugins/teaching/skills/{lesson-planner.md → lesson-planner/SKILL.md} +0 -0
  305. /package/payload/premium-plugins/teaching/{references → skills/lesson-planner/references}/context-gathering.md +0 -0
  306. /package/payload/premium-plugins/teaching/{references → skills/lesson-planner/references}/plan-structure.md +0 -0
  307. /package/payload/premium-plugins/teaching/skills/{study-pack-builder.md → study-pack-builder/SKILL.md} +0 -0
  308. /package/payload/premium-plugins/teaching/{references → skills/study-pack-builder/references}/disaggregation.md +0 -0
  309. /package/payload/premium-plugins/teaching/{references → skills/study-pack-builder/references}/materials.md +0 -0
  310. /package/payload/premium-plugins/writer-craft/skills/{citation-style.md → citation-style/SKILL.md} +0 -0
  311. /package/payload/premium-plugins/writer-craft/{references → skills/citation-style/references}/book-and-chapter-models.md +0 -0
  312. /package/payload/premium-plugins/writer-craft/{references → skills/citation-style/references}/citation-rules.md +0 -0
  313. /package/payload/premium-plugins/writer-craft/{references → skills/citation-style/references}/journal-article-models.md +0 -0
  314. /package/payload/premium-plugins/writer-craft/{references → skills/citation-style/references}/other-source-models.md +0 -0
  315. /package/payload/premium-plugins/writer-craft/{references → skills/citation-style/references}/reference-list-rules.md +0 -0
  316. /package/payload/premium-plugins/writer-craft/skills/{editorial-practice.md → editorial-practice/SKILL.md} +0 -0
  317. /package/payload/premium-plugins/writer-craft/{references → skills/editorial-practice/references}/copyediting.md +0 -0
  318. /package/payload/premium-plugins/writer-craft/{references → skills/editorial-practice/references}/developmental-editing.md +0 -0
  319. /package/payload/premium-plugins/writer-craft/{references → skills/editorial-practice/references}/genre-specific-editing.md +0 -0
  320. /package/payload/premium-plugins/writer-craft/{references → skills/editorial-practice/references}/line-editing.md +0 -0
  321. /package/payload/premium-plugins/writer-craft/{references → skills/editorial-practice/references}/self-editing.md +0 -0
  322. /package/payload/premium-plugins/writer-craft/skills/{persuasive-storytelling.md → persuasive-storytelling/SKILL.md} +0 -0
  323. /package/payload/premium-plugins/writer-craft/{references → skills/persuasive-storytelling/references}/audience-analysis.md +0 -0
  324. /package/payload/premium-plugins/writer-craft/{references → skills/persuasive-storytelling/references}/crafting-persuasive-story.md +0 -0
  325. /package/payload/premium-plugins/writer-craft/{references → skills/persuasive-storytelling/references}/persuasion-case-studies.md +0 -0
  326. /package/payload/premium-plugins/writer-craft/{references → skills/persuasive-storytelling/references}/transformation-framework.md +0 -0
  327. /package/payload/premium-plugins/writer-craft/skills/{point-of-view.md → point-of-view/SKILL.md} +0 -0
  328. /package/payload/premium-plugins/writer-craft/{references → skills/point-of-view/references}/indirect-narration.md +0 -0
  329. /package/payload/premium-plugins/writer-craft/{references → skills/point-of-view/references}/pov-types-and-voice.md +0 -0
  330. /package/payload/premium-plugins/writer-craft/{references → skills/point-of-view/references}/protagonist-filter.md +0 -0
  331. /package/payload/premium-plugins/writer-craft/{references → skills/point-of-view/references}/tense-and-person.md +0 -0
  332. /package/payload/premium-plugins/writer-craft/skills/{prose-craft.md → prose-craft/SKILL.md} +0 -0
  333. /package/payload/premium-plugins/writer-craft/{references → skills/prose-craft/references}/punctuation-and-grammar.md +0 -0
  334. /package/payload/premium-plugins/writer-craft/{references → skills/prose-craft/references}/repetition.md +0 -0
  335. /package/payload/premium-plugins/writer-craft/{references → skills/prose-craft/references}/sound-and-rhythm.md +0 -0
  336. /package/payload/premium-plugins/writer-craft/{references → skills/prose-craft/references}/word-economy.md +0 -0
  337. /package/payload/premium-plugins/writer-craft/skills/{reader-engagement.md → reader-engagement/SKILL.md} +0 -0
  338. /package/payload/premium-plugins/writer-craft/{references → skills/reader-engagement/references}/cause-effect-setup-payoff.md +0 -0
  339. /package/payload/premium-plugins/writer-craft/{references → skills/reader-engagement/references}/conflict-escalation.md +0 -0
  340. /package/payload/premium-plugins/writer-craft/{references → skills/reader-engagement/references}/hooking-readers.md +0 -0
  341. /package/payload/premium-plugins/writer-craft/{references → skills/reader-engagement/references}/neurochemistry-of-engagement.md +0 -0
  342. /package/payload/premium-plugins/writer-craft/skills/{review-manuscript.md → review-manuscript/SKILL.md} +0 -0
  343. /package/payload/premium-plugins/writer-craft/{references → skills/review-manuscript/references}/review-manuscript-checklist.md +0 -0
  344. /package/payload/premium-plugins/writer-craft/skills/{review-prose.md → review-prose/SKILL.md} +0 -0
  345. /package/payload/premium-plugins/writer-craft/{references → skills/review-prose/references}/prose-review-checklist.md +0 -0
  346. /package/payload/premium-plugins/writer-craft/skills/{review-scene.md → review-scene/SKILL.md} +0 -0
  347. /package/payload/premium-plugins/writer-craft/{references → skills/review-scene/references}/scene-analysis-framework.md +0 -0
  348. /package/payload/premium-plugins/writer-craft/skills/{story-architecture.md → story-architecture/SKILL.md} +0 -0
  349. /package/payload/premium-plugins/writer-craft/{references → skills/story-architecture/references}/blueprinting-and-scene-cards.md +0 -0
  350. /package/payload/premium-plugins/writer-craft/{references → skills/story-architecture/references}/inner-issue-and-protagonist-goal.md +0 -0
  351. /package/payload/premium-plugins/writer-craft/{references → skills/story-architecture/references}/misbelief-desire-worldview.md +0 -0
  352. /package/payload/premium-plugins/writer-craft/{references → skills/story-architecture/references}/origin-scenes-and-escalation.md +0 -0
  353. /package/payload/premium-plugins/writer-craft/skills/{story-blueprint.md → story-blueprint/SKILL.md} +0 -0
  354. /package/payload/premium-plugins/writer-craft/{references → skills/story-blueprint/references}/blueprinting-exercises.md +0 -0
  355. /package/payload/premium-plugins/writer-craft/{references → skills/story-blueprint/references}/blueprinting-process.md +0 -0
@@ -1,31 +1,23 @@
1
1
  /**
2
- * OAuth-authenticated LLM calls for workflow steps.
2
+ * LLM calls for workflow steps via Claude Code subprocess.
3
3
  *
4
- * Reads Claude Code OAuth credentials from ~/.claude/.credentials.json,
5
- * refreshes expired tokens, and makes one-shot Messages API calls using
6
- * Bearer authentication. This is the admin-side model access path
7
- * the Anthropic API key is exclusively for the public agent.
4
+ * Spawns `claude --print` as a child process with the resolved prompt.
5
+ * Claude Code handles its own OAuth authentication internally no
6
+ * credential reading, token refresh, or API endpoint logic needed here.
7
+ * This is the same mechanism the admin chat uses (claude-agent.ts).
8
8
  *
9
- * READ CREDENTIALS (~/.claude/.credentials.json)
9
+ * VALIDATE PROMPT
10
10
  * │
11
- * ├─ missing / corrupt → throw (no silent fallback)
11
+ * ├─ empty → throw (no silent fallback)
12
12
  * │
13
- *
14
- * CHECK EXPIRY
13
+ * v
14
+ * SPAWN claude --print --model <model> --max-turns 1
15
15
  * │
16
- * ├─ validproceed
17
- * ├─ expiring / expired REFRESH TOKEN
18
- * ├─ successproceed with new token
19
- * │ └─ failure → throw (no silent fallback)
20
- *
21
- * ▼
22
- * FETCH api.anthropic.com/v1/messages
23
- * │
24
- * ├─ 200 → extract text content → return
25
- * ├─ 429 → throw (caller retries via onFailure policy)
26
- * ├─ 401 → throw auth error
27
- * ├─ 5xx → throw (caller retries via onFailure policy)
28
- * └─ timeout → throw (caller retries via onFailure policy)
16
+ * ├─ ENOENT (not in PATH) throw
17
+ * ├─ non-zero exitthrow with stderr
18
+ * ├─ timeoutSIGTERM throw
19
+ * ├─ empty stdout → throw
20
+ * └─ stdout text → return
29
21
  */
30
22
  export interface LlmCallParams {
31
23
  prompt: string;
@@ -39,7 +31,7 @@ export interface LlmCallParams {
39
31
  */
40
32
  export declare function readAdminModel(platformRoot: string, accountId: string): string | null;
41
33
  /**
42
- * Execute a one-shot LLM call using Claude Code OAuth authentication.
34
+ * Execute a one-shot LLM call by spawning Claude Code.
43
35
  *
44
36
  * Returns the model's text response. The caller is responsible for
45
37
  * parsing the response (JSON or raw text) via parseStepOutput().
@@ -1 +1 @@
1
- {"version":3,"file":"llm-call.d.ts","sourceRoot":"","sources":["../../src/lib/llm-call.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA+BH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAuLD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmBrF;AAMD;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CA4E3E"}
1
+ {"version":3,"file":"llm-call.d.ts","sourceRoot":"","sources":["../../src/lib/llm-call.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAUH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAMD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmBrF;AASD;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CA6D3E"}
@@ -1,186 +1,27 @@
1
1
  /**
2
- * OAuth-authenticated LLM calls for workflow steps.
2
+ * LLM calls for workflow steps via Claude Code subprocess.
3
3
  *
4
- * Reads Claude Code OAuth credentials from ~/.claude/.credentials.json,
5
- * refreshes expired tokens, and makes one-shot Messages API calls using
6
- * Bearer authentication. This is the admin-side model access path
7
- * the Anthropic API key is exclusively for the public agent.
4
+ * Spawns `claude --print` as a child process with the resolved prompt.
5
+ * Claude Code handles its own OAuth authentication internally no
6
+ * credential reading, token refresh, or API endpoint logic needed here.
7
+ * This is the same mechanism the admin chat uses (claude-agent.ts).
8
8
  *
9
- * READ CREDENTIALS (~/.claude/.credentials.json)
9
+ * VALIDATE PROMPT
10
10
  * │
11
- * ├─ missing / corrupt → throw (no silent fallback)
11
+ * ├─ empty → throw (no silent fallback)
12
12
  * │
13
- *
14
- * CHECK EXPIRY
13
+ * v
14
+ * SPAWN claude --print --model <model> --max-turns 1
15
15
  * │
16
- * ├─ validproceed
17
- * ├─ expiring / expired REFRESH TOKEN
18
- * ├─ successproceed with new token
19
- * │ └─ failure → throw (no silent fallback)
20
- *
21
- * ▼
22
- * FETCH api.anthropic.com/v1/messages
23
- * │
24
- * ├─ 200 → extract text content → return
25
- * ├─ 429 → throw (caller retries via onFailure policy)
26
- * ├─ 401 → throw auth error
27
- * ├─ 5xx → throw (caller retries via onFailure policy)
28
- * └─ timeout → throw (caller retries via onFailure policy)
16
+ * ├─ ENOENT (not in PATH) throw
17
+ * ├─ non-zero exitthrow with stderr
18
+ * ├─ timeoutSIGTERM throw
19
+ * ├─ empty stdout → throw
20
+ * └─ stdout text → return
29
21
  */
30
- import { readFileSync, writeFileSync } from "node:fs";
22
+ import { spawn } from "node:child_process";
23
+ import { readFileSync } from "node:fs";
31
24
  import { resolve } from "node:path";
32
- import { homedir } from "node:os";
33
- // ─────────────────────────────────────────────────────────────
34
- // Constants
35
- // ─────────────────────────────────────────────────────────────
36
- const CREDENTIALS_FILE = resolve(homedir(), ".claude", ".credentials.json");
37
- const MESSAGES_API = "https://api.anthropic.com/v1/messages";
38
- const TOKEN_ENDPOINT = "https://platform.claude.com/v1/oauth/token";
39
- const CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e";
40
- const API_VERSION = "2023-06-01";
41
- /** Trigger refresh when token expires within this window. */
42
- const EXPIRING_THRESHOLD_MS = 5 * 60 * 1000; // 5 minutes
43
- const DEFAULT_MAX_TOKENS = 4096;
44
- // ─────────────────────────────────────────────────────────────
45
- // Credential reading
46
- // ─────────────────────────────────────────────────────────────
47
- /**
48
- * Read Claude Code OAuth credentials from ~/.claude/.credentials.json.
49
- * Throws if the file is missing, corrupt, or lacks the required fields.
50
- */
51
- function readCredentials() {
52
- let raw;
53
- try {
54
- raw = readFileSync(CREDENTIALS_FILE, "utf-8");
55
- }
56
- catch {
57
- throw new Error("Claude Code is not authenticated — no credentials file found. " +
58
- "Sign in via the browser to authenticate.");
59
- }
60
- let data;
61
- try {
62
- data = JSON.parse(raw);
63
- }
64
- catch {
65
- throw new Error("Claude Code credentials file is corrupt — cannot parse JSON.");
66
- }
67
- const claudeOauth = data.claudeAiOauth;
68
- if (!claudeOauth || typeof claudeOauth !== "object") {
69
- throw new Error("Claude Code credentials file is missing the claudeAiOauth section. " +
70
- "Sign in via the browser to authenticate.");
71
- }
72
- const accessToken = claudeOauth.accessToken;
73
- const refreshToken = claudeOauth.refreshToken;
74
- const expiresAt = claudeOauth.expiresAt;
75
- if (typeof accessToken !== "string" || !accessToken) {
76
- throw new Error("Claude Code credentials are missing an access token.");
77
- }
78
- if (typeof expiresAt !== "number" || !Number.isFinite(expiresAt) || expiresAt <= 0) {
79
- throw new Error("Claude Code credentials have an invalid expiry.");
80
- }
81
- return {
82
- accessToken,
83
- refreshToken: typeof refreshToken === "string" && refreshToken ? refreshToken : null,
84
- expiresAt,
85
- };
86
- }
87
- // ─────────────────────────────────────────────────────────────
88
- // Token refresh
89
- // ─────────────────────────────────────────────────────────────
90
- /**
91
- * Refresh the OAuth access token. Writes the new credentials back to
92
- * the credentials file so the Claude CLI stays in sync.
93
- *
94
- * Throws on all failure paths — no silent fallback.
95
- */
96
- async function refreshAccessToken(creds) {
97
- if (!creds.refreshToken) {
98
- throw new Error("Claude Code access token has expired and no refresh token is available. " +
99
- "Re-authenticate via the browser.");
100
- }
101
- let res;
102
- try {
103
- res = await fetch(TOKEN_ENDPOINT, {
104
- method: "POST",
105
- headers: { "Content-Type": "application/x-www-form-urlencoded" },
106
- body: new URLSearchParams({
107
- grant_type: "refresh_token",
108
- refresh_token: creds.refreshToken,
109
- client_id: CLIENT_ID,
110
- }),
111
- });
112
- }
113
- catch (err) {
114
- throw new Error(`Failed to reach Claude token endpoint: ${err instanceof Error ? err.message : String(err)}`);
115
- }
116
- if (res.status === 429) {
117
- throw new Error("Claude token refresh rate-limited — retry later.");
118
- }
119
- if (!res.ok) {
120
- const body = await res.text().catch(() => "");
121
- if (res.status >= 400 && res.status < 500) {
122
- throw new Error("Claude Code refresh token is expired or revoked. " +
123
- "Re-authenticate via the browser.");
124
- }
125
- throw new Error(`Claude token refresh failed: HTTP ${res.status} — ${body.slice(0, 200)}`);
126
- }
127
- let tokenData;
128
- try {
129
- tokenData = (await res.json());
130
- }
131
- catch {
132
- throw new Error("Claude token refresh returned malformed JSON.");
133
- }
134
- const newAccessToken = tokenData.access_token;
135
- const newRefreshToken = tokenData.refresh_token;
136
- const expiresIn = tokenData.expires_in;
137
- if (!newAccessToken || typeof newAccessToken !== "string") {
138
- throw new Error("Claude token refresh response is missing access_token.");
139
- }
140
- const newExpiresAt = typeof expiresIn === "number" && expiresIn > 0
141
- ? Date.now() + expiresIn * 1000
142
- : Date.now() + 3600 * 1000; // fallback: 1 hour
143
- const refreshed = {
144
- accessToken: newAccessToken,
145
- refreshToken: newRefreshToken ?? creds.refreshToken,
146
- expiresAt: newExpiresAt,
147
- };
148
- // Write back to credentials file — best effort
149
- try {
150
- const rawFile = readFileSync(CREDENTIALS_FILE, "utf-8");
151
- const fileData = JSON.parse(rawFile);
152
- const existingOauth = fileData.claudeAiOauth;
153
- fileData.claudeAiOauth = {
154
- ...existingOauth,
155
- accessToken: newAccessToken,
156
- refreshToken: refreshed.refreshToken,
157
- expiresAt: newExpiresAt,
158
- };
159
- writeFileSync(CREDENTIALS_FILE, JSON.stringify(fileData, null, 2), "utf-8");
160
- console.error("[llm-call] token refreshed successfully");
161
- }
162
- catch (err) {
163
- // Refresh succeeded but write-back failed. The in-memory token is valid
164
- // for this invocation; the next invocation will attempt its own refresh.
165
- console.error(`[llm-call] token refresh write-back failed: ${err instanceof Error ? err.message : String(err)}`);
166
- }
167
- return refreshed;
168
- }
169
- /**
170
- * Ensure we have a valid access token. Reads credentials, refreshes if
171
- * expiring or expired. Returns the valid access token string.
172
- */
173
- async function ensureAccessToken() {
174
- let creds = readCredentials();
175
- const remaining = creds.expiresAt - Date.now();
176
- if (remaining > EXPIRING_THRESHOLD_MS) {
177
- return creds.accessToken;
178
- }
179
- // Expiring or expired — refresh
180
- console.error(`[llm-call] token ${remaining > 0 ? "expiring" : "expired"}, refreshing...`);
181
- creds = await refreshAccessToken(creds);
182
- return creds.accessToken;
183
- }
184
25
  // ─────────────────────────────────────────────────────────────
185
26
  // Account config reading
186
27
  // ─────────────────────────────────────────────────────────────
@@ -208,74 +49,64 @@ export function readAdminModel(platformRoot, accountId) {
208
49
  }
209
50
  }
210
51
  // ─────────────────────────────────────────────────────────────
211
- // LLM call
52
+ // LLM call via Claude Code subprocess
212
53
  // ─────────────────────────────────────────────────────────────
54
+ /** Max stderr to capture — enough for diagnostics, bounded to prevent OOM. */
55
+ const MAX_STDERR_BYTES = 4096;
213
56
  /**
214
- * Execute a one-shot LLM call using Claude Code OAuth authentication.
57
+ * Execute a one-shot LLM call by spawning Claude Code.
215
58
  *
216
59
  * Returns the model's text response. The caller is responsible for
217
60
  * parsing the response (JSON or raw text) via parseStepOutput().
218
61
  */
219
62
  export async function executeLlmCall(params) {
220
- const { prompt, model, maxTokens = DEFAULT_MAX_TOKENS, timeoutMs } = params;
63
+ const { prompt, model, timeoutMs } = params;
221
64
  if (!prompt.trim()) {
222
65
  throw new Error("LLM step has an empty prompt — nothing to send to the model.");
223
66
  }
224
- // Ensure we have a valid OAuth token
225
- const accessToken = await ensureAccessToken();
226
- // Make the API call — never log the access token
227
- console.error(`[llm-call] calling model=${model}, maxTokens=${maxTokens}`);
228
- let res;
229
- try {
230
- res = await fetch(MESSAGES_API, {
231
- method: "POST",
232
- headers: {
233
- "Content-Type": "application/json",
234
- "Authorization": `Bearer ${accessToken}`,
235
- "anthropic-version": API_VERSION,
236
- },
237
- body: JSON.stringify({
238
- model,
239
- max_tokens: maxTokens,
240
- messages: [{ role: "user", content: prompt }],
241
- }),
242
- signal: AbortSignal.timeout(timeoutMs),
67
+ console.error(`[llm-call] spawning Claude Code: model=${model}`);
68
+ const args = [
69
+ "--print",
70
+ "--model", model,
71
+ "--max-turns", "1",
72
+ "--permission-mode", "dontAsk",
73
+ prompt,
74
+ ];
75
+ return new Promise((promiseResolve, reject) => {
76
+ const proc = spawn("claude", args, {
77
+ stdio: ["ignore", "pipe", "pipe"],
243
78
  });
244
- }
245
- catch (err) {
246
- const msg = err instanceof Error ? err.message : String(err);
247
- if (msg.includes("abort") || msg.includes("timeout") || msg.includes("TimeoutError")) {
248
- throw new Error(`LLM call timed out after ${timeoutMs}ms`);
249
- }
250
- throw new Error(`LLM call failed: ${msg}`);
251
- }
252
- if (res.status === 429) {
253
- const retryAfter = res.headers.get("retry-after");
254
- throw new Error(`LLM rate limited (429)${retryAfter ? ` — retry after ${retryAfter}s` : ""}`);
255
- }
256
- if (res.status === 401) {
257
- throw new Error("LLM call returned 401 — Claude Code authentication may have expired. " +
258
- "Re-authenticate via the browser.");
259
- }
260
- if (!res.ok) {
261
- const body = await res.text().catch(() => "");
262
- throw new Error(`LLM call failed: HTTP ${res.status} — ${body.slice(0, 300)}`);
263
- }
264
- let apiResponse;
265
- try {
266
- apiResponse = (await res.json());
267
- }
268
- catch {
269
- throw new Error("LLM call returned malformed JSON response.");
270
- }
271
- const text = (apiResponse.content ?? [])
272
- .filter((b) => b.type === "text")
273
- .map((b) => b.text ?? "")
274
- .join("\n");
275
- if (!text.trim()) {
276
- throw new Error("LLM returned an empty response — no text content.");
277
- }
278
- console.error(`[llm-call] response: ${text.length} chars`);
279
- return text;
79
+ let stdout = "";
80
+ let stderr = "";
81
+ proc.stdout.on("data", (chunk) => {
82
+ stdout += chunk.toString("utf-8");
83
+ });
84
+ proc.stderr.on("data", (chunk) => {
85
+ if (stderr.length < MAX_STDERR_BYTES) {
86
+ stderr += chunk.toString("utf-8").slice(0, MAX_STDERR_BYTES - stderr.length);
87
+ }
88
+ });
89
+ const timer = setTimeout(() => {
90
+ proc.kill("SIGTERM");
91
+ reject(new Error(`LLM call timed out after ${timeoutMs}ms`));
92
+ }, timeoutMs);
93
+ proc.on("close", (code) => {
94
+ clearTimeout(timer);
95
+ if (code !== 0) {
96
+ reject(new Error(`Claude Code exited with code ${code}${stderr ? `\nstderr: ${stderr.trim()}` : ""}`));
97
+ return;
98
+ }
99
+ if (!stdout.trim()) {
100
+ reject(new Error("Claude Code returned an empty response."));
101
+ return;
102
+ }
103
+ console.error(`[llm-call] response: ${stdout.length} chars`);
104
+ promiseResolve(stdout);
105
+ });
106
+ proc.on("error", (err) => {
107
+ clearTimeout(timer);
108
+ reject(new Error(`Failed to spawn Claude Code: ${err.message}`));
109
+ });
110
+ });
280
111
  }
281
112
  //# sourceMappingURL=llm-call.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"llm-call.js","sourceRoot":"","sources":["../../src/lib/llm-call.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,gEAAgE;AAChE,YAAY;AACZ,gEAAgE;AAEhE,MAAM,gBAAgB,GAAG,OAAO,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,mBAAmB,CAAC,CAAC;AAC5E,MAAM,YAAY,GAAG,uCAAuC,CAA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AK,GAAG,UAAU,CAAC,GAAG,EAAE;YAC5B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACrB,MAAM,CAAC,IAAI,KAAK,CAAC,4BAA4B,SAAS,IAAI,CAAC,CAAC,CAAC;QAC/D,CAAC,EAAE,SAAS,CAAC,CAAC;QAEd,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;YACxB,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;gBACf,MAAM,CAAC,IAAI,KAAK,CACd,gCAAgC,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,aAAa,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CACpF,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;gBACnB,MAAM,CAAC,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC,CAAC;gBAC7D,OAAO;YACT,CAAC;YACD,OAAO,CAAC,KAAK,CAAC,wBAAwB,MAAM,CAAC,MAAM,QAAQ,CAAC,CAAC;YAC7D,cAAc,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;YACvB,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,CAAC,IAAI,KAAK,CAAC,gCAAgC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -6,18 +6,18 @@
6
6
  *
7
7
  * STEPS (unordered)
8
8
  * │
9
- *
9
+ * v
10
10
  * resolveOrder() ──→ Kahn's algorithm (topological sort)
11
11
  * │ ├─ cycle detected → CyclicDependencyError
12
12
  * │ └─ position tiebreak for independent steps
13
- *
13
+ * v
14
14
  * ORDERED STEPS
15
15
  * │
16
- *
16
+ * v
17
17
  * resolveTemplates() ──→ {{key.path}} substitution
18
18
  * │ ├─ JSON parse output, fallback to {_raw: text}
19
19
  * │ └─ unresolved → UnresolvedTemplateError
20
- *
20
+ * v
21
21
  * RESOLVED PARAMS
22
22
  */
23
23
  interface StepBase {
@@ -6,18 +6,18 @@
6
6
  *
7
7
  * STEPS (unordered)
8
8
  * │
9
- *
9
+ * v
10
10
  * resolveOrder() ──→ Kahn's algorithm (topological sort)
11
11
  * │ ├─ cycle detected → CyclicDependencyError
12
12
  * │ └─ position tiebreak for independent steps
13
- *
13
+ * v
14
14
  * ORDERED STEPS
15
15
  * │
16
- *
16
+ * v
17
17
  * resolveTemplates() ──→ {{key.path}} substitution
18
18
  * │ ├─ JSON parse output, fallback to {_raw: text}
19
19
  * │ └─ unresolved → UnresolvedTemplateError
20
- *
20
+ * v
21
21
  * RESOLVED PARAMS
22
22
  */
23
23
  // ─────────────────────────────────────────────────────────────
@@ -7,28 +7,28 @@
7
7
  *
8
8
  * Two step types are supported:
9
9
  * type: "tool" — spawns a plugin MCP server child process
10
- * type: "llm" — makes a direct API call via Claude Code OAuth
10
+ * type: "llm" — spawns Claude Code subprocess (handles its own OAuth)
11
11
  *
12
12
  * LOAD WORKFLOW + STEPS
13
13
  * │
14
- *
14
+ * v
15
15
  * CREATE WorkflowRun (status: running)
16
16
  * │
17
- *
17
+ * v
18
18
  * RESOLVE ORDER (topological sort)
19
19
  * │
20
- *
20
+ * v
21
21
  * FOR EACH STEP:
22
22
  * ├─ type: "tool"
23
23
  * │ resolve {{templates}} in params → spawn MCP server → call tool
24
24
  * ├─ type: "llm"
25
- * │ resolve {{templates}} in prompt → OAuth API callextract text
25
+ * │ resolve {{templates}} in prompt → spawn Claude Codecapture text
26
26
  * ├─ parse output (JSON or _raw fallback, strips markdown fences)
27
27
  * ├─ store output under step's outputKey
28
28
  * ├─ create StepResult node
29
29
  * └─ on failure: abort | skip | retry (per step config)
30
30
  * │
31
- *
31
+ * v
32
32
  * UPDATE WorkflowRun (completed | partial | failed)
33
33
  */
34
34
  export interface WorkflowExecuteParams {
@@ -7,28 +7,28 @@
7
7
  *
8
8
  * Two step types are supported:
9
9
  * type: "tool" — spawns a plugin MCP server child process
10
- * type: "llm" — makes a direct API call via Claude Code OAuth
10
+ * type: "llm" — spawns Claude Code subprocess (handles its own OAuth)
11
11
  *
12
12
  * LOAD WORKFLOW + STEPS
13
13
  * │
14
- *
14
+ * v
15
15
  * CREATE WorkflowRun (status: running)
16
16
  * │
17
- *
17
+ * v
18
18
  * RESOLVE ORDER (topological sort)
19
19
  * │
20
- *
20
+ * v
21
21
  * FOR EACH STEP:
22
22
  * ├─ type: "tool"
23
23
  * │ resolve {{templates}} in params → spawn MCP server → call tool
24
24
  * ├─ type: "llm"
25
- * │ resolve {{templates}} in prompt → OAuth API callextract text
25
+ * │ resolve {{templates}} in prompt → spawn Claude Codecapture text
26
26
  * ├─ parse output (JSON or _raw fallback, strips markdown fences)
27
27
  * ├─ store output under step's outputKey
28
28
  * ├─ create StepResult node
29
29
  * └─ on failure: abort | skip | retry (per step config)
30
30
  * │
31
- *
31
+ * v
32
32
  * UPDATE WorkflowRun (completed | partial | failed)
33
33
  */
34
34
  import { randomUUID } from "node:crypto";
@@ -263,7 +263,7 @@ export async function workflowExecute(params) {
263
263
  stepOutput = result.text;
264
264
  }
265
265
  else {
266
- // ── LLM step: resolve prompt, make OAuth API call ──
266
+ // ── LLM step: resolve prompt, spawn Claude Code ──
267
267
  const resolvedPrompt = resolveStringTemplate(step.prompt, outputContext);
268
268
  if (typeof resolvedPrompt !== "string") {
269
269
  throw new Error("LLM prompt resolved to a non-string value — prompt templates must resolve to text");
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-execute.js","sourceRoot":"","sources":["../../src/tools/workflow-execute.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE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