@crossworks/client-types 0.232.235 → 0.232.241

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/client-types",
3
- "version": "0.232.235",
3
+ "version": "0.232.241",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -15,6 +15,17 @@ export type TaskKind =
15
15
  | 'backfill';
16
16
  export type TaskStatus = 'live' | 'retired';
17
17
 
18
+ /** A value the UI runner asks for and passes to the script as
19
+ * `--<name>=<value>`: the agent a dry run works on, the review page an apply
20
+ * reads. `for` says which run needs it. */
21
+ export interface MaintenanceArg {
22
+ name: string;
23
+ /** What the value is, so the UI can offer the right picker. */
24
+ kind: 'agent' | 'page';
25
+ label: string;
26
+ for: 'dry' | 'apply';
27
+ }
28
+
18
29
  export interface MaintenanceTaskInfo {
19
30
  slug: string;
20
31
  title: string;
@@ -27,6 +38,10 @@ export interface MaintenanceTaskInfo {
27
38
  supportsDryRun: boolean;
28
39
  /** False when the task needs positional args (backups' destDir) — CLI only. */
29
40
  uiRunnable: boolean;
41
+ /** Values the UI must collect before a run (see MaintenanceArg). */
42
+ args?: MaintenanceArg[];
43
+ /** What a DRY run spends when it is not free: the UI asks to confirm it. */
44
+ dryRunCost?: TaskCost;
30
45
  /** Env vars from requiresEnv that are NOT set on the server, if any. */
31
46
  missingEnv: string[];
32
47
  notes?: string;
@@ -71,8 +86,11 @@ export interface StartRunRequest {
71
86
  slug: string;
72
87
  /** Live run (maps to the script's own apply flag / omits its dry-run flag). */
73
88
  apply: boolean;
74
- /** Required acknowledgement for live runs of llm/embedding-cost tasks. */
89
+ /** Required acknowledgement for any run that spends llm/embedding calls
90
+ * (live runs of such tasks, and dry runs with a costly dryRunCost). */
75
91
  confirmSpend?: boolean;
92
+ /** Values for the task's `args`, keyed by MaintenanceArg.name. */
93
+ args?: Record<string, string>;
76
94
  /** Required acknowledgement for retired backfills. */
77
95
  forceRetired?: boolean;
78
96
  }