pi-subagent-manager 1.11.0 → 1.12.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/README.md +9 -9
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -47
- package/dist/orch/checklist-integration.js +2 -30
- package/dist/orch/context-entries.js +0 -2
- package/dist/orch/cost-ledger.js +0 -5
- package/dist/orch/diagnostics.js +0 -9
- package/dist/orch/extensions.js +0 -14
- package/dist/orch/housekeeping-usage.js +0 -5
- package/dist/orch/housekeeping.js +1 -34
- package/dist/orch/inherited-tools.js +0 -14
- package/dist/orch/mailbox.js +0 -1
- package/dist/orch/manager.js +4 -44
- package/dist/orch/paths.js +0 -4
- package/dist/orch/prompt.js +1 -5
- package/dist/orch/registry.js +1 -20
- package/dist/orch/runtime.js +1 -48
- package/dist/orch/tools.js +0 -2
- package/dist/orch/transcript.js +0 -11
- package/dist/prefs/agent-import.js +2 -10
- package/dist/prefs/config.js +3 -51
- package/dist/prefs/import-discovery.js +0 -15
- package/dist/prefs/import-instructions.js +0 -2
- package/dist/prefs/models.js +0 -1
- package/dist/prefs/settings.js +3 -17
- package/dist/types.js +0 -1
- package/dist/ui/agent-loader.js +0 -10
- package/dist/ui/agent-navigation-editor.js +0 -21
- package/dist/ui/cost-footer.js +3 -9
- package/dist/ui/dialog.js +1 -29
- package/dist/ui/import-picker.js +0 -20
- package/dist/ui/live-agent-view.js +0 -19
- package/dist/ui/model-picker.js +0 -20
- package/dist/ui/settings-ui.js +0 -8
- package/dist/ui/status-ui.js +0 -17
- package/dist/ui/thread-tree.js +1 -12
- package/dist/ui/tool-picker.js +1 -4
- package/dist/ui/transcript-tool.js +0 -9
- package/dist/ui/ui.js +1 -29
- package/package.json +3 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/orch/checklist-integration.d.ts +0 -48
- package/dist/orch/checklist-integration.d.ts.map +0 -1
- package/dist/orch/checklist-integration.js.map +0 -1
- package/dist/orch/context-entries.d.ts +0 -8
- package/dist/orch/context-entries.d.ts.map +0 -1
- package/dist/orch/context-entries.js.map +0 -1
- package/dist/orch/cost-ledger.d.ts +0 -16
- package/dist/orch/cost-ledger.d.ts.map +0 -1
- package/dist/orch/cost-ledger.js.map +0 -1
- package/dist/orch/diagnostics.d.ts +0 -13
- package/dist/orch/diagnostics.d.ts.map +0 -1
- package/dist/orch/diagnostics.js.map +0 -1
- package/dist/orch/extensions.d.ts +0 -15
- package/dist/orch/extensions.d.ts.map +0 -1
- package/dist/orch/extensions.js.map +0 -1
- package/dist/orch/housekeeping-usage.d.ts +0 -14
- package/dist/orch/housekeeping-usage.d.ts.map +0 -1
- package/dist/orch/housekeeping-usage.js.map +0 -1
- package/dist/orch/housekeeping.d.ts +0 -89
- package/dist/orch/housekeeping.d.ts.map +0 -1
- package/dist/orch/housekeeping.js.map +0 -1
- package/dist/orch/inherited-tools.d.ts +0 -18
- package/dist/orch/inherited-tools.d.ts.map +0 -1
- package/dist/orch/inherited-tools.js.map +0 -1
- package/dist/orch/mailbox.d.ts +0 -59
- package/dist/orch/mailbox.d.ts.map +0 -1
- package/dist/orch/mailbox.js.map +0 -1
- package/dist/orch/manager.d.ts +0 -82
- package/dist/orch/manager.d.ts.map +0 -1
- package/dist/orch/manager.js.map +0 -1
- package/dist/orch/paths.d.ts +0 -7
- package/dist/orch/paths.d.ts.map +0 -1
- package/dist/orch/paths.js.map +0 -1
- package/dist/orch/prompt.d.ts +0 -7
- package/dist/orch/prompt.d.ts.map +0 -1
- package/dist/orch/prompt.js.map +0 -1
- package/dist/orch/registry.d.ts +0 -49
- package/dist/orch/registry.d.ts.map +0 -1
- package/dist/orch/registry.js.map +0 -1
- package/dist/orch/runtime.d.ts +0 -11
- package/dist/orch/runtime.d.ts.map +0 -1
- package/dist/orch/runtime.js.map +0 -1
- package/dist/orch/tools.d.ts +0 -6
- package/dist/orch/tools.d.ts.map +0 -1
- package/dist/orch/tools.js.map +0 -1
- package/dist/orch/transcript.d.ts +0 -28
- package/dist/orch/transcript.d.ts.map +0 -1
- package/dist/orch/transcript.js.map +0 -1
- package/dist/prefs/agent-import.d.ts +0 -37
- package/dist/prefs/agent-import.d.ts.map +0 -1
- package/dist/prefs/agent-import.js.map +0 -1
- package/dist/prefs/config.d.ts +0 -108
- package/dist/prefs/config.d.ts.map +0 -1
- package/dist/prefs/config.js.map +0 -1
- package/dist/prefs/import-discovery.d.ts +0 -28
- package/dist/prefs/import-discovery.d.ts.map +0 -1
- package/dist/prefs/import-discovery.js.map +0 -1
- package/dist/prefs/import-instructions.d.ts +0 -3
- package/dist/prefs/import-instructions.d.ts.map +0 -1
- package/dist/prefs/import-instructions.js.map +0 -1
- package/dist/prefs/models.d.ts +0 -24
- package/dist/prefs/models.d.ts.map +0 -1
- package/dist/prefs/models.js.map +0 -1
- package/dist/prefs/settings.d.ts +0 -89
- package/dist/prefs/settings.d.ts.map +0 -1
- package/dist/prefs/settings.js.map +0 -1
- package/dist/types.d.ts +0 -293
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/ui/agent-loader.d.ts +0 -21
- package/dist/ui/agent-loader.d.ts.map +0 -1
- package/dist/ui/agent-loader.js.map +0 -1
- package/dist/ui/agent-navigation-editor.d.ts +0 -46
- package/dist/ui/agent-navigation-editor.d.ts.map +0 -1
- package/dist/ui/agent-navigation-editor.js.map +0 -1
- package/dist/ui/cost-footer.d.ts +0 -37
- package/dist/ui/cost-footer.d.ts.map +0 -1
- package/dist/ui/cost-footer.js.map +0 -1
- package/dist/ui/dialog.d.ts +0 -135
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/import-picker.d.ts +0 -38
- package/dist/ui/import-picker.d.ts.map +0 -1
- package/dist/ui/import-picker.js.map +0 -1
- package/dist/ui/live-agent-view.d.ts +0 -82
- package/dist/ui/live-agent-view.d.ts.map +0 -1
- package/dist/ui/live-agent-view.js.map +0 -1
- package/dist/ui/model-picker.d.ts +0 -109
- package/dist/ui/model-picker.d.ts.map +0 -1
- package/dist/ui/model-picker.js.map +0 -1
- package/dist/ui/settings-ui.d.ts +0 -17
- package/dist/ui/settings-ui.d.ts.map +0 -1
- package/dist/ui/settings-ui.js.map +0 -1
- package/dist/ui/status-ui.d.ts +0 -67
- package/dist/ui/status-ui.d.ts.map +0 -1
- package/dist/ui/status-ui.js.map +0 -1
- package/dist/ui/thread-tree.d.ts +0 -22
- package/dist/ui/thread-tree.d.ts.map +0 -1
- package/dist/ui/thread-tree.js.map +0 -1
- package/dist/ui/tool-picker.d.ts +0 -46
- package/dist/ui/tool-picker.d.ts.map +0 -1
- package/dist/ui/tool-picker.js.map +0 -1
- package/dist/ui/transcript-tool.d.ts +0 -2
- package/dist/ui/transcript-tool.d.ts.map +0 -1
- package/dist/ui/transcript-tool.js.map +0 -1
- package/dist/ui/ui.d.ts +0 -41
- package/dist/ui/ui.d.ts.map +0 -1
- package/dist/ui/ui.js.map +0 -1
- package/docs/assets/subagent-manager-demo.gif +0 -0
- package/docs/async-lifecycle.md +0 -153
- package/docs/custom-agents.md +0 -154
- package/docs/default-agents.md +0 -95
- package/docs/demo.md +0 -63
- package/docs/development.md +0 -75
- package/docs/importing-agents.md +0 -41
- package/docs/pi-footer.md +0 -128
- package/docs/research-claude.md +0 -258
- package/docs/research-codex.md +0 -143
- package/docs/research-default-agent-models.md +0 -121
- package/docs/research-model-audit-2026-10.md +0 -154
- package/docs/research-model-roles-coding.md +0 -99
- package/docs/research-model-roles-writing.md +0 -78
- package/docs/research-researcher-workflow.md +0 -97
- package/docs/settings.md +0 -293
- package/docs/subagent-extension-limitations.md +0 -98
- package/docs/threads.md +0 -73
- package/docs/tools-and-ui.md +0 -129
|
@@ -11,20 +11,11 @@ function isSkillDirectoryName(name) {
|
|
|
11
11
|
function isSkillMarkdownName(name) {
|
|
12
12
|
return name.toLowerCase() === "skill.md";
|
|
13
13
|
}
|
|
14
|
-
/** True when any path segment is a skills or .skills directory, in any case. */
|
|
15
14
|
function isSkillPath(filePath) {
|
|
16
15
|
return normalize(filePath)
|
|
17
16
|
.split(sep)
|
|
18
17
|
.some((segment) => isSkillDirectoryName(segment));
|
|
19
18
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Read-only discovery of definitions the user may import from tintinweb/pi-subagents
|
|
22
|
-
* and npm pi-subagents. File contents are data, not instructions: only name,
|
|
23
|
-
* description, and package are read, and only for display. Nothing is migrated
|
|
24
|
-
* or written. Package-provided and builtin agents are not discovery roots.
|
|
25
|
-
* Skill directories and SKILL.md files are not agent definitions: they are skipped
|
|
26
|
-
* before their contents are read, including when a configured root points at them.
|
|
27
|
-
*/
|
|
28
19
|
export function discoverImportCandidates(options) {
|
|
29
20
|
const diagnostics = [];
|
|
30
21
|
const candidates = [];
|
|
@@ -208,8 +199,6 @@ function considerFile(filePath, root, seen, candidates, diagnostics) {
|
|
|
208
199
|
settingsPaths: root.settingsPaths,
|
|
209
200
|
});
|
|
210
201
|
}
|
|
211
|
-
// npm's parser permits non-YAML values in unrelated fields (e.g. tools: *).
|
|
212
|
-
// This fallback extracts only unambiguous scalar display metadata, never converts an agent.
|
|
213
202
|
function looseDisplayFields(content) {
|
|
214
203
|
const extracted = frontmatter(content);
|
|
215
204
|
if (!extracted)
|
|
@@ -233,14 +222,12 @@ function looseDisplayFields(content) {
|
|
|
233
222
|
fields[key] = parsed;
|
|
234
223
|
}
|
|
235
224
|
catch {
|
|
236
|
-
/* Ambiguous display metadata is not selectable. */
|
|
237
225
|
}
|
|
238
226
|
}
|
|
239
227
|
if (!fields.name || !fields.description)
|
|
240
228
|
return undefined;
|
|
241
229
|
return { name: fields.name, description: fields.description, packageName: fields.package };
|
|
242
230
|
}
|
|
243
|
-
/** Source text is data. Alias expansion is rejected when the document is materialized. */
|
|
244
231
|
function readDisplayFields(content) {
|
|
245
232
|
const extracted = frontmatter(content);
|
|
246
233
|
if (!extracted)
|
|
@@ -488,7 +475,6 @@ function existingFiles(paths, diagnostics) {
|
|
|
488
475
|
}
|
|
489
476
|
return files;
|
|
490
477
|
}
|
|
491
|
-
/** Symlink checks start at the configured base, never at filesystem-root ancestors. */
|
|
492
478
|
function hasSymlinkComponent(base, target) {
|
|
493
479
|
const resolvedBase = resolve(base);
|
|
494
480
|
const resolvedTarget = resolve(target);
|
|
@@ -559,4 +545,3 @@ function compare(left, right) {
|
|
|
559
545
|
function unique(values) {
|
|
560
546
|
return [...new Set(values)];
|
|
561
547
|
}
|
|
562
|
-
//# sourceMappingURL=import-discovery.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** Semantic migration belongs to the current session model, never a converter. */
|
|
2
1
|
export const MIGRATION_INSTRUCTIONS = `
|
|
3
2
|
## Migration contract
|
|
4
3
|
You are importing selected external definitions into pi-subagent-manager in THIS conversation.
|
|
@@ -155,4 +154,3 @@ agent or touch originals. Do not change manager capacity settings as part of imp
|
|
|
155
154
|
Report imported/skipped files, all renames and incompatibilities. Definitions reload at turn
|
|
156
155
|
end; the user can also run /agents reload. Do not spawn imported agents to test their prompts.
|
|
157
156
|
`;
|
|
158
|
-
//# sourceMappingURL=import-instructions.js.map
|
package/dist/prefs/models.js
CHANGED
|
@@ -54,4 +54,3 @@ export function selectPreferredModel(type, eligibleModels, scopedModelFiltering
|
|
|
54
54
|
}
|
|
55
55
|
throw new ModelPreferenceError(`Agent type ${JSON.stringify(type.name)} prefers scoped models ${preferenceList}, but none are available in /scoped-models. Available scoped models: ${availableList}. Update /scoped-models or this agent type's models list.`, true);
|
|
56
56
|
}
|
|
57
|
-
//# sourceMappingURL=models.js.map
|
package/dist/prefs/settings.js
CHANGED
|
@@ -3,8 +3,8 @@ import { closeSync, constants, fchmodSync, linkSync, lstatSync, mkdirSync, openS
|
|
|
3
3
|
import { dirname, join, resolve } from "node:path";
|
|
4
4
|
export const SUBAGENT_MODES = ["off", "opportunistic", "orchestration"];
|
|
5
5
|
export const WIDGET_MODES = ["full", "minimal"];
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const COST_DISPLAY_MODES = ["pi-footer-event", "pi-footer-status", "pi-status"];
|
|
7
|
+
const COST_VALUES = ["subagents", "total"];
|
|
8
8
|
export const COST_ICONS = ["money", "coins", "wallet"];
|
|
9
9
|
export const LOADER_STYLES = [
|
|
10
10
|
"circle",
|
|
@@ -42,9 +42,8 @@ export const DEFAULT_MANAGER_SETTINGS = {
|
|
|
42
42
|
housekeepingEnabled: false,
|
|
43
43
|
housekeepingModel: "",
|
|
44
44
|
};
|
|
45
|
-
/** Same `provider/model-id` shape as agent model preferences. */
|
|
46
45
|
const HOUSEKEEPING_MODEL = /^[^\s/]+\/[^\s]+$/;
|
|
47
|
-
|
|
46
|
+
const isHousekeepingModel = (value) => typeof value === "string" && (value === "" || HOUSEKEEPING_MODEL.test(value));
|
|
48
47
|
const KEYS = [
|
|
49
48
|
"maxLevels",
|
|
50
49
|
"maxConcurrent",
|
|
@@ -260,7 +259,6 @@ function settingsFileExists(entry) {
|
|
|
260
259
|
function detail(error) {
|
|
261
260
|
return error instanceof Error ? error.message : String(error);
|
|
262
261
|
}
|
|
263
|
-
/** Validated layers retain provenance; save scope belongs to the current project. */
|
|
264
262
|
export function loadManagerSettingsLayers(options) {
|
|
265
263
|
const result = {
|
|
266
264
|
settings: { ...DEFAULT_MANAGER_SETTINGS },
|
|
@@ -278,7 +276,6 @@ export function loadManagerSettingsLayers(options) {
|
|
|
278
276
|
try {
|
|
279
277
|
if (!settingsFileExists(entry))
|
|
280
278
|
continue;
|
|
281
|
-
// Malformed/unreadable regular project files still represent a save destination.
|
|
282
279
|
if (scope === "project")
|
|
283
280
|
result.scope = "project";
|
|
284
281
|
const parsed = parseSettings(readFileSync(entry.filePath, "utf8"));
|
|
@@ -378,8 +375,6 @@ function writeAtomically(entry, content, overwrite = true) {
|
|
|
378
375
|
renameSync(temporary, filePath);
|
|
379
376
|
else {
|
|
380
377
|
try {
|
|
381
|
-
// Linking a completed temporary file creates the destination without clobbering
|
|
382
|
-
// a settings file that appeared after the initial absence check.
|
|
383
378
|
linkSync(temporary, filePath);
|
|
384
379
|
}
|
|
385
380
|
catch (error) {
|
|
@@ -396,7 +391,6 @@ function writeAtomically(entry, content, overwrite = true) {
|
|
|
396
391
|
unlinkSync(temporary);
|
|
397
392
|
}
|
|
398
393
|
catch {
|
|
399
|
-
// Keep the original save error if cleanup fails.
|
|
400
394
|
}
|
|
401
395
|
}
|
|
402
396
|
}
|
|
@@ -425,13 +419,11 @@ function assertExpectedLayers(current, expected) {
|
|
|
425
419
|
throw new Error("Settings changed on disk. Reopen settings before saving or switching scope to avoid stale inherited values.");
|
|
426
420
|
}
|
|
427
421
|
}
|
|
428
|
-
/** Persist only values that change the selected scope's inherited settings. */
|
|
429
422
|
export function saveManagerOverrides(options) {
|
|
430
423
|
if (options.scope !== "user" && options.scope !== "project")
|
|
431
424
|
throw new Error("Invalid settings scope");
|
|
432
425
|
if (options.scope === "project" && !options.includeProject)
|
|
433
426
|
throw new Error("Project settings are not enabled/trusted");
|
|
434
|
-
// Validate the complete draft before creating directories or modifying files.
|
|
435
427
|
const parsed = parseSettings(serializedSettings(options.settings));
|
|
436
428
|
const current = loadManagerSettingsLayers(options);
|
|
437
429
|
if (options.expectedLayers)
|
|
@@ -456,7 +448,6 @@ export function saveManagerOverrides(options) {
|
|
|
456
448
|
writeAtomically(entry, `${JSON.stringify(overrides, null, 2)}\n`);
|
|
457
449
|
return entry.filePath;
|
|
458
450
|
}
|
|
459
|
-
/** Confirmed scope transition: create an empty project layer or remove only its file. */
|
|
460
451
|
export function setManagerProjectSettings(options) {
|
|
461
452
|
if (!options.includeProject)
|
|
462
453
|
throw new Error("Project settings are not enabled/trusted");
|
|
@@ -473,13 +464,11 @@ export function setManagerProjectSettings(options) {
|
|
|
473
464
|
}
|
|
474
465
|
}
|
|
475
466
|
else if (present) {
|
|
476
|
-
// Recheck owned paths immediately before deletion; malformed JSON is removable.
|
|
477
467
|
if (settingsFileExists(entry))
|
|
478
468
|
unlinkSync(entry.filePath);
|
|
479
469
|
}
|
|
480
470
|
return entry.filePath;
|
|
481
471
|
}
|
|
482
|
-
/** Resolved settings.json path for a scope; the file may not exist. */
|
|
483
472
|
export function managerSettingsPath(options, scope) {
|
|
484
473
|
if (scope === "project") {
|
|
485
474
|
if (!options.includeProject)
|
|
@@ -488,7 +477,6 @@ export function managerSettingsPath(options, scope) {
|
|
|
488
477
|
}
|
|
489
478
|
return layer(options.agentDir, ["subagent-manager"]).filePath;
|
|
490
479
|
}
|
|
491
|
-
/** Restore a scope's defaults by deleting its settings file (nothing is written). A missing file is not an error. */
|
|
492
480
|
export function deleteManagerSettings(options) {
|
|
493
481
|
if (options.scope !== "user" && options.scope !== "project")
|
|
494
482
|
throw new Error("Invalid settings scope");
|
|
@@ -496,10 +484,8 @@ export function deleteManagerSettings(options) {
|
|
|
496
484
|
const entry = options.scope === "project"
|
|
497
485
|
? layer(options.cwd, [".pi", "agent", "subagent-manager"])
|
|
498
486
|
: layer(options.agentDir, ["subagent-manager"]);
|
|
499
|
-
// Malformed JSON is removable; symlinks and non-files are refused by settingsFileExists.
|
|
500
487
|
if (!settingsFileExists(entry))
|
|
501
488
|
return { filePath, deleted: false };
|
|
502
489
|
unlinkSync(entry.filePath);
|
|
503
490
|
return { filePath, deleted: true };
|
|
504
491
|
}
|
|
505
|
-
//# sourceMappingURL=settings.js.map
|
package/dist/types.js
CHANGED
package/dist/ui/agent-loader.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { LOADER_STYLES } from "../prefs/settings.js";
|
|
2
2
|
export const AGENT_PROGRESS_INTERVAL = 180;
|
|
3
|
-
/** Built-in glyphs only; role icons are validated separately and never replaced. */
|
|
4
3
|
export const AGENT_LOADERS = {
|
|
5
4
|
circle: {
|
|
6
5
|
label: "Circle",
|
|
7
6
|
requiresNerdFont: true,
|
|
8
|
-
// Nerd Fonts md-circle-slice-1..8, check-circle, pause-circle, close-circle, stop-circle.
|
|
9
7
|
frames: Array.from({ length: 8 }, (_, index) => String.fromCodePoint(0xf0a9e + index)),
|
|
10
8
|
states: {
|
|
11
9
|
completed: "\u{f05e0}",
|
|
@@ -23,12 +21,9 @@ export const AGENT_LOADERS = {
|
|
|
23
21
|
hourglass: {
|
|
24
22
|
label: "Hourglass",
|
|
25
23
|
requiresNerdFont: true,
|
|
26
|
-
// Nerd Fonts fa-hourglass-start/half/end, check-square, pause, times-circle, stop.
|
|
27
24
|
frames: ["\uf251", "\uf252", "\uf253"],
|
|
28
25
|
states: { completed: "\uf14a", paused: "\uf04c", failed: "\uf057", stopped: "\uf04d" },
|
|
29
26
|
},
|
|
30
|
-
// Compact ASCII palettes inspired by cli-spinners line, star2 and toggle13.
|
|
31
|
-
// https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json
|
|
32
27
|
ascii: {
|
|
33
28
|
label: "ASCII",
|
|
34
29
|
requiresNerdFont: false,
|
|
@@ -48,15 +43,12 @@ export const AGENT_LOADERS = {
|
|
|
48
43
|
states: { completed: "+", paused: "=", failed: "!", stopped: "#" },
|
|
49
44
|
},
|
|
50
45
|
};
|
|
51
|
-
/** Filter the picker without exposing private-use glyphs to ordinary fonts. */
|
|
52
46
|
export function availableLoaderStyles(nerdFontIcons) {
|
|
53
47
|
return LOADER_STYLES.filter((style) => nerdFontIcons || !AGENT_LOADERS[style].requiresNerdFont);
|
|
54
48
|
}
|
|
55
|
-
/** Preserve saved preferences, but render a portable fallback when Nerd Fonts are off. */
|
|
56
49
|
export function effectiveLoaderStyle(style, nerdFontIcons) {
|
|
57
50
|
return !nerdFontIcons && AGENT_LOADERS[style].requiresNerdFont ? "ascii" : style;
|
|
58
51
|
}
|
|
59
|
-
/** RPC/non-animated hosts use the first running frame and all settled indicators. */
|
|
60
52
|
export function agentProgressIcon(thread, nerdFontIcons, now = Date.now(), animate = true, loaderStyle = "circle") {
|
|
61
53
|
const loader = AGENT_LOADERS[effectiveLoaderStyle(loaderStyle, nerdFontIcons)];
|
|
62
54
|
if (thread.state === "starting" || thread.state === "running") {
|
|
@@ -65,9 +57,7 @@ export function agentProgressIcon(thread, nerdFontIcons, now = Date.now(), anima
|
|
|
65
57
|
}
|
|
66
58
|
return loader.states[thread.state];
|
|
67
59
|
}
|
|
68
|
-
/** Restrict the separate label prefix to trusted, single built-in loader glyphs. */
|
|
69
60
|
export function isAgentLoaderGlyph(glyph, nerdFontIcons = true) {
|
|
70
61
|
return Object.values(AGENT_LOADERS).some((loader) => (nerdFontIcons || !loader.requiresNerdFont) &&
|
|
71
62
|
(loader.frames.includes(glyph) || Object.values(loader.states).includes(glyph)));
|
|
72
63
|
}
|
|
73
|
-
//# sourceMappingURL=agent-loader.js.map
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { CustomEditor, } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { getKeybindings, Key, matchesKey, } from "@earendil-works/pi-tui";
|
|
3
|
-
/**
|
|
4
|
-
* Physical arrow boundary adapter. It owns no session/history internals and never
|
|
5
|
-
* changes the draft. Install once per root UI lifecycle, not for tree navigation.
|
|
6
|
-
* Another custom editor occupies the same host slot; skip installation rather than stack.
|
|
7
|
-
*/
|
|
8
3
|
export class AgentNavigationEditor extends CustomEditor {
|
|
9
4
|
navigationKeys;
|
|
10
5
|
navigation;
|
|
@@ -18,13 +13,9 @@ export class AgentNavigationEditor extends CustomEditor {
|
|
|
18
13
|
super(tui, theme, navigationKeys, options);
|
|
19
14
|
this.navigationKeys = navigationKeys;
|
|
20
15
|
this.navigation = navigation;
|
|
21
|
-
// SessionStartEvent.reason distinguishes startup (host hydrates AFTER
|
|
22
|
-
// installation) from reload/replacement (explicit public hydration needed).
|
|
23
|
-
// Never infer replay from prompt text: intentional repetitions are valid.
|
|
24
16
|
for (const text of navigation.initialHistory ?? [])
|
|
25
17
|
this.addToHistory(text);
|
|
26
18
|
}
|
|
27
|
-
/** Invalidates queued work without resetting a competing extension's editor. */
|
|
28
19
|
dispose() {
|
|
29
20
|
this.disposed = true;
|
|
30
21
|
this.inputEpoch++;
|
|
@@ -33,8 +24,6 @@ export class AgentNavigationEditor extends CustomEditor {
|
|
|
33
24
|
if (!matchesKey(data, direction === "left" ? Key.left : Key.right))
|
|
34
25
|
return false;
|
|
35
26
|
const action = direction === "left" ? "tui.editor.cursorLeft" : "tui.editor.cursorRight";
|
|
36
|
-
// Editor uses the global TUI bindings; CustomEditor uses the injected app
|
|
37
|
-
// manager. Both must agree, and a conflicting remap wins conservatively.
|
|
38
27
|
for (const keys of [this.navigationKeys, getKeybindings()]) {
|
|
39
28
|
if (!keys.matches(data, action))
|
|
40
29
|
return false;
|
|
@@ -61,8 +50,6 @@ export class AgentNavigationEditor extends CustomEditor {
|
|
|
61
50
|
this.inputEpoch++;
|
|
62
51
|
const previousPaste = this.pastePending;
|
|
63
52
|
const wasPaste = previousPaste || data.includes("\x1b[200~");
|
|
64
|
-
// Update before dispatch: Pi recursively sends a suffix after the end
|
|
65
|
-
// marker through this.handleInput, and that suffix is no longer paste.
|
|
66
53
|
if (data.includes("\x1b[200~"))
|
|
67
54
|
this.pastePending = true;
|
|
68
55
|
if (wasPaste && data.includes("\x1b[201~"))
|
|
@@ -102,7 +89,6 @@ export class AgentNavigationEditor extends CustomEditor {
|
|
|
102
89
|
this.onExtensionShortcut = observeShortcut;
|
|
103
90
|
this.dispatchDepth++;
|
|
104
91
|
try {
|
|
105
|
-
// Exactly one stock dispatch, preserving host-wired application controls.
|
|
106
92
|
super.handleInput(data);
|
|
107
93
|
}
|
|
108
94
|
finally {
|
|
@@ -114,8 +100,6 @@ export class AgentNavigationEditor extends CustomEditor {
|
|
|
114
100
|
if (consumed)
|
|
115
101
|
this.pastePending = previousPaste;
|
|
116
102
|
if (!consumed) {
|
|
117
|
-
// Track only public input; over-suppress when precedence is ambiguous.
|
|
118
|
-
// Recursive paste suffix dispatch updates guards, but never opens UI.
|
|
119
103
|
if (!wasPaste) {
|
|
120
104
|
const keys = getKeybindings();
|
|
121
105
|
const jump = keys.matches(data, "tui.editor.jumpForward") ||
|
|
@@ -136,8 +120,6 @@ export class AgentNavigationEditor extends CustomEditor {
|
|
|
136
120
|
}
|
|
137
121
|
}
|
|
138
122
|
queueNavigation(text, cursor, generation, direction) {
|
|
139
|
-
// Left walks one step toward the tree: minimal → full first, then full → tree.
|
|
140
|
-
// Right walks one step toward minimal. The decision is rechecked in the microtask.
|
|
141
123
|
const action = () => {
|
|
142
124
|
if (direction === "right")
|
|
143
125
|
return this.navigation.collapseWidget && (this.navigation.canCollapse?.() ?? false)
|
|
@@ -167,8 +149,6 @@ export class AgentNavigationEditor extends CustomEditor {
|
|
|
167
149
|
return;
|
|
168
150
|
}
|
|
169
151
|
try {
|
|
170
|
-
// Call within the checked microtask: an extra Promise.then would leave
|
|
171
|
-
// a gap in which root ownership could change after validation.
|
|
172
152
|
void Promise.resolve(chosen === "tree"
|
|
173
153
|
? this.navigation.openTree()
|
|
174
154
|
: chosen === "expand"
|
|
@@ -186,4 +166,3 @@ export class AgentNavigationEditor extends CustomEditor {
|
|
|
186
166
|
});
|
|
187
167
|
}
|
|
188
168
|
}
|
|
189
|
-
//# sourceMappingURL=agent-navigation-editor.js.map
|
package/dist/ui/cost-footer.js
CHANGED
|
@@ -32,19 +32,18 @@ export function footerUsage(entries) {
|
|
|
32
32
|
}
|
|
33
33
|
export const COST_WIDGET_ID = "subagent_cost";
|
|
34
34
|
export const COST_WIDGET_EVENT = "pi-footer:update-widget";
|
|
35
|
-
export const COST_ICON = "\uf0d6";
|
|
35
|
+
export const COST_ICON = "\uf0d6";
|
|
36
36
|
export function costIconGlyph(icon, nerdFontIcons) {
|
|
37
37
|
const glyphs = {
|
|
38
38
|
money: { emoji: "💵", nerd: COST_ICON },
|
|
39
|
-
coins: { emoji: "🪙", nerd: "\uede8" },
|
|
40
|
-
wallet: { emoji: "👛", nerd: "\uee1e" },
|
|
39
|
+
coins: { emoji: "🪙", nerd: "\uede8" },
|
|
40
|
+
wallet: { emoji: "👛", nerd: "\uee1e" },
|
|
41
41
|
};
|
|
42
42
|
return glyphs[icon][nerdFontIcons ? "nerd" : "emoji"];
|
|
43
43
|
}
|
|
44
44
|
export function formatSubagentCost(cost, nerdFontIcons) {
|
|
45
45
|
return `${nerdFontIcons ? COST_ICON + " " : ""}$${cost.toFixed(4)}`;
|
|
46
46
|
}
|
|
47
|
-
/** Any extension-owned /footer takes priority; never infer activity from installed packages alone. */
|
|
48
47
|
export function hasExternalFooter(pi) {
|
|
49
48
|
return pi
|
|
50
49
|
.getCommands()
|
|
@@ -89,10 +88,8 @@ export class CostFooterController {
|
|
|
89
88
|
}
|
|
90
89
|
return;
|
|
91
90
|
}
|
|
92
|
-
// Event mode also works in headless sessions; status modes need a UI consumer.
|
|
93
91
|
this.pi.events.emit(COST_WIDGET_EVENT, { widgetId: COST_WIDGET_ID, value });
|
|
94
92
|
if (hasExternalFooter(this.pi)) {
|
|
95
|
-
// Do not clear setFooter here: it could already belong to pi-footer.
|
|
96
93
|
this.installed = false;
|
|
97
94
|
this.requestRender = undefined;
|
|
98
95
|
return;
|
|
@@ -127,7 +124,6 @@ const tokens = (n) => n < 1000
|
|
|
127
124
|
: n < 1000000
|
|
128
125
|
? `${Math.round(n / 1000)}k`
|
|
129
126
|
: `${(n / 1000000).toFixed(1)}M`;
|
|
130
|
-
/** Public extension UI APIs only: never inject fake usage/messages into Pi's transcript. */
|
|
131
127
|
export function installCostFooter(ctx, subagentCost, displayCost) {
|
|
132
128
|
if (!ctx.hasUI || ctx.mode !== "tui" || !ctx.ui.setFooter)
|
|
133
129
|
return;
|
|
@@ -168,7 +164,6 @@ export function installCostFooter(ctx, subagentCost, displayCost) {
|
|
|
168
164
|
parts.push(`W${tokens(totals.cacheWrite)}`);
|
|
169
165
|
if ((totals.cacheRead || totals.cacheWrite) && totals.cacheHit !== undefined)
|
|
170
166
|
parts.push(`CH${totals.cacheHit.toFixed(1)}%`);
|
|
171
|
-
// Pi's own usage and each child's own usage are disjoint. Never aggregate a parent's descendants twice.
|
|
172
167
|
const subscription = ctx.model &&
|
|
173
168
|
(ctx.model.provider === "kimi-coding" || ctx.modelRegistry?.isUsingOAuth(ctx.model));
|
|
174
169
|
const costText = displayCost?.(totals.cost) ?? `$${(totals.cost + subagentCost()).toFixed(3)}`;
|
|
@@ -212,4 +207,3 @@ export function installCostFooter(ctx, subagentCost, displayCost) {
|
|
|
212
207
|
});
|
|
213
208
|
return () => requestRender?.();
|
|
214
209
|
}
|
|
215
|
-
//# sourceMappingURL=cost-footer.js.map
|
package/dist/ui/dialog.js
CHANGED
|
@@ -11,7 +11,6 @@ export const DIALOG_OPTIONS = {
|
|
|
11
11
|
export function dialogText(text) {
|
|
12
12
|
return stripTerminalSequences(text).replace(/[\x00-\x1f\x7f-\x9f]/g, " ");
|
|
13
13
|
}
|
|
14
|
-
/** Match Pi's overlay height calculation; maxHeight alone would clip the bottom border. */
|
|
15
14
|
export function dialogHeight(host) {
|
|
16
15
|
const rows = host.terminal?.rows ?? 24;
|
|
17
16
|
return Math.max(1, Math.min(rows - 2, Math.floor(rows * 0.9)));
|
|
@@ -29,7 +28,6 @@ export function frameDialog(theme, width, height, title, body, footer) {
|
|
|
29
28
|
const line = (text) => theme.fg("border", "│") + fit(text, inner) + theme.fg("border", "│");
|
|
30
29
|
const heading = truncateToWidth(` ${dialogText(title)} `, inner, "");
|
|
31
30
|
const top = theme.fg("border", "╭" + heading + "─".repeat(Math.max(0, inner - visibleWidth(heading))) + "╮");
|
|
32
|
-
// Pad to the full frame so centered overlays keep the same bounds between views.
|
|
33
31
|
const budget = height - 4;
|
|
34
32
|
const padded = body.slice(0, budget);
|
|
35
33
|
while (padded.length < budget)
|
|
@@ -43,7 +41,6 @@ export function frameDialog(theme, width, height, title, body, footer) {
|
|
|
43
41
|
theme.fg("border", "╰" + "─".repeat(inner) + "╯"),
|
|
44
42
|
];
|
|
45
43
|
}
|
|
46
|
-
/** A multiline editor inside the same bounded shell as the surrounding form. */
|
|
47
44
|
export class DialogEditor {
|
|
48
45
|
host;
|
|
49
46
|
theme;
|
|
@@ -108,7 +105,6 @@ export class DialogEditor {
|
|
|
108
105
|
export function dialogEditor(ctx, title, prefill) {
|
|
109
106
|
return ctx.ui.custom((host, theme, _keys, done) => new DialogEditor(host, theme, title, prefill, done), DIALOG_OPTIONS);
|
|
110
107
|
}
|
|
111
|
-
/** Bounded menu with an optional indicator column, shared by settings and agent definitions. */
|
|
112
108
|
export class DialogMenu {
|
|
113
109
|
host;
|
|
114
110
|
theme;
|
|
@@ -181,9 +177,7 @@ export class DialogMenu {
|
|
|
181
177
|
const start = Math.max(0, Math.min(this.selected - this.viewport + 1, this.rows.length - this.viewport));
|
|
182
178
|
const hasIndicators = this.rows.some((row) => row.renderIndicators);
|
|
183
179
|
const indicatorWidth = 3;
|
|
184
|
-
const labelWidth = Math.min(28, Math.max(8, Math.floor(inner * 0.35)),
|
|
185
|
-
// Reserve prefix, separators, indicators and at least one value cell at narrow widths.
|
|
186
|
-
hasIndicators ? Math.max(0, inner - 2 - 6 - indicatorWidth - 1) : Infinity);
|
|
180
|
+
const labelWidth = Math.min(28, Math.max(8, Math.floor(inner * 0.35)), hasIndicators ? Math.max(0, inner - 2 - 6 - indicatorWidth - 1) : Infinity);
|
|
187
181
|
const body = [
|
|
188
182
|
this.theme.fg("dim", ` ${this.rows.length ? this.selected + 1 : 0}/${this.rows.length} · Field / ${hasIndicators ? "Saved / " : ""}Value`),
|
|
189
183
|
...this.rows.slice(start, start + this.viewport).flatMap((row, i) => {
|
|
@@ -272,10 +266,8 @@ function safeDispose(component) {
|
|
|
272
266
|
component.dispose();
|
|
273
267
|
}
|
|
274
268
|
catch {
|
|
275
|
-
// A view that fails to dispose must not reject the session promise.
|
|
276
269
|
}
|
|
277
270
|
}
|
|
278
|
-
/** One overlay for a multi-step dialog. Child views swap without closing it. */
|
|
279
271
|
export class DialogSession {
|
|
280
272
|
host;
|
|
281
273
|
theme;
|
|
@@ -294,14 +286,12 @@ export class DialogSession {
|
|
|
294
286
|
this.keys = keys;
|
|
295
287
|
this.outerDone = done;
|
|
296
288
|
}
|
|
297
|
-
/** Current or last held child. Tests drive the active editor through this. */
|
|
298
289
|
getComponent() {
|
|
299
290
|
return this.child;
|
|
300
291
|
}
|
|
301
292
|
restoreFocus() {
|
|
302
293
|
if (this.closed)
|
|
303
294
|
return;
|
|
304
|
-
// Non-overlay custom views restore Pi's normal editor when they finish.
|
|
305
295
|
this.host.setFocus(this);
|
|
306
296
|
this.host.requestRender();
|
|
307
297
|
}
|
|
@@ -312,10 +302,6 @@ export class DialogSession {
|
|
|
312
302
|
this.focusedState = value;
|
|
313
303
|
this.forwardFocus();
|
|
314
304
|
}
|
|
315
|
-
/**
|
|
316
|
-
* Mount an overlay factory into this session. The returned promise settles
|
|
317
|
-
* from the per-view done callback and does not complete the outer overlay.
|
|
318
|
-
*/
|
|
319
305
|
mount(factory) {
|
|
320
306
|
if (this.closed)
|
|
321
307
|
return Promise.resolve(undefined);
|
|
@@ -374,7 +360,6 @@ export class DialogSession {
|
|
|
374
360
|
}
|
|
375
361
|
}
|
|
376
362
|
catch (error) {
|
|
377
|
-
// done() may already have resolved; don't reject a settled view or leave a throw unhandled.
|
|
378
363
|
rejectOnce(error);
|
|
379
364
|
}
|
|
380
365
|
});
|
|
@@ -384,7 +369,6 @@ export class DialogSession {
|
|
|
384
369
|
return;
|
|
385
370
|
this.child?.handleInput?.(data);
|
|
386
371
|
}
|
|
387
|
-
/** Fullscreen mouse events reach the overlay, so forward them to the active child view. */
|
|
388
372
|
handleMouse(event) {
|
|
389
373
|
if (this.closed || this.inputLocked)
|
|
390
374
|
return undefined;
|
|
@@ -407,7 +391,6 @@ export class DialogSession {
|
|
|
407
391
|
this.child = undefined;
|
|
408
392
|
safeDispose(child);
|
|
409
393
|
}
|
|
410
|
-
/** Complete the outer overlay once. Safe to call after the host already closed. */
|
|
411
394
|
close() {
|
|
412
395
|
if (this.closed)
|
|
413
396
|
return;
|
|
@@ -446,7 +429,6 @@ export class DialogSession {
|
|
|
446
429
|
const child = this.child;
|
|
447
430
|
if (!child || !("focused" in child))
|
|
448
431
|
return;
|
|
449
|
-
// Read the setter's latest value; the first view can mount before showOverlay focuses us.
|
|
450
432
|
child.focused = this.focused;
|
|
451
433
|
}
|
|
452
434
|
resolvePending() {
|
|
@@ -466,16 +448,10 @@ export function scopeDialogContext(ctx, session) {
|
|
|
466
448
|
return session.mount(factory);
|
|
467
449
|
return originalCustom(factory, options).finally(() => session.restoreFocus());
|
|
468
450
|
});
|
|
469
|
-
// Pi exposes ctx.ui as a getter; assignment cannot shadow an inherited accessor.
|
|
470
|
-
// Define an own property while keeping the remaining context getters live.
|
|
471
451
|
return Object.create(ctx, {
|
|
472
452
|
ui: { value: ui, writable: true, enumerable: true, configurable: true },
|
|
473
453
|
});
|
|
474
454
|
}
|
|
475
|
-
/**
|
|
476
|
-
* Run a dialog workflow inside one ctx.ui.custom overlay.
|
|
477
|
-
* Nested calls on the scoped context reuse that overlay instead of opening another.
|
|
478
|
-
*/
|
|
479
455
|
export async function withDialogSession(ctx, run) {
|
|
480
456
|
if (dialogScopes.has(ctx)) {
|
|
481
457
|
await run(ctx);
|
|
@@ -489,8 +465,6 @@ export async function withDialogSession(ctx, run) {
|
|
|
489
465
|
session = new DialogSession(host, theme, keys, done);
|
|
490
466
|
const scoped = scopeDialogContext(ctx, session);
|
|
491
467
|
dialogScopes.add(scoped);
|
|
492
|
-
// Pi mounts the returned component in a Promise continuation. Defer the
|
|
493
|
-
// workflow so even an immediate return/throw closes after that mount.
|
|
494
468
|
const task = Promise.resolve().then(() => run(scoped));
|
|
495
469
|
void task.then(() => {
|
|
496
470
|
try {
|
|
@@ -520,7 +494,6 @@ export async function withDialogSession(ctx, run) {
|
|
|
520
494
|
session?.close();
|
|
521
495
|
}
|
|
522
496
|
catch {
|
|
523
|
-
// The original custom rejection is the one that must propagate.
|
|
524
497
|
}
|
|
525
498
|
if (!failed) {
|
|
526
499
|
failed = true;
|
|
@@ -530,4 +503,3 @@ export async function withDialogSession(ctx, run) {
|
|
|
530
503
|
if (failed)
|
|
531
504
|
throw failure;
|
|
532
505
|
}
|
|
533
|
-
//# sourceMappingURL=dialog.js.map
|
package/dist/ui/import-picker.js
CHANGED
|
@@ -2,20 +2,10 @@ import { CURSOR_MARKER, getKeybindings, Key, matchesKey, truncateToWidth, visibl
|
|
|
2
2
|
import { DIALOG_OPTIONS, dialogHeight, dialogText, frameDialog, } from "./dialog.js";
|
|
3
3
|
const TITLE = "Import agents";
|
|
4
4
|
const DETAIL_LINE_CAP = 3;
|
|
5
|
-
// Critical controls first so a truncated footer still shows how to finish.
|
|
6
5
|
const FOOTER = "Space toggle · Enter import (empty skip) · Esc cancel · Ctrl+A all · ↑↓ navigate · PgUp/PgDn · Home/End";
|
|
7
|
-
/**
|
|
8
|
-
* Agent labels and paths are untrusted. dialogText strips known sequences;
|
|
9
|
-
* also drop Pi's cursor marker and any leftover ESC so a source file cannot
|
|
10
|
-
* spoof the cursor or inject a title/color sequence.
|
|
11
|
-
*/
|
|
12
6
|
function agentText(text) {
|
|
13
7
|
return dialogText(text).split(CURSOR_MARKER).join("").replaceAll("\x1b", " ");
|
|
14
8
|
}
|
|
15
|
-
/**
|
|
16
|
-
* truncateToWidth appends ESC [ 0 m when it clips. That reset is not a theme
|
|
17
|
-
* color and must not become part of the wrapped agent text.
|
|
18
|
-
*/
|
|
19
9
|
function clipVisible(text, columns) {
|
|
20
10
|
if (columns <= 0 || !text)
|
|
21
11
|
return "";
|
|
@@ -24,7 +14,6 @@ function clipVisible(text, columns) {
|
|
|
24
14
|
const clipped = truncateToWidth(text, columns, "").replaceAll("\x1b[0m", "");
|
|
25
15
|
return clipped && text.startsWith(clipped) ? clipped : "";
|
|
26
16
|
}
|
|
27
|
-
/** Split sanitized text into frame-width lines without dropping a fitting prefix. */
|
|
28
17
|
function wrapText(text, columns) {
|
|
29
18
|
const clean = agentText(text);
|
|
30
19
|
if (!clean || columns <= 0)
|
|
@@ -44,10 +33,6 @@ function wrapText(text, columns) {
|
|
|
44
33
|
}
|
|
45
34
|
return lines;
|
|
46
35
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Checkbox dialog for choosing external agents to migrate.
|
|
49
|
-
* Selection only — the caller imports; this does not read or write agent files.
|
|
50
|
-
*/
|
|
51
36
|
export class ImportPicker {
|
|
52
37
|
host;
|
|
53
38
|
theme;
|
|
@@ -62,7 +47,6 @@ export class ImportPicker {
|
|
|
62
47
|
this.items = items;
|
|
63
48
|
this.done = done;
|
|
64
49
|
}
|
|
65
|
-
/** Selected ids in source order. Empty until the user toggles a row. */
|
|
66
50
|
getSelectedIds() {
|
|
67
51
|
const seen = new Set();
|
|
68
52
|
const ids = [];
|
|
@@ -120,7 +104,6 @@ export class ImportPicker {
|
|
|
120
104
|
const current = this.items[this.cursor];
|
|
121
105
|
const detail = current ? wrapText(current.detail, columns) : [];
|
|
122
106
|
const headerCount = budget > 0 ? 1 : 0;
|
|
123
|
-
// Keep the checkbox list usable: at most 3 detail lines, and never more than 1/3 of the body.
|
|
124
107
|
let detailCount = Math.min(detail.length, DETAIL_LINE_CAP, Math.floor(budget / 3));
|
|
125
108
|
if (this.items.length > 0)
|
|
126
109
|
detailCount = Math.min(detailCount, Math.max(0, budget - headerCount - 1));
|
|
@@ -152,7 +135,6 @@ export class ImportPicker {
|
|
|
152
135
|
const position = this.items.length ? this.cursor + 1 : 0;
|
|
153
136
|
return this.theme.fg("dim", ` ${this.scrollHint(start, shown)}${this.checked.size} selected · ${position}/${this.items.length}`);
|
|
154
137
|
}
|
|
155
|
-
/** ▲/▼ counts when the checkbox list is scrolled. Omitted when every row fits. */
|
|
156
138
|
scrollHint(start, shown) {
|
|
157
139
|
if (this.items.length === 0)
|
|
158
140
|
return "";
|
|
@@ -204,8 +186,6 @@ export class ImportPicker {
|
|
|
204
186
|
this.checked.add(item.id);
|
|
205
187
|
}
|
|
206
188
|
}
|
|
207
|
-
/** Open the import checkbox dialog. Returns ids, [] to skip, or undefined if cancelled. */
|
|
208
189
|
export function selectImportAgents(ctx, items) {
|
|
209
190
|
return ctx.ui.custom((host, theme, _keys, done) => new ImportPicker(host, theme, items, done), DIALOG_OPTIONS);
|
|
210
191
|
}
|
|
211
|
-
//# sourceMappingURL=import-picker.js.map
|