@heyditto/cli 3.24.0 → 3.25.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/README.md +134 -1762
- package/dist/cli.js +20 -1
- package/dist/cli.js.map +1 -1
- package/dist/dittoconfig/commands.d.ts +5 -2
- package/dist/dittoconfig/commands.js +109 -24
- package/dist/dittoconfig/commands.js.map +1 -1
- package/dist/dittoconfig/load.d.ts +7 -1
- package/dist/dittoconfig/load.js +10 -3
- package/dist/dittoconfig/load.js.map +1 -1
- package/dist/dittoconfig/paths.d.ts +28 -0
- package/dist/dittoconfig/paths.js +34 -0
- package/dist/dittoconfig/paths.js.map +1 -0
- package/dist/dittoconfig/profiles.js +15 -18
- package/dist/dittoconfig/profiles.js.map +1 -1
- package/dist/dittoconfig/types.d.ts +42 -0
- package/dist/dittoconfig/types.js +1 -0
- package/dist/dittoconfig/types.js.map +1 -1
- package/dist/dittoconfig/workflows.d.ts +38 -0
- package/dist/dittoconfig/workflows.js +310 -0
- package/dist/dittoconfig/workflows.js.map +1 -0
- package/dist/update-lock.json +1 -1
- package/dist/workflow-commands.d.ts +70 -0
- package/dist/workflow-commands.js +274 -0
- package/dist/workflow-commands.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type Command, Option } from "commander";
|
|
2
|
+
/** callToolRendered from cli.ts with the --output value still unparsed. */
|
|
3
|
+
export type CallRendered = <T>(name: string, args: Record<string, unknown>, output: string | undefined, render: (out: T) => number | void) => Promise<void>;
|
|
4
|
+
/** A workflow id (a UUID, as list_workflows shows it) is sent as workflow_id; anything else as the (case-insensitive) name. */
|
|
5
|
+
export declare function workflowRef(ref: string, space?: string): Record<string, unknown>;
|
|
6
|
+
/** --inputs-json first, then each --input k=v on top. */
|
|
7
|
+
export declare function parseWorkflowInputs(pairs: string[] | undefined, json: string | undefined): Record<string, unknown> | undefined;
|
|
8
|
+
interface WorkflowSummary {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
schedule?: string;
|
|
12
|
+
lastRun?: string;
|
|
13
|
+
attention?: string;
|
|
14
|
+
enabled?: boolean;
|
|
15
|
+
paused?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** list_workflows as a table: name, schedule, state, last run. */
|
|
18
|
+
export declare function printWorkflows(out: {
|
|
19
|
+
workflows?: WorkflowSummary[];
|
|
20
|
+
}): void;
|
|
21
|
+
interface WorkflowDetail {
|
|
22
|
+
recipe_id?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
state?: string;
|
|
26
|
+
enabled?: boolean;
|
|
27
|
+
schedule?: {
|
|
28
|
+
summary?: string;
|
|
29
|
+
cronExpr?: string;
|
|
30
|
+
timezone?: string;
|
|
31
|
+
} | null;
|
|
32
|
+
steps?: Array<Record<string, unknown>>;
|
|
33
|
+
url?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function printWorkflow(w: WorkflowDetail): void;
|
|
36
|
+
interface RunSummary {
|
|
37
|
+
id: string;
|
|
38
|
+
status: string;
|
|
39
|
+
trigger?: string;
|
|
40
|
+
started?: string;
|
|
41
|
+
duration?: string;
|
|
42
|
+
result?: string;
|
|
43
|
+
error?: string;
|
|
44
|
+
link?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function printWorkflowRuns(out: {
|
|
47
|
+
workflow?: string;
|
|
48
|
+
schedule?: string;
|
|
49
|
+
paused?: boolean;
|
|
50
|
+
note?: string;
|
|
51
|
+
runs?: RunSummary[];
|
|
52
|
+
}): void;
|
|
53
|
+
export declare function printRunStarted(out: {
|
|
54
|
+
status?: string;
|
|
55
|
+
run_id?: string;
|
|
56
|
+
workflow?: string;
|
|
57
|
+
link?: string;
|
|
58
|
+
instructions?: string;
|
|
59
|
+
}): number;
|
|
60
|
+
export declare function printPaused(out: {
|
|
61
|
+
workflow?: string;
|
|
62
|
+
state?: string;
|
|
63
|
+
schedule?: string;
|
|
64
|
+
link?: string;
|
|
65
|
+
note?: string;
|
|
66
|
+
}): void;
|
|
67
|
+
export declare const WORKFLOW_TOML_HELP = "\nWorkflow file (.ditto/workflows/<slug>.toml; snake_case, unknown keys fail):\n managed = true # default true; false = skipped by repo apply\n name = \"Feedback triage\" # required, 1-120 chars\n slug = \"feedback-triage\" # default: file basename; ^[a-z0-9][a-z0-9-]{0,62}$\n description = \"...\"\n space = \"omniaura/feedback-triager-51e1d2\" # omit for personal; cannot change later\n enabled = true # false = saved but paused\n\n [schedule] # omit the table for manual-only\n cron = \"0 * * * *\" # required in [schedule]\n timezone = \"UTC\"\n\n [[steps]] # 1-20 steps, run in order\n key = \"triage\" # ^[a-z0-9_-]{1,40}$, unique\n name = \"Triage pending feedback\"\n kind = \"agentic\" # agentic (default) | script\n goal_file = \"prompts/feedback-triage.md\" # OR goal = \"...\" (exactly one; <= 32 KiB)\n # goal_file is relative to .ditto/ and must stay inside it\n # script = \"...\" # kind = \"script\" only\n model = \"claude-sonnet-5-5\"\n allowed_tools = [\"feedback_triage_pending\", \"feedback_triage_resolve\"]\n auto_approve_tools = [\"feedback_triage_resolve\"] # must be a subset of allowed_tools\n timeout_seconds = 1500\n max_tool_calls = 150\n max_turns = 30\n # budget_millicents = 50000\n\nauto_approve_tools in a reviewed definition is the consent for unattended\nruns. Credentials never belong in a workflow file: validation refuses\ncredential-named keys and token-shaped text in goals and scripts.";
|
|
68
|
+
/** Registers `heyditto workflows list|get|runs|run|pause|resume|apply`. */
|
|
69
|
+
export declare function registerWorkflowCommands(program: Command, addExamples: (c: Command, ex: string) => Command, outputOption: () => Option, callRendered: CallRendered): void;
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `heyditto workflows`: a thin front end over the Ditto MCP workflow tools
|
|
3
|
+
* (list_workflows, get_workflow, list_workflow_runs, run_workflow,
|
|
4
|
+
* set_workflow_paused, apply_workflow). The capability lives in the MCP tool;
|
|
5
|
+
* this file only maps flags to arguments and renders results as text.
|
|
6
|
+
*/
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import { Option } from "commander";
|
|
9
|
+
import { printTable } from "./commands.js";
|
|
10
|
+
import { DittoConfigError } from "./dittoconfig/load.js";
|
|
11
|
+
import { enclosingDittoDir, formatWorkflowPlan, parseWorkflowFile, workflowApplyArgs } from "./dittoconfig/workflows.js";
|
|
12
|
+
const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
13
|
+
/** A workflow id (a UUID, as list_workflows shows it) is sent as workflow_id; anything else as the (case-insensitive) name. */
|
|
14
|
+
export function workflowRef(ref, space) {
|
|
15
|
+
const r = ref.trim();
|
|
16
|
+
const args = UUID_RE.test(r) ? { workflow_id: r } : { name: r };
|
|
17
|
+
if (space)
|
|
18
|
+
args.space = space;
|
|
19
|
+
return args;
|
|
20
|
+
}
|
|
21
|
+
function spaceOption() {
|
|
22
|
+
return new Option("--space <alias>", "space the workflow lives in, e.g. omniaura/feedback-triager-51e1d2 (heyditto knowledge-graphs lists them); default: personal");
|
|
23
|
+
}
|
|
24
|
+
function collect(value, prev = []) {
|
|
25
|
+
return [...prev, value];
|
|
26
|
+
}
|
|
27
|
+
/** --inputs-json first, then each --input k=v on top. */
|
|
28
|
+
export function parseWorkflowInputs(pairs, json) {
|
|
29
|
+
let inputs;
|
|
30
|
+
if (json !== undefined) {
|
|
31
|
+
let parsed;
|
|
32
|
+
try {
|
|
33
|
+
parsed = JSON.parse(json);
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
throw new Error(`--inputs-json must be valid JSON: ${e.message}`);
|
|
37
|
+
}
|
|
38
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed))
|
|
39
|
+
throw new Error("--inputs-json must be a JSON object keyed by input name");
|
|
40
|
+
inputs = { ...parsed };
|
|
41
|
+
}
|
|
42
|
+
for (const pair of pairs ?? []) {
|
|
43
|
+
const eq = pair.indexOf("=");
|
|
44
|
+
if (eq <= 0)
|
|
45
|
+
throw new Error(`--input must be key=value, got ${JSON.stringify(pair)}`);
|
|
46
|
+
inputs = { ...(inputs ?? {}), [pair.slice(0, eq)]: pair.slice(eq + 1) };
|
|
47
|
+
}
|
|
48
|
+
return inputs;
|
|
49
|
+
}
|
|
50
|
+
function age(iso) {
|
|
51
|
+
if (!iso)
|
|
52
|
+
return "";
|
|
53
|
+
const ms = Date.now() - new Date(iso).getTime();
|
|
54
|
+
if (!Number.isFinite(ms))
|
|
55
|
+
return iso;
|
|
56
|
+
if (ms < 0)
|
|
57
|
+
return "just now";
|
|
58
|
+
const m = Math.round(ms / 60000);
|
|
59
|
+
if (m < 1)
|
|
60
|
+
return "just now";
|
|
61
|
+
if (m < 60)
|
|
62
|
+
return `${m}m ago`;
|
|
63
|
+
const h = Math.round(m / 60);
|
|
64
|
+
if (h < 48)
|
|
65
|
+
return `${h}h ago`;
|
|
66
|
+
return `${Math.round(h / 24)}d ago`;
|
|
67
|
+
}
|
|
68
|
+
function clip(s, n) {
|
|
69
|
+
const one = (s ?? "").replace(/\s+/g, " ").trim();
|
|
70
|
+
return one.length > n ? `${one.slice(0, n - 1)}…` : one;
|
|
71
|
+
}
|
|
72
|
+
/** list_workflows as a table: name, schedule, state, last run. */
|
|
73
|
+
export function printWorkflows(out) {
|
|
74
|
+
const flows = out.workflows ?? [];
|
|
75
|
+
if (flows.length === 0) {
|
|
76
|
+
process.stdout.write("No workflows yet.\n");
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
printTable(["NAME", "SCHEDULE", "STATE", "LAST RUN", "ID"], flows.map((w) => {
|
|
80
|
+
// lastRun is "<status> at <RFC3339>".
|
|
81
|
+
const m = /^(.*) at (\S+)$/.exec(w.lastRun ?? "");
|
|
82
|
+
const last = m ? `${m[1]} ${age(m[2])}` : (w.lastRun ?? "never");
|
|
83
|
+
return [w.name, w.schedule || "manual", w.paused ? "paused" : w.enabled === false ? "disabled" : "active", last, w.id];
|
|
84
|
+
}));
|
|
85
|
+
for (const w of flows)
|
|
86
|
+
if (w.attention)
|
|
87
|
+
process.stdout.write(`\n${w.name}: ${w.attention}`);
|
|
88
|
+
if (flows.some((w) => w.attention))
|
|
89
|
+
process.stdout.write("\n");
|
|
90
|
+
}
|
|
91
|
+
export function printWorkflow(w) {
|
|
92
|
+
const lines = [`${w.name ?? "(unnamed)"} [${w.state ?? (w.enabled === false ? "disabled" : "active")}]`];
|
|
93
|
+
if (w.recipe_id)
|
|
94
|
+
lines.push(`id: ${w.recipe_id}`);
|
|
95
|
+
if (w.description)
|
|
96
|
+
lines.push(`about: ${w.description}`);
|
|
97
|
+
const s = w.schedule;
|
|
98
|
+
lines.push(`schedule: ${s ? (s.summary ?? `${s.cronExpr ?? ""}${s.timezone ? ` (${s.timezone})` : ""}`) : "manual"}`);
|
|
99
|
+
if (w.url)
|
|
100
|
+
lines.push(`link: ${w.url}`);
|
|
101
|
+
process.stdout.write(`${lines.join("\n")}\n`);
|
|
102
|
+
const steps = w.steps ?? [];
|
|
103
|
+
if (steps.length) {
|
|
104
|
+
process.stdout.write("\n");
|
|
105
|
+
printTable(["#", "STEP", "KIND", "MODEL", "TOOLS"], steps.map((st, i) => {
|
|
106
|
+
const tools = (st.allowedTools ?? st.allowed_tools ?? st.tools);
|
|
107
|
+
return [
|
|
108
|
+
String(i + 1),
|
|
109
|
+
String(st.name ?? st.key ?? st.id ?? ""),
|
|
110
|
+
String(st.kind ?? st.type ?? ""),
|
|
111
|
+
String(st.model ?? ""),
|
|
112
|
+
Array.isArray(tools) ? String(tools.length) : "",
|
|
113
|
+
];
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
export function printWorkflowRuns(out) {
|
|
118
|
+
if (out.workflow)
|
|
119
|
+
process.stdout.write(`${out.workflow}${out.schedule ? ` (${out.schedule}${out.paused ? ", paused" : ""})` : ""}\n`);
|
|
120
|
+
const runs = out.runs ?? [];
|
|
121
|
+
if (runs.length === 0) {
|
|
122
|
+
process.stdout.write(`${out.note ?? "No runs yet."}\n`);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
printTable(["RUN", "STATUS", "TRIGGER", "STARTED", "DURATION", "RESULT"], runs.map((r) => [r.id, r.status, r.trigger ?? "", r.started ? age(r.started) : "", r.duration ?? "", clip(r.error ? `error: ${r.error}` : r.result, 60)]));
|
|
126
|
+
}
|
|
127
|
+
export function printRunStarted(out) {
|
|
128
|
+
if (out.run_id) {
|
|
129
|
+
process.stdout.write(`started ${out.workflow ?? "workflow"}: run ${out.run_id}\n`);
|
|
130
|
+
if (out.link)
|
|
131
|
+
process.stdout.write(`${out.link}\n`);
|
|
132
|
+
process.stdout.write(`check it with: heyditto workflows runs ${JSON.stringify(out.workflow ?? out.run_id)}\n`);
|
|
133
|
+
return 0;
|
|
134
|
+
}
|
|
135
|
+
process.stdout.write(`${JSON.stringify(out, null, 2)}\n`);
|
|
136
|
+
return 0;
|
|
137
|
+
}
|
|
138
|
+
export function printPaused(out) {
|
|
139
|
+
process.stdout.write(`${out.workflow ?? "workflow"}: ${out.state ?? "updated"}${out.schedule ? ` (${out.schedule})` : ""}\n`);
|
|
140
|
+
if (out.note)
|
|
141
|
+
process.stdout.write(`${out.note}\n`);
|
|
142
|
+
}
|
|
143
|
+
export const WORKFLOW_TOML_HELP = `
|
|
144
|
+
Workflow file (.ditto/workflows/<slug>.toml; snake_case, unknown keys fail):
|
|
145
|
+
managed = true # default true; false = skipped by repo apply
|
|
146
|
+
name = "Feedback triage" # required, 1-120 chars
|
|
147
|
+
slug = "feedback-triage" # default: file basename; ^[a-z0-9][a-z0-9-]{0,62}$
|
|
148
|
+
description = "..."
|
|
149
|
+
space = "omniaura/feedback-triager-51e1d2" # omit for personal; cannot change later
|
|
150
|
+
enabled = true # false = saved but paused
|
|
151
|
+
|
|
152
|
+
[schedule] # omit the table for manual-only
|
|
153
|
+
cron = "0 * * * *" # required in [schedule]
|
|
154
|
+
timezone = "UTC"
|
|
155
|
+
|
|
156
|
+
[[steps]] # 1-20 steps, run in order
|
|
157
|
+
key = "triage" # ^[a-z0-9_-]{1,40}$, unique
|
|
158
|
+
name = "Triage pending feedback"
|
|
159
|
+
kind = "agentic" # agentic (default) | script
|
|
160
|
+
goal_file = "prompts/feedback-triage.md" # OR goal = "..." (exactly one; <= 32 KiB)
|
|
161
|
+
# goal_file is relative to .ditto/ and must stay inside it
|
|
162
|
+
# script = "..." # kind = "script" only
|
|
163
|
+
model = "claude-sonnet-5-5"
|
|
164
|
+
allowed_tools = ["feedback_triage_pending", "feedback_triage_resolve"]
|
|
165
|
+
auto_approve_tools = ["feedback_triage_resolve"] # must be a subset of allowed_tools
|
|
166
|
+
timeout_seconds = 1500
|
|
167
|
+
max_tool_calls = 150
|
|
168
|
+
max_turns = 30
|
|
169
|
+
# budget_millicents = 50000
|
|
170
|
+
|
|
171
|
+
auto_approve_tools in a reviewed definition is the consent for unattended
|
|
172
|
+
runs. Credentials never belong in a workflow file: validation refuses
|
|
173
|
+
credential-named keys and token-shaped text in goals and scripts.`;
|
|
174
|
+
/** Registers `heyditto workflows list|get|runs|run|pause|resume|apply`. */
|
|
175
|
+
export function registerWorkflowCommands(program, addExamples, outputOption, callRendered) {
|
|
176
|
+
const workflows = program
|
|
177
|
+
.command("workflows")
|
|
178
|
+
.description("list, run, pause and apply Ditto workflows (also: .ditto/workflows/*.toml with heyditto repo apply)")
|
|
179
|
+
.summary("list, run and apply Ditto workflows");
|
|
180
|
+
addExamples(workflows
|
|
181
|
+
.command("list", { isDefault: true })
|
|
182
|
+
.description("list workflows: name, schedule, state and last run")
|
|
183
|
+
.addOption(spaceOption())
|
|
184
|
+
.addOption(outputOption())
|
|
185
|
+
.action(async (options) => {
|
|
186
|
+
await callRendered("list_workflows", options.space ? { space: options.space } : {}, options.output, printWorkflows);
|
|
187
|
+
}), ` heyditto workflows
|
|
188
|
+
heyditto workflows list --space omniaura/feedback-triager-51e1d2 --output json`);
|
|
189
|
+
addExamples(workflows
|
|
190
|
+
.command("get <workflow>")
|
|
191
|
+
.description("show one workflow (by id or name): steps, schedule and state")
|
|
192
|
+
.addOption(spaceOption())
|
|
193
|
+
.addOption(outputOption())
|
|
194
|
+
.action(async (ref, options) => {
|
|
195
|
+
await callRendered("get_workflow", workflowRef(ref, options.space), options.output, printWorkflow);
|
|
196
|
+
}), ` heyditto workflows get "Feedback triage"`);
|
|
197
|
+
addExamples(workflows
|
|
198
|
+
.command("runs <workflow>")
|
|
199
|
+
.description("list a workflow's recent runs, newest first")
|
|
200
|
+
.option("--limit <n>", "how many runs (1-20, default 5)")
|
|
201
|
+
.addOption(spaceOption())
|
|
202
|
+
.addOption(outputOption())
|
|
203
|
+
.action(async (ref, options) => {
|
|
204
|
+
const args = workflowRef(ref, options.space);
|
|
205
|
+
if (options.limit !== undefined) {
|
|
206
|
+
const n = /^\d+$/.test(options.limit) ? Number(options.limit) : Number.NaN;
|
|
207
|
+
if (!Number.isInteger(n) || n < 1 || n > 20)
|
|
208
|
+
throw new Error("--limit must be a whole number from 1 to 20");
|
|
209
|
+
args.limit = n;
|
|
210
|
+
}
|
|
211
|
+
await callRendered("list_workflow_runs", args, options.output, printWorkflowRuns);
|
|
212
|
+
}), ` heyditto workflows runs "Feedback triage" --limit 10`);
|
|
213
|
+
addExamples(workflows
|
|
214
|
+
.command("run <workflow>")
|
|
215
|
+
.description("start a workflow now in the background (bills normally)")
|
|
216
|
+
.option("--input <key=value>", "an input value (repeatable)", collect)
|
|
217
|
+
.option("--inputs-json <json>", "all inputs as one JSON object; --input values override it")
|
|
218
|
+
.addOption(spaceOption())
|
|
219
|
+
.addOption(outputOption())
|
|
220
|
+
.action(async (ref, options) => {
|
|
221
|
+
const args = workflowRef(ref, options.space);
|
|
222
|
+
const inputs = parseWorkflowInputs(options.input, options.inputsJson);
|
|
223
|
+
if (inputs)
|
|
224
|
+
args.inputs = inputs;
|
|
225
|
+
await callRendered("run_workflow", args, options.output, printRunStarted);
|
|
226
|
+
}), ` heyditto workflows run "Feedback triage"
|
|
227
|
+
heyditto workflows run digest --input topic=billing --input days=7`);
|
|
228
|
+
for (const [verb, paused] of [["pause", true], ["resume", false]]) {
|
|
229
|
+
addExamples(workflows
|
|
230
|
+
.command(`${verb} <workflow>`)
|
|
231
|
+
.description(paused ? "pause a workflow's schedule (and any in-progress run); run still works" : "resume a paused workflow's schedule")
|
|
232
|
+
.addOption(spaceOption())
|
|
233
|
+
.addOption(outputOption())
|
|
234
|
+
.action(async (ref, options) => {
|
|
235
|
+
await callRendered("set_workflow_paused", { ...workflowRef(ref, options.space), paused }, options.output, printPaused);
|
|
236
|
+
}), ` heyditto workflows ${verb} "Feedback triage"`);
|
|
237
|
+
}
|
|
238
|
+
addExamples(workflows
|
|
239
|
+
.command("apply <file>")
|
|
240
|
+
.description("create or update one workflow from a TOML file (idempotent, matched by slug)")
|
|
241
|
+
.option("--dry-run", "print what would change and write nothing")
|
|
242
|
+
.addOption(outputOption())
|
|
243
|
+
.action(async (file, options) => {
|
|
244
|
+
const abs = path.resolve(file);
|
|
245
|
+
let args;
|
|
246
|
+
let space;
|
|
247
|
+
let slug;
|
|
248
|
+
try {
|
|
249
|
+
const dittoDir = enclosingDittoDir(abs);
|
|
250
|
+
const decl = await parseWorkflowFile(abs, dittoDir);
|
|
251
|
+
if (decl.managed === false)
|
|
252
|
+
process.stderr.write(`note: ${file} has managed = false (repo apply skips it); applying because it was named explicitly\n`);
|
|
253
|
+
args = await workflowApplyArgs(decl, abs, dittoDir, !!options.dryRun);
|
|
254
|
+
space = decl.space;
|
|
255
|
+
slug = decl.slug;
|
|
256
|
+
}
|
|
257
|
+
catch (e) {
|
|
258
|
+
if (!(e instanceof DittoConfigError))
|
|
259
|
+
throw e;
|
|
260
|
+
process.stderr.write(`${e.message}\n`);
|
|
261
|
+
process.exitCode = 1;
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
await callRendered("apply_workflow", args, options.output, (r) => {
|
|
265
|
+
for (const line of formatWorkflowPlan(slug, space, r, !!options.dryRun))
|
|
266
|
+
process.stdout.write(`${line}\n`);
|
|
267
|
+
if (r.status && r.status !== "planned" && r.status !== "unchanged")
|
|
268
|
+
process.stdout.write(`${r.status}${r.link ? `: ${r.link}` : ""}\n`);
|
|
269
|
+
});
|
|
270
|
+
}), ` heyditto workflows apply .ditto/workflows/feedback-triage.toml --dry-run
|
|
271
|
+
heyditto workflows apply .ditto/workflows/feedback-triage.toml
|
|
272
|
+
${WORKFLOW_TOML_HELP}`);
|
|
273
|
+
}
|
|
274
|
+
//# sourceMappingURL=workflow-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-commands.js","sourceRoot":"","sources":["../src/workflow-commands.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAgB,MAAM,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAA4B,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAUnJ,MAAM,OAAO,GAAG,iEAAiE,CAAC;AAElF,+HAA+H;AAC/H,MAAM,UAAU,WAAW,CAAC,GAAW,EAAE,KAAc;IACrD,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IACrB,MAAM,IAAI,GAA4B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IACzF,IAAI,KAAK;QAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAC9B,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,WAAW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