projectops 4.104.6 → 4.104.8
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 +1 -1
- package/bin/projectops.js +4 -4
- package/package.json +1 -1
- package/src/cli/args.js +43 -43
- package/src/cli/errors.js +8 -8
- package/src/cli/help.js +4 -4
- package/src/commands/doctor.js +39 -39
- package/src/commands/full.js +29 -29
- package/src/commands/interactive.js +86 -86
- package/src/commands/issues.js +5 -5
- package/src/commands/skills.js +13 -13
- package/src/commands/version.js +8 -8
- package/src/commands/workflows.js +23 -22
- package/src/context.js +24 -24
- package/src/core/agent-guide.js +5 -5
- package/src/core/assets.js +11 -11
- package/src/core/baseline.js +24 -24
- package/src/core/branch-sub.js +23 -23
- package/src/core/breaking-check.js +21 -21
- package/src/core/breaking.js +6 -6
- package/src/core/ci-minutes-sub.js +13 -13
- package/src/core/constants.js +17 -17
- package/src/core/copy/coderabbit.js +10 -10
- package/src/core/copy/gitignore.js +9 -9
- package/src/core/copy/readme.js +7 -7
- package/src/core/copy/simple.js +35 -35
- package/src/core/copy/util.js +9 -9
- package/src/core/copy/workflows.js +99 -99
- package/src/core/detect-fs.js +21 -21
- package/src/core/detect.js +12 -12
- package/src/core/development-branch.js +11 -11
- package/src/core/exclusions.js +12 -12
- package/src/core/fsutil.js +9 -9
- package/src/core/git-branch.js +11 -11
- package/src/core/ide/adapter.js +23 -23
- package/src/core/ide/adapters/claude.js +12 -12
- package/src/core/ide/adapters/codex.js +4 -4
- package/src/core/ide/adapters/copilot.js +12 -12
- package/src/core/ide/adapters/cursor.js +7 -7
- package/src/core/ide/adapters/gemini.js +5 -5
- package/src/core/ide/adapters/pi-common.js +12 -12
- package/src/core/ide/adapters/pi-harness.js +7 -7
- package/src/core/ide/adapters/pi.js +3 -3
- package/src/core/ide/home-skills.js +6 -6
- package/src/core/ide/legacy.js +8 -8
- package/src/core/ide/registry.js +6 -6
- package/src/core/ide/runner.js +15 -15
- package/src/core/ide/skills-copy.js +34 -34
- package/src/core/ide/stable-entry.js +11 -11
- package/src/core/ide/util.js +4 -4
- package/src/core/incoming.js +13 -13
- package/src/core/label-style.js +12 -12
- package/src/core/migration-guide.js +19 -19
- package/src/core/migrations/index.js +16 -16
- package/src/core/migrations/registry.js +39 -39
- package/src/core/migrations/rules/legacy-dirs.js +6 -6
- package/src/core/migrations/rules/obsolete-workflows.js +4 -4
- package/src/core/migrations/rules/root-files.js +3 -3
- package/src/core/migrations/rules/settings-extractors.js +8 -8
- package/src/core/options-ask.js +104 -104
- package/src/core/options-schema.js +23 -23
- package/src/core/orphan-workflows.js +14 -14
- package/src/core/paths-resolve.js +54 -54
- package/src/core/paths.js +2 -2
- package/src/core/placeholder-triggers.js +10 -10
- package/src/core/repo-language.js +10 -10
- package/src/core/resolve-options.js +30 -30
- package/src/core/run-trace.js +54 -54
- package/src/core/store-locales-hint.js +13 -13
- package/src/core/verify.js +27 -27
- package/src/core/version-yml.js +117 -116
- package/src/core/wizard-env.js +42 -42
- package/src/core/wizard-labels.js +31 -31
- package/src/core/workflow-groups.js +14 -14
- package/src/i18n/core.en.js +1 -1
- package/src/i18n/doctor.en.js +1 -1
- package/src/i18n/ide.en.js +1 -1
- package/src/i18n/migrate.en.js +1 -1
- package/src/i18n/options.en.js +1 -1
- package/src/index.js +60 -60
- package/src/ui/ansi.js +5 -5
- package/src/ui/env-plan.js +44 -44
- package/src/ui/prompts.js +21 -21
- package/src/ui/readline-engine.js +38 -38
- package/src/ui/skills-prompts.js +4 -4
package/src/ui/prompts.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
//
|
|
2
|
-
// node:readline
|
|
3
|
-
//
|
|
1
|
+
// Interactive prompt wrappers (menus, selection, questions).
|
|
2
|
+
// Uses an in-house node:readline engine (@clack/prompts was removed because Enter froze on Windows TTYs).
|
|
3
|
+
// Cancel (ESC/Ctrl+C) makes each function return the CANCEL symbol → the caller exits normally (exit 0).
|
|
4
4
|
import * as engine from "./readline-engine.js";
|
|
5
5
|
import { t } from "../i18n/index.js";
|
|
6
6
|
|
|
7
7
|
export const CANCEL = engine.CANCEL;
|
|
8
8
|
|
|
9
|
-
//
|
|
10
|
-
// update(#502): { from, to } —
|
|
11
|
-
//
|
|
9
|
+
// Mode selection — localized labels, returns the internal key. CANCEL on cancel.
|
|
10
|
+
// update (#502): { from, to } — when detected as an already integrated repo. Adds the update item at the top
|
|
11
|
+
// as the default selection (first item = default). New repos (no update passed) keep the current 5 items.
|
|
12
12
|
export async function selectMode({ update = null } = {}) {
|
|
13
13
|
const options = [];
|
|
14
14
|
if (update) {
|
|
@@ -25,7 +25,7 @@ export async function selectMode({ update = null } = {}) {
|
|
|
25
25
|
return engine.select({ message: t("mode.prompt"), options });
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
//
|
|
28
|
+
// Project confirmation screen menu (continue/edit/cancel).
|
|
29
29
|
export async function confirmProjectMenu() {
|
|
30
30
|
return engine.select({
|
|
31
31
|
message: t("confirm.prompt"),
|
|
@@ -37,9 +37,9 @@ export async function confirmProjectMenu() {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
//
|
|
41
|
-
// axes(#498): applicableTargets(types)
|
|
42
|
-
// null
|
|
40
|
+
// Edit menu — which item to change. showOptional exposes nexus/secret only for full/workflows.
|
|
41
|
+
// axes (#498): applicableTargets(types) result — items for non-applicable axes are hidden (mobile app/basic alone, etc.).
|
|
42
|
+
// null shows everything as before (backward compat for test stubs).
|
|
43
43
|
export async function editMenu({ showOptional = false, axes = null } = {}) {
|
|
44
44
|
const options = [
|
|
45
45
|
{ value: "type", label: t("edit.type") },
|
|
@@ -49,9 +49,9 @@ export async function editMenu({ showOptional = false, axes = null } = {}) {
|
|
|
49
49
|
if (showOptional) {
|
|
50
50
|
const hasDeploy = axes == null || axes.deploy.length > 0;
|
|
51
51
|
const hasPublish = axes == null || axes.publish.length > 0;
|
|
52
|
-
// #485 —
|
|
52
|
+
// #485 — project nature (intent): re-selecting re-derives the deploy/publish axes. Meaningless with no axes → hidden.
|
|
53
53
|
if (hasDeploy || hasPublish) options.push({ value: "intent", label: t("edit.intent") });
|
|
54
|
-
// #483 —
|
|
54
|
+
// #483 — per-item isolation: pick one axis and re-ask only that axis (splits the all-in-one "deploy/publish method")
|
|
55
55
|
if (hasDeploy) options.push({ value: "deploy", label: t("edit.deploy") });
|
|
56
56
|
if (hasPublish) options.push({ value: "publish", label: t("edit.publish") });
|
|
57
57
|
options.push({ value: "code-review", label: t("edit.codeReview") });
|
|
@@ -63,7 +63,7 @@ export async function editMenu({ showOptional = false, axes = null } = {}) {
|
|
|
63
63
|
return engine.select({ message: t("edit.prompt"), options });
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
//
|
|
66
|
+
// Type multiselect.
|
|
67
67
|
export async function selectTypes(current = []) {
|
|
68
68
|
const all = ["spring", "flutter", "react", "react-native", "react-native-expo", "node", "python", "basic"];
|
|
69
69
|
return engine.multiselect({
|
|
@@ -74,27 +74,27 @@ export async function selectTypes(current = []) {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
//
|
|
77
|
+
// Text input (empty input = keep default).
|
|
78
78
|
export async function askText(message, defaultValue = "") {
|
|
79
79
|
const v = await engine.text({ message, defaultValue });
|
|
80
80
|
if (v === CANCEL) return CANCEL;
|
|
81
81
|
return v === "" || v == null ? defaultValue : v;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
//
|
|
84
|
+
// Yes/no.
|
|
85
85
|
export async function askYesNo(message, initial = true) {
|
|
86
86
|
return engine.confirm({ message, initialValue: initial });
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
//
|
|
89
|
+
// Banner and notice output.
|
|
90
90
|
export function intro(text) { engine.intro(text); }
|
|
91
91
|
export function outro(text) { engine.outro(text); }
|
|
92
92
|
export function note(text, title) { engine.note(text, title); }
|
|
93
|
-
export function cancelMessage(text = "
|
|
93
|
+
export function cancelMessage(text = "Cancelled.") { engine.cancelMessage(text); }
|
|
94
94
|
|
|
95
|
-
// ── #446
|
|
96
|
-
// runInteractive
|
|
97
|
-
//
|
|
95
|
+
// ── #446 first-screen UI 5 layers + SP2-C interactive layer real io ─────────────────
|
|
96
|
+
// runInteractive calls io.<method>?.() optionally — test stubs omit these methods
|
|
97
|
+
// to skip the visual layers and env questions (the run contract is the same).
|
|
98
98
|
import { printBanner as _printBanner } from "./banner.js";
|
|
99
99
|
import {
|
|
100
100
|
printDetectionLog as _detLog, printAnalysisCard as _card,
|
|
@@ -110,7 +110,7 @@ export function installKind(info) { _installKind(info); }
|
|
|
110
110
|
export function ideStatus() { _ideStatus(collectIdeStatuses(defaultIo())); }
|
|
111
111
|
export function summary(ctx, targetRoot) { _summary(ctx, targetRoot); }
|
|
112
112
|
|
|
113
|
-
// env
|
|
113
|
+
// Low-level engine io used by the env plan, path resolution and conflict menus (the io contract of env-plan/paths-resolve)
|
|
114
114
|
export const engineIo = {
|
|
115
115
|
select: engine.select,
|
|
116
116
|
multiselect: engine.multiselect,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// node:readline
|
|
2
|
-
// WHY: @clack/prompts 1.7.0
|
|
3
|
-
//
|
|
4
|
-
//
|
|
1
|
+
// node:readline based interactive prompt engine (replaces @clack/prompts).
|
|
2
|
+
// WHY: @clack/prompts 1.7.0 fails to handle the Enter (return) key in Windows TTY consoles
|
|
3
|
+
// and freezes (confirmed by measurement). node:readline keypress events work fine on Windows.
|
|
4
|
+
// Zero external dependencies → safe on internal networks too.
|
|
5
5
|
//
|
|
6
|
-
//
|
|
6
|
+
// Contract: cancel (ESC/Ctrl+C) returns the CANCEL symbol. Every function is async.
|
|
7
7
|
import { emitKeypressEvents } from "node:readline";
|
|
8
8
|
import { stdin, stdout } from "node:process";
|
|
9
9
|
import { visualWidth } from "./ansi.js";
|
|
@@ -11,7 +11,7 @@ import { t } from "../i18n/index.js";
|
|
|
11
11
|
|
|
12
12
|
export const CANCEL = Symbol("cancel");
|
|
13
13
|
|
|
14
|
-
// ── ANSI
|
|
14
|
+
// ── ANSI helpers (replaces picocolors — zero dependencies) ───────────────────────────
|
|
15
15
|
const ESC = "\x1b[";
|
|
16
16
|
const c = {
|
|
17
17
|
reset: `${ESC}0m`, dim: `${ESC}2m`, bold: `${ESC}1m`,
|
|
@@ -21,7 +21,7 @@ const paint = (s, color) => `${color}${s}${c.reset}`;
|
|
|
21
21
|
const hideCursor = () => stdout.write(`${ESC}?25l`);
|
|
22
22
|
const showCursor = () => stdout.write(`${ESC}?25h`);
|
|
23
23
|
|
|
24
|
-
//
|
|
24
|
+
// Symbols (keeps the clack look)
|
|
25
25
|
const S_ACTIVE = paint("●", c.green);
|
|
26
26
|
const S_INACTIVE = paint("○", c.dim);
|
|
27
27
|
const S_CHECK_ON = paint("◼", c.green);
|
|
@@ -30,36 +30,36 @@ const S_BAR = paint("│", c.gray);
|
|
|
30
30
|
const S_Q = paint("◆", c.cyan);
|
|
31
31
|
const S_DONE = paint("◇", c.green);
|
|
32
32
|
|
|
33
|
-
//
|
|
34
|
-
// WHY:
|
|
35
|
-
//
|
|
36
|
-
//
|
|
33
|
+
// Number of physical rows a logical line takes at the terminal width (accounts for wrapping).
|
|
34
|
+
// WHY: when a long label (with 2-cell Korean) exceeds the terminal width, the terminal wraps it into 2+ physical rows.
|
|
35
|
+
// Cursor rewind (ESC[nA) counts physical rows, so counting only logical lines rewinds too little by the wrapped amount,
|
|
36
|
+
// leaving old output and pushing the screen down on every render. (Measured: Windows PowerShell width 80)
|
|
37
37
|
export function physicalRows(line, cols) {
|
|
38
|
-
const w = visualWidth(line); // ANSI
|
|
38
|
+
const w = visualWidth(line); // Excludes ANSI sequences + CJK 2 cells
|
|
39
39
|
if (cols <= 0) return 1;
|
|
40
|
-
//
|
|
40
|
+
// Even an empty line takes at least 1 row. An exact multiple of the width does not wrap, so as is (80-cell line @ width 80 = 1 row).
|
|
41
41
|
if (w === 0) return 1;
|
|
42
42
|
return Math.max(1, Math.ceil(w / cols));
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
//
|
|
46
|
-
//
|
|
45
|
+
// Renderer that clears several lines and returns the cursor to the block start.
|
|
46
|
+
// Moves up by the "physical row count" of the previous render, clears and redraws (wrap safe).
|
|
47
47
|
function makeRenderer() {
|
|
48
|
-
let prevRows = 0; //
|
|
48
|
+
let prevRows = 0; // Physical rows actually taken by the previous render
|
|
49
49
|
return {
|
|
50
50
|
render(lines) {
|
|
51
|
-
if (prevRows > 0) stdout.write(`${ESC}${prevRows}A`); //
|
|
52
|
-
stdout.write(`${ESC}0J`); //
|
|
51
|
+
if (prevRows > 0) stdout.write(`${ESC}${prevRows}A`); // Up by physical rows
|
|
52
|
+
stdout.write(`${ESC}0J`); // Clear everything below the cursor
|
|
53
53
|
stdout.write(lines.join("\n") + "\n");
|
|
54
|
-
const cols = stdout.columns || 80; //
|
|
54
|
+
const cols = stdout.columns || 80; // Terminal width (assume 80 when missing, e.g. a pipe)
|
|
55
55
|
prevRows = lines.reduce((sum, l) => sum + physicalRows(l, cols), 0);
|
|
56
56
|
},
|
|
57
57
|
reset() { prevRows = 0; },
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
// raw keypress
|
|
62
|
-
//
|
|
61
|
+
// Shared wrapper for raw keypress sessions. onKey(str,key) returning true ends it.
|
|
62
|
+
// The return value is built by finalize(). CANCEL on cancel.
|
|
63
63
|
function keySession(renderFn, onKey) {
|
|
64
64
|
return new Promise((resolve) => {
|
|
65
65
|
const wasRaw = stdin.isTTY ? stdin.isRaw : false;
|
|
@@ -77,7 +77,7 @@ function keySession(renderFn, onKey) {
|
|
|
77
77
|
|
|
78
78
|
const handler = (str, key) => {
|
|
79
79
|
key = key || {};
|
|
80
|
-
//
|
|
80
|
+
// Cancel: Ctrl+C / ESC
|
|
81
81
|
if ((key.ctrl && key.name === "c") || key.name === "escape") {
|
|
82
82
|
cleanup();
|
|
83
83
|
resolve(CANCEL);
|
|
@@ -92,15 +92,15 @@ function keySession(renderFn, onKey) {
|
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
stdin.on("keypress", handler);
|
|
95
|
-
renderFn(); //
|
|
95
|
+
renderFn(); // First render
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
// ──
|
|
100
|
-
// options: [{value,label,hint?}].
|
|
99
|
+
// ── Single select (arrow keys + Enter) ───────────────────────────────────────
|
|
100
|
+
// options: [{value,label,hint?}]. Returns the selected value or CANCEL.
|
|
101
101
|
export async function select({ message, options, initialIndex = 0 }) {
|
|
102
102
|
if (!stdin.isTTY) {
|
|
103
|
-
//
|
|
103
|
+
// Non-TTY: return the default (first item) — guards pipe environments
|
|
104
104
|
return options[initialIndex]?.value;
|
|
105
105
|
}
|
|
106
106
|
const r = makeRenderer();
|
|
@@ -122,17 +122,17 @@ export async function select({ message, options, initialIndex = 0 }) {
|
|
|
122
122
|
const result = await keySession(draw, (str, key) => {
|
|
123
123
|
if (key.name === "up" || key.name === "k") { idx = (idx - 1 + options.length) % options.length; return; }
|
|
124
124
|
if (key.name === "down" || key.name === "j") { idx = (idx + 1) % options.length; return; }
|
|
125
|
-
//
|
|
125
|
+
// Number jump (1-9)
|
|
126
126
|
if (/^[1-9]$/.test(str || "")) {
|
|
127
127
|
const n = Number(str) - 1;
|
|
128
128
|
if (n < options.length) { idx = n; return; }
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
if (key.name === "return" || key.name === "enter") return options[idx].value;
|
|
132
|
-
return; //
|
|
132
|
+
return; // Any other key: ignore and continue
|
|
133
133
|
});
|
|
134
134
|
|
|
135
|
-
//
|
|
135
|
+
// Redraw the confirmed screen (◇ done symbol + selected value)
|
|
136
136
|
if (result !== CANCEL) {
|
|
137
137
|
const chosen = options.find((o) => o.value === result);
|
|
138
138
|
r.render([S_BAR, `${S_DONE} ${paint(message, c.dim)}`, `${S_BAR} ${paint(chosen?.label ?? "", c.dim)}`]);
|
|
@@ -140,8 +140,8 @@ export async function select({ message, options, initialIndex = 0 }) {
|
|
|
140
140
|
return result;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
// ──
|
|
144
|
-
// options: [{value,label,hint?,disabled?}].
|
|
143
|
+
// ── Multi select (Space toggles + Enter) ──────────────────────────────────
|
|
144
|
+
// options: [{value,label,hint?,disabled?}]. Returns an array of selected values or CANCEL.
|
|
145
145
|
export async function multiselect({ message, options, initialValues = [], required = false }) {
|
|
146
146
|
if (!stdin.isTTY) {
|
|
147
147
|
return initialValues.length ? [...initialValues] : (required ? [options[0]?.value].filter(Boolean) : []);
|
|
@@ -197,8 +197,8 @@ export async function multiselect({ message, options, initialValues = [], requir
|
|
|
197
197
|
return result;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
// ──
|
|
201
|
-
//
|
|
200
|
+
// ── Text input (Enter confirms, empty input = default) ─────────────────────────
|
|
201
|
+
// Returns the input string (defaultValue on empty input) or CANCEL.
|
|
202
202
|
export async function text({ message, defaultValue = "" }) {
|
|
203
203
|
if (!stdin.isTTY) return defaultValue;
|
|
204
204
|
return new Promise((resolve) => {
|
|
@@ -209,7 +209,7 @@ export async function text({ message, defaultValue = "" }) {
|
|
|
209
209
|
let buf = "";
|
|
210
210
|
|
|
211
211
|
const prompt = () => {
|
|
212
|
-
stdout.write(`\r${ESC}0K`); //
|
|
212
|
+
stdout.write(`\r${ESC}0K`); // Reset the line
|
|
213
213
|
const shown = buf.length ? buf : paint(defaultValue || "", c.dim);
|
|
214
214
|
stdout.write(`${S_Q} ${paint(message, c.bold)} ${shown}`);
|
|
215
215
|
};
|
|
@@ -230,7 +230,7 @@ export async function text({ message, defaultValue = "" }) {
|
|
|
230
230
|
return;
|
|
231
231
|
}
|
|
232
232
|
if (key.name === "backspace") { buf = buf.slice(0, -1); prompt(); return; }
|
|
233
|
-
//
|
|
233
|
+
// Regular characters (excluding control characters)
|
|
234
234
|
if (str && !key.ctrl && !key.meta && str.length === 1 && str >= " ") { buf += str; prompt(); return; }
|
|
235
235
|
};
|
|
236
236
|
stdin.on("keypress", handler);
|
|
@@ -238,8 +238,8 @@ export async function text({ message, defaultValue = "" }) {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
// ── Y/N
|
|
242
|
-
//
|
|
241
|
+
// ── Y/N confirm (←→ or y/n, Enter confirms) ──────────────────────────────
|
|
242
|
+
// Returns true/false or CANCEL.
|
|
243
243
|
export async function confirm({ message, initialValue = true }) {
|
|
244
244
|
if (!stdin.isTTY) return initialValue;
|
|
245
245
|
const r = makeRenderer();
|
|
@@ -266,7 +266,7 @@ export async function confirm({ message, initialValue = true }) {
|
|
|
266
266
|
return result;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
// ──
|
|
269
|
+
// ── Output helpers (replace clack intro/outro/note/cancel) ──────────────────
|
|
270
270
|
export function intro(text) { stdout.write(`\n${paint("┌", c.gray)} ${paint(text, c.bold)}\n`); }
|
|
271
271
|
export function outro(text) { stdout.write(`${paint("└", c.gray)} ${paint(text, c.green)}\n\n`); }
|
|
272
272
|
export function cancelMessage(text = t("engine.cancelled")) { stdout.write(`${paint("■", c.yellow)} ${paint(text, c.yellow)}\n`); }
|
package/src/ui/skills-prompts.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// IDE
|
|
2
|
-
// node:readline
|
|
1
|
+
// IDE skills interactive prompts.
|
|
2
|
+
// Uses an in-house node:readline engine (@clack/prompts was removed because of the Windows TTY Enter bug).
|
|
3
3
|
import * as engine from "./readline-engine.js";
|
|
4
4
|
import { t } from "../i18n/index.js";
|
|
5
5
|
|
|
6
6
|
export const CANCEL = engine.CANCEL;
|
|
7
7
|
|
|
8
|
-
//
|
|
8
|
+
// Action choice: install/update · remove · leave as is. Cancel = skip.
|
|
9
9
|
export async function selectAction() {
|
|
10
10
|
const v = await engine.select({
|
|
11
11
|
message: t("skills.action.prompt"),
|
|
@@ -18,7 +18,7 @@ export async function selectAction() {
|
|
|
18
18
|
return v === CANCEL ? "skip" : v;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
// IDE
|
|
21
|
+
// IDE multiselect. choices=[{id,label,disabled}], preselect=[id...], action.
|
|
22
22
|
export async function selectTargets(choices, preselect = [], action = "apply") {
|
|
23
23
|
const options = choices.map((c) => ({
|
|
24
24
|
value: c.id,
|