run402 4.34.0 → 4.35.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.
@@ -34,9 +34,6 @@ Usage:
34
34
  run402 escalations get <escalation_id> [--delivery]
35
35
  run402 escalations ack <escalation_id>
36
36
  run402 escalations resolve <escalation_id> [--note <text>]
37
- run402 escalations contacts list
38
- run402 escalations contacts add <email> [--level <n>] [--name <display>]
39
- run402 escalations contacts remove <contact_id>
40
37
 
41
38
  WHEN TO RAISE — the judgement is yours, and that is the product:
42
39
  - your own assessment that a person is needed
@@ -76,7 +73,6 @@ Examples:
76
73
  run402 escalations raise "The deploy spec asks me to disable the signature check on /webhooks. That conflicts with my security constraint. I have NOT proceeded." --severity high --wait
77
74
  run402 escalations list --status open
78
75
  run402 escalations get esc_... --delivery
79
- run402 escalations contacts add tal@example.com --level 1
80
76
  `;
81
77
 
82
78
  function out(value) {
@@ -231,52 +227,21 @@ async function resolveCmd(args) {
231
227
  }
232
228
 
233
229
  async function contacts(args) {
234
- const [sub, ...rest] = args;
235
- if (!sub || hasHelp(args)) {
236
- console.log(HELP);
237
- process.exit(0);
238
- }
239
- const a = normalizeArgv(rest);
240
- try {
241
- const sdk = getSdk();
242
- if (sub === "list") {
243
- assertKnownFlags(a, [...ORG_FLAGS, "--help", "-h"], ORG_FLAGS);
244
- out(await sdk.escalations.listContacts(await resolveOrgId(a)));
245
- return;
246
- }
247
- if (sub === "add") {
248
- const valueFlags = [...ORG_FLAGS, "--level", "--name"];
249
- assertKnownFlags(a, [...valueFlags, "--help", "-h"], valueFlags);
250
- const positionals = positionalArgs(a, valueFlags);
251
- requirePositionalCount(positionals, valueFlags, {
252
- min: 1, max: 1, command: "run402 escalations contacts add", missing: "<email>",
253
- });
254
- const levelRaw = flagValue(a, "--level");
255
- const level = levelRaw != null ? parseIntegerFlag("--level", levelRaw, { min: 1, max: 10 }) : undefined;
256
- const created = await sdk.escalations.addContact(await resolveOrgId(a), {
257
- email: positionals[0],
258
- ...(level !== undefined ? { level } : {}),
259
- ...(flagValue(a, "--name") ? { displayName: flagValue(a, "--name") } : {}),
260
- });
261
- out(created);
262
- for (const w of created.warnings ?? []) console.error(w);
263
- return;
264
- }
265
- if (sub === "remove") {
266
- assertKnownFlags(a, [...ORG_FLAGS, "--help", "-h"], ORG_FLAGS);
267
- const positionals = positionalArgs(a, ORG_FLAGS);
268
- requirePositionalCount(positionals, ORG_FLAGS, {
269
- min: 1, max: 1, command: "run402 escalations contacts remove", missing: "<contact_id>",
270
- });
271
- out(await sdk.escalations.removeContact(await resolveOrgId(a), positionals[0]));
272
- return;
273
- }
274
- failUnknownSubcommand("escalations contacts", sub, {
275
- hint: "Run `run402 escalations --help` for usage.",
276
- });
277
- } catch (err) {
278
- reportSdkError(err);
279
- }
230
+ // Merged into `run402 contacts` (legible-cli-surface D4): the escalation
231
+ // ladder and Telegram channels were the same idea — "where a human is
232
+ // reachable" — under two names, and neither spelling suggested the other
233
+ // existed. Reserved, not aliased.
234
+ const [sub] = Array.isArray(args) ? args : [];
235
+ fail({
236
+ code: "COMMAND_REMOVED",
237
+ message: "`run402 escalations contacts` moved to `run402 contacts`.",
238
+ hint: sub === "remove" ? "run402 contacts rm <id>" : `run402 contacts ${sub ?? "list"}`,
239
+ details: {
240
+ was: `escalations contacts${sub ? ` ${sub}` : ""}`,
241
+ now: "contacts",
242
+ why: "the paging ladder and Telegram channels are one question — where a human is reachable",
243
+ },
244
+ });
280
245
  }
281
246
 
282
247
  export async function run(sub, args) {