@l4yercak3/cli 1.3.1 → 2.0.0-alpha.0

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 (357) hide show
  1. package/README.md +10 -220
  2. package/dist/api/client.d.ts +12 -0
  3. package/dist/api/client.d.ts.map +1 -0
  4. package/dist/api/client.js +37 -0
  5. package/dist/api/client.js.map +1 -0
  6. package/dist/api/platform.d.ts +161 -0
  7. package/dist/api/platform.d.ts.map +1 -0
  8. package/dist/api/platform.js +70 -0
  9. package/dist/api/platform.js.map +1 -0
  10. package/dist/bin/sevenlayers.d.ts +3 -0
  11. package/dist/bin/sevenlayers.d.ts.map +1 -0
  12. package/dist/bin/sevenlayers.js +198 -0
  13. package/dist/bin/sevenlayers.js.map +1 -0
  14. package/dist/commands/agent/catalog.d.ts +5 -0
  15. package/dist/commands/agent/catalog.d.ts.map +1 -0
  16. package/dist/commands/agent/catalog.js +142 -0
  17. package/dist/commands/agent/catalog.js.map +1 -0
  18. package/dist/commands/agent/drift.d.ts +5 -0
  19. package/dist/commands/agent/drift.d.ts.map +1 -0
  20. package/dist/commands/agent/drift.js +113 -0
  21. package/dist/commands/agent/drift.js.map +1 -0
  22. package/dist/commands/agent/init.d.ts +5 -0
  23. package/dist/commands/agent/init.d.ts.map +1 -0
  24. package/dist/commands/agent/init.js +75 -0
  25. package/dist/commands/agent/init.js.map +1 -0
  26. package/dist/commands/agent/permissions.d.ts +5 -0
  27. package/dist/commands/agent/permissions.d.ts.map +1 -0
  28. package/dist/commands/agent/permissions.js +88 -0
  29. package/dist/commands/agent/permissions.js.map +1 -0
  30. package/dist/commands/agent/runner.d.ts +14 -0
  31. package/dist/commands/agent/runner.d.ts.map +1 -0
  32. package/dist/commands/agent/runner.js +59 -0
  33. package/dist/commands/agent/runner.js.map +1 -0
  34. package/dist/commands/agent/shared.d.ts +13 -0
  35. package/dist/commands/agent/shared.d.ts.map +1 -0
  36. package/dist/commands/agent/shared.js +31 -0
  37. package/dist/commands/agent/shared.js.map +1 -0
  38. package/dist/commands/agent/template.d.ts +5 -0
  39. package/dist/commands/agent/template.d.ts.map +1 -0
  40. package/dist/commands/agent/template.js +104 -0
  41. package/dist/commands/agent/template.js.map +1 -0
  42. package/dist/commands/app/connect.d.ts +7 -0
  43. package/dist/commands/app/connect.d.ts.map +1 -0
  44. package/dist/commands/app/connect.js +12 -0
  45. package/dist/commands/app/connect.js.map +1 -0
  46. package/dist/commands/app/init.d.ts +7 -0
  47. package/dist/commands/app/init.d.ts.map +1 -0
  48. package/dist/commands/app/init.js +12 -0
  49. package/dist/commands/app/init.js.map +1 -0
  50. package/dist/commands/app/link.d.ts +3 -0
  51. package/dist/commands/app/link.d.ts.map +1 -0
  52. package/dist/commands/app/link.js +92 -0
  53. package/dist/commands/app/link.js.map +1 -0
  54. package/dist/commands/app/pages.d.ts +15 -0
  55. package/dist/commands/app/pages.d.ts.map +1 -0
  56. package/dist/commands/app/pages.js +180 -0
  57. package/dist/commands/app/pages.js.map +1 -0
  58. package/dist/commands/app/register.d.ts +3 -0
  59. package/dist/commands/app/register.d.ts.map +1 -0
  60. package/dist/commands/app/register.js +120 -0
  61. package/dist/commands/app/register.js.map +1 -0
  62. package/dist/commands/app/remote.d.ts +14 -0
  63. package/dist/commands/app/remote.d.ts.map +1 -0
  64. package/dist/commands/app/remote.js +44 -0
  65. package/dist/commands/app/remote.js.map +1 -0
  66. package/dist/commands/app/setup.d.ts +3 -0
  67. package/dist/commands/app/setup.d.ts.map +1 -0
  68. package/dist/commands/app/setup.js +299 -0
  69. package/dist/commands/app/setup.js.map +1 -0
  70. package/dist/commands/app/shared.d.ts +9 -0
  71. package/dist/commands/app/shared.d.ts.map +1 -0
  72. package/dist/commands/app/shared.js +122 -0
  73. package/dist/commands/app/shared.js.map +1 -0
  74. package/dist/commands/app/sync.d.ts +7 -0
  75. package/dist/commands/app/sync.d.ts.map +1 -0
  76. package/dist/commands/app/sync.js +107 -0
  77. package/dist/commands/app/sync.js.map +1 -0
  78. package/dist/commands/booking/check.d.ts +3 -0
  79. package/dist/commands/booking/check.d.ts.map +1 -0
  80. package/dist/commands/booking/check.js +68 -0
  81. package/dist/commands/booking/check.js.map +1 -0
  82. package/dist/commands/booking/setup.d.ts +3 -0
  83. package/dist/commands/booking/setup.d.ts.map +1 -0
  84. package/dist/commands/booking/setup.js +95 -0
  85. package/dist/commands/booking/setup.js.map +1 -0
  86. package/dist/commands/booking/shared.d.ts +31 -0
  87. package/dist/commands/booking/shared.d.ts.map +1 -0
  88. package/dist/commands/booking/shared.js +112 -0
  89. package/dist/commands/booking/shared.js.map +1 -0
  90. package/dist/commands/booking/smoke.d.ts +3 -0
  91. package/dist/commands/booking/smoke.d.ts.map +1 -0
  92. package/dist/commands/booking/smoke.js +101 -0
  93. package/dist/commands/booking/smoke.js.map +1 -0
  94. package/dist/commands/cms/bind.d.ts +3 -0
  95. package/dist/commands/cms/bind.d.ts.map +1 -0
  96. package/dist/commands/cms/bind.js +212 -0
  97. package/dist/commands/cms/bind.js.map +1 -0
  98. package/dist/commands/cms/content.d.ts +40 -0
  99. package/dist/commands/cms/content.d.ts.map +1 -0
  100. package/dist/commands/cms/content.js +169 -0
  101. package/dist/commands/cms/content.js.map +1 -0
  102. package/dist/commands/cms/doctor.d.ts +3 -0
  103. package/dist/commands/cms/doctor.d.ts.map +1 -0
  104. package/dist/commands/cms/doctor.js +69 -0
  105. package/dist/commands/cms/doctor.js.map +1 -0
  106. package/dist/commands/cms/migrate.d.ts +3 -0
  107. package/dist/commands/cms/migrate.d.ts.map +1 -0
  108. package/dist/commands/cms/migrate.js +78 -0
  109. package/dist/commands/cms/migrate.js.map +1 -0
  110. package/dist/commands/cms/registry.d.ts +3 -0
  111. package/dist/commands/cms/registry.d.ts.map +1 -0
  112. package/dist/commands/cms/registry.js +161 -0
  113. package/dist/commands/cms/registry.js.map +1 -0
  114. package/dist/commands/cms/seed.d.ts +3 -0
  115. package/dist/commands/cms/seed.d.ts.map +1 -0
  116. package/dist/commands/cms/seed.js +102 -0
  117. package/dist/commands/cms/seed.js.map +1 -0
  118. package/dist/commands/cms/shared.d.ts +22 -0
  119. package/dist/commands/cms/shared.d.ts.map +1 -0
  120. package/dist/commands/cms/shared.js +82 -0
  121. package/dist/commands/cms/shared.js.map +1 -0
  122. package/dist/commands/doctor/target.d.ts +3 -0
  123. package/dist/commands/doctor/target.d.ts.map +1 -0
  124. package/dist/commands/doctor/target.js +46 -0
  125. package/dist/commands/doctor/target.js.map +1 -0
  126. package/dist/commands/env/list.d.ts +3 -0
  127. package/dist/commands/env/list.d.ts.map +1 -0
  128. package/dist/commands/env/list.js +28 -0
  129. package/dist/commands/env/list.js.map +1 -0
  130. package/dist/commands/env/set.d.ts +3 -0
  131. package/dist/commands/env/set.d.ts.map +1 -0
  132. package/dist/commands/env/set.js +36 -0
  133. package/dist/commands/env/set.js.map +1 -0
  134. package/dist/commands/env/use.d.ts +3 -0
  135. package/dist/commands/env/use.d.ts.map +1 -0
  136. package/dist/commands/env/use.js +15 -0
  137. package/dist/commands/env/use.js.map +1 -0
  138. package/dist/commands/legacy/connect.d.ts +3 -0
  139. package/dist/commands/legacy/connect.d.ts.map +1 -0
  140. package/dist/commands/legacy/connect.js +8 -0
  141. package/dist/commands/legacy/connect.js.map +1 -0
  142. package/dist/commands/legacy/pages.d.ts +3 -0
  143. package/dist/commands/legacy/pages.d.ts.map +1 -0
  144. package/dist/commands/legacy/pages.js +16 -0
  145. package/dist/commands/legacy/pages.js.map +1 -0
  146. package/dist/commands/legacy/spread.d.ts +3 -0
  147. package/dist/commands/legacy/spread.d.ts.map +1 -0
  148. package/dist/commands/legacy/spread.js +8 -0
  149. package/dist/commands/legacy/spread.js.map +1 -0
  150. package/dist/commands/legacy/sync.d.ts +3 -0
  151. package/dist/commands/legacy/sync.d.ts.map +1 -0
  152. package/dist/commands/legacy/sync.js +8 -0
  153. package/dist/commands/legacy/sync.js.map +1 -0
  154. package/dist/config/env-diff.d.ts +10 -0
  155. package/dist/config/env-diff.d.ts.map +1 -0
  156. package/dist/config/env-diff.js +24 -0
  157. package/dist/config/env-diff.js.map +1 -0
  158. package/dist/config/env-parser.d.ts +20 -0
  159. package/dist/config/env-parser.d.ts.map +1 -0
  160. package/dist/config/env-parser.js +70 -0
  161. package/dist/config/env-parser.js.map +1 -0
  162. package/dist/config/env-writer.d.ts +22 -0
  163. package/dist/config/env-writer.d.ts.map +1 -0
  164. package/dist/config/env-writer.js +172 -0
  165. package/dist/config/env-writer.js.map +1 -0
  166. package/dist/config/profile-store.d.ts +29 -0
  167. package/dist/config/profile-store.d.ts.map +1 -0
  168. package/dist/config/profile-store.js +257 -0
  169. package/dist/config/profile-store.js.map +1 -0
  170. package/dist/core/args.d.ts +11 -0
  171. package/dist/core/args.d.ts.map +1 -0
  172. package/dist/core/args.js +106 -0
  173. package/dist/core/args.js.map +1 -0
  174. package/dist/core/colors.d.ts +6 -0
  175. package/dist/core/colors.d.ts.map +1 -0
  176. package/dist/core/colors.js +29 -0
  177. package/dist/core/colors.js.map +1 -0
  178. package/dist/safety/target-guard.d.ts +16 -0
  179. package/dist/safety/target-guard.d.ts.map +1 -0
  180. package/dist/safety/target-guard.js +55 -0
  181. package/dist/safety/target-guard.js.map +1 -0
  182. package/dist/testing/booking-smoke.d.ts +17 -0
  183. package/dist/testing/booking-smoke.d.ts.map +1 -0
  184. package/dist/testing/booking-smoke.js +43 -0
  185. package/dist/testing/booking-smoke.js.map +1 -0
  186. package/dist/tests/agent-commands.test.d.ts +2 -0
  187. package/dist/tests/agent-commands.test.d.ts.map +1 -0
  188. package/dist/tests/agent-commands.test.js +180 -0
  189. package/dist/tests/agent-commands.test.js.map +1 -0
  190. package/dist/tests/agent-governance.test.d.ts +2 -0
  191. package/dist/tests/agent-governance.test.d.ts.map +1 -0
  192. package/dist/tests/agent-governance.test.js +233 -0
  193. package/dist/tests/agent-governance.test.js.map +1 -0
  194. package/dist/tests/app-commands.test.d.ts +2 -0
  195. package/dist/tests/app-commands.test.d.ts.map +1 -0
  196. package/dist/tests/app-commands.test.js +462 -0
  197. package/dist/tests/app-commands.test.js.map +1 -0
  198. package/dist/tests/booking-commands.test.d.ts +2 -0
  199. package/dist/tests/booking-commands.test.d.ts.map +1 -0
  200. package/dist/tests/booking-commands.test.js +204 -0
  201. package/dist/tests/booking-commands.test.js.map +1 -0
  202. package/dist/tests/booking-smoke.test.d.ts +2 -0
  203. package/dist/tests/booking-smoke.test.d.ts.map +1 -0
  204. package/dist/tests/booking-smoke.test.js +183 -0
  205. package/dist/tests/booking-smoke.test.js.map +1 -0
  206. package/dist/tests/cms-commands.test.d.ts +2 -0
  207. package/dist/tests/cms-commands.test.d.ts.map +1 -0
  208. package/dist/tests/cms-commands.test.js +254 -0
  209. package/dist/tests/cms-commands.test.js.map +1 -0
  210. package/dist/tests/cms-ops.test.d.ts +2 -0
  211. package/dist/tests/cms-ops.test.d.ts.map +1 -0
  212. package/dist/tests/cms-ops.test.js +125 -0
  213. package/dist/tests/cms-ops.test.js.map +1 -0
  214. package/dist/tests/env-writer.test.d.ts +2 -0
  215. package/dist/tests/env-writer.test.d.ts.map +1 -0
  216. package/dist/tests/env-writer.test.js +90 -0
  217. package/dist/tests/env-writer.test.js.map +1 -0
  218. package/dist/tests/profile-store.test.d.ts +2 -0
  219. package/dist/tests/profile-store.test.d.ts.map +1 -0
  220. package/dist/tests/profile-store.test.js +88 -0
  221. package/dist/tests/profile-store.test.js.map +1 -0
  222. package/dist/tests/target-guard.test.d.ts +2 -0
  223. package/dist/tests/target-guard.test.d.ts.map +1 -0
  224. package/dist/tests/target-guard.test.js +132 -0
  225. package/dist/tests/target-guard.test.js.map +1 -0
  226. package/dist/ui/logo.d.ts +2 -0
  227. package/dist/ui/logo.d.ts.map +1 -0
  228. package/dist/ui/logo.js +22 -0
  229. package/dist/ui/logo.js.map +1 -0
  230. package/package.json +17 -53
  231. package/.claude/settings.local.json +0 -36
  232. package/.cursor/rules.md +0 -203
  233. package/.eslintrc.js +0 -31
  234. package/CLAUDE.md +0 -100
  235. package/bin/cli.js +0 -116
  236. package/docs/ADDING_FRAMEWORK_DETECTORS.md +0 -391
  237. package/docs/ADDING_NEW_PROJECT_TYPE.md +0 -156
  238. package/docs/ARCHITECTURE_RELATIONSHIPS.md +0 -411
  239. package/docs/CLI_AUTHENTICATION.md +0 -214
  240. package/docs/CLI_PAGE_DETECTION_REQUIREMENTS.md +0 -519
  241. package/docs/CRM-PIPELINES-SEQUENCES-SPEC.md +0 -429
  242. package/docs/DETECTOR_ARCHITECTURE.md +0 -326
  243. package/docs/DEVELOPMENT.md +0 -194
  244. package/docs/IMPLEMENTATION_PHASES.md +0 -468
  245. package/docs/INTEGRATION_PATHS_ARCHITECTURE.md +0 -1543
  246. package/docs/OAUTH_CLARIFICATION.md +0 -258
  247. package/docs/OAUTH_SETUP_GUIDE_TEMPLATE.md +0 -211
  248. package/docs/PHASE_0_PROGRESS.md +0 -120
  249. package/docs/PHASE_1_COMPLETE.md +0 -366
  250. package/docs/PHASE_SUMMARY.md +0 -149
  251. package/docs/PLAN.md +0 -511
  252. package/docs/README.md +0 -56
  253. package/docs/STRIPE_INTEGRATION.md +0 -447
  254. package/docs/SUMMARY.md +0 -230
  255. package/docs/UPDATED_PLAN.md +0 -447
  256. package/docs/mcp_server/MCP_EXTENSION_GUIDE.md +0 -1313
  257. package/docs/mcp_server/MCP_SERVER_ARCHITECTURE.md +0 -1481
  258. package/docs/mcp_server/applicationOntology.ts +0 -817
  259. package/docs/mcp_server/cliApplications.ts +0 -639
  260. package/docs/mcp_server/crmOntology.ts +0 -1063
  261. package/docs/mcp_server/eventOntology.ts +0 -1183
  262. package/docs/mcp_server/formsOntology.ts +0 -1401
  263. package/docs/mcp_server/ontologySchemas.ts +0 -185
  264. package/docs/mcp_server/schema.ts +0 -250
  265. package/docs/microsass_production_machine/CLI_API_REFERENCE.md +0 -1197
  266. package/docs/microsass_production_machine/CLI_PRODUCT_VISION.md +0 -676
  267. package/docs/microsass_production_machine/CLI_REQUIREMENTS.md +0 -606
  268. package/docs/microsass_production_machine/CONNECTED_APPLICATIONS_SPEC.md +0 -390
  269. package/docs/microsass_production_machine/IMPLEMENTATION_ROADMAP.md +0 -725
  270. package/docs/microsass_production_machine/OBJECT_MAPPINGS.md +0 -808
  271. package/docs/microsass_production_machine/REFERENCE_IMPLEMENTATION.md +0 -532
  272. package/src/api/backend-client.js +0 -449
  273. package/src/commands/api-keys.js +0 -119
  274. package/src/commands/connect.js +0 -243
  275. package/src/commands/login.js +0 -332
  276. package/src/commands/logout.js +0 -30
  277. package/src/commands/mcp-server.js +0 -85
  278. package/src/commands/mcp-setup.js +0 -686
  279. package/src/commands/pages.js +0 -317
  280. package/src/commands/scaffold.js +0 -409
  281. package/src/commands/spread.js +0 -861
  282. package/src/commands/status.js +0 -62
  283. package/src/commands/sync.js +0 -169
  284. package/src/commands/upgrade.js +0 -48
  285. package/src/config/config-manager.js +0 -206
  286. package/src/detectors/api-client-detector.js +0 -85
  287. package/src/detectors/base-detector.js +0 -77
  288. package/src/detectors/database-detector.js +0 -245
  289. package/src/detectors/expo-detector.js +0 -166
  290. package/src/detectors/github-detector.js +0 -74
  291. package/src/detectors/index.js +0 -106
  292. package/src/detectors/mapping-suggestor.js +0 -119
  293. package/src/detectors/model-detector.js +0 -318
  294. package/src/detectors/nextjs-detector.js +0 -139
  295. package/src/detectors/oauth-detector.js +0 -122
  296. package/src/detectors/page-detector.js +0 -480
  297. package/src/detectors/registry.js +0 -121
  298. package/src/generators/api-client-generator.js +0 -223
  299. package/src/generators/api-only/client.js +0 -683
  300. package/src/generators/api-only/index.js +0 -96
  301. package/src/generators/api-only/types.js +0 -618
  302. package/src/generators/api-only/webhooks.js +0 -377
  303. package/src/generators/env-generator.js +0 -191
  304. package/src/generators/expo-auth-generator.js +0 -1009
  305. package/src/generators/gitignore-generator.js +0 -92
  306. package/src/generators/index.js +0 -166
  307. package/src/generators/manifest-generator.js +0 -154
  308. package/src/generators/mcp-guide-generator.js +0 -256
  309. package/src/generators/nextauth-generator.js +0 -247
  310. package/src/generators/oauth-guide-generator.js +0 -277
  311. package/src/generators/quickstart/components/index.js +0 -1699
  312. package/src/generators/quickstart/components-mobile/index.js +0 -1440
  313. package/src/generators/quickstart/database/convex.js +0 -1257
  314. package/src/generators/quickstart/database/index.js +0 -34
  315. package/src/generators/quickstart/database/supabase.js +0 -1132
  316. package/src/generators/quickstart/hooks/index.js +0 -1065
  317. package/src/generators/quickstart/index.js +0 -191
  318. package/src/generators/quickstart/pages/index.js +0 -1466
  319. package/src/generators/quickstart/screens/index.js +0 -1498
  320. package/src/logo.js +0 -116
  321. package/src/mcp/auth.js +0 -127
  322. package/src/mcp/registry/domains/applications.js +0 -516
  323. package/src/mcp/registry/domains/benefits.js +0 -798
  324. package/src/mcp/registry/domains/codegen.js +0 -894
  325. package/src/mcp/registry/domains/core.js +0 -324
  326. package/src/mcp/registry/domains/crm.js +0 -591
  327. package/src/mcp/registry/domains/events.js +0 -649
  328. package/src/mcp/registry/domains/forms.js +0 -696
  329. package/src/mcp/registry/index.js +0 -164
  330. package/src/mcp/server.js +0 -116
  331. package/src/utils/file-utils.js +0 -117
  332. package/src/utils/init-helpers.js +0 -243
  333. package/src/utils/prompt-utils.js +0 -195
  334. package/templates/CLAUDE.md +0 -86
  335. package/tests/api-client-detector.test.js +0 -214
  336. package/tests/api-client-generator.test.js +0 -176
  337. package/tests/backend-client.test.js +0 -640
  338. package/tests/base-detector.test.js +0 -101
  339. package/tests/commands/login.test.js +0 -143
  340. package/tests/commands/logout.test.js +0 -84
  341. package/tests/commands/status.test.js +0 -167
  342. package/tests/config-manager.test.js +0 -321
  343. package/tests/database-detector.test.js +0 -221
  344. package/tests/detector-index.test.js +0 -209
  345. package/tests/detector-registry.test.js +0 -93
  346. package/tests/env-generator.test.js +0 -278
  347. package/tests/expo-detector.test.js +0 -263
  348. package/tests/file-utils.test.js +0 -194
  349. package/tests/generators-index.test.js +0 -454
  350. package/tests/github-detector.test.js +0 -145
  351. package/tests/gitignore-generator.test.js +0 -109
  352. package/tests/logo.test.js +0 -96
  353. package/tests/nextauth-generator.test.js +0 -255
  354. package/tests/nextjs-detector.test.js +0 -235
  355. package/tests/oauth-detector.test.js +0 -264
  356. package/tests/oauth-guide-generator.test.js +0 -273
  357. package/tests/page-detector.test.js +0 -371
@@ -1,649 +0,0 @@
1
- /**
2
- * Events Domain Tools
3
- *
4
- * Event management tools for creating events, managing tickets,
5
- * tracking attendees, and handling sponsors.
6
- *
7
- * @module mcp/registry/domains/events
8
- */
9
-
10
- const backendClient = require('../../../api/backend-client');
11
-
12
- /**
13
- * Events domain definition
14
- */
15
- module.exports = {
16
- name: 'events',
17
- description: 'Event management - events, tickets, attendees, sponsors',
18
- tools: [
19
- // ========================================
20
- // Event CRUD Tools
21
- // ========================================
22
- {
23
- name: 'l4yercak3_events_list',
24
- description: `List all events for the organization.
25
- Returns events with their basic details, status, and dates.`,
26
- inputSchema: {
27
- type: 'object',
28
- properties: {
29
- status: {
30
- type: 'string',
31
- enum: ['draft', 'published', 'in_progress', 'completed', 'cancelled'],
32
- description: 'Filter by event status',
33
- },
34
- subtype: {
35
- type: 'string',
36
- enum: ['conference', 'workshop', 'concert', 'meetup', 'seminar'],
37
- description: 'Filter by event type',
38
- },
39
- fromDate: {
40
- type: 'string',
41
- description: 'ISO date - only events starting after this date',
42
- },
43
- toDate: {
44
- type: 'string',
45
- description: 'ISO date - only events starting before this date',
46
- },
47
- limit: {
48
- type: 'number',
49
- description: 'Max events to return (default 50)',
50
- },
51
- },
52
- },
53
- requiresAuth: true,
54
- requiredPermissions: ['events:read'],
55
- handler: async (params, authContext) => {
56
- const queryParams = new URLSearchParams();
57
- queryParams.set('organizationId', authContext.organizationId);
58
- if (params.status) queryParams.set('status', params.status);
59
- if (params.subtype) queryParams.set('subtype', params.subtype);
60
- if (params.fromDate) queryParams.set('fromDate', params.fromDate);
61
- if (params.toDate) queryParams.set('toDate', params.toDate);
62
- if (params.limit) queryParams.set('limit', Math.min(params.limit, 100));
63
-
64
- const response = await backendClient.request(
65
- 'GET',
66
- `/api/v1/events?${queryParams.toString()}`
67
- );
68
-
69
- return {
70
- events: (response.events || []).map(event => ({
71
- id: event._id,
72
- name: event.name,
73
- description: event.description,
74
- subtype: event.subtype,
75
- status: event.status,
76
- startDate: event.customProperties?.startDate,
77
- endDate: event.customProperties?.endDate,
78
- location: event.customProperties?.location,
79
- slug: event.customProperties?.slug,
80
- attendeeCount: event.customProperties?.attendeeCount || 0,
81
- })),
82
- total: response.total || (response.events || []).length,
83
- };
84
- },
85
- },
86
-
87
- {
88
- name: 'l4yercak3_events_create',
89
- description: `Create a new event.
90
- Events start in 'draft' status and can be published when ready.`,
91
- inputSchema: {
92
- type: 'object',
93
- properties: {
94
- name: {
95
- type: 'string',
96
- description: 'Event name',
97
- },
98
- description: {
99
- type: 'string',
100
- description: 'Event description',
101
- },
102
- subtype: {
103
- type: 'string',
104
- enum: ['conference', 'workshop', 'concert', 'meetup', 'seminar'],
105
- description: 'Event type (default: meetup)',
106
- },
107
- startDate: {
108
- type: 'string',
109
- description: 'Start date/time (ISO format)',
110
- },
111
- endDate: {
112
- type: 'string',
113
- description: 'End date/time (ISO format)',
114
- },
115
- location: {
116
- type: 'string',
117
- description: 'Event location/venue',
118
- },
119
- timezone: {
120
- type: 'string',
121
- description: 'Timezone (e.g., America/New_York)',
122
- },
123
- maxCapacity: {
124
- type: 'number',
125
- description: 'Maximum attendee capacity',
126
- },
127
- },
128
- required: ['name', 'startDate', 'endDate', 'location'],
129
- },
130
- requiresAuth: true,
131
- requiredPermissions: ['events:write'],
132
- handler: async (params, authContext) => {
133
- // Convert ISO dates to timestamps
134
- const startDate = new Date(params.startDate).getTime();
135
- const endDate = new Date(params.endDate).getTime();
136
-
137
- const response = await backendClient.request('POST', '/api/v1/events', {
138
- organizationId: authContext.organizationId,
139
- name: params.name,
140
- description: params.description,
141
- subtype: params.subtype || 'meetup',
142
- startDate,
143
- endDate,
144
- location: params.location,
145
- customProperties: {
146
- timezone: params.timezone || 'UTC',
147
- maxCapacity: params.maxCapacity,
148
- },
149
- });
150
-
151
- return {
152
- success: true,
153
- eventId: response.eventId || response.id,
154
- status: 'draft',
155
- message: `Created event: ${params.name} (draft)`,
156
- nextSteps: [
157
- 'Add ticket products with l4yercak3_events_create_product',
158
- 'Publish the event with l4yercak3_events_publish',
159
- ],
160
- };
161
- },
162
- },
163
-
164
- {
165
- name: 'l4yercak3_events_get',
166
- description: `Get detailed information about a specific event.
167
- Includes agenda, products, and optionally sponsors.`,
168
- inputSchema: {
169
- type: 'object',
170
- properties: {
171
- eventId: {
172
- type: 'string',
173
- description: 'The event ID',
174
- },
175
- includeProducts: {
176
- type: 'boolean',
177
- description: 'Include linked products/tickets (default: true)',
178
- },
179
- includeSponsors: {
180
- type: 'boolean',
181
- description: 'Include sponsors (default: false)',
182
- },
183
- },
184
- required: ['eventId'],
185
- },
186
- requiresAuth: true,
187
- requiredPermissions: ['events:read'],
188
- handler: async (params, authContext) => {
189
- const queryParams = new URLSearchParams();
190
- if (params.includeProducts !== false) queryParams.set('includeProducts', 'true');
191
- if (params.includeSponsors) queryParams.set('includeSponsors', 'true');
192
-
193
- const response = await backendClient.request(
194
- 'GET',
195
- `/api/v1/events/${params.eventId}?${queryParams.toString()}`
196
- );
197
-
198
- const event = response.event || response;
199
-
200
- return {
201
- id: event._id,
202
- name: event.name,
203
- description: event.description,
204
- subtype: event.subtype,
205
- status: event.status,
206
- startDate: event.customProperties?.startDate,
207
- endDate: event.customProperties?.endDate,
208
- location: event.customProperties?.location,
209
- formattedAddress: event.customProperties?.formattedAddress,
210
- timezone: event.customProperties?.timezone,
211
- slug: event.customProperties?.slug,
212
- maxCapacity: event.customProperties?.maxCapacity,
213
- agenda: event.customProperties?.agenda || [],
214
- detailedDescription: event.customProperties?.detailedDescription,
215
- products: response.products || [],
216
- sponsors: response.sponsors || [],
217
- createdAt: event.createdAt,
218
- updatedAt: event.updatedAt,
219
- };
220
- },
221
- },
222
-
223
- {
224
- name: 'l4yercak3_events_update',
225
- description: `Update an existing event.
226
- Can update name, dates, location, and other properties.`,
227
- inputSchema: {
228
- type: 'object',
229
- properties: {
230
- eventId: {
231
- type: 'string',
232
- description: 'The event ID to update',
233
- },
234
- name: { type: 'string', description: 'New event name' },
235
- description: { type: 'string', description: 'New description' },
236
- subtype: {
237
- type: 'string',
238
- enum: ['conference', 'workshop', 'concert', 'meetup', 'seminar'],
239
- },
240
- startDate: { type: 'string', description: 'New start date (ISO)' },
241
- endDate: { type: 'string', description: 'New end date (ISO)' },
242
- location: { type: 'string', description: 'New location' },
243
- maxCapacity: { type: 'number', description: 'New capacity limit' },
244
- },
245
- required: ['eventId'],
246
- },
247
- requiresAuth: true,
248
- requiredPermissions: ['events:write'],
249
- handler: async (params, authContext) => {
250
- const { eventId, startDate, endDate, ...updates } = params;
251
-
252
- // Convert dates if provided
253
- if (startDate) updates.startDate = new Date(startDate).getTime();
254
- if (endDate) updates.endDate = new Date(endDate).getTime();
255
-
256
- await backendClient.request('PATCH', `/api/v1/events/${eventId}`, updates);
257
-
258
- return {
259
- success: true,
260
- eventId,
261
- message: 'Event updated successfully',
262
- };
263
- },
264
- },
265
-
266
- {
267
- name: 'l4yercak3_events_publish',
268
- description: `Publish an event to make it publicly visible.
269
- Changes status from 'draft' to 'published'.`,
270
- inputSchema: {
271
- type: 'object',
272
- properties: {
273
- eventId: {
274
- type: 'string',
275
- description: 'The event ID to publish',
276
- },
277
- },
278
- required: ['eventId'],
279
- },
280
- requiresAuth: true,
281
- requiredPermissions: ['events:write'],
282
- handler: async (params, authContext) => {
283
- await backendClient.request('POST', `/api/v1/events/${params.eventId}/publish`);
284
-
285
- return {
286
- success: true,
287
- eventId: params.eventId,
288
- status: 'published',
289
- message: 'Event published successfully',
290
- };
291
- },
292
- },
293
-
294
- {
295
- name: 'l4yercak3_events_cancel',
296
- description: `Cancel an event.
297
- Sets status to 'cancelled'. This is a soft delete.`,
298
- inputSchema: {
299
- type: 'object',
300
- properties: {
301
- eventId: {
302
- type: 'string',
303
- description: 'The event ID to cancel',
304
- },
305
- },
306
- required: ['eventId'],
307
- },
308
- requiresAuth: true,
309
- requiredPermissions: ['events:write'],
310
- handler: async (params, authContext) => {
311
- await backendClient.request('POST', `/api/v1/events/${params.eventId}/cancel`);
312
-
313
- return {
314
- success: true,
315
- eventId: params.eventId,
316
- status: 'cancelled',
317
- message: 'Event cancelled',
318
- };
319
- },
320
- },
321
-
322
- // ========================================
323
- // Event Agenda Tools
324
- // ========================================
325
- {
326
- name: 'l4yercak3_events_update_agenda',
327
- description: `Update the event agenda/schedule.
328
- Replace the entire agenda with a new list of agenda items.`,
329
- inputSchema: {
330
- type: 'object',
331
- properties: {
332
- eventId: {
333
- type: 'string',
334
- description: 'The event ID',
335
- },
336
- agenda: {
337
- type: 'array',
338
- items: {
339
- type: 'object',
340
- properties: {
341
- time: {
342
- type: 'string',
343
- description: 'Time (e.g., "09:00 AM" or ISO timestamp)',
344
- },
345
- title: {
346
- type: 'string',
347
- description: 'Session title',
348
- },
349
- description: {
350
- type: 'string',
351
- description: 'Session description',
352
- },
353
- speaker: {
354
- type: 'string',
355
- description: 'Speaker name',
356
- },
357
- location: {
358
- type: 'string',
359
- description: 'Room/venue within event',
360
- },
361
- duration: {
362
- type: 'number',
363
- description: 'Duration in minutes',
364
- },
365
- },
366
- required: ['time', 'title'],
367
- },
368
- description: 'List of agenda items',
369
- },
370
- },
371
- required: ['eventId', 'agenda'],
372
- },
373
- requiresAuth: true,
374
- requiredPermissions: ['events:write'],
375
- handler: async (params, authContext) => {
376
- await backendClient.request('PATCH', `/api/v1/events/${params.eventId}/agenda`, {
377
- agenda: params.agenda,
378
- });
379
-
380
- return {
381
- success: true,
382
- eventId: params.eventId,
383
- agendaItemCount: params.agenda.length,
384
- message: 'Event agenda updated',
385
- };
386
- },
387
- },
388
-
389
- // ========================================
390
- // Product/Ticket Tools
391
- // ========================================
392
- {
393
- name: 'l4yercak3_events_get_products',
394
- description: `Get all products (tickets) offered by an event.`,
395
- inputSchema: {
396
- type: 'object',
397
- properties: {
398
- eventId: {
399
- type: 'string',
400
- description: 'The event ID',
401
- },
402
- },
403
- required: ['eventId'],
404
- },
405
- requiresAuth: true,
406
- requiredPermissions: ['events:read'],
407
- handler: async (params, authContext) => {
408
- const response = await backendClient.request(
409
- 'GET',
410
- `/api/v1/events/${params.eventId}/products`
411
- );
412
-
413
- return {
414
- products: (response.products || []).map(product => ({
415
- id: product._id,
416
- name: product.name,
417
- description: product.description,
418
- priceInCents: product.customProperties?.priceInCents,
419
- currency: product.customProperties?.currency || 'EUR',
420
- quantity: product.customProperties?.quantity,
421
- soldCount: product.customProperties?.soldCount || 0,
422
- status: product.status,
423
- isFeatured: product.linkProperties?.isFeatured || false,
424
- })),
425
- };
426
- },
427
- },
428
-
429
- {
430
- name: 'l4yercak3_events_create_product',
431
- description: `Create a product (ticket type) for an event.
432
- Products can be tickets, merchandise, or add-ons.`,
433
- inputSchema: {
434
- type: 'object',
435
- properties: {
436
- eventId: {
437
- type: 'string',
438
- description: 'The event ID',
439
- },
440
- name: {
441
- type: 'string',
442
- description: 'Product name (e.g., "Early Bird Ticket")',
443
- },
444
- description: {
445
- type: 'string',
446
- description: 'Product description',
447
- },
448
- priceInCents: {
449
- type: 'number',
450
- description: 'Price in cents (e.g., 5000 = €50.00)',
451
- },
452
- currency: {
453
- type: 'string',
454
- description: 'Currency code (default: EUR)',
455
- },
456
- quantity: {
457
- type: 'number',
458
- description: 'Available quantity (null = unlimited)',
459
- },
460
- subtype: {
461
- type: 'string',
462
- enum: ['ticket', 'merchandise', 'addon', 'donation'],
463
- description: 'Product type (default: ticket)',
464
- },
465
- isFeatured: {
466
- type: 'boolean',
467
- description: 'Feature this product prominently',
468
- },
469
- },
470
- required: ['eventId', 'name', 'priceInCents'],
471
- },
472
- requiresAuth: true,
473
- requiredPermissions: ['events:write'],
474
- handler: async (params, authContext) => {
475
- const response = await backendClient.request('POST', '/api/v1/products', {
476
- organizationId: authContext.organizationId,
477
- eventId: params.eventId,
478
- name: params.name,
479
- description: params.description,
480
- priceInCents: params.priceInCents,
481
- currency: params.currency || 'EUR',
482
- quantity: params.quantity,
483
- subtype: params.subtype || 'ticket',
484
- isFeatured: params.isFeatured || false,
485
- });
486
-
487
- return {
488
- success: true,
489
- productId: response.productId || response.id,
490
- message: `Created product: ${params.name}`,
491
- };
492
- },
493
- },
494
-
495
- // ========================================
496
- // Attendee Tools
497
- // ========================================
498
- {
499
- name: 'l4yercak3_events_get_attendees',
500
- description: `Get all attendees (ticket holders) for an event.
501
- Returns people who have purchased tickets.`,
502
- inputSchema: {
503
- type: 'object',
504
- properties: {
505
- eventId: {
506
- type: 'string',
507
- description: 'The event ID',
508
- },
509
- status: {
510
- type: 'string',
511
- enum: ['issued', 'checked_in', 'cancelled'],
512
- description: 'Filter by ticket status',
513
- },
514
- limit: {
515
- type: 'number',
516
- description: 'Max attendees to return',
517
- },
518
- },
519
- required: ['eventId'],
520
- },
521
- requiresAuth: true,
522
- requiredPermissions: ['events:read'],
523
- handler: async (params, authContext) => {
524
- const queryParams = new URLSearchParams();
525
- if (params.status) queryParams.set('status', params.status);
526
- if (params.limit) queryParams.set('limit', params.limit);
527
-
528
- const response = await backendClient.request(
529
- 'GET',
530
- `/api/v1/events/${params.eventId}/attendees?${queryParams.toString()}`
531
- );
532
-
533
- return {
534
- attendees: (response.attendees || []).map(attendee => ({
535
- ticketId: attendee._id,
536
- holderName: attendee.holderName,
537
- holderEmail: attendee.holderEmail,
538
- holderPhone: attendee.holderPhone,
539
- ticketNumber: attendee.ticketNumber,
540
- ticketType: attendee.ticketType,
541
- status: attendee.status,
542
- purchaseDate: attendee.purchaseDate,
543
- pricePaid: attendee.pricePaid,
544
- formResponses: attendee.formResponses,
545
- })),
546
- total: response.total || (response.attendees || []).length,
547
- };
548
- },
549
- },
550
-
551
- // ========================================
552
- // Sponsor Tools
553
- // ========================================
554
- {
555
- name: 'l4yercak3_events_get_sponsors',
556
- description: `Get all sponsors for an event.
557
- Sponsors are CRM organizations linked to the event.`,
558
- inputSchema: {
559
- type: 'object',
560
- properties: {
561
- eventId: {
562
- type: 'string',
563
- description: 'The event ID',
564
- },
565
- sponsorLevel: {
566
- type: 'string',
567
- enum: ['platinum', 'gold', 'silver', 'bronze', 'community'],
568
- description: 'Filter by sponsor level',
569
- },
570
- },
571
- required: ['eventId'],
572
- },
573
- requiresAuth: true,
574
- requiredPermissions: ['events:read'],
575
- handler: async (params, authContext) => {
576
- const queryParams = new URLSearchParams();
577
- if (params.sponsorLevel) queryParams.set('sponsorLevel', params.sponsorLevel);
578
-
579
- const response = await backendClient.request(
580
- 'GET',
581
- `/api/v1/events/${params.eventId}/sponsors?${queryParams.toString()}`
582
- );
583
-
584
- return {
585
- sponsors: (response.sponsors || []).map(sponsor => ({
586
- crmOrganizationId: sponsor._id,
587
- name: sponsor.name,
588
- website: sponsor.customProperties?.website,
589
- sponsorLevel: sponsor.sponsorshipProperties?.sponsorLevel,
590
- logoUrl: sponsor.sponsorshipProperties?.logoUrl,
591
- description: sponsor.sponsorshipProperties?.description,
592
- })),
593
- };
594
- },
595
- },
596
-
597
- {
598
- name: 'l4yercak3_events_add_sponsor',
599
- description: `Add a sponsor (CRM organization) to an event.`,
600
- inputSchema: {
601
- type: 'object',
602
- properties: {
603
- eventId: {
604
- type: 'string',
605
- description: 'The event ID',
606
- },
607
- crmOrganizationId: {
608
- type: 'string',
609
- description: 'The CRM organization ID to add as sponsor',
610
- },
611
- sponsorLevel: {
612
- type: 'string',
613
- enum: ['platinum', 'gold', 'silver', 'bronze', 'community'],
614
- description: 'Sponsor level (default: community)',
615
- },
616
- logoUrl: {
617
- type: 'string',
618
- description: 'Sponsor logo URL',
619
- },
620
- websiteUrl: {
621
- type: 'string',
622
- description: 'Sponsor website URL',
623
- },
624
- description: {
625
- type: 'string',
626
- description: 'Sponsor description',
627
- },
628
- },
629
- required: ['eventId', 'crmOrganizationId'],
630
- },
631
- requiresAuth: true,
632
- requiredPermissions: ['events:write'],
633
- handler: async (params, authContext) => {
634
- await backendClient.request('POST', `/api/v1/events/${params.eventId}/sponsors`, {
635
- crmOrganizationId: params.crmOrganizationId,
636
- sponsorLevel: params.sponsorLevel || 'community',
637
- logoUrl: params.logoUrl,
638
- websiteUrl: params.websiteUrl,
639
- description: params.description,
640
- });
641
-
642
- return {
643
- success: true,
644
- message: 'Sponsor added to event',
645
- };
646
- },
647
- },
648
- ],
649
- };