@burdenoff/cli-sdk 2026.1107.1 → 2026.1107.3

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 (80) hide show
  1. package/dist/{chunk-YIY5IDXQ.js → chunk-AQ5I53SK.js} +7 -7
  2. package/dist/{chunk-O6UCQ5IT.js → chunk-AQE5ZDEN.js} +1 -1
  3. package/dist/core/index.cjs +7 -7
  4. package/dist/core/index.js +1 -1
  5. package/dist/index.cjs +7 -7
  6. package/dist/index.js +1 -1
  7. package/dist/modules/adaptercloud/index.cjs +3 -3
  8. package/dist/modules/adaptercloud/index.js +1 -1
  9. package/dist/modules/artistrybase/index.cjs +56 -35
  10. package/dist/modules/artistrybase/index.js +64 -43
  11. package/dist/modules/assethandler/index.js +1 -1
  12. package/dist/modules/atheletebridge/index.cjs +3 -3
  13. package/dist/modules/atheletebridge/index.js +1 -1
  14. package/dist/modules/auth/index.js +1 -1
  15. package/dist/modules/billing/index.js +1 -1
  16. package/dist/modules/brainyrich/index.cjs +2 -2
  17. package/dist/modules/brainyrich/index.js +1 -1
  18. package/dist/modules/buildmyiq/index.js +1 -1
  19. package/dist/modules/channels/index.js +1 -1
  20. package/dist/modules/collabkin/index.cjs +68 -53
  21. package/dist/modules/collabkin/index.js +64 -49
  22. package/dist/modules/comradecircle/index.js +1 -1
  23. package/dist/modules/conversations/index.js +1 -1
  24. package/dist/modules/coolandlovely/index.js +1 -1
  25. package/dist/modules/cosmicintersection/index.cjs +1 -1
  26. package/dist/modules/cosmicintersection/index.js +1 -1
  27. package/dist/modules/crewfoundry/index.cjs +9 -9
  28. package/dist/modules/crewfoundry/index.js +1 -1
  29. package/dist/modules/devportal/index.js +1 -1
  30. package/dist/modules/ecoimpacthub/index.js +1 -1
  31. package/dist/modules/eventfullymanaged/index.cjs +8 -8
  32. package/dist/modules/eventfullymanaged/index.js +1 -1
  33. package/dist/modules/export/index.cjs +2 -2
  34. package/dist/modules/export/index.js +1 -1
  35. package/dist/modules/files/index.cjs +2 -2
  36. package/dist/modules/files/index.js +1 -1
  37. package/dist/modules/fluidgrids/index.js +1 -1
  38. package/dist/modules/ggnomad/index.js +1 -1
  39. package/dist/modules/govcitizenhub/index.js +1 -1
  40. package/dist/modules/groups/index.js +1 -1
  41. package/dist/modules/headshotmarketing/index.js +1 -1
  42. package/dist/modules/hookmovies/index.js +1 -1
  43. package/dist/modules/housingvista/index.js +1 -1
  44. package/dist/modules/integrations/index.cjs +3 -3
  45. package/dist/modules/integrations/index.js +1 -1
  46. package/dist/modules/intelwatchtower/index.cjs +3 -3
  47. package/dist/modules/intelwatchtower/index.js +1 -1
  48. package/dist/modules/kadaikodi/index.js +1 -1
  49. package/dist/modules/labsofscience/index.js +1 -1
  50. package/dist/modules/manufacturedops/index.cjs +2 -2
  51. package/dist/modules/manufacturedops/index.js +1 -1
  52. package/dist/modules/movethewheels/index.js +1 -1
  53. package/dist/modules/mybodyshield/index.js +1 -1
  54. package/dist/modules/notifications/index.js +1 -1
  55. package/dist/modules/organizations/index.cjs +3 -3
  56. package/dist/modules/organizations/index.js +1 -1
  57. package/dist/modules/planmagnet/index.cjs +17 -17
  58. package/dist/modules/planmagnet/index.js +1 -1
  59. package/dist/modules/products/index.js +1 -1
  60. package/dist/modules/proserviceworld/index.js +1 -1
  61. package/dist/modules/rbac/index.js +1 -1
  62. package/dist/modules/sandbox/index.js +1 -1
  63. package/dist/modules/scheduler/index.cjs +4 -4
  64. package/dist/modules/scheduler/index.js +1 -1
  65. package/dist/modules/security/index.js +1 -1
  66. package/dist/modules/semanticfed/index.js +1 -1
  67. package/dist/modules/store/index.js +1 -1
  68. package/dist/modules/subscriberbot/index.js +1 -1
  69. package/dist/modules/support/index.js +1 -1
  70. package/dist/modules/tags/index.js +1 -1
  71. package/dist/modules/technospam/index.cjs +2 -2
  72. package/dist/modules/technospam/index.js +1 -1
  73. package/dist/modules/theculturepost/index.js +1 -1
  74. package/dist/modules/theglobalfuel/index.js +1 -1
  75. package/dist/modules/timecampus/index.js +1 -1
  76. package/dist/modules/tours/index.js +1 -1
  77. package/dist/modules/vibecontrols/index.js +1 -1
  78. package/dist/modules/workspaces/index.cjs +2 -2
  79. package/dist/modules/workspaces/index.js +1 -1
  80. package/package.json +1 -1
@@ -23,10 +23,10 @@
23
23
  `,F=`
24
24
  id name description status priority progress budget spent startDate endDate
25
25
  managerId managerName teamId teamName tasks completedTasks workspaceId
26
- `,J=`
26
+ `,G=`
27
27
  id name description department leadId leadName memberCount members
28
28
  projectCount status createdAt workspaceId
29
- `,G=`
29
+ `,J=`
30
30
  id employeeId employeeName date clockIn clockOut totalHours overtime project
31
31
  status workspaceId
32
32
  `,V=`
@@ -43,8 +43,8 @@
43
43
  departments { ${j} }
44
44
  interviews { ${B} }
45
45
  projects { ${F} }
46
- teams { ${J} }
47
- timeEntries { ${G} }
46
+ teams { ${G} }
47
+ timeEntries { ${J} }
48
48
  vendors { ${V} }
49
49
  }
50
50
  }
@@ -80,17 +80,17 @@
80
80
  query CrewfoundryListInterviews {
81
81
  crewfoundryBootstrap { interviews { ${B} } }
82
82
  }
83
- `,K=`
83
+ `,Q=`
84
84
  query CrewfoundryListProjects {
85
85
  crewfoundryBootstrap { projects { ${F} } }
86
86
  }
87
- `,Q=`
87
+ `,K=`
88
88
  query CrewfoundryListTeams {
89
- crewfoundryBootstrap { teams { ${J} } }
89
+ crewfoundryBootstrap { teams { ${G} } }
90
90
  }
91
91
  `,X=`
92
92
  query CrewfoundryListTimeEntries {
93
- crewfoundryBootstrap { timeEntries { ${G} } }
93
+ crewfoundryBootstrap { timeEntries { ${J} } }
94
94
  }
95
95
  `,Z=`
96
96
  query CrewfoundryListVendors {
@@ -140,4 +140,4 @@
140
140
  query CrewfoundryHealth {
141
141
  _empty
142
142
  }
143
- `;function y(i){let o=Number.parseInt(i,10);if(Number.isNaN(o))throw new u(`Expected an integer but got "${i}"`);return o}function g(i){let o=Number.parseFloat(i);if(Number.isNaN(o))throw new u(`Expected a number but got "${i}"`);return o}function w(i){return i.split(",").map(o=>o.trim()).filter(o=>o.length>0)}function de(i){let o=i.command("employees").description("Crewfoundry employees");o.command("list").description("List employees").option("--department <d>","Filter by department").option("--status <s>","Filter by status").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(D)).crewfoundryBootstrap.employees;n.department&&(e=e.filter(r=>r.department===n.department)),n.status&&(e=e.filter(r=>r.status===n.status)),p(n,e,{headers:["ID","Name","Email","Department","Position","Status"],rows:e.map(r=>[m(r.id,12),`${r.firstName} ${r.lastName}`,r.email,r.department,r.position,r.status])});}catch(t){a(t);}}),o.command("get").description("Get an employee by id").argument("<id>","Employee ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(D)).crewfoundryBootstrap.employees.find(f=>f.id===n);if(!r)throw new u(`Employee ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create an employee").requiredOption("--first-name <s>","First name").requiredOption("--last-name <s>","Last name").requiredOption("--email <s>","Email").requiredOption("--phone <s>","Phone").requiredOption("--position <s>","Position").requiredOption("--department <s>","Department").requiredOption("--location <s>","Location").requiredOption("--salary <n>","Salary",g).option("--type <s>","Employment type (e.g. full-time)","full-time").option("--status <s>","Status","active").option("--performance-score <n>","Performance score",g,0).option("--manager-id <id>","Manager ID").option("--avatar <url>","Avatar URL").option("--start-date <iso>","Start date (ISO)").option("-f, --format <format>","Output format").action(async n=>{try{let t={firstName:n.firstName,lastName:n.lastName,email:n.email,phone:n.phone,position:n.position,department:n.department,location:n.location,salary:n.salary,type:n.type??"full-time",status:n.status??"active",performanceScore:n.performanceScore??0,startDate:n.startDate??new Date().toISOString()};n.managerId&&(t.managerId=n.managerId),n.avatar&&(t.avatar=n.avatar);let e=await c(ee,{input:t});l(`Employee created: ${e.createCrewEmployee.firstName} ${e.createCrewEmployee.lastName}`),p(n,e.createCrewEmployee);}catch(t){a(t);}}),o.command("update").description("Update an employee").argument("<id>","Employee ID").option("--first-name <s>","First name").option("--last-name <s>","Last name").option("--email <s>","Email").option("--phone <s>","Phone").option("--position <s>","Position").option("--department <s>","Department").option("--location <s>","Location").option("--salary <n>","Salary",g).option("--type <s>","Employment type").option("--status <s>","Status").option("--performance-score <n>","Performance score",g).option("--manager-id <id>","Manager ID").option("--avatar <url>","Avatar URL").option("--start-date <iso>","Start date (ISO)").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={};if(t.firstName&&(e.firstName=t.firstName),t.lastName&&(e.lastName=t.lastName),t.email&&(e.email=t.email),t.phone&&(e.phone=t.phone),t.position&&(e.position=t.position),t.department&&(e.department=t.department),t.location&&(e.location=t.location),t.salary!==void 0&&(e.salary=t.salary),t.type&&(e.type=t.type),t.status&&(e.status=t.status),t.performanceScore!==void 0&&(e.performanceScore=t.performanceScore),t.managerId&&(e.managerId=t.managerId),t.avatar&&(e.avatar=t.avatar),t.startDate&&(e.startDate=t.startDate),!Object.keys(e).length)throw new u("No updates specified");let r=await c(te,{id:n,input:e});l("Employee updated"),p(t,r.updateCrewEmployee);}catch(e){a(e);}}),o.command("remove").description("Remove an employee").argument("<id>","Employee ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e=await c(ne,{id:n});if(!e.removeCrewEmployee)throw new u(`Employee ${n} could not be removed`);l(`Employee ${n} removed`),p(t,{removed:e.removeCrewEmployee});}catch(e){a(e);}});}function me(i){let o=i.command("candidates").description("Crewfoundry recruiting candidates");o.command("list").description("List candidates").option("--status <s>","Filter by status").option("--position <p>","Filter by position").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(L)).crewfoundryBootstrap.candidates;n.status&&(e=e.filter(r=>r.status===n.status)),n.position&&(e=e.filter(r=>r.position===n.position)),p(n,e,{headers:["ID","Name","Position","Source","Status","Rating"],rows:e.map(r=>[m(r.id,12),`${r.firstName} ${r.lastName}`,r.position,r.source,r.status,String(r.rating)])});}catch(t){a(t);}}),o.command("get").description("Get a candidate by id").argument("<id>","Candidate ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(L)).crewfoundryBootstrap.candidates.find(f=>f.id===n);if(!r)throw new u(`Candidate ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create a candidate").requiredOption("--first-name <s>","First name").requiredOption("--last-name <s>","Last name").requiredOption("--email <s>","Email").requiredOption("--phone <s>","Phone").requiredOption("--position <s>","Position").requiredOption("--source <s>","Source").option("--experience <n>","Years of experience",y,0).option("--rating <n>","Rating",g,0).option("--status <s>","Status","new").option("--current-company <s>","Current company").option("--skills <csv>","Comma-separated skills").option("--resume-url <url>","Resume URL").option("--notes <s>","Notes").option("--applied-date <iso>","Applied date (ISO)").option("-f, --format <format>","Output format").action(async n=>{try{let t={firstName:n.firstName,lastName:n.lastName,email:n.email,phone:n.phone,position:n.position,source:n.source,experience:n.experience??0,rating:n.rating??0,status:n.status??"new",skills:n.skills?w(n.skills):[],appliedDate:n.appliedDate??new Date().toISOString()};n.currentCompany&&(t.currentCompany=n.currentCompany),n.resumeUrl&&(t.resumeUrl=n.resumeUrl),n.notes&&(t.notes=n.notes);let e=await c(re,{input:t});l(`Candidate created: ${e.createCrewCandidate.firstName} ${e.createCrewCandidate.lastName}`),p(n,e.createCrewCandidate);}catch(t){a(t);}}),o.command("update").description("Update a candidate").argument("<id>","Candidate ID").option("--first-name <s>","First name").option("--last-name <s>","Last name").option("--email <s>","Email").option("--phone <s>","Phone").option("--position <s>","Position").option("--source <s>","Source").option("--experience <n>","Years of experience",y).option("--rating <n>","Rating",g).option("--status <s>","Status").option("--current-company <s>","Current company").option("--skills <csv>","Comma-separated skills").option("--resume-url <url>","Resume URL").option("--notes <s>","Notes").option("--applied-date <iso>","Applied date (ISO)").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={};if(t.firstName&&(e.firstName=t.firstName),t.lastName&&(e.lastName=t.lastName),t.email&&(e.email=t.email),t.phone&&(e.phone=t.phone),t.position&&(e.position=t.position),t.source&&(e.source=t.source),t.experience!==void 0&&(e.experience=t.experience),t.rating!==void 0&&(e.rating=t.rating),t.status&&(e.status=t.status),t.currentCompany&&(e.currentCompany=t.currentCompany),t.skills&&(e.skills=w(t.skills)),t.resumeUrl&&(e.resumeUrl=t.resumeUrl),t.notes&&(e.notes=t.notes),t.appliedDate&&(e.appliedDate=t.appliedDate),!Object.keys(e).length)throw new u("No updates specified");let r=await c(oe,{id:n,input:e});l("Candidate updated"),p(t,r.updateCrewCandidate);}catch(e){a(e);}});}function le(i){let o=i.command("job-postings").description("Crewfoundry job postings");o.command("list").description("List job postings").option("--department <d>","Filter by department").option("--status <s>","Filter by status").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(N)).crewfoundryBootstrap.jobPostings;n.department&&(e=e.filter(r=>r.department===n.department)),n.status&&(e=e.filter(r=>r.status===n.status)),p(n,e,{headers:["ID","Title","Department","Type","Applicants","Status"],rows:e.map(r=>[m(r.id,12),r.title,r.department,r.type,String(r.applicants),r.status])});}catch(t){a(t);}}),o.command("get").description("Get a job posting by id").argument("<id>","Job posting ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(N)).crewfoundryBootstrap.jobPostings.find(f=>f.id===n);if(!r)throw new u(`Job posting ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create a job posting").requiredOption("--title <s>","Title").requiredOption("--department <s>","Department").requiredOption("--description <s>","Description").requiredOption("--experience-level <s>","Experience level").requiredOption("--location <s>","Location").requiredOption("--type <s>","Employment type (e.g. full-time)").option("--applicants <n>","Applicant count",y,0).option("--salary-min <n>","Minimum salary",g,0).option("--salary-max <n>","Maximum salary",g,0).option("--status <s>","Status","open").option("--requirements <csv>","Comma-separated requirements").option("--benefits <csv>","Comma-separated benefits").option("--posted-date <iso>","Posted date (ISO)").option("--deadline <iso>","Deadline (ISO)").option("-f, --format <format>","Output format").action(async n=>{try{let t={title:n.title,department:n.department,description:n.description,experienceLevel:n.experienceLevel,location:n.location,type:n.type,applicants:n.applicants??0,salaryMin:n.salaryMin??0,salaryMax:n.salaryMax??0,status:n.status??"open",requirements:n.requirements?w(n.requirements):[],benefits:n.benefits?w(n.benefits):[],postedDate:n.postedDate??new Date().toISOString()};n.deadline&&(t.deadline=n.deadline);let e=await c(ie,{input:t});l(`Job posting created: ${e.createCrewJobPosting.title}`),p(n,e.createCrewJobPosting);}catch(t){a(t);}}),o.command("update").description("Update a job posting").argument("<id>","Job posting ID").option("--title <s>","Title").option("--department <s>","Department").option("--description <s>","Description").option("--experience-level <s>","Experience level").option("--location <s>","Location").option("--type <s>","Employment type").option("--applicants <n>","Applicant count",y).option("--salary-min <n>","Minimum salary",g).option("--salary-max <n>","Maximum salary",g).option("--status <s>","Status").option("--requirements <csv>","Comma-separated requirements").option("--benefits <csv>","Comma-separated benefits").option("--posted-date <iso>","Posted date (ISO)").option("--deadline <iso>","Deadline (ISO)").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={};if(t.title&&(e.title=t.title),t.department&&(e.department=t.department),t.description&&(e.description=t.description),t.experienceLevel&&(e.experienceLevel=t.experienceLevel),t.location&&(e.location=t.location),t.type&&(e.type=t.type),t.applicants!==void 0&&(e.applicants=t.applicants),t.salaryMin!==void 0&&(e.salaryMin=t.salaryMin),t.salaryMax!==void 0&&(e.salaryMax=t.salaryMax),t.status&&(e.status=t.status),t.requirements&&(e.requirements=w(t.requirements)),t.benefits&&(e.benefits=w(t.benefits)),t.postedDate&&(e.postedDate=t.postedDate),t.deadline&&(e.deadline=t.deadline),!Object.keys(e).length)throw new u("No updates specified");let r=await c(se,{id:n,input:e});l("Job posting updated"),p(t,r.updateCrewJobPosting);}catch(e){a(e);}});}function fe(i){let o=i.command("leave-requests").description("Crewfoundry leave requests");o.command("list").description("List leave requests").option("--employee <id>","Filter by employee ID").option("--status <s>","Filter by status").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(q)).crewfoundryBootstrap.leaveRequests;n.employee&&(e=e.filter(r=>r.employeeId===n.employee)),n.status&&(e=e.filter(r=>r.status===n.status)),p(n,e,{headers:["ID","Employee","Type","Days","Status"],rows:e.map(r=>[m(r.id,12),r.employeeName,r.type,String(r.days),r.status])});}catch(t){a(t);}}),o.command("get").description("Get a leave request by id").argument("<id>","Leave request ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(q)).crewfoundryBootstrap.leaveRequests.find(f=>f.id===n);if(!r)throw new u(`Leave request ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create a leave request").requiredOption("--employee-id <id>","Employee ID").requiredOption("--employee-name <s>","Employee name").requiredOption("--department <s>","Department").requiredOption("--type <s>","Leave type").requiredOption("--reason <s>","Reason").requiredOption("--start-date <iso>","Start date (ISO)").requiredOption("--end-date <iso>","End date (ISO)").option("--days <n>","Number of days",y,1).option("--status <s>","Status","pending").option("--approver-name <s>","Approver name").option("-f, --format <format>","Output format").action(async n=>{try{let t={employeeId:n.employeeId,employeeName:n.employeeName,department:n.department,type:n.type,reason:n.reason,startDate:n.startDate,endDate:n.endDate,days:n.days??1,status:n.status??"pending"};n.approverName&&(t.approverName=n.approverName);let e=await c(ae,{input:t});l(`Leave request created for ${e.createCrewLeaveRequest.employeeName}`),p(n,e.createCrewLeaveRequest);}catch(t){a(t);}}),o.command("update").description("Update a leave request").argument("<id>","Leave request ID").option("--employee-id <id>","Employee ID").option("--employee-name <s>","Employee name").option("--department <s>","Department").option("--type <s>","Leave type").option("--reason <s>","Reason").option("--start-date <iso>","Start date (ISO)").option("--end-date <iso>","End date (ISO)").option("--days <n>","Number of days",y).option("--status <s>","Status").option("--approver-name <s>","Approver name").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={};if(t.employeeId&&(e.employeeId=t.employeeId),t.employeeName&&(e.employeeName=t.employeeName),t.department&&(e.department=t.department),t.type&&(e.type=t.type),t.reason&&(e.reason=t.reason),t.startDate&&(e.startDate=t.startDate),t.endDate&&(e.endDate=t.endDate),t.days!==void 0&&(e.days=t.days),t.status&&(e.status=t.status),t.approverName&&(e.approverName=t.approverName),!Object.keys(e).length)throw new u("No updates specified");let r=await c(pe,{id:n,input:e});l("Leave request updated"),p(t,r.updateCrewLeaveRequest);}catch(e){a(e);}});}function ge(i){let o=i.command("announcements").description("Crewfoundry announcements");o.command("list").description("List announcements").option("--category <c>","Filter by category").option("--pinned-only","Only pinned announcements").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(P)).crewfoundryBootstrap.announcements;n.category&&(e=e.filter(r=>r.category===n.category)),n.pinnedOnly&&(e=e.filter(r=>r.isPinned)),p(n,e,{headers:["ID","Title","Author","Category","Priority","Pinned"],rows:e.map(r=>[m(r.id,12),r.title,r.author,r.category,r.priority,r.isPinned?"yes":"no"])});}catch(t){a(t);}}),o.command("get").description("Get an announcement by id").argument("<id>","Announcement ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(P)).crewfoundryBootstrap.announcements.find(f=>f.id===n);if(!r)throw new u(`Announcement ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create an announcement").requiredOption("--title <s>","Title").requiredOption("--content <s>","Content").requiredOption("--author <s>","Author").requiredOption("--author-role <s>","Author role").requiredOption("--category <s>","Category").requiredOption("--priority <s>","Priority").option("--pinned","Pin the announcement").option("--view-count <n>","Initial view count",y,0).option("--tags <csv>","Comma-separated tags").option("--created-at <iso>","Created at (ISO)").option("-f, --format <format>","Output format").action(async n=>{try{let t={title:n.title,content:n.content,author:n.author,authorRole:n.authorRole,category:n.category,priority:n.priority,isPinned:n.pinned??!1,viewCount:n.viewCount??0,tags:n.tags?w(n.tags):[],createdAt:n.createdAt??new Date().toISOString()},e=await c(ce,{input:t});l(`Announcement created: ${e.createCrewAnnouncement.title}`),p(n,e.createCrewAnnouncement);}catch(t){a(t);}});}function s(i){return i==null?"-":String(i)}function ye(i){let o=i.command("directory").description("Crewfoundry read-only collections (clients, projects, teams, finance, learning)"),n=async(t,e,r,f)=>{try{let _=(await c(t)).crewfoundryBootstrap[e];p(r,_,{headers:f.headers,rows:_.map(f.row)});}catch(k){a(k);}};o.command("clients").description("List clients").option("-f, --format <format>","Output format").action(t=>n(H,"clients",t,{headers:["ID","Name","Industry","Status","Projects","Revenue"],row:e=>[m(e.id,12),s(e.name),s(e.industry),s(e.status),s(e.projects),s(e.revenue)]})),o.command("departments").description("List departments").option("-f, --format <format>","Output format").action(t=>n(Y,"departments",t,{headers:["ID","Name","Head","Employees","Budget","Status"],row:e=>[m(e.id,12),s(e.name),s(e.headName),s(e.employeeCount),s(e.budget),s(e.status)]})),o.command("interviews").description("List interviews").option("-f, --format <format>","Output format").action(t=>n(z,"interviews",t,{headers:["ID","Candidate","Position","Type","Status","Interviewer"],row:e=>[m(e.id,12),s(e.candidateName),s(e.position),s(e.type),s(e.status),s(e.interviewerName)]})),o.command("projects").description("List projects").option("-f, --format <format>","Output format").action(t=>n(K,"projects",t,{headers:["ID","Name","Status","Priority","Progress","Budget"],row:e=>[m(e.id,12),s(e.name),s(e.status),s(e.priority),s(e.progress),s(e.budget)]})),o.command("teams").description("List teams").option("-f, --format <format>","Output format").action(t=>n(Q,"teams",t,{headers:["ID","Name","Department","Lead","Members","Status"],row:e=>[m(e.id,12),s(e.name),s(e.department),s(e.leadName),s(e.memberCount),s(e.status)]})),o.command("time-entries").description("List time entries").option("-f, --format <format>","Output format").action(t=>n(X,"timeEntries",t,{headers:["ID","Employee","Date","Hours","Overtime","Status"],row:e=>[m(e.id,12),s(e.employeeName),s(e.date),s(e.totalHours),s(e.overtime),s(e.status)]})),o.command("vendors").description("List vendors").option("-f, --format <format>","Output format").action(t=>n(Z,"vendors",t,{headers:["ID","Name","Category","Contract Value","Rating","Status"],row:e=>[m(e.id,12),s(e.name),s(e.category),s(e.contractValue),s(e.rating),s(e.status)]}));}function we(i){let o=i.command("analytics").description("Crewfoundry analytics & bootstrap");o.command("bootstrap").description("Fetch the full Crewfoundry workspace snapshot (all collections)").option("-f, --format <format>","Output format").action(async n=>{try{let t=await c(R);p(n,t.crewfoundryBootstrap);}catch(t){a(t);}}),o.command("summary").description("Per-collection counts derived from the bootstrap snapshot").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(R)).crewfoundryBootstrap,r={employees:e.employees.length,candidates:e.candidates.length,jobPostings:e.jobPostings.length,leaveRequests:e.leaveRequests.length,announcements:e.announcements.length,clients:e.clients.length,departments:e.departments.length,interviews:e.interviews.length,projects:e.projects.length,teams:e.teams.length,timeEntries:e.timeEntries.length,vendors:e.vendors.length};p(n,r,{headers:["Collection","Count"],rows:Object.entries(r).map(([f,k])=>[f,String(k)])});}catch(t){a(t);}}),i.command("health").description("Crewfoundry service health check (public)").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await O(ue))._empty??"ok";l(`crewfoundry: ${e}`),p(n,{health:e});}catch(t){a(t);}});}var Re={id:"crewfoundry",version:"1.0.0",displayName:"Crewfoundry",dependsOn:["auth","workspaces"],register(i,o){U(o);let n=i.command("crewfoundry").description("Crewfoundry workforce & HR operations");de(n),me(n),le(n),fe(n),ge(n),ye(n),we(n);}},yn=Re;module.exports=yn;
143
+ `;function y(i){let o=Number.parseInt(i,10);if(Number.isNaN(o))throw new u(`Expected an integer but got "${i}"`);return o}function g(i){let o=Number.parseFloat(i);if(Number.isNaN(o))throw new u(`Expected a number but got "${i}"`);return o}function w(i){return i.split(",").map(o=>o.trim()).filter(o=>o.length>0)}function de(i){let o=i.command("employees").description("Crewfoundry employees");o.command("list").description("List employees").option("--department <d>","Filter by department").option("--status <s>","Filter by status").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(D)).crewfoundryBootstrap.employees;n.department&&(e=e.filter(r=>r.department===n.department)),n.status&&(e=e.filter(r=>r.status===n.status)),p(n,e,{headers:["ID","Name","Email","Department","Position","Status"],rows:e.map(r=>[m(r.id,12),`${r.firstName} ${r.lastName}`,r.email,r.department,r.position,r.status])});}catch(t){a(t);}}),o.command("get").description("Get an employee by id").argument("<id>","Employee ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(D)).crewfoundryBootstrap.employees.find(f=>f.id===n);if(!r)throw new u(`Employee ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create an employee").requiredOption("--first-name <s>","First name").requiredOption("--last-name <s>","Last name").requiredOption("--email <s>","Email").requiredOption("--phone <s>","Phone").requiredOption("--position <s>","Position").requiredOption("--department <s>","Department").requiredOption("--location <s>","Location").requiredOption("--salary <n>","Salary",g).option("--type <s>","Employment type (e.g. full-time)","full-time").option("--status <s>","Status","active").option("--performance-score <n>","Performance score",g,0).option("--manager-id <id>","Manager ID").option("--avatar <url>","Avatar URL").option("--start-date <iso>","Start date (ISO)").option("-f, --format <format>","Output format").action(async n=>{try{let t={firstName:n.firstName,lastName:n.lastName,email:n.email,phone:n.phone,position:n.position,department:n.department,location:n.location,salary:n.salary,type:n.type??"full-time",status:n.status??"active",performanceScore:n.performanceScore??0,startDate:n.startDate??new Date().toISOString()};n.managerId&&(t.managerId=n.managerId),n.avatar&&(t.avatar=n.avatar);let e=await c(ee,{input:t});l(`Employee created: ${e.createCrewEmployee.firstName} ${e.createCrewEmployee.lastName}`),p(n,e.createCrewEmployee);}catch(t){a(t);}}),o.command("update").description("Update an employee").argument("<id>","Employee ID").option("--first-name <s>","First name").option("--last-name <s>","Last name").option("--email <s>","Email").option("--phone <s>","Phone").option("--position <s>","Position").option("--department <s>","Department").option("--location <s>","Location").option("--salary <n>","Salary",g).option("--type <s>","Employment type").option("--status <s>","Status").option("--performance-score <n>","Performance score",g).option("--manager-id <id>","Manager ID").option("--avatar <url>","Avatar URL").option("--start-date <iso>","Start date (ISO)").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={};if(t.firstName&&(e.firstName=t.firstName),t.lastName&&(e.lastName=t.lastName),t.email&&(e.email=t.email),t.phone&&(e.phone=t.phone),t.position&&(e.position=t.position),t.department&&(e.department=t.department),t.location&&(e.location=t.location),t.salary!==void 0&&(e.salary=t.salary),t.type&&(e.type=t.type),t.status&&(e.status=t.status),t.performanceScore!==void 0&&(e.performanceScore=t.performanceScore),t.managerId&&(e.managerId=t.managerId),t.avatar&&(e.avatar=t.avatar),t.startDate&&(e.startDate=t.startDate),!Object.keys(e).length)throw new u("No updates specified");let r=await c(te,{id:n,input:e});l("Employee updated"),p(t,r.updateCrewEmployee);}catch(e){a(e);}}),o.command("remove").description("Remove an employee").argument("<id>","Employee ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e=await c(ne,{id:n});if(!e.removeCrewEmployee)throw new u(`Employee ${n} could not be removed`);l(`Employee ${n} removed`),p(t,{removed:e.removeCrewEmployee});}catch(e){a(e);}});}function me(i){let o=i.command("candidates").description("Crewfoundry recruiting candidates");o.command("list").description("List candidates").option("--status <s>","Filter by status").option("--position <p>","Filter by position").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(L)).crewfoundryBootstrap.candidates;n.status&&(e=e.filter(r=>r.status===n.status)),n.position&&(e=e.filter(r=>r.position===n.position)),p(n,e,{headers:["ID","Name","Position","Source","Status","Rating"],rows:e.map(r=>[m(r.id,12),`${r.firstName} ${r.lastName}`,r.position,r.source,r.status,String(r.rating)])});}catch(t){a(t);}}),o.command("get").description("Get a candidate by id").argument("<id>","Candidate ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(L)).crewfoundryBootstrap.candidates.find(f=>f.id===n);if(!r)throw new u(`Candidate ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create a candidate").requiredOption("--first-name <s>","First name").requiredOption("--last-name <s>","Last name").requiredOption("--email <s>","Email").requiredOption("--phone <s>","Phone").requiredOption("--position <s>","Position").requiredOption("--source <s>","Source").option("--experience <n>","Years of experience",y,0).option("--rating <n>","Rating",g,0).option("--status <s>","Status","new").option("--current-company <s>","Current company").option("--skills <csv>","Comma-separated skills").option("--resume-url <url>","Resume URL").option("--notes <s>","Notes").option("--applied-date <iso>","Applied date (ISO)").option("-f, --format <format>","Output format").action(async n=>{try{let t={firstName:n.firstName,lastName:n.lastName,email:n.email,phone:n.phone,position:n.position,source:n.source,experience:n.experience??0,rating:n.rating??0,status:n.status??"new",skills:n.skills?w(n.skills):[],appliedDate:n.appliedDate??new Date().toISOString()};n.currentCompany&&(t.currentCompany=n.currentCompany),n.resumeUrl&&(t.resumeUrl=n.resumeUrl),n.notes&&(t.notes=n.notes);let e=await c(re,{input:t});l(`Candidate created: ${e.createCrewCandidate.firstName} ${e.createCrewCandidate.lastName}`),p(n,e.createCrewCandidate);}catch(t){a(t);}}),o.command("update").description("Update a candidate").argument("<id>","Candidate ID").option("--first-name <s>","First name").option("--last-name <s>","Last name").option("--email <s>","Email").option("--phone <s>","Phone").option("--position <s>","Position").option("--source <s>","Source").option("--experience <n>","Years of experience",y).option("--rating <n>","Rating",g).option("--status <s>","Status").option("--current-company <s>","Current company").option("--skills <csv>","Comma-separated skills").option("--resume-url <url>","Resume URL").option("--notes <s>","Notes").option("--applied-date <iso>","Applied date (ISO)").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={};if(t.firstName&&(e.firstName=t.firstName),t.lastName&&(e.lastName=t.lastName),t.email&&(e.email=t.email),t.phone&&(e.phone=t.phone),t.position&&(e.position=t.position),t.source&&(e.source=t.source),t.experience!==void 0&&(e.experience=t.experience),t.rating!==void 0&&(e.rating=t.rating),t.status&&(e.status=t.status),t.currentCompany&&(e.currentCompany=t.currentCompany),t.skills&&(e.skills=w(t.skills)),t.resumeUrl&&(e.resumeUrl=t.resumeUrl),t.notes&&(e.notes=t.notes),t.appliedDate&&(e.appliedDate=t.appliedDate),!Object.keys(e).length)throw new u("No updates specified");let r=await c(oe,{id:n,input:e});l("Candidate updated"),p(t,r.updateCrewCandidate);}catch(e){a(e);}});}function le(i){let o=i.command("job-postings").description("Crewfoundry job postings");o.command("list").description("List job postings").option("--department <d>","Filter by department").option("--status <s>","Filter by status").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(N)).crewfoundryBootstrap.jobPostings;n.department&&(e=e.filter(r=>r.department===n.department)),n.status&&(e=e.filter(r=>r.status===n.status)),p(n,e,{headers:["ID","Title","Department","Type","Applicants","Status"],rows:e.map(r=>[m(r.id,12),r.title,r.department,r.type,String(r.applicants),r.status])});}catch(t){a(t);}}),o.command("get").description("Get a job posting by id").argument("<id>","Job posting ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(N)).crewfoundryBootstrap.jobPostings.find(f=>f.id===n);if(!r)throw new u(`Job posting ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create a job posting").requiredOption("--title <s>","Title").requiredOption("--department <s>","Department").requiredOption("--description <s>","Description").requiredOption("--experience-level <s>","Experience level").requiredOption("--location <s>","Location").requiredOption("--type <s>","Employment type (e.g. full-time)").option("--applicants <n>","Applicant count",y,0).option("--salary-min <n>","Minimum salary",g,0).option("--salary-max <n>","Maximum salary",g,0).option("--status <s>","Status","open").option("--requirements <csv>","Comma-separated requirements").option("--benefits <csv>","Comma-separated benefits").option("--posted-date <iso>","Posted date (ISO)").option("--deadline <iso>","Deadline (ISO)").option("-f, --format <format>","Output format").action(async n=>{try{let t={title:n.title,department:n.department,description:n.description,experienceLevel:n.experienceLevel,location:n.location,type:n.type,applicants:n.applicants??0,salaryMin:n.salaryMin??0,salaryMax:n.salaryMax??0,status:n.status??"open",requirements:n.requirements?w(n.requirements):[],benefits:n.benefits?w(n.benefits):[],postedDate:n.postedDate??new Date().toISOString()};n.deadline&&(t.deadline=n.deadline);let e=await c(ie,{input:t});l(`Job posting created: ${e.createCrewJobPosting.title}`),p(n,e.createCrewJobPosting);}catch(t){a(t);}}),o.command("update").description("Update a job posting").argument("<id>","Job posting ID").option("--title <s>","Title").option("--department <s>","Department").option("--description <s>","Description").option("--experience-level <s>","Experience level").option("--location <s>","Location").option("--type <s>","Employment type").option("--applicants <n>","Applicant count",y).option("--salary-min <n>","Minimum salary",g).option("--salary-max <n>","Maximum salary",g).option("--status <s>","Status").option("--requirements <csv>","Comma-separated requirements").option("--benefits <csv>","Comma-separated benefits").option("--posted-date <iso>","Posted date (ISO)").option("--deadline <iso>","Deadline (ISO)").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={};if(t.title&&(e.title=t.title),t.department&&(e.department=t.department),t.description&&(e.description=t.description),t.experienceLevel&&(e.experienceLevel=t.experienceLevel),t.location&&(e.location=t.location),t.type&&(e.type=t.type),t.applicants!==void 0&&(e.applicants=t.applicants),t.salaryMin!==void 0&&(e.salaryMin=t.salaryMin),t.salaryMax!==void 0&&(e.salaryMax=t.salaryMax),t.status&&(e.status=t.status),t.requirements&&(e.requirements=w(t.requirements)),t.benefits&&(e.benefits=w(t.benefits)),t.postedDate&&(e.postedDate=t.postedDate),t.deadline&&(e.deadline=t.deadline),!Object.keys(e).length)throw new u("No updates specified");let r=await c(se,{id:n,input:e});l("Job posting updated"),p(t,r.updateCrewJobPosting);}catch(e){a(e);}});}function fe(i){let o=i.command("leave-requests").description("Crewfoundry leave requests");o.command("list").description("List leave requests").option("--employee <id>","Filter by employee ID").option("--status <s>","Filter by status").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(q)).crewfoundryBootstrap.leaveRequests;n.employee&&(e=e.filter(r=>r.employeeId===n.employee)),n.status&&(e=e.filter(r=>r.status===n.status)),p(n,e,{headers:["ID","Employee","Type","Days","Status"],rows:e.map(r=>[m(r.id,12),r.employeeName,r.type,String(r.days),r.status])});}catch(t){a(t);}}),o.command("get").description("Get a leave request by id").argument("<id>","Leave request ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(q)).crewfoundryBootstrap.leaveRequests.find(f=>f.id===n);if(!r)throw new u(`Leave request ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create a leave request").requiredOption("--employee-id <id>","Employee ID").requiredOption("--employee-name <s>","Employee name").requiredOption("--department <s>","Department").requiredOption("--type <s>","Leave type").requiredOption("--reason <s>","Reason").requiredOption("--start-date <iso>","Start date (ISO)").requiredOption("--end-date <iso>","End date (ISO)").option("--days <n>","Number of days",y,1).option("--status <s>","Status","pending").option("--approver-name <s>","Approver name").option("-f, --format <format>","Output format").action(async n=>{try{let t={employeeId:n.employeeId,employeeName:n.employeeName,department:n.department,type:n.type,reason:n.reason,startDate:n.startDate,endDate:n.endDate,days:n.days??1,status:n.status??"pending"};n.approverName&&(t.approverName=n.approverName);let e=await c(ae,{input:t});l(`Leave request created for ${e.createCrewLeaveRequest.employeeName}`),p(n,e.createCrewLeaveRequest);}catch(t){a(t);}}),o.command("update").description("Update a leave request").argument("<id>","Leave request ID").option("--employee-id <id>","Employee ID").option("--employee-name <s>","Employee name").option("--department <s>","Department").option("--type <s>","Leave type").option("--reason <s>","Reason").option("--start-date <iso>","Start date (ISO)").option("--end-date <iso>","End date (ISO)").option("--days <n>","Number of days",y).option("--status <s>","Status").option("--approver-name <s>","Approver name").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={};if(t.employeeId&&(e.employeeId=t.employeeId),t.employeeName&&(e.employeeName=t.employeeName),t.department&&(e.department=t.department),t.type&&(e.type=t.type),t.reason&&(e.reason=t.reason),t.startDate&&(e.startDate=t.startDate),t.endDate&&(e.endDate=t.endDate),t.days!==void 0&&(e.days=t.days),t.status&&(e.status=t.status),t.approverName&&(e.approverName=t.approverName),!Object.keys(e).length)throw new u("No updates specified");let r=await c(pe,{id:n,input:e});l("Leave request updated"),p(t,r.updateCrewLeaveRequest);}catch(e){a(e);}});}function ge(i){let o=i.command("announcements").description("Crewfoundry announcements");o.command("list").description("List announcements").option("--category <c>","Filter by category").option("--pinned-only","Only pinned announcements").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(P)).crewfoundryBootstrap.announcements;n.category&&(e=e.filter(r=>r.category===n.category)),n.pinnedOnly&&(e=e.filter(r=>r.isPinned)),p(n,e,{headers:["ID","Title","Author","Category","Priority","Pinned"],rows:e.map(r=>[m(r.id,12),r.title,r.author,r.category,r.priority,r.isPinned?"yes":"no"])});}catch(t){a(t);}}),o.command("get").description("Get an announcement by id").argument("<id>","Announcement ID").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let r=(await c(P)).crewfoundryBootstrap.announcements.find(f=>f.id===n);if(!r)throw new u(`Announcement ${n} not found`);p(t,r);}catch(e){a(e);}}),o.command("create").description("Create an announcement").requiredOption("--title <s>","Title").requiredOption("--content <s>","Content").requiredOption("--author <s>","Author").requiredOption("--author-role <s>","Author role").requiredOption("--category <s>","Category").requiredOption("--priority <s>","Priority").option("--pinned","Pin the announcement").option("--view-count <n>","Initial view count",y,0).option("--tags <csv>","Comma-separated tags").option("--created-at <iso>","Created at (ISO)").option("-f, --format <format>","Output format").action(async n=>{try{let t={title:n.title,content:n.content,author:n.author,authorRole:n.authorRole,category:n.category,priority:n.priority,isPinned:n.pinned??!1,viewCount:n.viewCount??0,tags:n.tags?w(n.tags):[],createdAt:n.createdAt??new Date().toISOString()},e=await c(ce,{input:t});l(`Announcement created: ${e.createCrewAnnouncement.title}`),p(n,e.createCrewAnnouncement);}catch(t){a(t);}});}function s(i){return i==null?"-":String(i)}function ye(i){let o=i.command("directory").description("Crewfoundry read-only collections (clients, projects, teams, finance, learning)"),n=async(t,e,r,f)=>{try{let _=(await c(t)).crewfoundryBootstrap[e];p(r,_,{headers:f.headers,rows:_.map(f.row)});}catch(k){a(k);}};o.command("clients").description("List clients").option("-f, --format <format>","Output format").action(t=>n(H,"clients",t,{headers:["ID","Name","Industry","Status","Projects","Revenue"],row:e=>[m(e.id,12),s(e.name),s(e.industry),s(e.status),s(e.projects),s(e.revenue)]})),o.command("departments").description("List departments").option("-f, --format <format>","Output format").action(t=>n(Y,"departments",t,{headers:["ID","Name","Head","Employees","Budget","Status"],row:e=>[m(e.id,12),s(e.name),s(e.headName),s(e.employeeCount),s(e.budget),s(e.status)]})),o.command("interviews").description("List interviews").option("-f, --format <format>","Output format").action(t=>n(z,"interviews",t,{headers:["ID","Candidate","Position","Type","Status","Interviewer"],row:e=>[m(e.id,12),s(e.candidateName),s(e.position),s(e.type),s(e.status),s(e.interviewerName)]})),o.command("projects").description("List projects").option("-f, --format <format>","Output format").action(t=>n(Q,"projects",t,{headers:["ID","Name","Status","Priority","Progress","Budget"],row:e=>[m(e.id,12),s(e.name),s(e.status),s(e.priority),s(e.progress),s(e.budget)]})),o.command("teams").description("List teams").option("-f, --format <format>","Output format").action(t=>n(K,"teams",t,{headers:["ID","Name","Department","Lead","Members","Status"],row:e=>[m(e.id,12),s(e.name),s(e.department),s(e.leadName),s(e.memberCount),s(e.status)]})),o.command("time-entries").description("List time entries").option("-f, --format <format>","Output format").action(t=>n(X,"timeEntries",t,{headers:["ID","Employee","Date","Hours","Overtime","Status"],row:e=>[m(e.id,12),s(e.employeeName),s(e.date),s(e.totalHours),s(e.overtime),s(e.status)]})),o.command("vendors").description("List vendors").option("-f, --format <format>","Output format").action(t=>n(Z,"vendors",t,{headers:["ID","Name","Category","Contract Value","Rating","Status"],row:e=>[m(e.id,12),s(e.name),s(e.category),s(e.contractValue),s(e.rating),s(e.status)]}));}function we(i){let o=i.command("analytics").description("Crewfoundry analytics & bootstrap");o.command("bootstrap").description("Fetch the full Crewfoundry workspace snapshot (all collections)").option("-f, --format <format>","Output format").action(async n=>{try{let t=await c(R);p(n,t.crewfoundryBootstrap);}catch(t){a(t);}}),o.command("summary").description("Per-collection counts derived from the bootstrap snapshot").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await c(R)).crewfoundryBootstrap,r={employees:e.employees.length,candidates:e.candidates.length,jobPostings:e.jobPostings.length,leaveRequests:e.leaveRequests.length,announcements:e.announcements.length,clients:e.clients.length,departments:e.departments.length,interviews:e.interviews.length,projects:e.projects.length,teams:e.teams.length,timeEntries:e.timeEntries.length,vendors:e.vendors.length};p(n,r,{headers:["Collection","Count"],rows:Object.entries(r).map(([f,k])=>[f,String(k)])});}catch(t){a(t);}}),i.command("health").description("Crewfoundry service health check (public)").option("-f, --format <format>","Output format").action(async n=>{try{let e=(await O(ue))._empty??"ok";l(`crewfoundry: ${e}`),p(n,{health:e});}catch(t){a(t);}});}var Re={id:"crewfoundry",version:"1.0.0",displayName:"Crewfoundry",dependsOn:["auth","workspaces"],register(i,o){U(o);let n=i.command("crewfoundry").description("Crewfoundry workforce & HR operations");de(n),me(n),le(n),fe(n),ge(n),ye(n),we(n);}},yn=Re;module.exports=yn;
@@ -1,4 +1,4 @@
1
- import {a as a$1,b as b$1,i,r,h as h$1,k as k$1,d}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';var S=`
1
+ import {a as a$1,b as b$1,i,r,h as h$1,k as k$1,d}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var S=`
2
2
  id firstName lastName email phone position department location type status
3
3
  salary performanceScore managerId avatar startDate workspaceId
4
4
  `,N=`
@@ -1,4 +1,4 @@
1
- import {a,c,i,r,h as h$1,k as k$1,p}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';var R=`
1
+ import {a,c,i,r,h as h$1,k as k$1,p}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var R=`
2
2
  query ListDeveloperOrganizations($limit: Int, $offset: Int) {
3
3
  developerOrganizations(limit: $limit, offset: $offset) {
4
4
  edges { node { id name slug tier isVerified totalApps publishedApps } }
@@ -1,4 +1,4 @@
1
- import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$1,d as d$1}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';var O=`
1
+ import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$1,d as d$1}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var O=`
2
2
  query EcoSite($id: ID!) {
3
3
  ecoSite(id: $id) {
4
4
  id name code description type status country region latitude longitude
@@ -1,4 +1,4 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var m=class extends Error{exitCode;hint;constructor(n,e){super(n),this.name="CliUserError",this.exitCode=e?.exitCode??1,this.hint=e?.hint;}},y=class extends m{constructor(n,e){super(n,{exitCode:2,hint:e?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(n,e){super(n),this.name="CliInternalError",this.cause=e;}};var h=null;function R(t){h=t;}function v(){if(!h)throw new f("vibecontrols module helpers used before setHelpersContext was called");return h}function re(){let t=v();if(!t.auth.isAuthenticated())throw new y("Authentication required.",{hint:`Run \`${t.productName} auth login\` to authenticate.`})}async function r(t,n){return re(),v().gql.workspace.request(t,n)}function a(t){let n=t instanceof Error?t.message:String(t);throw new m(n)}function s(t,n,e){v().output.formatAndOutput(t,n,e);}function c(t){v().output.printSuccess(t);}function E(t){return v().output.formatDate(t)}function u(t,n){return v().output.truncate(t,n)}var I=`
1
+ 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var m=class extends Error{exitCode;hint;constructor(n,e){super(n),this.name="CliUserError",this.exitCode=e?.exitCode??1,this.hint=e?.hint;}},y=class extends m{constructor(n,e){super(n,{exitCode:2,hint:e?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(n,e){super(n),this.name="CliInternalError",this.cause=e;}};var h=null;function R(t){h=t;}function v(){if(!h)throw new f("vibecontrols module helpers used before setHelpersContext was called");return h}function re(){let t=v();if(!t.auth.isAuthenticated())throw new y("Authentication required.",{hint:`Run \`${t.productName} auth login\` to authenticate.`})}async function r(t,n){return re(),v().gql.workspace.request(t,n)}function a(t){let n=t instanceof Error?t.message:String(t);throw new m(n)}function s(t,n,e){v().output.formatAndOutput(t,n,e);}function c(t){v().output.printSuccess(t);}function E(t){return v().output.formatDate(t)}function p(t,n){return v().output.truncate(t,n)}var I=`
2
2
  id name description type status visibility timezone startAt endAt capacity
3
3
  metadata createdAt updatedAt workspaceId
4
4
  `,L=`
@@ -16,11 +16,11 @@
16
16
  mutation EventfullymanagedCreateEvent($input: EventfullyManagedEventInput!) {
17
17
  eventfullyManagedCreateEvent(input: $input) { ${I} }
18
18
  }
19
- `,_=`
19
+ `,q=`
20
20
  mutation EventfullymanagedUpdateEvent($id: ID!, $input: EventfullyManagedEventInput!) {
21
21
  eventfullyManagedUpdateEvent(id: $id, input: $input) { ${I} }
22
22
  }
23
- `,q=`
23
+ `,_=`
24
24
  mutation EventfullymanagedDeleteEvent($id: ID!) {
25
25
  eventfullyManagedDeleteEvent(id: $id)
26
26
  }
@@ -90,14 +90,14 @@
90
90
  mutation EventfullymanagedCreateAttendee($input: EventfullyManagedAttendeeInput!) {
91
91
  eventfullyManagedCreateAttendee(input: $input) { ${C} }
92
92
  }
93
- `,X=`
93
+ `,Q=`
94
94
  mutation EventfullymanagedUpdateAttendee($id: ID!, $input: EventfullyManagedAttendeeInput!) {
95
95
  eventfullyManagedUpdateAttendee(id: $id, input: $input) { ${C} }
96
96
  }
97
97
  `,S=`
98
98
  id eventId title description sessionType track status startsAt endsAt
99
99
  capacity venueId metadata createdAt updatedAt workspaceId
100
- `,Q=`
100
+ `,X=`
101
101
  query EventfullymanagedEventSessions($eventId: ID, $limit: Int, $offset: Int, $workspaceId: ID) {
102
102
  eventfullyManagedEventSessions(eventId: $eventId, limit: $limit, offset: $offset, workspaceId: $workspaceId) {
103
103
  total
@@ -166,14 +166,14 @@
166
166
  mutation EventfullymanagedCreateSpeaker($input: EventfullyManagedSpeakerInput!) {
167
167
  eventfullyManagedCreateSpeaker(input: $input) { ${O} }
168
168
  }
169
- `,pt=`
169
+ `,ut=`
170
170
  mutation EventfullymanagedUpdateSpeaker($id: ID!, $input: EventfullyManagedSpeakerInput!) {
171
171
  eventfullyManagedUpdateSpeaker(id: $id, input: $input) { ${O} }
172
172
  }
173
173
  `,A=`
174
174
  id eventId name boothCode category contactName contactEmail status metadata
175
175
  createdAt updatedAt workspaceId
176
- `,ut=`
176
+ `,pt=`
177
177
  query EventfullymanagedExhibitors($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
178
178
  eventfullyManagedExhibitors(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
179
179
  total
@@ -244,4 +244,4 @@
244
244
  latestEvents { id name status type startAt endAt }
245
245
  }
246
246
  }
247
- `;function l(t,n){try{return JSON.parse(n)}catch{throw new m(`--${t} must be valid JSON`)}}function d(t){let n=Number.parseInt(t,10);if(Number.isNaN(n))throw new m(`Expected an integer but got "${t}"`);return n}function St(t){return t.split(",").map(n=>n.trim()).filter(n=>n.length>0)}function Tt(t){let n={name:t.name,type:t.type,timezone:t.timezone,startAt:t.startAt,endAt:t.endAt};return t.status&&(n.status=t.status),t.visibility&&(n.visibility=t.visibility),t.capacity!==void 0&&(n.capacity=t.capacity),t.description&&(n.description=t.description),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function bt(t){let n=t.command("events").description("Eventfullymanaged events");n.command("list").description("List events").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(L,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedEvents.items,{headers:["ID","Name","Type","Status","Start","End"],rows:i.eventfullyManagedEvents.items.map(o=>[u(o.id,12),o.name,o.type,o.status,E(o.startAt),E(o.endAt)])});}catch(i){a(i);}}),n.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(N,{id:e});if(!o.eventfullyManagedEvent)throw new m(`Event ${e} not found`);s(i,o.eventfullyManagedEvent);}catch(o){a(o);}}),n.command("create").description("Create an event").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type (e.g. conference, webinar)").requiredOption("--timezone <tz>","IANA timezone (e.g. Asia/Kolkata)").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility (e.g. public, private)").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(P,{input:Tt(e)});c(`Event created: ${i.eventfullyManagedCreateEvent.name}`),s(e,i.eventfullyManagedCreateEvent);}catch(i){a(i);}}),n.command("update").description("Update an event (the subgraph input requires the core fields)").argument("<id>","Event ID").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type").requiredOption("--timezone <tz>","IANA timezone").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(_,{id:e,input:Tt(i)});c("Event updated"),s(i,o.eventfullyManagedUpdateEvent);}catch(o){a(o);}}),n.command("remove").description("Delete an event").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(q,{id:e});c(o.eventfullyManagedDeleteEvent?"Event deleted":"Event not deleted"),s(i,{deleted:o.eventfullyManagedDeleteEvent});}catch(o){a(o);}});}function Ot(t){let n={name:t.name};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.capacity!==void 0&&(n.capacity=t.capacity),t.addressLine1&&(n.addressLine1=t.addressLine1),t.city&&(n.city=t.city),t.state&&(n.state=t.state),t.country&&(n.country=t.country),t.postalCode&&(n.postalCode=t.postalCode),t.amenities&&(n.amenities=St(t.amenities)),t.openingHours&&(n.openingHours=l("opening-hours",t.openingHours)),t.pricing&&(n.pricing=l("pricing",t.pricing)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function At(t){let n=t.command("venues").description("Eventfullymanaged venues");n.command("list").description("List venues").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(U,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedVenues.items,{headers:["ID","Name","Status","City","Country","Capacity"],rows:i.eventfullyManagedVenues.items.map(o=>[u(o.id,12),o.name,o.status,o.city??"-",o.country??"-",o.capacity!=null?String(o.capacity):"-"])});}catch(i){a(i);}}),n.command("get").description("Get a venue by id").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(V,{id:e});if(!o.eventfullyManagedVenue)throw new m(`Venue ${e} not found`);s(i,o.eventfullyManagedVenue);}catch(o){a(o);}}),n.command("create").description("Create a venue").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(F,{input:Ot({...e,addressLine1:e.address})});c(`Venue created: ${i.eventfullyManagedCreateVenue.name}`),s(e,i.eventfullyManagedCreateVenue);}catch(i){a(i);}}),n.command("update").description("Update a venue").argument("<id>","Venue ID").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(j,{id:e,input:Ot({...i,addressLine1:i.address})});c("Venue updated"),s(i,o.eventfullyManagedUpdateVenue);}catch(o){a(o);}}),n.command("remove").description("Delete a venue").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(W,{id:e});c(o.eventfullyManagedDeleteVenue?"Venue deleted":"Venue not deleted"),s(i,{deleted:o.eventfullyManagedDeleteVenue});}catch(o){a(o);}});}function xt(t){let n={eventId:t.event,name:t.name,level:t.level};return t.logoUrl&&(n.logoUrl=t.logoUrl),t.website&&(n.website=t.website),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.contactPhone&&(n.contactPhone=t.contactPhone),t.metrics&&(n.metrics=l("metrics",t.metrics)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Dt(t){let n=t.command("sponsors").description("Eventfullymanaged sponsors");n.command("list").description("List sponsors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(J,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedSponsors.items,{headers:["ID","Name","Level","Event","Website"],rows:i.eventfullyManagedSponsors.items.map(o=>[u(o.id,12),o.name,o.level,u(o.eventId,12),o.website??"-"])});}catch(i){a(i);}}),n.command("get").description("Get a sponsor by id").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(z,{id:e});if(!o.eventfullyManagedSponsor)throw new m(`Sponsor ${e} not found`);s(i,o.eventfullyManagedSponsor);}catch(o){a(o);}}),n.command("create").description("Create a sponsor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level (e.g. gold, silver)").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(G,{input:xt(e)});c(`Sponsor created: ${i.eventfullyManagedCreateSponsor.name}`),s(e,i.eventfullyManagedCreateSponsor);}catch(i){a(i);}}),n.command("update").description("Update a sponsor").argument("<id>","Sponsor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(H,{id:e,input:xt(i)});c("Sponsor updated"),s(i,o.eventfullyManagedUpdateSponsor);}catch(o){a(o);}}),n.command("remove").description("Delete a sponsor").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(B,{id:e});c(o.eventfullyManagedDeleteSponsor?"Sponsor deleted":"Sponsor not deleted"),s(i,{deleted:o.eventfullyManagedDeleteSponsor});}catch(o){a(o);}});}function $t(t){let n={eventId:t.event,fullName:t.fullName,email:t.email};return t.phone&&(n.phone=t.phone),t.company&&(n.company=t.company),t.role&&(n.role=t.role),t.profile&&(n.profile=l("profile",t.profile)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Mt(t){let n=t.command("attendees").description("Eventfullymanaged attendees");n.command("list").description("List attendees").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(K,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedAttendees.items,{headers:["ID","Name","Email","Company","Role"],rows:i.eventfullyManagedAttendees.items.map(o=>[u(o.id,12),o.fullName,o.email,o.company??"-",o.role??"-"])});}catch(i){a(i);}}),n.command("create").description("Create an attendee").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Y,{input:$t(e)});c(`Attendee created: ${i.eventfullyManagedCreateAttendee.fullName}`),s(e,i.eventfullyManagedCreateAttendee);}catch(i){a(i);}}),n.command("update").description("Update an attendee").argument("<id>","Attendee ID").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(X,{id:e,input:$t(i)});c("Attendee updated"),s(i,o.eventfullyManagedUpdateAttendee);}catch(o){a(o);}});}function Rt(t){let n={eventId:t.event,title:t.title,sessionType:t.sessionType,startsAt:t.startsAt,endsAt:t.endsAt};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.track&&(n.track=t.track),t.capacity!==void 0&&(n.capacity=t.capacity),t.venue&&(n.venueId=t.venue),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Lt(t){let n=t.command("sessions").description("Eventfullymanaged event sessions");n.command("list").description("List event sessions").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Q,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedEventSessions.items,{headers:["ID","Title","Type","Status","Track","Starts"],rows:i.eventfullyManagedEventSessions.items.map(o=>[u(o.id,12),o.title,o.sessionType,o.status,o.track??"-",E(o.startsAt)])});}catch(i){a(i);}}),n.command("create").description("Create an event session").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type (e.g. talk, workshop)").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Z,{input:Rt(e)});c(`Session created: ${i.eventfullyManagedCreateEventSession.title}`),s(e,i.eventfullyManagedCreateEventSession);}catch(i){a(i);}}),n.command("update").description("Update an event session").argument("<id>","Session ID").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(tt,{id:e,input:Rt(i)});c("Session updated"),s(i,o.eventfullyManagedUpdateEventSession);}catch(o){a(o);}});}function Nt(t){let n={eventId:t.event,name:t.name,price:t.price};return t.currency&&(n.currency=t.currency),t.description&&(n.description=t.description),t.capacity!==void 0&&(n.capacity=t.capacity),t.active!==void 0&&(n.isActive=t.active),t.salesStartAt&&(n.salesStartAt=t.salesStartAt),t.salesEndAt&&(n.salesEndAt=t.salesEndAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Pt(t){let n=t.command("tickets").description("Eventfullymanaged ticket types");n.command("list").description("List ticket types").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(et,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedTicketTypes.items,{headers:["ID","Name","Price","Currency","Active","Sold"],rows:i.eventfullyManagedTicketTypes.items.map(o=>[u(o.id,12),o.name,o.price,o.currency,o.isActive?"yes":"no",String(o.soldCount)])});}catch(i){a(i);}}),n.command("create").description("Create a ticket type").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(nt,{input:Nt(e)});c(`Ticket type created: ${i.eventfullyManagedCreateTicketType.name}`),s(e,i.eventfullyManagedCreateTicketType);}catch(i){a(i);}}),n.command("update").description("Update a ticket type").argument("<id>","Ticket type ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ot,{id:e,input:Nt(i)});c("Ticket type updated"),s(i,o.eventfullyManagedUpdateTicketType);}catch(o){a(o);}}),n.command("remove").description("Delete a ticket type").argument("<id>","Ticket type ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(it,{id:e});c(o.eventfullyManagedDeleteTicketType?"Ticket type deleted":"Ticket type not deleted"),s(i,{deleted:o.eventfullyManagedDeleteTicketType});}catch(o){a(o);}});}function _t(t){let n={eventId:t.event};return t.attendee&&(n.attendeeId=t.attendee),t.ticketType&&(n.ticketTypeId=t.ticketType),t.quantity!==void 0&&(n.quantity=t.quantity),t.status&&(n.status=t.status),t.totalAmount&&(n.totalAmount=t.totalAmount),t.currency&&(n.currency=t.currency),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function qt(t){let n=t.command("registrations").description("Eventfullymanaged registrations");n.command("list").description("List registrations").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(rt,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedRegistrations.items,{headers:["ID","Event","Attendee","Status","Qty","Total"],rows:i.eventfullyManagedRegistrations.items.map(o=>[u(o.id,12),u(o.eventId,12),o.attendeeId?u(o.attendeeId,12):"-",o.status,String(o.quantity),o.totalAmount??"-"])});}catch(i){a(i);}}),n.command("create").description("Create a registration").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(at,{input:_t(e)});c(`Registration created: ${i.eventfullyManagedCreateRegistration.id}`),s(e,i.eventfullyManagedCreateRegistration);}catch(i){a(i);}}),n.command("update").description("Update a registration").argument("<id>","Registration ID").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(st,{id:e,input:_t(i)});c("Registration updated"),s(i,o.eventfullyManagedUpdateRegistration);}catch(o){a(o);}});}function Ut(t){let n={fullName:t.fullName};return t.title&&(n.title=t.title),t.organization&&(n.organization=t.organization),t.bio&&(n.bio=t.bio),t.email&&(n.email=t.email),t.phone&&(n.phone=t.phone),t.avatarUrl&&(n.avatarUrl=t.avatarUrl),t.socialLinks&&(n.socialLinks=l("social-links",t.socialLinks)),n}function Vt(t){let n=t.command("speakers").description("Eventfullymanaged speakers");n.command("list").description("List speakers").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(dt,{workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedSpeakers.items,{headers:["ID","Name","Title","Organization","Email"],rows:i.eventfullyManagedSpeakers.items.map(o=>[u(o.id,12),o.fullName,o.title??"-",o.organization??"-",o.email??"-"])});}catch(i){a(i);}}),n.command("create").description("Create a speaker").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ct,{input:Ut(e)});c(`Speaker created: ${i.eventfullyManagedCreateSpeaker.fullName}`),s(e,i.eventfullyManagedCreateSpeaker);}catch(i){a(i);}}),n.command("update").description("Update a speaker").argument("<id>","Speaker ID").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(pt,{id:e,input:Ut(i)});c("Speaker updated"),s(i,o.eventfullyManagedUpdateSpeaker);}catch(o){a(o);}});}function Ft(t){let n={eventId:t.event,name:t.name};return t.boothCode&&(n.boothCode=t.boothCode),t.category&&(n.category=t.category),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.status&&(n.status=t.status),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function jt(t){let n=t.command("exhibitors").description("Eventfullymanaged exhibitors");n.command("list").description("List exhibitors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ut,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedExhibitors.items,{headers:["ID","Name","Status","Booth","Category"],rows:i.eventfullyManagedExhibitors.items.map(o=>[u(o.id,12),o.name,o.status,o.boothCode??"-",o.category??"-"])});}catch(i){a(i);}}),n.command("create").description("Create an exhibitor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(lt,{input:Ft(e)});c(`Exhibitor created: ${i.eventfullyManagedCreateExhibitor.name}`),s(e,i.eventfullyManagedCreateExhibitor);}catch(i){a(i);}}),n.command("update").description("Update an exhibitor").argument("<id>","Exhibitor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(mt,{id:e,input:Ft(i)});c("Exhibitor updated"),s(i,o.eventfullyManagedUpdateExhibitor);}catch(o){a(o);}}),n.command("remove").description("Delete an exhibitor").argument("<id>","Exhibitor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(gt,{id:e});c(o.eventfullyManagedDeleteExhibitor?"Exhibitor deleted":"Exhibitor not deleted"),s(i,{deleted:o.eventfullyManagedDeleteExhibitor});}catch(o){a(o);}});}function Wt(t){let n={eventId:t.event,attendeeName:t.attendeeName,attendeeEmail:t.attendeeEmail};return t.exhibitor&&(n.exhibitorId=t.exhibitor),t.sponsor&&(n.sponsorId=t.sponsor),t.status&&(n.status=t.status),t.score!==void 0&&(n.score=t.score),t.notes&&(n.notes=t.notes),t.capturedAt&&(n.capturedAt=t.capturedAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Jt(t){let n=t.command("leads").description("Eventfullymanaged exhibitor leads");n.command("list").description("List leads").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ft,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedLeads.items,{headers:["ID","Name","Email","Status","Score"],rows:i.eventfullyManagedLeads.items.map(o=>[u(o.id,12),o.attendeeName,o.attendeeEmail,o.status,o.score!=null?String(o.score):"-"])});}catch(i){a(i);}}),n.command("create").description("Create a lead").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(yt,{input:Wt(e)});c(`Lead created: ${i.eventfullyManagedCreateLead.attendeeName}`),s(e,i.eventfullyManagedCreateLead);}catch(i){a(i);}}),n.command("update").description("Update a lead").argument("<id>","Lead ID").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(vt,{id:e,input:Wt(i)});c("Lead updated"),s(i,o.eventfullyManagedUpdateLead);}catch(o){a(o);}}),n.command("remove").description("Delete a lead").argument("<id>","Lead ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(Et,{id:e});c(o.eventfullyManagedDeleteLead?"Lead deleted":"Lead not deleted"),s(i,{deleted:o.eventfullyManagedDeleteLead});}catch(o){a(o);}});}function zt(t){let n={eventId:t.event,code:t.code,discountType:t.discountType,discountValue:t.discountValue};return t.description&&(n.description=t.description),t.maxUses!==void 0&&(n.maxUses=t.maxUses),t.active!==void 0&&(n.isActive=t.active),t.startsAt&&(n.startsAt=t.startsAt),t.endsAt&&(n.endsAt=t.endsAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Gt(t){let n=t.command("promo-codes").description("Eventfullymanaged promo codes");n.command("list").description("List promo codes").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(It,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedPromoCodes.items,{headers:["ID","Code","Type","Value","Active","Used"],rows:i.eventfullyManagedPromoCodes.items.map(o=>[u(o.id,12),o.code,o.discountType,o.discountValue,o.isActive?"yes":"no",String(o.usedCount)])});}catch(i){a(i);}}),n.command("create").description("Create a promo code").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type (e.g. percentage, fixed)").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(kt,{input:zt(e)});c(`Promo code created: ${i.eventfullyManagedCreatePromoCode.code}`),s(e,i.eventfullyManagedCreatePromoCode);}catch(i){a(i);}}),n.command("update").description("Update a promo code").argument("<id>","Promo code ID").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(wt,{id:e,input:zt(i)});c("Promo code updated"),s(i,o.eventfullyManagedUpdatePromoCode);}catch(o){a(o);}}),n.command("remove").description("Delete a promo code").argument("<id>","Promo code ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ht,{id:e});c(o.eventfullyManagedDeletePromoCode?"Promo code deleted":"Promo code not deleted"),s(i,{deleted:o.eventfullyManagedDeletePromoCode});}catch(o){a(o);}});}function Ht(t){t.command("analytics").description("Eventfullymanaged analytics & dashboard").command("dashboard").description("Dashboard summary (event/attendee/registration/sponsor/venue counts + latest events)").option("--workspace <id>","Filter by workspace ID").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Ct,{workspaceId:e.workspace});s(e,i.eventfullyManagedDashboardSummary);}catch(i){a(i);}});}var ae={id:"eventfullymanaged",version:"1.0.0",displayName:"Eventfullymanaged",dependsOn:["auth","workspaces"],register(t,n){R(n);let e=t.command("eventfullymanaged").description("Eventfullymanaged event-management platform");bt(e),At(e),Dt(e),Mt(e),Lt(e),Pt(e),qt(e),Vt(e),jt(e),Jt(e),Gt(e),Ht(e);}},mo=ae;module.exports=mo;
247
+ `;function l(t,n){try{return JSON.parse(n)}catch{throw new m(`--${t} must be valid JSON`)}}function d(t){let n=Number.parseInt(t,10);if(Number.isNaN(n))throw new m(`Expected an integer but got "${t}"`);return n}function St(t){return t.split(",").map(n=>n.trim()).filter(n=>n.length>0)}function Tt(t){let n={name:t.name,type:t.type,timezone:t.timezone,startAt:t.startAt,endAt:t.endAt};return t.status&&(n.status=t.status),t.visibility&&(n.visibility=t.visibility),t.capacity!==void 0&&(n.capacity=t.capacity),t.description&&(n.description=t.description),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function bt(t){let n=t.command("events").description("Eventfullymanaged events");n.command("list").description("List events").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(L,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedEvents.items,{headers:["ID","Name","Type","Status","Start","End"],rows:i.eventfullyManagedEvents.items.map(o=>[p(o.id,12),o.name,o.type,o.status,E(o.startAt),E(o.endAt)])});}catch(i){a(i);}}),n.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(N,{id:e});if(!o.eventfullyManagedEvent)throw new m(`Event ${e} not found`);s(i,o.eventfullyManagedEvent);}catch(o){a(o);}}),n.command("create").description("Create an event").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type (e.g. conference, webinar)").requiredOption("--timezone <tz>","IANA timezone (e.g. Asia/Kolkata)").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility (e.g. public, private)").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(P,{input:Tt(e)});c(`Event created: ${i.eventfullyManagedCreateEvent.name}`),s(e,i.eventfullyManagedCreateEvent);}catch(i){a(i);}}),n.command("update").description("Update an event (the subgraph input requires the core fields)").argument("<id>","Event ID").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type").requiredOption("--timezone <tz>","IANA timezone").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(q,{id:e,input:Tt(i)});c("Event updated"),s(i,o.eventfullyManagedUpdateEvent);}catch(o){a(o);}}),n.command("remove").description("Delete an event").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(_,{id:e});c(o.eventfullyManagedDeleteEvent?"Event deleted":"Event not deleted"),s(i,{deleted:o.eventfullyManagedDeleteEvent});}catch(o){a(o);}});}function Ot(t){let n={name:t.name};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.capacity!==void 0&&(n.capacity=t.capacity),t.addressLine1&&(n.addressLine1=t.addressLine1),t.city&&(n.city=t.city),t.state&&(n.state=t.state),t.country&&(n.country=t.country),t.postalCode&&(n.postalCode=t.postalCode),t.amenities&&(n.amenities=St(t.amenities)),t.openingHours&&(n.openingHours=l("opening-hours",t.openingHours)),t.pricing&&(n.pricing=l("pricing",t.pricing)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function At(t){let n=t.command("venues").description("Eventfullymanaged venues");n.command("list").description("List venues").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(U,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedVenues.items,{headers:["ID","Name","Status","City","Country","Capacity"],rows:i.eventfullyManagedVenues.items.map(o=>[p(o.id,12),o.name,o.status,o.city??"-",o.country??"-",o.capacity!=null?String(o.capacity):"-"])});}catch(i){a(i);}}),n.command("get").description("Get a venue by id").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(V,{id:e});if(!o.eventfullyManagedVenue)throw new m(`Venue ${e} not found`);s(i,o.eventfullyManagedVenue);}catch(o){a(o);}}),n.command("create").description("Create a venue").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(F,{input:Ot({...e,addressLine1:e.address})});c(`Venue created: ${i.eventfullyManagedCreateVenue.name}`),s(e,i.eventfullyManagedCreateVenue);}catch(i){a(i);}}),n.command("update").description("Update a venue").argument("<id>","Venue ID").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(j,{id:e,input:Ot({...i,addressLine1:i.address})});c("Venue updated"),s(i,o.eventfullyManagedUpdateVenue);}catch(o){a(o);}}),n.command("remove").description("Delete a venue").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(W,{id:e});c(o.eventfullyManagedDeleteVenue?"Venue deleted":"Venue not deleted"),s(i,{deleted:o.eventfullyManagedDeleteVenue});}catch(o){a(o);}});}function xt(t){let n={eventId:t.event,name:t.name,level:t.level};return t.logoUrl&&(n.logoUrl=t.logoUrl),t.website&&(n.website=t.website),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.contactPhone&&(n.contactPhone=t.contactPhone),t.metrics&&(n.metrics=l("metrics",t.metrics)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Dt(t){let n=t.command("sponsors").description("Eventfullymanaged sponsors");n.command("list").description("List sponsors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(J,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedSponsors.items,{headers:["ID","Name","Level","Event","Website"],rows:i.eventfullyManagedSponsors.items.map(o=>[p(o.id,12),o.name,o.level,p(o.eventId,12),o.website??"-"])});}catch(i){a(i);}}),n.command("get").description("Get a sponsor by id").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(z,{id:e});if(!o.eventfullyManagedSponsor)throw new m(`Sponsor ${e} not found`);s(i,o.eventfullyManagedSponsor);}catch(o){a(o);}}),n.command("create").description("Create a sponsor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level (e.g. gold, silver)").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(G,{input:xt(e)});c(`Sponsor created: ${i.eventfullyManagedCreateSponsor.name}`),s(e,i.eventfullyManagedCreateSponsor);}catch(i){a(i);}}),n.command("update").description("Update a sponsor").argument("<id>","Sponsor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(H,{id:e,input:xt(i)});c("Sponsor updated"),s(i,o.eventfullyManagedUpdateSponsor);}catch(o){a(o);}}),n.command("remove").description("Delete a sponsor").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(B,{id:e});c(o.eventfullyManagedDeleteSponsor?"Sponsor deleted":"Sponsor not deleted"),s(i,{deleted:o.eventfullyManagedDeleteSponsor});}catch(o){a(o);}});}function $t(t){let n={eventId:t.event,fullName:t.fullName,email:t.email};return t.phone&&(n.phone=t.phone),t.company&&(n.company=t.company),t.role&&(n.role=t.role),t.profile&&(n.profile=l("profile",t.profile)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Mt(t){let n=t.command("attendees").description("Eventfullymanaged attendees");n.command("list").description("List attendees").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(K,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedAttendees.items,{headers:["ID","Name","Email","Company","Role"],rows:i.eventfullyManagedAttendees.items.map(o=>[p(o.id,12),o.fullName,o.email,o.company??"-",o.role??"-"])});}catch(i){a(i);}}),n.command("create").description("Create an attendee").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Y,{input:$t(e)});c(`Attendee created: ${i.eventfullyManagedCreateAttendee.fullName}`),s(e,i.eventfullyManagedCreateAttendee);}catch(i){a(i);}}),n.command("update").description("Update an attendee").argument("<id>","Attendee ID").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(Q,{id:e,input:$t(i)});c("Attendee updated"),s(i,o.eventfullyManagedUpdateAttendee);}catch(o){a(o);}});}function Rt(t){let n={eventId:t.event,title:t.title,sessionType:t.sessionType,startsAt:t.startsAt,endsAt:t.endsAt};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.track&&(n.track=t.track),t.capacity!==void 0&&(n.capacity=t.capacity),t.venue&&(n.venueId=t.venue),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Lt(t){let n=t.command("sessions").description("Eventfullymanaged event sessions");n.command("list").description("List event sessions").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(X,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedEventSessions.items,{headers:["ID","Title","Type","Status","Track","Starts"],rows:i.eventfullyManagedEventSessions.items.map(o=>[p(o.id,12),o.title,o.sessionType,o.status,o.track??"-",E(o.startsAt)])});}catch(i){a(i);}}),n.command("create").description("Create an event session").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type (e.g. talk, workshop)").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Z,{input:Rt(e)});c(`Session created: ${i.eventfullyManagedCreateEventSession.title}`),s(e,i.eventfullyManagedCreateEventSession);}catch(i){a(i);}}),n.command("update").description("Update an event session").argument("<id>","Session ID").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(tt,{id:e,input:Rt(i)});c("Session updated"),s(i,o.eventfullyManagedUpdateEventSession);}catch(o){a(o);}});}function Nt(t){let n={eventId:t.event,name:t.name,price:t.price};return t.currency&&(n.currency=t.currency),t.description&&(n.description=t.description),t.capacity!==void 0&&(n.capacity=t.capacity),t.active!==void 0&&(n.isActive=t.active),t.salesStartAt&&(n.salesStartAt=t.salesStartAt),t.salesEndAt&&(n.salesEndAt=t.salesEndAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Pt(t){let n=t.command("tickets").description("Eventfullymanaged ticket types");n.command("list").description("List ticket types").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(et,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedTicketTypes.items,{headers:["ID","Name","Price","Currency","Active","Sold"],rows:i.eventfullyManagedTicketTypes.items.map(o=>[p(o.id,12),o.name,o.price,o.currency,o.isActive?"yes":"no",String(o.soldCount)])});}catch(i){a(i);}}),n.command("create").description("Create a ticket type").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(nt,{input:Nt(e)});c(`Ticket type created: ${i.eventfullyManagedCreateTicketType.name}`),s(e,i.eventfullyManagedCreateTicketType);}catch(i){a(i);}}),n.command("update").description("Update a ticket type").argument("<id>","Ticket type ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ot,{id:e,input:Nt(i)});c("Ticket type updated"),s(i,o.eventfullyManagedUpdateTicketType);}catch(o){a(o);}}),n.command("remove").description("Delete a ticket type").argument("<id>","Ticket type ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(it,{id:e});c(o.eventfullyManagedDeleteTicketType?"Ticket type deleted":"Ticket type not deleted"),s(i,{deleted:o.eventfullyManagedDeleteTicketType});}catch(o){a(o);}});}function qt(t){let n={eventId:t.event};return t.attendee&&(n.attendeeId=t.attendee),t.ticketType&&(n.ticketTypeId=t.ticketType),t.quantity!==void 0&&(n.quantity=t.quantity),t.status&&(n.status=t.status),t.totalAmount&&(n.totalAmount=t.totalAmount),t.currency&&(n.currency=t.currency),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function _t(t){let n=t.command("registrations").description("Eventfullymanaged registrations");n.command("list").description("List registrations").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(rt,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedRegistrations.items,{headers:["ID","Event","Attendee","Status","Qty","Total"],rows:i.eventfullyManagedRegistrations.items.map(o=>[p(o.id,12),p(o.eventId,12),o.attendeeId?p(o.attendeeId,12):"-",o.status,String(o.quantity),o.totalAmount??"-"])});}catch(i){a(i);}}),n.command("create").description("Create a registration").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(at,{input:qt(e)});c(`Registration created: ${i.eventfullyManagedCreateRegistration.id}`),s(e,i.eventfullyManagedCreateRegistration);}catch(i){a(i);}}),n.command("update").description("Update a registration").argument("<id>","Registration ID").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(st,{id:e,input:qt(i)});c("Registration updated"),s(i,o.eventfullyManagedUpdateRegistration);}catch(o){a(o);}});}function Ut(t){let n={fullName:t.fullName};return t.title&&(n.title=t.title),t.organization&&(n.organization=t.organization),t.bio&&(n.bio=t.bio),t.email&&(n.email=t.email),t.phone&&(n.phone=t.phone),t.avatarUrl&&(n.avatarUrl=t.avatarUrl),t.socialLinks&&(n.socialLinks=l("social-links",t.socialLinks)),n}function Vt(t){let n=t.command("speakers").description("Eventfullymanaged speakers");n.command("list").description("List speakers").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(dt,{workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedSpeakers.items,{headers:["ID","Name","Title","Organization","Email"],rows:i.eventfullyManagedSpeakers.items.map(o=>[p(o.id,12),o.fullName,o.title??"-",o.organization??"-",o.email??"-"])});}catch(i){a(i);}}),n.command("create").description("Create a speaker").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ct,{input:Ut(e)});c(`Speaker created: ${i.eventfullyManagedCreateSpeaker.fullName}`),s(e,i.eventfullyManagedCreateSpeaker);}catch(i){a(i);}}),n.command("update").description("Update a speaker").argument("<id>","Speaker ID").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ut,{id:e,input:Ut(i)});c("Speaker updated"),s(i,o.eventfullyManagedUpdateSpeaker);}catch(o){a(o);}});}function Ft(t){let n={eventId:t.event,name:t.name};return t.boothCode&&(n.boothCode=t.boothCode),t.category&&(n.category=t.category),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.status&&(n.status=t.status),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function jt(t){let n=t.command("exhibitors").description("Eventfullymanaged exhibitors");n.command("list").description("List exhibitors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(pt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedExhibitors.items,{headers:["ID","Name","Status","Booth","Category"],rows:i.eventfullyManagedExhibitors.items.map(o=>[p(o.id,12),o.name,o.status,o.boothCode??"-",o.category??"-"])});}catch(i){a(i);}}),n.command("create").description("Create an exhibitor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(lt,{input:Ft(e)});c(`Exhibitor created: ${i.eventfullyManagedCreateExhibitor.name}`),s(e,i.eventfullyManagedCreateExhibitor);}catch(i){a(i);}}),n.command("update").description("Update an exhibitor").argument("<id>","Exhibitor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(mt,{id:e,input:Ft(i)});c("Exhibitor updated"),s(i,o.eventfullyManagedUpdateExhibitor);}catch(o){a(o);}}),n.command("remove").description("Delete an exhibitor").argument("<id>","Exhibitor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(gt,{id:e});c(o.eventfullyManagedDeleteExhibitor?"Exhibitor deleted":"Exhibitor not deleted"),s(i,{deleted:o.eventfullyManagedDeleteExhibitor});}catch(o){a(o);}});}function Wt(t){let n={eventId:t.event,attendeeName:t.attendeeName,attendeeEmail:t.attendeeEmail};return t.exhibitor&&(n.exhibitorId=t.exhibitor),t.sponsor&&(n.sponsorId=t.sponsor),t.status&&(n.status=t.status),t.score!==void 0&&(n.score=t.score),t.notes&&(n.notes=t.notes),t.capturedAt&&(n.capturedAt=t.capturedAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Jt(t){let n=t.command("leads").description("Eventfullymanaged exhibitor leads");n.command("list").description("List leads").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ft,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedLeads.items,{headers:["ID","Name","Email","Status","Score"],rows:i.eventfullyManagedLeads.items.map(o=>[p(o.id,12),o.attendeeName,o.attendeeEmail,o.status,o.score!=null?String(o.score):"-"])});}catch(i){a(i);}}),n.command("create").description("Create a lead").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(yt,{input:Wt(e)});c(`Lead created: ${i.eventfullyManagedCreateLead.attendeeName}`),s(e,i.eventfullyManagedCreateLead);}catch(i){a(i);}}),n.command("update").description("Update a lead").argument("<id>","Lead ID").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(vt,{id:e,input:Wt(i)});c("Lead updated"),s(i,o.eventfullyManagedUpdateLead);}catch(o){a(o);}}),n.command("remove").description("Delete a lead").argument("<id>","Lead ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(Et,{id:e});c(o.eventfullyManagedDeleteLead?"Lead deleted":"Lead not deleted"),s(i,{deleted:o.eventfullyManagedDeleteLead});}catch(o){a(o);}});}function zt(t){let n={eventId:t.event,code:t.code,discountType:t.discountType,discountValue:t.discountValue};return t.description&&(n.description=t.description),t.maxUses!==void 0&&(n.maxUses=t.maxUses),t.active!==void 0&&(n.isActive=t.active),t.startsAt&&(n.startsAt=t.startsAt),t.endsAt&&(n.endsAt=t.endsAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Gt(t){let n=t.command("promo-codes").description("Eventfullymanaged promo codes");n.command("list").description("List promo codes").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(It,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedPromoCodes.items,{headers:["ID","Code","Type","Value","Active","Used"],rows:i.eventfullyManagedPromoCodes.items.map(o=>[p(o.id,12),o.code,o.discountType,o.discountValue,o.isActive?"yes":"no",String(o.usedCount)])});}catch(i){a(i);}}),n.command("create").description("Create a promo code").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type (e.g. percentage, fixed)").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(kt,{input:zt(e)});c(`Promo code created: ${i.eventfullyManagedCreatePromoCode.code}`),s(e,i.eventfullyManagedCreatePromoCode);}catch(i){a(i);}}),n.command("update").description("Update a promo code").argument("<id>","Promo code ID").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(wt,{id:e,input:zt(i)});c("Promo code updated"),s(i,o.eventfullyManagedUpdatePromoCode);}catch(o){a(o);}}),n.command("remove").description("Delete a promo code").argument("<id>","Promo code ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ht,{id:e});c(o.eventfullyManagedDeletePromoCode?"Promo code deleted":"Promo code not deleted"),s(i,{deleted:o.eventfullyManagedDeletePromoCode});}catch(o){a(o);}});}function Ht(t){t.command("analytics").description("Eventfullymanaged analytics & dashboard").command("dashboard").description("Dashboard summary (event/attendee/registration/sponsor/venue counts + latest events)").option("--workspace <id>","Filter by workspace ID").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Ct,{workspaceId:e.workspace});s(e,i.eventfullyManagedDashboardSummary);}catch(i){a(i);}});}var ae={id:"eventfullymanaged",version:"1.0.0",displayName:"Eventfullymanaged",dependsOn:["auth","workspaces"],register(t,n){R(n);let e=t.command("eventfullymanaged").description("Eventfullymanaged event-management platform");bt(e),At(e),Dt(e),Mt(e),Lt(e),Pt(e),_t(e),Vt(e),jt(e),Jt(e),Gt(e),Ht(e);}},mo=ae;module.exports=mo;
@@ -1,4 +1,4 @@
1
- import {a,b as b$1,i,r,q as q$1,h as h$1,k as k$1}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';var v=`
1
+ import {a,b as b$1,i,r,q as q$1,h as h$1,k as k$1}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var v=`
2
2
  id name description type status visibility timezone startAt endAt capacity
3
3
  metadata createdAt updatedAt workspaceId
4
4
  `,$=`
@@ -8,7 +8,7 @@
8
8
  pageInfo { totalCount hasNextPage }
9
9
  }
10
10
  }
11
- `,h=`
11
+ `,T=`
12
12
  query GetExportJob($context: ContextInput, $id: ID!) {
13
13
  getExportJob(context: $context, id: $id) {
14
14
  id name status progress
@@ -92,4 +92,4 @@
92
92
  downloadUrl downloadExpiresAt
93
93
  }
94
94
  }
95
- `;function d(){let o=$().auth.read();if(!o?.workspaceId)throw new s("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:o.workspaceId}}function F(o){let r=o.command("export").description("Workspace data export jobs"),a=r.command("jobs").description("Export job lifecycle");a.command("list").description("List export jobs").option("--status <s>").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e={};t.status&&(e.status=t.status.toUpperCase());let i=(await c(S,{context:d(),filter:Object.keys(e).length?e:void 0,pagination:{first:t.limit}})).listExportJobs.edges.map(l=>l.node);f(t,i,{headers:["ID","Name","Status","Progress","Started"],rows:i.map(l=>[O(l.id,12),l.name??"-",A(l.status),`${l.processedEntities??0}/${l.totalEntities??"-"}`,v(l.startedAt)])});}catch(e){p(e);}}),a.command("get").description("Get an export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(h,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);f(e,n.getExportJob);}catch(n){p(n);}}),a.command("create").description("Create an export job").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV|ZIP","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("--from <iso>","Date range start").option("--to <iso>","Date range end").option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1,dateRangeStart:t.from,dateRangeEnd:t.to},n=await c(P,{context:d(),input:e});m(`Export job created: ${n.createExportJob.id}`),f({format:t.formatOutput},n.createExportJob);}catch(e){p(e);}}),a.command("cancel").description("Cancel a running export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(_,{context:d(),id:t});m(`Export job cancelled: ${n.cancelExportJob.id}`),f(e,n.cancelExportJob);}catch(n){p(n);}}),a.command("delete").description("Delete an export job").argument("<id>").action(async t=>{try{if(!(await c(L,{context:d(),id:t})).deleteExportJob)throw new s(`Failed to delete export job ${t}`);m(`Export job deleted: ${t}`);}catch(e){p(e);}}),a.command("retry").description("Retry a failed export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(N,{context:d(),id:t});m(`Export job retry queued: ${n.retryExportJob.id}`),f(e,n.retryExportJob);}catch(n){p(n);}}),r.command("entities").description("List entity types available for export").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let n=(await c(j,{context:d(),pagination:{first:t.limit}})).getAvailableExportEntities.edges.map(i=>i.node);f(t,n,{headers:["Type","Display","Enabled","DateRange","Media","Size"],rows:n.map(i=>[i.entityType,i.displayName,i.enabled?"yes":"no",i.supportsDateRange?"yes":"no",i.supportsMediaExport?"yes":"no",i.estimatedSize??"-"])});}catch(e){p(e);}}),r.command("part").description("Get an export part by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(G,{context:d(),id:t});if(!n.getExportPart)throw new s(`Export part ${t} not found`);f(e,n.getExportPart);}catch(n){p(n);}}),r.command("download").description("Download a completed export job to a local path").argument("<jobId>").requiredOption("--to <path>","Local file path to write").action(async(t,e)=>{try{let n=await c(h,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);let i=n.getExportJob.downloadUrl;if(!i)throw new s(`Job ${t} has no downloadUrl yet (status=${n.getExportJob.status??"UNKNOWN"}).`);I(`Downloading from ${i}`);let l=await fetch(i);if(!l.ok)throw new s(`Download failed: ${l.status} ${l.statusText}`);let T=Buffer.from(await l.arrayBuffer());await promises.writeFile(e.to,T),m(`Saved ${T.length} bytes to ${e.to}`);}catch(n){p(n);}});let w=r.command("templates").description("Export templates");w.command("list").description("List export templates").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e=await c(R,{context:d(),pagination:{first:t.limit}});f(t,e.listExportTemplates.edges.map(n=>n.node));}catch(e){p(e);}}),w.command("get").description("Get an export template").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(D,{context:d(),id:t});if(!n.getExportTemplate)throw new s(`Template ${t} not found`);f(e,n.getExportTemplate);}catch(n){p(n);}}),w.command("create").description("Create an export template").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--description <s>").option("--format <fmt>","JSON|CSV","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1};t.description&&(e.description=t.description);let n=await c(q,{context:d(),input:e});m(`Template created: ${n.createExportTemplate.id}`),f({format:t.formatOutput},n.createExportTemplate);}catch(e){p(e);}}),w.command("update").description("Update an export template").argument("<id>").option("--name <s>").option("--description <s>").option("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV").option("--include-media <bool>","true|false").option("--include-metadata <bool>","true|false").option("--default <bool>","Set isDefault: true|false").option("-f, --format-output <format>").action(async(t,e)=>{try{let n={};e.name&&(n.name=e.name),e.description&&(n.description=e.description),e.types&&(n.entityTypes=e.types.split(",")),e.format&&(n.format=e.format.toUpperCase()),e.includeMedia!==void 0&&(n.includeMedia=e.includeMedia==="true"),e.includeMetadata!==void 0&&(n.includeMetadata=e.includeMetadata==="true"),e.default!==void 0&&(n.isDefault=e.default==="true");let i=await c(M,{context:d(),id:t,input:n});m(`Template updated: ${i.updateExportTemplate.id}`),f({format:e.formatOutput},i.updateExportTemplate);}catch(n){p(n);}}),w.command("delete").description("Delete an export template").argument("<id>").action(async t=>{try{if(!(await c(J,{context:d(),id:t})).deleteExportTemplate)throw new s(`Failed to delete template ${t}`);m(`Template deleted: ${t}`);}catch(e){p(e);}});}var ot={id:"export",version:"1.0.0",displayName:"Export",dependsOn:["auth","workspaces"],register(o,r){k(r),F(o);}},ge=ot;module.exports=ge;
95
+ `;function d(){let o=$().auth.read();if(!o?.workspaceId)throw new s("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:o.workspaceId}}function F(o){let r=o.command("export").description("Workspace data export jobs"),a=r.command("jobs").description("Export job lifecycle");a.command("list").description("List export jobs").option("--status <s>").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e={};t.status&&(e.status=t.status.toUpperCase());let i=(await c(S,{context:d(),filter:Object.keys(e).length?e:void 0,pagination:{first:t.limit}})).listExportJobs.edges.map(l=>l.node);f(t,i,{headers:["ID","Name","Status","Progress","Started"],rows:i.map(l=>[O(l.id,12),l.name??"-",A(l.status),`${l.processedEntities??0}/${l.totalEntities??"-"}`,v(l.startedAt)])});}catch(e){p(e);}}),a.command("get").description("Get an export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(T,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);f(e,n.getExportJob);}catch(n){p(n);}}),a.command("create").description("Create an export job").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV|ZIP","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("--from <iso>","Date range start").option("--to <iso>","Date range end").option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1,dateRangeStart:t.from,dateRangeEnd:t.to},n=await c(P,{context:d(),input:e});m(`Export job created: ${n.createExportJob.id}`),f({format:t.formatOutput},n.createExportJob);}catch(e){p(e);}}),a.command("cancel").description("Cancel a running export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(_,{context:d(),id:t});m(`Export job cancelled: ${n.cancelExportJob.id}`),f(e,n.cancelExportJob);}catch(n){p(n);}}),a.command("delete").description("Delete an export job").argument("<id>").action(async t=>{try{if(!(await c(L,{context:d(),id:t})).deleteExportJob)throw new s(`Failed to delete export job ${t}`);m(`Export job deleted: ${t}`);}catch(e){p(e);}}),a.command("retry").description("Retry a failed export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(N,{context:d(),id:t});m(`Export job retry queued: ${n.retryExportJob.id}`),f(e,n.retryExportJob);}catch(n){p(n);}}),r.command("entities").description("List entity types available for export").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let n=(await c(j,{context:d(),pagination:{first:t.limit}})).getAvailableExportEntities.edges.map(i=>i.node);f(t,n,{headers:["Type","Display","Enabled","DateRange","Media","Size"],rows:n.map(i=>[i.entityType,i.displayName,i.enabled?"yes":"no",i.supportsDateRange?"yes":"no",i.supportsMediaExport?"yes":"no",i.estimatedSize??"-"])});}catch(e){p(e);}}),r.command("part").description("Get an export part by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(G,{context:d(),id:t});if(!n.getExportPart)throw new s(`Export part ${t} not found`);f(e,n.getExportPart);}catch(n){p(n);}}),r.command("download").description("Download a completed export job to a local path").argument("<jobId>").requiredOption("--to <path>","Local file path to write").action(async(t,e)=>{try{let n=await c(T,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);let i=n.getExportJob.downloadUrl;if(!i)throw new s(`Job ${t} has no downloadUrl yet (status=${n.getExportJob.status??"UNKNOWN"}).`);I(`Downloading from ${i}`);let l=await fetch(i);if(!l.ok)throw new s(`Download failed: ${l.status} ${l.statusText}`);let h=Buffer.from(await l.arrayBuffer());await promises.writeFile(e.to,h),m(`Saved ${h.length} bytes to ${e.to}`);}catch(n){p(n);}});let w=r.command("templates").description("Export templates");w.command("list").description("List export templates").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e=await c(R,{context:d(),pagination:{first:t.limit}});f(t,e.listExportTemplates.edges.map(n=>n.node));}catch(e){p(e);}}),w.command("get").description("Get an export template").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(D,{context:d(),id:t});if(!n.getExportTemplate)throw new s(`Template ${t} not found`);f(e,n.getExportTemplate);}catch(n){p(n);}}),w.command("create").description("Create an export template").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--description <s>").option("--format <fmt>","JSON|CSV","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1};t.description&&(e.description=t.description);let n=await c(q,{context:d(),input:e});m(`Template created: ${n.createExportTemplate.id}`),f({format:t.formatOutput},n.createExportTemplate);}catch(e){p(e);}}),w.command("update").description("Update an export template").argument("<id>").option("--name <s>").option("--description <s>").option("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV").option("--include-media <bool>","true|false").option("--include-metadata <bool>","true|false").option("--default <bool>","Set isDefault: true|false").option("-f, --format-output <format>").action(async(t,e)=>{try{let n={};e.name&&(n.name=e.name),e.description&&(n.description=e.description),e.types&&(n.entityTypes=e.types.split(",")),e.format&&(n.format=e.format.toUpperCase()),e.includeMedia!==void 0&&(n.includeMedia=e.includeMedia==="true"),e.includeMetadata!==void 0&&(n.includeMetadata=e.includeMetadata==="true"),e.default!==void 0&&(n.isDefault=e.default==="true");let i=await c(M,{context:d(),id:t,input:n});m(`Template updated: ${i.updateExportTemplate.id}`),f({format:e.formatOutput},i.updateExportTemplate);}catch(n){p(n);}}),w.command("delete").description("Delete an export template").argument("<id>").action(async t=>{try{if(!(await c(J,{context:d(),id:t})).deleteExportTemplate)throw new s(`Failed to delete template ${t}`);m(`Template deleted: ${t}`);}catch(e){p(e);}});}var ot={id:"export",version:"1.0.0",displayName:"Export",dependsOn:["auth","workspaces"],register(o,r){k(r),F(o);}},ge=ot;module.exports=ge;
@@ -1,4 +1,4 @@
1
- import {a,b,i as i$1,r,p,q,h as h$1,k,m,u}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';import {writeFile}from'fs/promises';var J=`
1
+ import {a,b,i as i$1,r,p,q,h as h$1,k,m,u}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';import {writeFile}from'fs/promises';var J=`
2
2
  query ListExportJobs($context: ContextInput!, $filter: ExportJobFilterInput, $pagination: ExportPaginationInput) {
3
3
  listExportJobs(context: $context, filter: $filter, pagination: $pagination) {
4
4
  edges { node {
@@ -1,4 +1,4 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var fs=require('fs'),path=require('path'),crypto=require('crypto');var u=class extends Error{exitCode;hint;constructor(r,a){super(r),this.name="CliUserError",this.exitCode=a?.exitCode??1,this.hint=a?.hint;}},m=class extends u{constructor(r,a){super(r,{exitCode:2,hint:a?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},g=class extends Error{cause;constructor(r,a){super(r),this.name="CliInternalError",this.cause=a;}};var k=null;function T(n){k=n;}function w(){if(!k)throw new g("vibecontrols module helpers used before setHelpersContext was called");return k}function H(){let n=w();if(!n.auth.isAuthenticated())throw new m("Authentication required.",{hint:`Run \`${n.productName} auth login\` to authenticate.`})}async function l(n,r){return H(),w().gql.workspace.request(n,r)}function p(n){let r=n instanceof Error?n.message:String(n);throw new u(r)}function d(n,r,a){w().output.formatAndOutput(n,r,a);}function h(n){w().output.printSuccess(n);}function x(n){w().output.printInfo(n);}function y(n,r){return w().output.truncate(n,r)}var v=`
1
+ 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var fs=require('fs'),path=require('path'),crypto=require('crypto');var u=class extends Error{exitCode;hint;constructor(r,a){super(r),this.name="CliUserError",this.exitCode=a?.exitCode??1,this.hint=a?.hint;}},m=class extends u{constructor(r,a){super(r,{exitCode:2,hint:a?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},g=class extends Error{cause;constructor(r,a){super(r),this.name="CliInternalError",this.cause=a;}};var k=null;function E(n){k=n;}function h(){if(!k)throw new g("vibecontrols module helpers used before setHelpersContext was called");return k}function H(){let n=h();if(!n.auth.isAuthenticated())throw new m("Authentication required.",{hint:`Run \`${n.productName} auth login\` to authenticate.`})}async function l(n,r){return H(),h().gql.workspace.request(n,r)}function p(n){let r=n instanceof Error?n.message:String(n);throw new u(r)}function d(n,r,a){h().output.formatAndOutput(n,r,a);}function w(n){h().output.printSuccess(n);}function x(n){h().output.printInfo(n);}function y(n,r){return h().output.truncate(n,r)}var v=`
2
2
  query BrowseFolderRoot($pagination: PaginationInput) {
3
3
  getFilesInFolder(pagination: $pagination) {
4
4
  files { id name size mimeType extension createdAt }
@@ -61,4 +61,4 @@
61
61
  }
62
62
  `;function F(n){let r=n.command("files").description("Workspace file management");r.command("browse").description("Browse a folder (defaults to root)").argument("[folderId]").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async(t,e)=>{try{let o={limit:e.limit,offset:0};if(t){let i=await l(A,{folderId:t,pagination:o});if(e.format){d(e,{folder:i.getFolder,files:i.getFilesInFolder.files});return}i.getFolder&&x(`Folder: ${i.getFolder.name}`);for(let c of i.getFilesInFolder.files){let C=c.size?`${c.size}b`:"-";console.log(` \u{1F4C4} ${y(c.id,12)} ${c.name} ${C} ${c.mimeType??"-"}`);}console.log(`
63
63
  ${i.getFilesInFolder.total} files`);return}let f=await l(v,{pagination:o});if(e.format){d(e,{files:f.getFilesInFolder.files});return}for(let i of f.getFilesInFolder.files){let c=i.size?`${i.size}b`:"-";console.log(` \u{1F4C4} ${y(i.id,12)} ${i.name} ${c} ${i.mimeType??"-"}`);}console.log(`
64
- ${f.getFilesInFolder.total} files`);}catch(o){p(o);}}),r.command("upload").description("Upload a local file (initiates a multipart session)").argument("<path>","Local file path").option("--folder <folderId>","Target folder id").option("--visibility <v>","PRIVATE|WORKSPACE|PUBLIC","WORKSPACE").option("-f, --format <format>").action(async(t,e)=>{try{let o=fs.statSync(t),f=path.basename(t),i=path.extname(t).slice(1)||void 0,c=fs.readFileSync(t),C=crypto.createHash("sha256").update(c).digest("hex"),P={fileName:f,fileSize:o.size,mimeType:"application/octet-stream",extension:i,folderId:e.folder,sha256Hash:C,visibility:(e.visibility??"WORKSPACE").toUpperCase()},I=await l(O,{input:P});x("Upload session created. PUT the local bytes to the returned URL(s)."),d(e,I.initiateUpload),x(`After uploading, complete with: vibecontrols files upload-complete --session ${I.initiateUpload.session.id}`);}catch(o){p(o);}}),r.command("upload-complete").description("Complete an in-flight upload session").requiredOption("--session <id>","Session id from `files upload`").option("--folder <folderId>").option("--description <s>").option("-f, --format <format>").action(async t=>{try{let e=await l(S,{input:{sessionId:t.session,folderId:t.folder,description:t.description}});h(`Upload complete: ${e.completeUpload.fileId}`),d(t,e.completeUpload.file);}catch(e){p(e);}}),r.command("get").description("Get a file by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let o=await l(D,{id:t});if(!o.getFile)throw new u(`File ${t} not found`);d(e,o.getFile);}catch(o){p(o);}}),r.command("download").description("Get a pre-signed download URL for a file").argument("<id>").option("--expires <seconds>","URL expiry in seconds",t=>parseInt(t,10)).option("-f, --format <format>").action(async(t,e)=>{try{let o=await l(L,{id:t,expiresIn:e.expires});if(e.format){d(e,{url:o.getFileDownloadUrl});return}h("Download URL:"),console.log(o.getFileDownloadUrl);}catch(o){p(o);}});let a=r.command("share").description("Manage file shares");a.command("create").description("Create a share link for a file").argument("<fileId>").option("--access <a>","VIEW|DOWNLOAD","DOWNLOAD").option("--expires <iso>","Expiry timestamp").option("--password <p>").option("--max-downloads <n>","",t=>parseInt(t,10)).option("-f, --format <format>").action(async(t,e)=>{try{let o={fileId:t,shareType:"PUBLIC_LINK",accessLevel:(e.access??"DOWNLOAD").toUpperCase(),expiresAt:e.expires,password:e.password,maxDownloads:e.maxDownloads},f=await l(R,{input:o});h("Share created"),d(e,f.createShare);}catch(o){p(o);}}),a.command("revoke").description("Revoke a share by id").argument("<shareId>").action(async t=>{try{await l($,{id:t}),h("Share revoked");}catch(e){p(e);}});}var ee={id:"files",version:"1.0.0",displayName:"Files",dependsOn:["auth","workspaces"],register(n,r){T(r),F(n);}},ft=ee;module.exports=ft;
64
+ ${f.getFilesInFolder.total} files`);}catch(o){p(o);}}),r.command("upload").description("Upload a local file (initiates a multipart session)").argument("<path>","Local file path").option("--folder <folderId>","Target folder id").option("--visibility <v>","PRIVATE|WORKSPACE|PUBLIC","WORKSPACE").option("-f, --format <format>").action(async(t,e)=>{try{let o=fs.statSync(t),f=path.basename(t),i=path.extname(t).slice(1)||void 0,c=fs.readFileSync(t),C=crypto.createHash("sha256").update(c).digest("hex"),P={fileName:f,fileSize:o.size,mimeType:"application/octet-stream",extension:i,folderId:e.folder,sha256Hash:C,visibility:(e.visibility??"WORKSPACE").toUpperCase()},I=await l(O,{input:P});x("Upload session created. PUT the local bytes to the returned URL(s)."),d(e,I.initiateUpload),x(`After uploading, complete with: vibecontrols files upload-complete --session ${I.initiateUpload.session.id}`);}catch(o){p(o);}}),r.command("upload-complete").description("Complete an in-flight upload session").requiredOption("--session <id>","Session id from `files upload`").option("--folder <folderId>").option("--description <s>").option("-f, --format <format>").action(async t=>{try{let e=await l(S,{input:{sessionId:t.session,folderId:t.folder,description:t.description}});w(`Upload complete: ${e.completeUpload.fileId}`),d(t,e.completeUpload.file);}catch(e){p(e);}}),r.command("get").description("Get a file by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let o=await l(D,{id:t});if(!o.getFile)throw new u(`File ${t} not found`);d(e,o.getFile);}catch(o){p(o);}}),r.command("download").description("Get a pre-signed download URL for a file").argument("<id>").option("--expires <seconds>","URL expiry in seconds",t=>parseInt(t,10)).option("-f, --format <format>").action(async(t,e)=>{try{let o=await l(L,{id:t,expiresIn:e.expires});if(e.format){d(e,{url:o.getFileDownloadUrl});return}w("Download URL:"),console.log(o.getFileDownloadUrl);}catch(o){p(o);}});let a=r.command("share").description("Manage file shares");a.command("create").description("Create a share link for a file").argument("<fileId>").option("--access <a>","VIEW|DOWNLOAD","DOWNLOAD").option("--expires <iso>","Expiry timestamp").option("--password <p>").option("--max-downloads <n>","",t=>parseInt(t,10)).option("-f, --format <format>").action(async(t,e)=>{try{let o={fileId:t,shareType:"PUBLIC_LINK",accessLevel:(e.access??"DOWNLOAD").toUpperCase(),expiresAt:e.expires,password:e.password,maxDownloads:e.maxDownloads},f=await l(R,{input:o});w("Share created"),d(e,f.createShare);}catch(o){p(o);}}),a.command("revoke").description("Revoke a share by id").argument("<shareId>").action(async t=>{try{await l($,{id:t}),w("Share revoked");}catch(e){p(e);}});}var ee={id:"files",version:"1.0.0",displayName:"Files",dependsOn:["auth","workspaces"],register(n,r){E(r),F(n);}},ft=ee;module.exports=ft;
@@ -1,4 +1,4 @@
1
- import {a,b,i,m,r,h as h$1,k}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';import {statSync,readFileSync}from'fs';import {basename,extname}from'path';import {createHash}from'crypto';var h=`
1
+ import {a,b,i,m,r,h as h$1,k}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';import {statSync,readFileSync}from'fs';import {basename,extname}from'path';import {createHash}from'crypto';var h=`
2
2
  query BrowseFolderRoot($pagination: PaginationInput) {
3
3
  getFilesInFolder(pagination: $pagination) {
4
4
  files { id name size mimeType extension createdAt }
@@ -1,4 +1,4 @@
1
- import {a,b,i,k as k$1,q as q$1,r,s}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';import {readFileSync}from'fs';import {createInterface}from'readline';import {Writable}from'stream';var E=`
1
+ import {a,b,i,k as k$1,q as q$1,r,s}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';import {readFileSync}from'fs';import {createInterface}from'readline';import {Writable}from'stream';var E=`
2
2
  id workflowKey name description version status category tags icon isActive
3
3
  totalVersions projectId createdAt updatedAt
4
4
  `,q=`
@@ -1,4 +1,4 @@
1
- import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$1}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';import {Option}from'commander';var T=`
1
+ import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$1}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';import {Option}from'commander';var T=`
2
2
  query GgnomadGetProvider($id: ID!) {
3
3
  ggnomadProvider(id: $id) {
4
4
  id name type description status website contactEmail contactPhone
@@ -1,4 +1,4 @@
1
- import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$1,d}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';var R=`
1
+ import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$1,d}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var R=`
2
2
  query GovGetAgency($id: ID!) {
3
3
  govAgency(id: $id) {
4
4
  id name code description jurisdiction contactEmail contactPhone
@@ -1,4 +1,4 @@
1
- import {a,b,i,r,p,h as h$1,k,q as q$1,n}from'../../chunk-O6UCQ5IT.js';import {o}from'../../chunk-YIY5IDXQ.js';var E=`
1
+ import {a,b,i,r,p,h as h$1,k,q as q$1,n}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var E=`
2
2
  query ListGroups($filter: GroupFilter, $first: Int, $after: String, $sort: GroupSort) {
3
3
  groups(filter: $filter, first: $first, after: $after, sort: $sort) {
4
4
  edges { node { id name groupType visibility status memberCount createdAt } }