@cavelon/cli 0.1.4 → 0.1.6
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 +58 -22
- package/dist/choose.js +8 -4
- package/dist/code-hints.js +74 -0
- package/dist/commands/api.js +83 -44
- package/dist/commands/async.js +26 -5
- package/dist/commands/chat.js +177 -0
- package/dist/commands/docs.js +240 -37
- package/dist/commands/fmt.js +120 -0
- package/dist/commands/index.js +9 -1
- package/dist/commands/init.js +64 -30
- package/dist/commands/inventory.js +48 -5
- package/dist/commands/limits-set.js +9 -6
- package/dist/commands/loops.js +15 -9
- package/dist/commands/models.js +16 -7
- package/dist/commands/sandboxes.js +8 -4
- package/dist/commands/schema.js +361 -0
- package/dist/commands/session.js +148 -24
- package/dist/commands/setup.js +22 -6
- package/dist/commands/solution.js +537 -76
- package/dist/commands/tenants.js +156 -15
- package/dist/commands/values.js +18 -9
- package/dist/commands/work.js +343 -35
- package/dist/confirm-token.js +72 -0
- package/dist/contracts.js +3 -0
- package/dist/default-route.js +21 -0
- package/dist/errors.js +4 -0
- package/dist/git.js +14 -5
- package/dist/harness-ref.js +14 -1
- package/dist/http.js +27 -4
- package/dist/invoke.js +8 -4
- package/dist/kit-codes.js +91 -0
- package/dist/limits.js +12 -1
- package/dist/local-state.js +32 -7
- package/dist/main.js +52 -4
- package/dist/mcp.js +72 -15
- package/dist/openapi.js +77 -21
- package/dist/operations.js +4 -3
- package/dist/package-check.js +361 -12
- package/dist/package-files.js +92 -45
- package/dist/package-format.js +222 -0
- package/dist/package-references.js +298 -0
- package/dist/preview-report.js +152 -0
- package/dist/results.js +21 -1
- package/dist/skills/cavelon-authoring/SKILL.md +98 -13
- package/dist/skills/cavelon-long-running/SKILL.md +3 -1
- package/dist/skills/cavelon-loop/SKILL.md +129 -21
- package/dist/skills/cavelon-testing/SKILL.md +130 -10
- package/dist/tenant-choice.js +31 -5
- package/dist/trace-view.js +172 -0
- package/package.json +1 -1
package/dist/commands/tenants.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { boolOption, CURSOR_OPTION, intOption, LIMIT_OPTION, pageOf, positional, stringOption, } from "../command.js";
|
|
2
2
|
import { CavelonError, ExitCode, usageError } from "../errors.js";
|
|
3
|
+
import { confirmation, confirmTokenRequired } from "../confirm-token.js";
|
|
3
4
|
import { keyValues, moreHint, table } from "../format.js";
|
|
4
5
|
import { callStable } from "../invoke.js";
|
|
5
6
|
import { formatQuota, limitError, limitsOrWarn, readQuotas } from "../limits.js";
|
|
6
7
|
import { containing } from "../choose.js";
|
|
7
|
-
import { readTenantless } from "../principal.js";
|
|
8
|
+
import { readPrincipal, readTenantless } from "../principal.js";
|
|
8
9
|
import { requireInstance } from "../session.js";
|
|
9
10
|
import { listsTenants, searchTenants } from "../tenant-choice.js";
|
|
10
|
-
import { resolveHarnessId } from "../harness-ref.js";
|
|
11
|
+
import { harnessNotFoundError, lookupHarness, resolveHarnessId } from "../harness-ref.js";
|
|
12
|
+
import { defaultChangeLine, defaultCommands, named, readDefaultRoute, setDefaultRoute } from "../default-route.js";
|
|
11
13
|
import { cavelonCommand } from "../shell.js";
|
|
12
14
|
import { rememberTenant } from "./session.js";
|
|
13
15
|
function idempotency(key) {
|
|
@@ -18,17 +20,72 @@ const IDEMPOTENCY_OPTION = {
|
|
|
18
20
|
value: "<key>",
|
|
19
21
|
description: "Send an Idempotency-Key, so a retry does not create a second one.",
|
|
20
22
|
};
|
|
23
|
+
const TENANTS_MANAGE = "tenants.manage";
|
|
24
|
+
const CREATE_TENANT_REMEDY = "Create a personal access token with Allow Platform mode and a platform ceiling on /account/access-tokens " +
|
|
25
|
+
`(its owner needs ${TENANTS_MANAGE}) and run \`cavelon login\` with it, or create the tenant in the Admin (Platform › Tenants).`;
|
|
26
|
+
function checkCanCreateTenant(principal) {
|
|
27
|
+
const token = principal?.token;
|
|
28
|
+
if (!token)
|
|
29
|
+
return;
|
|
30
|
+
const ceiling = token.ceiling_role ? ` (ceiling ${token.ceiling_role})` : "";
|
|
31
|
+
if (token.platform_mode_allowed === false) {
|
|
32
|
+
throw new CavelonError(ExitCode.unauthorized, {
|
|
33
|
+
code: "platform_mode_not_allowed",
|
|
34
|
+
message: `The personal access token "${token.name}" may not enter Platform mode${ceiling}, and creating a tenant needs Platform mode ` +
|
|
35
|
+
`with ${TENANTS_MANAGE}, so nothing was sent.`,
|
|
36
|
+
hint: CREATE_TENANT_REMEDY,
|
|
37
|
+
details: { platform_mode_allowed: false, ceiling_role: token.ceiling_role ?? null, sent: false },
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (principal.mode === "platform" && principal.permissions && !principal.permissions.includes(TENANTS_MANAGE)) {
|
|
41
|
+
throw new CavelonError(ExitCode.unauthorized, {
|
|
42
|
+
code: "permission_missing",
|
|
43
|
+
message: `The personal access token "${token.name}" enters Platform mode${ceiling}, but without ${TENANTS_MANAGE}, so it cannot create a tenant; nothing was sent.`,
|
|
44
|
+
hint: `A token whose ceiling and owner's global role grant ${TENANTS_MANAGE} can; or create the tenant in the Admin (Platform › Tenants).`,
|
|
45
|
+
details: { permission: TENANTS_MANAGE, ceiling_role: token.ceiling_role ?? null, sent: false },
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
const outside = principal.mode !== "platform" && (principal.permissions ? !principal.permissions.includes(TENANTS_MANAGE) : principal.mode === "none");
|
|
49
|
+
if (token.platform_mode_allowed === true && outside) {
|
|
50
|
+
throw new CavelonError(ExitCode.unauthorized, {
|
|
51
|
+
code: "permission_missing",
|
|
52
|
+
message: `The personal access token "${token.name}" may enter Platform mode, but its ceiling${token.ceiling_role ? ` ${token.ceiling_role}` : ""} gives it no ` +
|
|
53
|
+
`role there with ${TENANTS_MANAGE} (asked without a tenant, the instance answers it ${principal.mode === "none" ? "in no mode" : "in a tenant"}), ` +
|
|
54
|
+
"so it cannot create a tenant; nothing was sent.",
|
|
55
|
+
hint: CREATE_TENANT_REMEDY,
|
|
56
|
+
details: { permission: TENANTS_MANAGE, ceiling_role: token.ceiling_role ?? null, mode: principal.mode, sent: false },
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
async function entersTenant(client, tenantId) {
|
|
61
|
+
const before = client.target.tenantId;
|
|
62
|
+
client.target.tenantId = tenantId;
|
|
63
|
+
try {
|
|
64
|
+
const response = await client.get("/api/v1/meta/principal", { allow: [400, 403, 404, 405] });
|
|
65
|
+
if (response.status === 404 || response.status === 405)
|
|
66
|
+
return undefined;
|
|
67
|
+
if (response.status === 200)
|
|
68
|
+
return { ok: response.data?.tenant_id === undefined || response.data.tenant_id === tenantId };
|
|
69
|
+
const detail = response.data?.detail;
|
|
70
|
+
return { ok: false, said: typeof detail === "string" && detail ? detail : `${response.status}` };
|
|
71
|
+
}
|
|
72
|
+
finally {
|
|
73
|
+
client.target.tenantId = before;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
21
76
|
export const tenantCreate = {
|
|
22
77
|
name: "tenant create",
|
|
23
78
|
summary: "Create a tenant (personal access token in Platform mode with tenants.manage).",
|
|
24
|
-
description: "A tenant API key never can.
|
|
79
|
+
description: "A tenant API key never can. Before sending, the token is checked: one that may not enter Platform mode, or enters it\n" +
|
|
80
|
+
"without tenants.manage, is refused with exit 7 and nothing is sent. With --use, the new tenant is chosen only once the\n" +
|
|
81
|
+
"instance confirms the token acts in it. Inviting people and assigning roles stay in the Admin.",
|
|
25
82
|
readOnly: false,
|
|
26
83
|
mcpTool: "tenant_create",
|
|
27
84
|
positionals: [{ name: "slug", description: "Lower-case letters, digits and dashes.", required: true }],
|
|
28
85
|
options: {
|
|
29
86
|
name: { type: "string", value: "<name>", description: "Display name (default: the slug)." },
|
|
30
87
|
plan: { type: "string", value: "<plan>", description: "Licence plan, when the instance knows several." },
|
|
31
|
-
use: { type: "boolean", description: "Switch to the new tenant afterwards (`cavelon use`)." },
|
|
88
|
+
use: { type: "boolean", description: "Switch to the new tenant afterwards (`cavelon use`), once the token is known to act in it." },
|
|
32
89
|
"idempotency-key": IDEMPOTENCY_OPTION,
|
|
33
90
|
},
|
|
34
91
|
async run(ctx, input) {
|
|
@@ -40,6 +97,8 @@ export const tenantCreate = {
|
|
|
40
97
|
hint: "Use a personal access token that allows Platform mode, owned by someone with tenants.manage.",
|
|
41
98
|
});
|
|
42
99
|
}
|
|
100
|
+
const client = await ctx.client({ tenant: false });
|
|
101
|
+
checkCanCreateTenant(await readPrincipal(client, { sendTenant: false }));
|
|
43
102
|
const slug = positional(input, "slug");
|
|
44
103
|
const body = { slug, name: stringOption(input, "name") ?? slug };
|
|
45
104
|
const plan = stringOption(input, "plan");
|
|
@@ -50,12 +109,18 @@ export const tenantCreate = {
|
|
|
50
109
|
sendTenant: false,
|
|
51
110
|
headers: idempotency(stringOption(input, "idempotency-key")),
|
|
52
111
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
112
|
+
const created = `Created tenant ${tenant.name} (${tenant.slug}, ${tenant.id}).`;
|
|
113
|
+
if (!boolOption(input, "use"))
|
|
114
|
+
return { data: tenant, text: `${created} Switch with: ${cavelonCommand("use", tenant.slug)}` };
|
|
115
|
+
const enters = await entersTenant(client, tenant.id);
|
|
116
|
+
if (enters && !enters.ok) {
|
|
117
|
+
ctx.warn(`This token does not act in the new tenant${enters.said ? ` (the instance said: ${enters.said})` : ""}, so the tenant chosen before stays. ` +
|
|
118
|
+
"A token that reaches the new tenant (an operator's token that reaches every tenant, or one that lists it) can switch with " +
|
|
119
|
+
`\`${cavelonCommand("use", tenant.slug)}\`.`);
|
|
120
|
+
return { data: { ...tenant, used: false }, text: `${created} Not switched: this token does not act in it.` };
|
|
121
|
+
}
|
|
122
|
+
await rememberTenant(ctx, requireInstance(session), { ref: tenant.slug, id: tenant.id, name: tenant.name });
|
|
123
|
+
return { data: { ...tenant, used: true }, text: `${created} Now using it.` };
|
|
59
124
|
},
|
|
60
125
|
};
|
|
61
126
|
export const tenantList = {
|
|
@@ -105,7 +170,11 @@ export const tenantList = {
|
|
|
105
170
|
const all = found.map((t) => ({ id: t.id, slug: t.slug, name: t.name, role: t.role, is_default: t.is_default }));
|
|
106
171
|
page = { ...pageOf(all, limit, cursor), source: "token", reaches_all_tenants: reach.reachesAll };
|
|
107
172
|
if (reach.reachesAll && !search) {
|
|
108
|
-
|
|
173
|
+
page.listed = "own_memberships";
|
|
174
|
+
page.note = "This token reaches every tenant; items and total count only your own memberships. Find any tenant with --search <part of the name>.";
|
|
175
|
+
note = all.length
|
|
176
|
+
? `\nThese are your own memberships; this token reaches every tenant on ${client.url}. Find any other: cavelon tenant list --search <part of the name>`
|
|
177
|
+
: `No memberships of your own; this token reaches every tenant on ${client.url}. Find any tenant with: cavelon tenant list --search <part of the name>`;
|
|
109
178
|
}
|
|
110
179
|
}
|
|
111
180
|
else {
|
|
@@ -127,7 +196,9 @@ export const tenantList = {
|
|
|
127
196
|
};
|
|
128
197
|
export const harnessList = {
|
|
129
198
|
name: "harness list",
|
|
130
|
-
summary: "List the tenant's solutions (harnesses).",
|
|
199
|
+
summary: "List the tenant's solutions (harnesses), marking the default route.",
|
|
200
|
+
description: "DEFAULT marks the tenant's default route: the solution that answers where a conversation names none (the tenant's chat\n" +
|
|
201
|
+
"and widget). An instance that does not say which one it is leaves the column out; `is_default` in --json is null then.",
|
|
131
202
|
readOnly: true,
|
|
132
203
|
idempotent: true,
|
|
133
204
|
mcpTool: "harness_list",
|
|
@@ -141,18 +212,88 @@ export const harnessList = {
|
|
|
141
212
|
query: { include_readiness: boolOption(input, "readiness") ? true : undefined },
|
|
142
213
|
});
|
|
143
214
|
const limit = intOption(input, "limit", { min: 1, max: 500, fallback: 50 });
|
|
215
|
+
const marksDefault = harnesses.some((h) => typeof h.is_default === "boolean");
|
|
144
216
|
const page = pageOf(harnesses.map((h) => ({
|
|
145
217
|
id: h.id,
|
|
146
218
|
slug: h.slug,
|
|
147
219
|
name: h.name,
|
|
148
220
|
status: h.status,
|
|
149
|
-
is_default: h.is_default
|
|
221
|
+
is_default: marksDefault ? h.is_default === true : null,
|
|
150
222
|
...(h.readiness ? { ready_to_activate: h.readiness.ready_to_activate ?? null } : {}),
|
|
151
223
|
})), limit, stringOption(input, "cursor"));
|
|
152
|
-
const
|
|
224
|
+
const rows = page.items.map((h) => ({ ...h, default: h.is_default ? "yes" : "" }));
|
|
225
|
+
const columns = ["slug", "name", "status", ...(marksDefault ? ["default"] : []), ...(boolOption(input, "readiness") ? ["ready_to_activate"] : []), "id"];
|
|
153
226
|
return {
|
|
154
227
|
data: page,
|
|
155
|
-
text: (table(
|
|
228
|
+
text: (table(rows, columns) || "No solutions yet. Create one: cavelon harness new <slug>") + moreHint(page.next_cursor, "cavelon harness list"),
|
|
229
|
+
};
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
export const harnessDefault = {
|
|
233
|
+
name: "harness default",
|
|
234
|
+
summary: "Make a solution the tenant's default route; previews first, --confirm changes it.",
|
|
235
|
+
description: "The default route is the solution that answers where a conversation names none: the tenant's chat and widget. A new\n" +
|
|
236
|
+
"tenant's default is an empty `default` solution, so a solution built beside it answers nobody there until it becomes the\n" +
|
|
237
|
+
"default. Without --confirm nothing changes: the preview names the current default and the one that would replace it.\n" +
|
|
238
|
+
"This changes live traffic, so show the preview to a person and confirm only with their yes. `is_default` in\n" +
|
|
239
|
+
"harnesses.yaml is not applied by `apply`; this is the way to set it.",
|
|
240
|
+
readOnly: false,
|
|
241
|
+
idempotent: true,
|
|
242
|
+
mcpTool: "harness_default",
|
|
243
|
+
positionals: [{ name: "solution", description: "Name, slug or id of the solution; default: cavelon.yaml's harness." }],
|
|
244
|
+
options: {
|
|
245
|
+
confirm: { type: "boolean", mcpToken: true, description: "Change the default route (after a person saw the preview)." },
|
|
246
|
+
},
|
|
247
|
+
examples: ["cavelon harness default support", "cavelon harness default support --confirm"],
|
|
248
|
+
async run(ctx, input) {
|
|
249
|
+
const session = await ctx.session();
|
|
250
|
+
const ref = positional(input, "solution") ?? session.envFile?.harness ?? session.project?.harness;
|
|
251
|
+
if (!ref)
|
|
252
|
+
throw usageError("Which solution?", "Pass its name or slug (`cavelon harness list` shows them), or run it in a folder whose cavelon.yaml names one.");
|
|
253
|
+
if (ctx.mode === "mcp" && input.options.confirm === true)
|
|
254
|
+
throw confirmTokenRequired("harness_default");
|
|
255
|
+
const { harness, candidates } = await lookupHarness(ctx, ref);
|
|
256
|
+
if (!harness)
|
|
257
|
+
throw harnessNotFoundError(ref, candidates, undefined, (slug) => cavelonCommand("harness", "default", slug));
|
|
258
|
+
const route = await readDefaultRoute(ctx);
|
|
259
|
+
const target = { id: harness.id, slug: harness.slug, name: harness.name, status: harness.status };
|
|
260
|
+
const current = route.current ? { id: route.current.id, slug: route.current.slug, name: route.current.name } : null;
|
|
261
|
+
if (route.current?.id === harness.id) {
|
|
262
|
+
return { data: { changed: false, already_default: true, harness: target, default_route: current }, text: `${named(harness)} is already the tenant's default route.` };
|
|
263
|
+
}
|
|
264
|
+
const commands = defaultCommands(harness.slug);
|
|
265
|
+
if (harness.status !== "active") {
|
|
266
|
+
throw new CavelonError(ExitCode.conflict, {
|
|
267
|
+
code: "solution_not_active",
|
|
268
|
+
message: `${named(harness)} is ${harness.status}, and only an active solution can be the tenant's default route; nothing was changed.`,
|
|
269
|
+
hint: `Activate it through the readiness gate and preview the default route in one step: ${cavelonCommand("activate", "--harness", harness.slug, "--make-default")}. ` +
|
|
270
|
+
`The default route stays ${current ? named(current) : "as it is"} until then.`,
|
|
271
|
+
details: { harness: target, default_route: current },
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
const gate = await confirmation(ctx, input, "harness_default", { harness: harness.id, from: current?.id ?? null });
|
|
275
|
+
if (!gate.confirmed) {
|
|
276
|
+
return {
|
|
277
|
+
data: {
|
|
278
|
+
changed: false,
|
|
279
|
+
harness: target,
|
|
280
|
+
default_route: current,
|
|
281
|
+
default_known: route.known,
|
|
282
|
+
confirm: gate.confirm(commands.confirm),
|
|
283
|
+
...gate.fields,
|
|
284
|
+
},
|
|
285
|
+
text: [
|
|
286
|
+
defaultChangeLine(harness, route),
|
|
287
|
+
...(gate.mismatch ? [gate.mismatch] : []),
|
|
288
|
+
`Show this to a person; with their yes: ${gate.confirm(commands.confirm)}`,
|
|
289
|
+
].join("\n"),
|
|
290
|
+
...(gate.exitCode ? { exitCode: gate.exitCode } : {}),
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
const updated = await setDefaultRoute(ctx, harness.id);
|
|
294
|
+
return {
|
|
295
|
+
data: { changed: true, harness: { ...target, status: updated?.status ?? target.status }, previous_default: current },
|
|
296
|
+
text: `Default route: ${named(harness)}${current ? ` (was ${named(current)})` : ""}.`,
|
|
156
297
|
};
|
|
157
298
|
},
|
|
158
299
|
};
|
package/dist/commands/values.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { boolOption, CURSOR_OPTION, intOption, LIMIT_OPTION, pageOf, positional, stringOption, } from "../command.js";
|
|
2
|
+
import { confirmation } from "../confirm-token.js";
|
|
2
3
|
import { CavelonError, ExitCode, usageError, validationError } from "../errors.js";
|
|
3
4
|
import { clip, keyValues, moreHint, table } from "../format.js";
|
|
4
5
|
import { callStable, workflowOperation } from "../invoke.js";
|
|
@@ -9,7 +10,11 @@ import { readHidden } from "../prompt.js";
|
|
|
9
10
|
import { requireToken } from "../session.js";
|
|
10
11
|
import { shellWord } from "../shell.js";
|
|
11
12
|
export const ENV_OPTION = { type: "string", value: "<name>", description: "Act in the tenant that env/<name>.yaml names." };
|
|
12
|
-
const CONFIRM_OPTION = {
|
|
13
|
+
const CONFIRM_OPTION = {
|
|
14
|
+
type: "boolean",
|
|
15
|
+
mcpToken: true,
|
|
16
|
+
description: "Delete it; without this nothing is deleted. Run by a coding agent: the token its preview printed.",
|
|
17
|
+
};
|
|
13
18
|
const TOKEN_PREFIXES = ["cbp_", "cvpat_"];
|
|
14
19
|
const LIST_VALUE_CHARS = 200;
|
|
15
20
|
export function targetFlags(session, env = session.envFile?.name) {
|
|
@@ -171,11 +176,13 @@ export const variablesDelete = {
|
|
|
171
176
|
const current = await readVariable(ctx, name);
|
|
172
177
|
if (!current)
|
|
173
178
|
return { data: { name, deleted: false, existed: false }, text: `This tenant has no variable "${name}"; nothing to delete.` };
|
|
174
|
-
|
|
175
|
-
|
|
179
|
+
const gate = await confirmation(ctx, input, "variables_delete", { name, value: current.value });
|
|
180
|
+
if (!gate.confirmed) {
|
|
181
|
+
const confirm = gate.confirm(`cavelon variables delete ${shellWord(name)}${flags} --confirm`);
|
|
176
182
|
return {
|
|
177
|
-
data: { name, deleted: false, existed: true, value: current.value, confirm },
|
|
178
|
-
text: `Variable ${name} = ${JSON.stringify(clip(current.value, LIST_VALUE_CHARS))}.\
|
|
183
|
+
data: { name, deleted: false, existed: true, value: current.value, confirm, ...gate.fields },
|
|
184
|
+
text: `Variable ${name} = ${JSON.stringify(clip(current.value, LIST_VALUE_CHARS))}.\n${gate.mismatch ? `${gate.mismatch}\n` : ""}Nothing was deleted. Delete it with: ${confirm}`,
|
|
185
|
+
...(gate.exitCode ? { exitCode: gate.exitCode } : {}),
|
|
179
186
|
};
|
|
180
187
|
}
|
|
181
188
|
try {
|
|
@@ -363,11 +370,13 @@ export const secretsDelete = {
|
|
|
363
370
|
const nothing = { data: { ...current, deleted: false }, text: `Secret ${name} has no value; nothing to delete.` };
|
|
364
371
|
if (current.status !== "set")
|
|
365
372
|
return nothing;
|
|
366
|
-
|
|
367
|
-
|
|
373
|
+
const gate = await confirmation(ctx, input, "secrets_delete", { name, changed_at: current.changed_at ?? null });
|
|
374
|
+
if (!gate.confirmed) {
|
|
375
|
+
const confirm = gate.confirm(`cavelon secrets delete ${shellWord(name)}${flags} --confirm`);
|
|
368
376
|
return {
|
|
369
|
-
data: { ...current, deleted: false, confirm },
|
|
370
|
-
text: `Secret ${name} is set${changedNote(current.changed_at)}.\
|
|
377
|
+
data: { ...current, deleted: false, confirm, ...gate.fields },
|
|
378
|
+
text: `Secret ${name} is set${changedNote(current.changed_at)}.\n${gate.mismatch ? `${gate.mismatch}\n` : ""}Nothing was deleted. Delete it with: ${confirm}`,
|
|
379
|
+
...(gate.exitCode ? { exitCode: gate.exitCode } : {}),
|
|
371
380
|
};
|
|
372
381
|
}
|
|
373
382
|
try {
|