recess-cli 3.9.0 → 3.11.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/api.js CHANGED
@@ -7,6 +7,10 @@ const idempotencyContext = new AsyncLocalStorage();
7
7
  export function withIdempotencyContext(context, execute) {
8
8
  return idempotencyContext.run(context, execute);
9
9
  }
10
+ /** The approved operation key while a confirmed write executes. */
11
+ export function currentOperationKey() {
12
+ return idempotencyContext.getStore()?.operationKey;
13
+ }
10
14
  function applyIdempotencyHeaders(headers) {
11
15
  const context = idempotencyContext.getStore();
12
16
  if (!context)
package/dist/args.js CHANGED
@@ -10,38 +10,70 @@ export const REPEATABLE_FLAGS = new Set([
10
10
  "note",
11
11
  "unassign",
12
12
  ]);
13
- const BOOLEAN_FLAGS = new Set([
14
- "clear",
15
- "zero-balance",
16
- "allow-assigned-edits",
13
+ /**
14
+ * Every flag that never takes a value — the ONE list. The parser must know it
15
+ * (otherwise `--whole-family u1` swallows `u1` as the flag's value) and the
16
+ * command schema types flags from it, so `command-schema.ts` imports this.
17
+ */
18
+ export const BOOLEAN_FLAGS = new Set([
19
+ "all",
17
20
  "all-references",
21
+ "allow-assigned-edits",
22
+ "allow-billing",
23
+ "allow-possible-duplicate",
24
+ "allow-state-modification",
18
25
  "allow-strand",
19
- "cancel-subscriptions",
26
+ "analyzed",
27
+ "apply",
20
28
  "archived",
21
- "confirm-destructive-changes",
29
+ "cancel-subscriptions",
30
+ "clear",
31
+ "clear-focus",
32
+ "clear-send-hour",
22
33
  "confirm",
23
- "dry-run",
34
+ "confirm-destructive-changes",
24
35
  "disable-applet-follow-ups",
36
+ "dry-run",
25
37
  "enable-applet-follow-ups",
38
+ "esa-award-unknown",
39
+ "even-installments",
40
+ "force",
41
+ "force-direct",
26
42
  "full",
27
43
  "help",
28
44
  "immediate",
29
- "include-deleted",
30
45
  "include-archived",
46
+ "include-deleted",
47
+ "include-left",
48
+ "json",
49
+ "keep-tokens",
31
50
  "mirrored",
32
- "no-invite",
33
51
  "no-collision",
34
- "json",
52
+ "no-invite",
53
+ "no-join",
54
+ "no-json",
55
+ "no-wait",
56
+ "open",
57
+ "pretty",
35
58
  "refresh",
59
+ "replace-description-pointer",
60
+ "resend",
36
61
  "restore",
37
62
  "revoke",
63
+ "scaffold",
38
64
  "send-email",
39
65
  "skill-only",
40
66
  "spec-only",
67
+ "staff-only",
41
68
  "starter-only",
69
+ "state-funding",
70
+ "supersede",
71
+ "to-end",
42
72
  "unlink",
43
73
  "visual-only",
44
74
  "wait",
75
+ "whole-family",
76
+ "zero-balance",
45
77
  ]);
46
78
  export function parseArgs(args) {
47
79
  const positionals = [];