@alva-ai/toolkit 0.25.1 → 0.25.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.global.js +39 -8
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.d.ts +65 -0
- package/dist/cli.js +517 -169
- package/dist/cli.js.map +1 -1
- package/dist/dispatch.d.ts +65 -0
- package/dist/dispatch.js +139 -168
- package/dist/dispatch.js.map +1 -1
- package/dist/index.cjs +380 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -1
- package/dist/index.d.ts +66 -1
- package/dist/index.js +379 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/dispatch.d.ts
CHANGED
|
@@ -2043,6 +2043,69 @@ declare class MarketsResource {
|
|
|
2043
2043
|
private graphql;
|
|
2044
2044
|
}
|
|
2045
2045
|
|
|
2046
|
+
type AgentScheduleStatus = 'active' | 'paused' | 'completed' | 'failed';
|
|
2047
|
+
type AgentScheduleFailureCode = 'target_invalid' | 'delivery_exhausted' | 'payload_conflict';
|
|
2048
|
+
type AgentScheduleRule = {
|
|
2049
|
+
kind: 'at';
|
|
2050
|
+
timestamp: string;
|
|
2051
|
+
} | {
|
|
2052
|
+
kind: 'every';
|
|
2053
|
+
interval: string;
|
|
2054
|
+
} | {
|
|
2055
|
+
kind: 'cron';
|
|
2056
|
+
expression: string;
|
|
2057
|
+
timezone: string;
|
|
2058
|
+
};
|
|
2059
|
+
interface AgentScheduleBounds {
|
|
2060
|
+
startsAt?: string;
|
|
2061
|
+
until?: string;
|
|
2062
|
+
maxOccurrences?: number;
|
|
2063
|
+
}
|
|
2064
|
+
interface AgentSchedule {
|
|
2065
|
+
name: string;
|
|
2066
|
+
rule: AgentScheduleRule;
|
|
2067
|
+
bounds: AgentScheduleBounds;
|
|
2068
|
+
text: string;
|
|
2069
|
+
status: AgentScheduleStatus;
|
|
2070
|
+
failure?: {
|
|
2071
|
+
code: AgentScheduleFailureCode;
|
|
2072
|
+
at?: string;
|
|
2073
|
+
};
|
|
2074
|
+
occurrencesUsed: number;
|
|
2075
|
+
nextFireAt?: string;
|
|
2076
|
+
createdAt: string;
|
|
2077
|
+
updatedAt: string;
|
|
2078
|
+
}
|
|
2079
|
+
interface PutAgentScheduleParams {
|
|
2080
|
+
channelId: string | number;
|
|
2081
|
+
name: string;
|
|
2082
|
+
rule: AgentScheduleRule | {
|
|
2083
|
+
kind: 'after';
|
|
2084
|
+
duration: string;
|
|
2085
|
+
};
|
|
2086
|
+
bounds?: AgentScheduleBounds;
|
|
2087
|
+
text: string;
|
|
2088
|
+
}
|
|
2089
|
+
interface ManageAgentScheduleParams {
|
|
2090
|
+
channelId: string | number;
|
|
2091
|
+
name: string;
|
|
2092
|
+
}
|
|
2093
|
+
declare class SchedulesResource {
|
|
2094
|
+
private client;
|
|
2095
|
+
constructor(client: AlvaClient);
|
|
2096
|
+
list(params: {
|
|
2097
|
+
channelId: string | number;
|
|
2098
|
+
}): Promise<AgentSchedule[]>;
|
|
2099
|
+
put(params: PutAgentScheduleParams): Promise<AgentSchedule>;
|
|
2100
|
+
pause(params: ManageAgentScheduleParams): Promise<AgentSchedule>;
|
|
2101
|
+
resume(params: ManageAgentScheduleParams): Promise<AgentSchedule>;
|
|
2102
|
+
delete(params: ManageAgentScheduleParams): Promise<void>;
|
|
2103
|
+
/** Resolve the authenticated viewer's unique Agent Channel for CLI defaults. */
|
|
2104
|
+
agentChannelId(): Promise<string>;
|
|
2105
|
+
private manage;
|
|
2106
|
+
private graphql;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2046
2109
|
interface RequestOptions {
|
|
2047
2110
|
query?: Record<string, unknown>;
|
|
2048
2111
|
body?: unknown;
|
|
@@ -2108,6 +2171,7 @@ declare class AlvaClient {
|
|
|
2108
2171
|
private _functions?;
|
|
2109
2172
|
private _credits?;
|
|
2110
2173
|
private _markets?;
|
|
2174
|
+
private _schedules?;
|
|
2111
2175
|
constructor(config: AlvaClientConfig);
|
|
2112
2176
|
get fs(): FsResource;
|
|
2113
2177
|
get run(): RunResource;
|
|
@@ -2137,6 +2201,7 @@ declare class AlvaClient {
|
|
|
2137
2201
|
get functions(): FunctionsResource;
|
|
2138
2202
|
get credits(): CreditsResource;
|
|
2139
2203
|
get markets(): MarketsResource;
|
|
2204
|
+
get schedules(): SchedulesResource;
|
|
2140
2205
|
_requireAuth(): void;
|
|
2141
2206
|
_request(method: string, path: string, options?: RequestOptions): Promise<unknown>;
|
|
2142
2207
|
}
|
package/dist/dispatch.js
CHANGED
|
@@ -6853,19 +6853,25 @@ var COMMAND_DEFINITIONS = [
|
|
|
6853
6853
|
values: ["id", "workflow-run-id"]
|
|
6854
6854
|
}),
|
|
6855
6855
|
command("deploy run-logs", { values: ["id", "run-id"] }),
|
|
6856
|
-
command("
|
|
6856
|
+
command("schedule list", { values: ["channel-id"] }),
|
|
6857
|
+
command("schedule put", {
|
|
6857
6858
|
values: [
|
|
6858
|
-
"goal",
|
|
6859
|
-
"cron",
|
|
6860
6859
|
"channel-id",
|
|
6861
|
-
"start",
|
|
6862
|
-
"until",
|
|
6863
|
-
"runs",
|
|
6864
6860
|
"name",
|
|
6865
|
-
|
|
6866
|
-
"
|
|
6861
|
+
"message",
|
|
6862
|
+
"at",
|
|
6863
|
+
"after",
|
|
6864
|
+
"every",
|
|
6865
|
+
"cron",
|
|
6866
|
+
"timezone",
|
|
6867
|
+
"starts-at",
|
|
6868
|
+
"until",
|
|
6869
|
+
"max-occurrences"
|
|
6867
6870
|
]
|
|
6868
6871
|
}),
|
|
6872
|
+
command("schedule pause", { values: ["channel-id", "name"] }),
|
|
6873
|
+
command("schedule resume", { values: ["channel-id", "name"] }),
|
|
6874
|
+
command("schedule delete", { values: ["channel-id", "name"] }),
|
|
6869
6875
|
command("service-account create", { values: ["name"] }),
|
|
6870
6876
|
command("service-account list"),
|
|
6871
6877
|
command("service-account delete", { values: ["id"] }),
|
|
@@ -10930,7 +10936,7 @@ function validateSerializedArgs(raw) {
|
|
|
10930
10936
|
}
|
|
10931
10937
|
|
|
10932
10938
|
// src/cli/dispatch.ts
|
|
10933
|
-
var CLI_VERSION = true ? "0.25.
|
|
10939
|
+
var CLI_VERSION = true ? "0.25.2-beta.0" : "dev";
|
|
10934
10940
|
var DEFAULT_RUN_TIMEOUT_MS = 6e5;
|
|
10935
10941
|
var RUN_TIMEOUT_ENV = "ALVA_RUN_TIMEOUT_MS";
|
|
10936
10942
|
var GLOBAL_VALUE_FLAGS = Object.entries(GLOBAL_FLAG_DEFINITIONS).filter(([, kind]) => kind === "value").map(([name]) => `--${name}`);
|
|
@@ -11290,36 +11296,35 @@ Build-time verify (fire once, then poll up to 5 minutes):
|
|
|
11290
11296
|
esac
|
|
11291
11297
|
[ "$STATE" = COMPLETED ] || alva deploy run-logs --id 42 \\
|
|
11292
11298
|
--run-id "$(echo "$STATUS_JSON" | jq -r .run.id)"`,
|
|
11293
|
-
|
|
11299
|
+
schedule: `Usage: alva schedule <subcommand> [options]
|
|
11294
11300
|
|
|
11295
|
-
|
|
11296
|
-
one fire-and-forget agent turn on the Alva channel's stable main
|
|
11297
|
-
session (via the @alva/loop SDK), continuing that conversation toward a goal. Creation
|
|
11298
|
-
seeds a shared runner, creates its cronjob, and registers the cronjob as an
|
|
11299
|
-
Automation without starting an extra publish-time run.
|
|
11301
|
+
Manage named future and recurring work for an Alva Channel Agent.
|
|
11300
11302
|
|
|
11301
11303
|
Subcommands:
|
|
11302
|
-
|
|
11304
|
+
list List schedules
|
|
11305
|
+
put Create or replace a schedule by name
|
|
11306
|
+
pause Pause a schedule
|
|
11307
|
+
resume Resume a schedule
|
|
11308
|
+
delete Delete a schedule
|
|
11303
11309
|
|
|
11304
|
-
|
|
11305
|
-
--
|
|
11306
|
-
--
|
|
11307
|
-
|
|
11308
|
-
|
|
11309
|
-
--
|
|
11310
|
-
--
|
|
11311
|
-
|
|
11312
|
-
--
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
a timezone (Z or \xB1HH:MM). The result includes automation_id and cronjob_id.
|
|
11317
|
-
Use 'alva automation inspect/stop/resume/delete --id <automation_id>' for
|
|
11318
|
-
lifecycle management; deletion also removes the Automation's producer cronjob.
|
|
11310
|
+
Common flags:
|
|
11311
|
+
--channel-id <id> Target Channel; omit for your Agent Channel
|
|
11312
|
+
--name <name> Stable schedule name
|
|
11313
|
+
|
|
11314
|
+
Put flags:
|
|
11315
|
+
--message <text> Agent instruction delivered at each occurrence
|
|
11316
|
+
Choose exactly one: --after <ISO duration>, --at <RFC3339>,
|
|
11317
|
+
--every <ISO duration>, or --cron <five fields>
|
|
11318
|
+
--timezone <IANA> Required with --cron
|
|
11319
|
+
--starts-at <RFC3339> Inclusive recurrence lower bound
|
|
11320
|
+
--until <RFC3339> Exclusive recurrence upper bound
|
|
11321
|
+
--max-occurrences <n> Positive recurrence count bound
|
|
11319
11322
|
|
|
11320
11323
|
Examples:
|
|
11321
|
-
alva
|
|
11322
|
-
alva
|
|
11324
|
+
alva schedule put --name review --message "Review status" --after PT30M
|
|
11325
|
+
alva schedule put --name market-open --message "Review the open" --cron "30 9 * * 1-5" --timezone America/New_York
|
|
11326
|
+
alva schedule list
|
|
11327
|
+
alva schedule pause --name market-open`,
|
|
11323
11328
|
"service-account": `Usage: alva service-account <subcommand> [options]
|
|
11324
11329
|
|
|
11325
11330
|
Manage restricted run-as identities. A service account executes a UDF or
|
|
@@ -12547,84 +12552,69 @@ function parseCreditsDurationMs(value) {
|
|
|
12547
12552
|
}
|
|
12548
12553
|
return durationMs;
|
|
12549
12554
|
}
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
].join("\n");
|
|
12557
|
-
function parseLoopTimestamp(value, flag) {
|
|
12558
|
-
const raw = value.trim();
|
|
12559
|
-
const match = /^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:[zZ]|([+-])(\d{2}):(\d{2}))$/.exec(
|
|
12560
|
-
raw
|
|
12555
|
+
async function scheduleChannelId(client, flags) {
|
|
12556
|
+
return flags["channel-id"] ?? client.schedules.agentChannelId();
|
|
12557
|
+
}
|
|
12558
|
+
function scheduleRuleFromFlags(flags) {
|
|
12559
|
+
const selected = ["after", "at", "every", "cron"].filter(
|
|
12560
|
+
(flag) => flags[flag] !== void 0
|
|
12561
12561
|
);
|
|
12562
|
-
if (
|
|
12562
|
+
if (selected.length !== 1) {
|
|
12563
12563
|
throw new CliUsageError(
|
|
12564
|
-
|
|
12565
|
-
"
|
|
12564
|
+
"schedule put requires exactly one of --after, --at, --every, or --cron",
|
|
12565
|
+
"schedule"
|
|
12566
12566
|
);
|
|
12567
12567
|
}
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12568
|
+
if (selected[0] !== "cron" && flags["timezone"] !== void 0) {
|
|
12569
|
+
throw new CliUsageError("--timezone is only valid with --cron", "schedule");
|
|
12570
|
+
}
|
|
12571
|
+
switch (selected[0]) {
|
|
12572
|
+
case "after":
|
|
12573
|
+
return { kind: "after", duration: flags["after"] };
|
|
12574
|
+
case "at":
|
|
12575
|
+
return {
|
|
12576
|
+
kind: "at",
|
|
12577
|
+
timestamp: parseScheduleTimestamp(flags["at"], "at")
|
|
12578
|
+
};
|
|
12579
|
+
case "every":
|
|
12580
|
+
return { kind: "every", interval: flags["every"] };
|
|
12581
|
+
default:
|
|
12582
|
+
return {
|
|
12583
|
+
kind: "cron",
|
|
12584
|
+
expression: flags["cron"],
|
|
12585
|
+
timezone: requireFlag(flags, "timezone", "schedule put")
|
|
12586
|
+
};
|
|
12587
|
+
}
|
|
12588
|
+
}
|
|
12589
|
+
function parseScheduleTimestamp(value, flag) {
|
|
12590
|
+
const raw = value.trim();
|
|
12591
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:Z|[+-](\d{2}):(\d{2}))$/i.exec(
|
|
12592
|
+
raw
|
|
12593
|
+
);
|
|
12594
|
+
if (!match) {
|
|
12592
12595
|
throw new CliUsageError(
|
|
12593
|
-
`--${flag} must be
|
|
12594
|
-
"
|
|
12596
|
+
`--${flag} must be an RFC3339 timestamp with a timezone`,
|
|
12597
|
+
"schedule"
|
|
12595
12598
|
);
|
|
12596
12599
|
}
|
|
12597
|
-
const
|
|
12598
|
-
|
|
12600
|
+
const [year, month, day, hour, minute, second] = match.slice(1, 7).map(Number);
|
|
12601
|
+
const offsetHour = Number(match[7] ?? 0);
|
|
12602
|
+
const offsetMinute = Number(match[8] ?? 0);
|
|
12603
|
+
const daysInMonth = new Date(Date.UTC(year, month, 0)).getUTCDate();
|
|
12604
|
+
const parsed = Date.parse(raw);
|
|
12605
|
+
if (!Number.isFinite(parsed) || year < 1 || year > 9999 || month < 1 || month > 12 || day < 1 || day > daysInMonth || hour > 23 || minute > 59 || second > 59 || offsetHour > 23 || offsetMinute > 59) {
|
|
12599
12606
|
throw new CliUsageError(
|
|
12600
|
-
`--${flag} must be a valid RFC3339 timestamp
|
|
12601
|
-
"
|
|
12607
|
+
`--${flag} must be a valid RFC3339 timestamp with a timezone`,
|
|
12608
|
+
"schedule"
|
|
12602
12609
|
);
|
|
12603
12610
|
}
|
|
12604
|
-
return new Date(
|
|
12605
|
-
}
|
|
12606
|
-
function parseLoopRuns(value) {
|
|
12607
|
-
if (value === void 0) return void 0;
|
|
12608
|
-
if (!/^[1-9]\d*$/.test(value)) {
|
|
12609
|
-
throw new CliUsageError("--runs must be a positive integer", "loop");
|
|
12610
|
-
}
|
|
12611
|
-
const runs = Number(value);
|
|
12612
|
-
if (!Number.isSafeInteger(runs) || runs > 2147483647) {
|
|
12613
|
-
throw new CliUsageError("--runs is too large", "loop");
|
|
12614
|
-
}
|
|
12615
|
-
return runs;
|
|
12616
|
-
}
|
|
12617
|
-
function loopCronjobName(flags, goal) {
|
|
12618
|
-
if (flags["name"] !== void 0) return flags["name"];
|
|
12619
|
-
const base = goal.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
12620
|
-
const slug = (base ? `loop-${base}` : "loop").slice(0, 63).replace(/-+$/g, "");
|
|
12621
|
-
return slug || "loop";
|
|
12611
|
+
return new Date(parsed).toISOString().replace(".000Z", "Z");
|
|
12622
12612
|
}
|
|
12623
|
-
function
|
|
12624
|
-
const
|
|
12625
|
-
const
|
|
12626
|
-
const
|
|
12627
|
-
return
|
|
12613
|
+
function scheduleBoundsFromFlags(flags) {
|
|
12614
|
+
const startsAt = flags["starts-at"] !== void 0 ? parseScheduleTimestamp(flags["starts-at"], "starts-at") : void 0;
|
|
12615
|
+
const until = flags["until"] !== void 0 ? parseScheduleTimestamp(flags["until"], "until") : void 0;
|
|
12616
|
+
const maxOccurrences = flags["max-occurrences"] !== void 0 ? requirePositiveIntegerFlag(flags, "max-occurrences", "schedule put") : void 0;
|
|
12617
|
+
return startsAt !== void 0 || until !== void 0 || maxOccurrences !== void 0 ? { startsAt, until, maxOccurrences } : void 0;
|
|
12628
12618
|
}
|
|
12629
12619
|
function parseCreditsItemsParams(flags) {
|
|
12630
12620
|
const command2 = "credits items";
|
|
@@ -13148,83 +13138,64 @@ async function executeParsedCommand(client, parsedCommand, meta, deps) {
|
|
|
13148
13138
|
);
|
|
13149
13139
|
}
|
|
13150
13140
|
}
|
|
13151
|
-
case "
|
|
13152
|
-
if (!subcommand)
|
|
13153
|
-
throw new CliUsageError("Missing subcommand for
|
|
13141
|
+
case "schedule": {
|
|
13142
|
+
if (!subcommand) {
|
|
13143
|
+
throw new CliUsageError("Missing subcommand for schedule", "schedule");
|
|
13144
|
+
}
|
|
13154
13145
|
switch (subcommand) {
|
|
13155
|
-
case "
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
const cron = requireFlag(flags, "cron", "loop create");
|
|
13164
|
-
const channelId = flags["channel-id"];
|
|
13165
|
-
const startRaw = (flags["start"] ?? "now").trim();
|
|
13166
|
-
const startAt = startRaw.toLowerCase() === "now" ? void 0 : parseLoopTimestamp(startRaw, "start");
|
|
13167
|
-
const endAt = flags["until"] ? parseLoopTimestamp(flags["until"], "until") : void 0;
|
|
13168
|
-
const maxRuns = parseLoopRuns(flags["runs"]);
|
|
13169
|
-
if (endAt === void 0 && maxRuns === void 0) {
|
|
13170
|
-
throw new CliUsageError(
|
|
13171
|
-
"loop create requires at least one of --until or --runs",
|
|
13172
|
-
"loop"
|
|
13173
|
-
);
|
|
13174
|
-
}
|
|
13175
|
-
if (startAt !== void 0 && endAt !== void 0 && endAt <= startAt) {
|
|
13146
|
+
case "list": {
|
|
13147
|
+
const channelId = await scheduleChannelId(client, flags);
|
|
13148
|
+
return client.schedules.list({ channelId });
|
|
13149
|
+
}
|
|
13150
|
+
case "put": {
|
|
13151
|
+
const rule = scheduleRuleFromFlags(flags);
|
|
13152
|
+
const bounds = scheduleBoundsFromFlags(flags);
|
|
13153
|
+
if ((rule.kind === "at" || rule.kind === "after") && bounds !== void 0) {
|
|
13176
13154
|
throw new CliUsageError(
|
|
13177
|
-
|
|
13178
|
-
"
|
|
13155
|
+
`${rule.kind} does not accept recurring bounds`,
|
|
13156
|
+
"schedule"
|
|
13179
13157
|
);
|
|
13180
13158
|
}
|
|
13181
|
-
const name =
|
|
13182
|
-
|
|
13183
|
-
|
|
13184
|
-
|
|
13185
|
-
|
|
13186
|
-
});
|
|
13187
|
-
const cronjob = await client.deploy.create({
|
|
13159
|
+
const name = requireFlag(flags, "name", "schedule put");
|
|
13160
|
+
const text = requireFlag(flags, "message", "schedule put");
|
|
13161
|
+
const channelId = await scheduleChannelId(client, flags);
|
|
13162
|
+
return client.schedules.put({
|
|
13163
|
+
channelId,
|
|
13188
13164
|
name,
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
start_at: startAt,
|
|
13193
|
-
end_at: endAt,
|
|
13194
|
-
max_runs: maxRuns
|
|
13165
|
+
text,
|
|
13166
|
+
rule,
|
|
13167
|
+
bounds
|
|
13195
13168
|
});
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
);
|
|
13222
|
-
}
|
|
13169
|
+
}
|
|
13170
|
+
case "pause": {
|
|
13171
|
+
const name = requireFlag(flags, "name", "schedule pause");
|
|
13172
|
+
const channelId = await scheduleChannelId(client, flags);
|
|
13173
|
+
return client.schedules.pause({
|
|
13174
|
+
channelId,
|
|
13175
|
+
name
|
|
13176
|
+
});
|
|
13177
|
+
}
|
|
13178
|
+
case "resume": {
|
|
13179
|
+
const name = requireFlag(flags, "name", "schedule resume");
|
|
13180
|
+
const channelId = await scheduleChannelId(client, flags);
|
|
13181
|
+
return client.schedules.resume({
|
|
13182
|
+
channelId,
|
|
13183
|
+
name
|
|
13184
|
+
});
|
|
13185
|
+
}
|
|
13186
|
+
case "delete": {
|
|
13187
|
+
const name = requireFlag(flags, "name", "schedule delete");
|
|
13188
|
+
const channelId = await scheduleChannelId(client, flags);
|
|
13189
|
+
await client.schedules.delete({
|
|
13190
|
+
channelId,
|
|
13191
|
+
name
|
|
13192
|
+
});
|
|
13193
|
+
return { deleted: true };
|
|
13223
13194
|
}
|
|
13224
13195
|
default:
|
|
13225
13196
|
throw new CliUsageError(
|
|
13226
|
-
`Unknown subcommand:
|
|
13227
|
-
"
|
|
13197
|
+
`Unknown subcommand: schedule ${subcommand}`,
|
|
13198
|
+
"schedule"
|
|
13228
13199
|
);
|
|
13229
13200
|
}
|
|
13230
13201
|
}
|