@burdenoff/cli-sdk 2026.525.1 → 2026.526.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-REBBLQFS.js +1551 -0
- package/dist/modules/auth/index.cjs +34 -34
- package/dist/modules/auth/index.js +1 -1
- package/dist/modules/conversations/index.cjs +125 -7
- package/dist/modules/conversations/index.js +124 -6
- package/dist/modules/export/index.cjs +63 -5
- package/dist/modules/export/index.js +63 -5
- package/dist/modules/integrations/index.cjs +92 -8
- package/dist/modules/integrations/index.js +92 -8
- package/dist/modules/sandbox/index.cjs +154 -13
- package/dist/modules/sandbox/index.js +1 -1
- package/dist/modules/scheduler/index.cjs +116 -6
- package/dist/modules/scheduler/index.js +116 -6
- package/dist/modules/vibecontrols/index.cjs +871 -336
- package/dist/modules/vibecontrols/index.js +6 -2
- package/package.json +1 -1
- package/dist/chunk-MRONTCXQ.js +0 -879
|
@@ -1,32 +1,142 @@
|
|
|
1
|
-
import {a,b,g,o,m,n,f,h,r}from'../../chunk-KTKHJORN.js';import {o as o$1}from'../../chunk-RNWXATAC.js';var C=`
|
|
1
|
+
import {a,b,g,o,m,n,f,h as h$1,r}from'../../chunk-KTKHJORN.js';import {o as o$1}from'../../chunk-RNWXATAC.js';var C=`
|
|
2
2
|
query ListScheduledJobs($workspaceId: ID!, $filter: JobFilterInput, $pagination: SchedulerPaginationInput) {
|
|
3
3
|
scheduledJobs(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {
|
|
4
4
|
jobs { id name status scheduleType nextExecutionAt createdAt }
|
|
5
5
|
total nextCursor
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,x=`
|
|
9
9
|
query GetScheduledJob($id: ID!) {
|
|
10
10
|
scheduledJob(id: $id) {
|
|
11
11
|
id name status scheduleType cronExpression executorType
|
|
12
12
|
nextExecutionAt lastExecutionAt
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
`,
|
|
15
|
+
`,w=`
|
|
16
16
|
mutation CreateScheduledJob($workspaceId: ID!, $input: CreateScheduledJobInput!) {
|
|
17
17
|
createScheduledJob(workspaceId: $workspaceId, input: $input) {
|
|
18
18
|
id name status scheduleType
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,_=`
|
|
22
22
|
mutation DeleteScheduledJob($id: ID!) {
|
|
23
23
|
deleteScheduledJob(id: $id)
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,O=`
|
|
26
26
|
query JobExecutions($jobId: ID!, $pagination: SchedulerPaginationInput) {
|
|
27
27
|
jobExecutions(jobId: $jobId, pagination: $pagination) {
|
|
28
28
|
executions { id status startedAt completedAt duration errorMessage success }
|
|
29
29
|
total nextCursor
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
`,$=`
|
|
33
|
+
mutation PauseScheduledJob($id: ID!) {
|
|
34
|
+
pauseScheduledJob(id: $id) { id name status }
|
|
35
|
+
}
|
|
36
|
+
`,J=`
|
|
37
|
+
mutation ResumeScheduledJob($id: ID!) {
|
|
38
|
+
resumeScheduledJob(id: $id) { id name status }
|
|
39
|
+
}
|
|
40
|
+
`,L=`
|
|
41
|
+
mutation ActivateSchedule($id: ID!) {
|
|
42
|
+
activateSchedule(id: $id) { id name status }
|
|
43
|
+
}
|
|
44
|
+
`,R=`
|
|
45
|
+
mutation ArchiveSchedule($id: ID!) {
|
|
46
|
+
archiveSchedule(id: $id) { id name status }
|
|
47
|
+
}
|
|
48
|
+
`,U=`
|
|
49
|
+
mutation DisableSchedule($id: ID!, $reason: String) {
|
|
50
|
+
disableSchedule(id: $id, reason: $reason) { id name status }
|
|
51
|
+
}
|
|
52
|
+
`,A=`
|
|
53
|
+
mutation CloneSchedule($sourceId: ID!, $newWorkspaceId: ID, $overrides: CreateScheduledJobInput) {
|
|
54
|
+
cloneSchedule(sourceId: $sourceId, newWorkspaceId: $newWorkspaceId, overrides: $overrides) {
|
|
55
|
+
id name status
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`,v=`
|
|
59
|
+
mutation ExecuteJobNow($id: ID!) {
|
|
60
|
+
executeJobNow(id: $id) { id scheduledJobId status }
|
|
61
|
+
}
|
|
62
|
+
`,H=`
|
|
63
|
+
query PreviewSchedule(
|
|
64
|
+
$scheduleType: ScheduleType!
|
|
65
|
+
$cronExpression: String
|
|
66
|
+
$rrule: String
|
|
67
|
+
$interval: Int
|
|
68
|
+
$intervalUnit: String
|
|
69
|
+
$count: Int
|
|
70
|
+
$startDate: DateTime
|
|
71
|
+
$endDate: DateTime
|
|
72
|
+
$timezone: String
|
|
73
|
+
) {
|
|
74
|
+
previewSchedule(
|
|
75
|
+
scheduleType: $scheduleType
|
|
76
|
+
cronExpression: $cronExpression
|
|
77
|
+
rrule: $rrule
|
|
78
|
+
interval: $interval
|
|
79
|
+
intervalUnit: $intervalUnit
|
|
80
|
+
count: $count
|
|
81
|
+
startDate: $startDate
|
|
82
|
+
endDate: $endDate
|
|
83
|
+
timezone: $timezone
|
|
84
|
+
) {
|
|
85
|
+
count startDate endDate nextExecutions
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
`,N=`
|
|
89
|
+
query ScheduleTemplates(
|
|
90
|
+
$workspaceId: ID!
|
|
91
|
+
$filter: ScheduleTemplateFilterInput
|
|
92
|
+
$pagination: SchedulerPaginationInput
|
|
93
|
+
) {
|
|
94
|
+
scheduleTemplates(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {
|
|
95
|
+
templates { id name category isPublic scheduleType executorType usageCount }
|
|
96
|
+
total nextCursor
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`,k=`
|
|
100
|
+
query ScheduleTemplate($id: ID!) {
|
|
101
|
+
scheduleTemplate(id: $id) {
|
|
102
|
+
id name description category isPublic scheduleType executorType
|
|
103
|
+
scheduleConfig executorConfig usageCount
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
`,P=`
|
|
107
|
+
mutation CreateScheduleTemplate($input: CreateScheduleTemplateInput!, $workspaceId: ID!) {
|
|
108
|
+
createScheduleTemplate(input: $input, workspaceId: $workspaceId) { id name scheduleType }
|
|
109
|
+
}
|
|
110
|
+
`,j=`
|
|
111
|
+
mutation UpdateScheduleTemplate($id: ID!, $input: UpdateScheduleTemplateInput!) {
|
|
112
|
+
updateScheduleTemplate(id: $id, input: $input) { id name }
|
|
113
|
+
}
|
|
114
|
+
`,B=`
|
|
115
|
+
mutation DeleteScheduleTemplate($id: ID!) { deleteScheduleTemplate(id: $id) }
|
|
116
|
+
`,V=`
|
|
117
|
+
query ScheduleVersionHistory($scheduleId: ID!) {
|
|
118
|
+
scheduleVersionHistory(scheduleId: $scheduleId) {
|
|
119
|
+
id scheduleId version changedBy changedFields changeReason createdAt
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
`,q=`
|
|
123
|
+
mutation RestoreScheduleVersion($scheduleId: ID!, $versionId: ID!) {
|
|
124
|
+
restoreScheduleVersion(scheduleId: $scheduleId, versionId: $versionId) { id name version }
|
|
125
|
+
}
|
|
126
|
+
`,M=`
|
|
127
|
+
mutation TagScheduledJob($input: TagScheduledJobInput!) {
|
|
128
|
+
tagScheduledJob(input: $input) { id entityId tagId source }
|
|
129
|
+
}
|
|
130
|
+
`,G=`
|
|
131
|
+
mutation UntagScheduledJob($input: UntagScheduledJobInput!) {
|
|
132
|
+
untagScheduledJob(input: $input)
|
|
133
|
+
}
|
|
134
|
+
`,W=`
|
|
135
|
+
mutation ReplaceScheduledJobTags($input: ReplaceScheduledJobTagsInput!) {
|
|
136
|
+
replaceScheduledJobTags(input: $input) { id entityId tagId source }
|
|
137
|
+
}
|
|
138
|
+
`,z=`
|
|
139
|
+
query GetScheduledJobTags($input: GetScheduledJobTagsInput!) {
|
|
140
|
+
getScheduledJobTags(input: $input) { id entityId tagId source }
|
|
141
|
+
}
|
|
142
|
+
`;function h(){let d=r().auth.read();if(!d?.workspaceId)throw new o$1("No workspace set. Run: vibecontrols workspace set <id>");return d.workspaceId}function X(d){let u=d.command("scheduler").description("Scheduled jobs & executions"),c=u.command("jobs").description("Manage scheduled jobs");c.command("list").description("List scheduled jobs").option("--status <s>").option("--type <t>","CRON|INTERVAL|ONCE").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let t={};e.status&&(t.status=e.status.toUpperCase()),e.type&&(t.scheduleType=e.type.toUpperCase());let n$1=await b(C,{workspaceId:h(),filter:Object.keys(t).length?t:void 0,pagination:{first:e.limit}});g(e,n$1.scheduledJobs.jobs,{headers:["ID","Name","Status","Type","NextRun","Created"],rows:n$1.scheduledJobs.jobs.map(r=>[o(r.id,12),r.name,m(r.status),r.scheduleType??"-",n(r.nextExecutionAt),n(r.createdAt)])});}catch(t){f(t);}}),c.command("get").description("Get a scheduled job").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await b(x,{id:e});if(!n.scheduledJob)throw new o$1(`Job ${e} not found`);g(t,n.scheduledJob);}catch(n){f(n);}}),c.command("create").description("Create a scheduled job").requiredOption("--name <name>").requiredOption("--type <t>","CRON|FIXED_INTERVAL|ONE_TIME|RRULE|WINDOWED").option("--cron <expr>","Cron expression (for CRON)").option("--interval-seconds <n>","",e=>parseInt(e,10)).option("--executor <e>","WEBHOOK|GRAPHQL|INTERNAL_API|NATS_TOPIC","WEBHOOK").option("--executor-config <json>","Executor config JSON","{}").option("-f, --format <format>").action(async e=>{try{let t={INTERVAL:"FIXED_INTERVAL",ONCE:"ONE_TIME"},n=e.type.toUpperCase(),r={name:e.name,scheduleType:t[n]??n,cronExpression:e.cron,intervalSeconds:e.intervalSeconds,executorType:(e.executor??"WEBHOOK").toUpperCase(),executorConfig:JSON.parse(e.executorConfig??"{}")},I=await b(w,{workspaceId:h(),input:r});h$1(`Job created: ${I.createScheduledJob.name}`),g(e,I.createScheduledJob);}catch(t){f(t);}}),c.command("delete").description("Delete a scheduled job").argument("<id>").action(async e=>{try{await b(_,{id:e}),h$1("Job deleted");}catch(t){f(t);}});let F=u.command("executions").description("Job execution history");c.command("pause").description("Pause a scheduled job").argument("<id>").action(async e=>{try{await b($,{id:e}),h$1("Job paused");}catch(t){f(t);}}),c.command("resume").description("Resume a paused scheduled job").argument("<id>").action(async e=>{try{await b(J,{id:e}),h$1("Job resumed");}catch(t){f(t);}}),c.command("activate").description("Activate a draft or disabled schedule").argument("<id>").action(async e=>{try{await b(L,{id:e}),h$1("Schedule activated");}catch(t){f(t);}}),c.command("archive").description("Archive a scheduled job").argument("<id>").action(async e=>{try{await b(R,{id:e}),h$1("Schedule archived");}catch(t){f(t);}}),c.command("disable").description("Disable a schedule (with optional reason)").argument("<id>").option("--reason <r>").action(async(e,t)=>{try{await b(U,{id:e,reason:t.reason??null}),h$1("Schedule disabled");}catch(n){f(n);}}),c.command("clone").description("Clone a schedule (optionally to another workspace; overrides JSON)").argument("<sourceId>").option("--workspace <id>").option("--overrides <json>","Overrides JSON for CreateScheduledJobInput").option("-f, --format <format>").action(async(e,t)=>{try{let n=await b(A,{sourceId:e,newWorkspaceId:t.workspace??null,overrides:t.overrides?JSON.parse(t.overrides):null});h$1(`Cloned: ${n.cloneSchedule.id}`),g(t,n.cloneSchedule);}catch(n){f(n);}}),c.command("execute-now").description("Execute a scheduled job immediately").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await b(v,{id:e});h$1("Execution dispatched"),g(t,n.executeJobNow);}catch(n){f(n);}}),c.command("preview").description("Preview upcoming execution times without creating a job").requiredOption("--type <t>","CRON|FIXED_INTERVAL|ONE_TIME|RRULE|WINDOWED").option("--cron <expr>").option("--rrule <r>").option("--interval <n>","",e=>parseInt(e,10)).option("--interval-unit <u>","SECONDS|MINUTES|HOURS|DAYS").option("--count <n>","",e=>parseInt(e,10),5).option("--start <iso>").option("--end <iso>").option("--timezone <tz>").option("-f, --format <format>").action(async e=>{try{let t=await b(H,{scheduleType:e.type.toUpperCase(),cronExpression:e.cron??null,rrule:e.rrule??null,interval:e.interval??null,intervalUnit:e.intervalUnit??null,count:e.count??null,startDate:e.start??null,endDate:e.end??null,timezone:e.timezone??null});g(e,t.previewSchedule);}catch(t){f(t);}});let g$1=c.command("tags").description("Scheduled-job tag assignments");g$1.command("add").description("Tag a scheduled job").requiredOption("--entity <id>").requiredOption("--tag <tagId>").option("--source <s>").action(async e=>{try{let t={entityId:e.entity,tagId:e.tag};e.source&&(t.source=e.source),await b(M,{input:t}),h$1("Tagged");}catch(t){f(t);}}),g$1.command("remove").description("Remove a tag from a scheduled job").requiredOption("--entity <id>").requiredOption("--tag <tagId>").action(async e=>{try{await b(G,{input:{entityId:e.entity,tagId:e.tag}}),h$1("Tag removed");}catch(t){f(t);}}),g$1.command("replace").description("Replace all tags on a scheduled job").requiredOption("--entity <id>").requiredOption("--tags <ids>","Comma-separated tag IDs").option("-f, --format <format>").action(async e=>{try{let t=await b(W,{input:{entityId:e.entity,tagIds:e.tags.split(",")}});h$1("Tags replaced"),g(e,t.replaceScheduledJobTags);}catch(t){f(t);}}),g$1.command("list").description("List tags on a scheduled job").requiredOption("--entity <id>").option("-f, --format <format>").action(async e=>{try{let t=await b(z,{input:{entityId:e.entity}});g(e,t.getScheduledJobTags);}catch(t){f(t);}});let p=u.command("templates").description("Schedule templates");p.command("list").description("List schedule templates in the active workspace").option("--category <c>").option("--public","Only public templates").option("-f, --format <format>").action(async e=>{try{let t={};e.category&&(t.category=e.category),e.public!==void 0&&(t.isPublic=e.public);let n=await b(N,{workspaceId:h(),filter:Object.keys(t).length?t:void 0,pagination:{first:100}});g(e,n.scheduleTemplates.templates);}catch(t){f(t);}}),p.command("get").description("Get a schedule template").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await b(k,{id:e});if(!n.scheduleTemplate)throw new o$1(`Template ${e} not found`);g(t,n.scheduleTemplate);}catch(n){f(n);}}),p.command("create").description("Create a schedule template").requiredOption("--name <name>").requiredOption("--type <t>","CRON|FIXED_INTERVAL|ONE_TIME|RRULE|WINDOWED").requiredOption("--executor <e>","WEBHOOK|INTERNAL_API|NATS_TOPIC|GRAPHQL").requiredOption("--schedule-config <json>").requiredOption("--executor-config <json>").option("--description <d>").option("--category <c>").option("--public","Make template public").option("-f, --format <format>").action(async e=>{try{let t={name:e.name,scheduleType:e.type.toUpperCase(),executorType:e.executor.toUpperCase(),scheduleConfig:JSON.parse(e.scheduleConfig),executorConfig:JSON.parse(e.executorConfig)};e.description&&(t.description=e.description),e.category&&(t.category=e.category),e.public!==void 0&&(t.isPublic=e.public);let n=await b(P,{workspaceId:h(),input:t});h$1("Template created"),g(e,n.createScheduleTemplate);}catch(t){f(t);}}),p.command("update").description("Update a schedule template").argument("<id>").option("--name <name>").option("--description <d>").option("--category <c>").option("--public","Toggle public").option("-f, --format <format>").action(async(e,t)=>{try{let n={};if(t.name!==void 0&&(n.name=t.name),t.description!==void 0&&(n.description=t.description),t.category!==void 0&&(n.category=t.category),t.public!==void 0&&(n.isPublic=t.public),Object.keys(n).length===0)throw new o$1("Provide at least one field to update");let r=await b(j,{id:e,input:n});h$1("Template updated"),g(t,r.updateScheduleTemplate);}catch(n){f(n);}}),p.command("delete").description("Delete a schedule template").argument("<id>").action(async e=>{try{await b(B,{id:e}),h$1("Template deleted");}catch(t){f(t);}});let y=u.command("versions").description("Schedule version history");y.command("list").description("List version history for a schedule").argument("<scheduleId>").option("-f, --format <format>").action(async(e,t)=>{try{let n$1=await b(V,{scheduleId:e});g(t,n$1.scheduleVersionHistory,{headers:["ID","Version","ChangedBy","Reason","CreatedAt"],rows:n$1.scheduleVersionHistory.map(r=>[o(r.id,12),String(r.version),r.changedBy,r.changeReason??"-",n(r.createdAt)])});}catch(n){f(n);}}),y.command("restore").description("Restore a schedule to a prior version").requiredOption("--schedule <id>").requiredOption("--version <id>").option("-f, --format <format>").action(async e=>{try{let t=await b(q,{scheduleId:e.schedule,versionId:e.version});h$1("Version restored"),g(e,t.restoreScheduleVersion);}catch(t){f(t);}}),F.command("list").description("List executions for a job").argument("<jobId>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async(e,t)=>{try{let n$1=await b(O,{jobId:e,pagination:{first:t.limit}});g(t,n$1.jobExecutions.executions,{headers:["ID","Status","Started","Duration","Success"],rows:n$1.jobExecutions.executions.map(r=>[o(r.id,12),m(r.status),n(r.startedAt),String(r.duration??"-"),String(!!r.success)])});}catch(n){f(n);}});}var Y={id:"scheduler",version:"1.0.0",displayName:"Scheduler",dependsOn:["auth","workspaces"],register(d,u){a(u),X(d);}},ie=Y;export{ie as default};
|