@tacuchi/agent-workflow-cli 7.3.1 → 9.0.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/cli/main.js +0 -0
- package/dist/cli/tui/app.d.ts.map +1 -1
- package/dist/cli/tui/app.js +277 -76
- package/dist/cli/tui/app.js.map +1 -1
- package/dist/cli/tui/components/activity-feed.d.ts +16 -0
- package/dist/cli/tui/components/activity-feed.d.ts.map +1 -0
- package/dist/cli/tui/components/activity-feed.js +35 -0
- package/dist/cli/tui/components/activity-feed.js.map +1 -0
- package/dist/cli/tui/components/command-palette.d.ts +11 -33
- package/dist/cli/tui/components/command-palette.d.ts.map +1 -1
- package/dist/cli/tui/components/command-palette.js +18 -111
- package/dist/cli/tui/components/command-palette.js.map +1 -1
- package/dist/cli/tui/components/confirm-banner.d.ts +10 -0
- package/dist/cli/tui/components/confirm-banner.d.ts.map +1 -0
- package/dist/cli/tui/components/confirm-banner.js +11 -0
- package/dist/cli/tui/components/confirm-banner.js.map +1 -0
- package/dist/cli/tui/components/detail-panel.d.ts +34 -0
- package/dist/cli/tui/components/detail-panel.d.ts.map +1 -0
- package/dist/cli/tui/components/detail-panel.js +83 -0
- package/dist/cli/tui/components/detail-panel.js.map +1 -0
- package/dist/cli/tui/components/family-card.d.ts +14 -0
- package/dist/cli/tui/components/family-card.d.ts.map +1 -0
- package/dist/cli/tui/components/family-card.js +37 -0
- package/dist/cli/tui/components/family-card.js.map +1 -0
- package/dist/cli/tui/components/inline-wizard.d.ts +19 -0
- package/dist/cli/tui/components/inline-wizard.d.ts.map +1 -0
- package/dist/cli/tui/components/inline-wizard.js +16 -0
- package/dist/cli/tui/components/inline-wizard.js.map +1 -0
- package/dist/cli/tui/components/input-prompt.js +1 -1
- package/dist/cli/tui/components/input-prompt.js.map +1 -1
- package/dist/cli/tui/components/list-row.d.ts +30 -0
- package/dist/cli/tui/components/list-row.d.ts.map +1 -0
- package/dist/cli/tui/components/list-row.js +85 -0
- package/dist/cli/tui/components/list-row.js.map +1 -0
- package/dist/cli/tui/components/page-head.d.ts +11 -10
- package/dist/cli/tui/components/page-head.d.ts.map +1 -1
- package/dist/cli/tui/components/page-head.js +21 -10
- package/dist/cli/tui/components/page-head.js.map +1 -1
- package/dist/cli/tui/components/phase-card.d.ts +15 -0
- package/dist/cli/tui/components/phase-card.d.ts.map +1 -0
- package/dist/cli/tui/components/phase-card.js +13 -0
- package/dist/cli/tui/components/phase-card.js.map +1 -0
- package/dist/cli/tui/components/quick-actions.d.ts +9 -0
- package/dist/cli/tui/components/quick-actions.d.ts.map +1 -0
- package/dist/cli/tui/components/quick-actions.js +9 -0
- package/dist/cli/tui/components/quick-actions.js.map +1 -0
- package/dist/cli/tui/components/section-head.d.ts +10 -0
- package/dist/cli/tui/components/section-head.d.ts.map +1 -0
- package/dist/cli/tui/components/section-head.js +8 -0
- package/dist/cli/tui/components/section-head.js.map +1 -0
- package/dist/cli/tui/components/sidebar.d.ts +27 -0
- package/dist/cli/tui/components/sidebar.d.ts.map +1 -0
- package/dist/cli/tui/components/sidebar.js +37 -0
- package/dist/cli/tui/components/sidebar.js.map +1 -0
- package/dist/cli/tui/components/stat-tile.d.ts +16 -0
- package/dist/cli/tui/components/stat-tile.d.ts.map +1 -0
- package/dist/cli/tui/components/stat-tile.js +23 -0
- package/dist/cli/tui/components/stat-tile.js.map +1 -0
- package/dist/cli/tui/components/toast-stack.d.ts +3 -3
- package/dist/cli/tui/components/toast-stack.js +3 -3
- package/dist/cli/tui/data/activity.d.ts +21 -0
- package/dist/cli/tui/data/activity.d.ts.map +1 -0
- package/dist/cli/tui/data/activity.js +83 -0
- package/dist/cli/tui/data/activity.js.map +1 -0
- package/dist/cli/tui/data/workflow-content.d.ts +16 -0
- package/dist/cli/tui/data/workflow-content.d.ts.map +1 -0
- package/dist/cli/tui/data/workflow-content.js +202 -0
- package/dist/cli/tui/data/workflow-content.js.map +1 -0
- package/dist/cli/tui/tabs/mcp-tab.d.ts +3 -16
- package/dist/cli/tui/tabs/mcp-tab.d.ts.map +1 -1
- package/dist/cli/tui/tabs/mcp-tab.js +150 -195
- package/dist/cli/tui/tabs/mcp-tab.js.map +1 -1
- package/dist/cli/tui/tabs/project-tab.d.ts +0 -11
- package/dist/cli/tui/tabs/project-tab.d.ts.map +1 -1
- package/dist/cli/tui/tabs/project-tab.js +47 -86
- package/dist/cli/tui/tabs/project-tab.js.map +1 -1
- package/dist/cli/tui/tabs/skills-tab.d.ts +1 -11
- package/dist/cli/tui/tabs/skills-tab.d.ts.map +1 -1
- package/dist/cli/tui/tabs/skills-tab.js +165 -126
- package/dist/cli/tui/tabs/skills-tab.js.map +1 -1
- package/dist/cli/tui/tabs/status-tab.d.ts +14 -14
- package/dist/cli/tui/tabs/status-tab.d.ts.map +1 -1
- package/dist/cli/tui/tabs/status-tab.js +179 -36
- package/dist/cli/tui/tabs/status-tab.js.map +1 -1
- package/dist/cli/tui/tabs/workflow-tab.d.ts +9 -0
- package/dist/cli/tui/tabs/workflow-tab.d.ts.map +1 -0
- package/dist/cli/tui/tabs/workflow-tab.js +40 -0
- package/dist/cli/tui/tabs/workflow-tab.js.map +1 -0
- package/dist/cli/tui/theme.d.ts +75 -55
- package/dist/cli/tui/theme.d.ts.map +1 -1
- package/dist/cli/tui/theme.js +75 -50
- package/dist/cli/tui/theme.js.map +1 -1
- package/package.json +1 -1
- package/dist/cli/commands/orchestration.d.ts +0 -5
- package/dist/cli/commands/orchestration.d.ts.map +0 -1
- package/dist/cli/commands/orchestration.js +0 -84
- package/dist/cli/commands/orchestration.js.map +0 -1
- package/dist/cli/commands/wave2-extras.d.ts +0 -7
- package/dist/cli/commands/wave2-extras.d.ts.map +0 -1
- package/dist/cli/commands/wave2-extras.js +0 -87
- package/dist/cli/commands/wave2-extras.js.map +0 -1
- package/dist/cli/commands/wave2-final.d.ts +0 -8
- package/dist/cli/commands/wave2-final.d.ts.map +0 -1
- package/dist/cli/commands/wave2-final.js +0 -134
- package/dist/cli/commands/wave2-final.js.map +0 -1
- package/dist/cli/commands/wave4d-simple.d.ts +0 -6
- package/dist/cli/commands/wave4d-simple.d.ts.map +0 -1
- package/dist/cli/commands/wave4d-simple.js +0 -138
- package/dist/cli/commands/wave4d-simple.js.map +0 -1
- package/dist/cli/tui/components/confirm-modal.d.ts +0 -12
- package/dist/cli/tui/components/confirm-modal.d.ts.map +0 -1
- package/dist/cli/tui/components/confirm-modal.js +0 -18
- package/dist/cli/tui/components/confirm-modal.js.map +0 -1
- package/dist/cli/tui/components/connections-grid.d.ts +0 -8
- package/dist/cli/tui/components/connections-grid.d.ts.map +0 -1
- package/dist/cli/tui/components/connections-grid.js +0 -55
- package/dist/cli/tui/components/connections-grid.js.map +0 -1
- package/dist/cli/tui/components/connections-table.d.ts +0 -5
- package/dist/cli/tui/components/connections-table.d.ts.map +0 -1
- package/dist/cli/tui/components/connections-table.js +0 -11
- package/dist/cli/tui/components/connections-table.js.map +0 -1
- package/dist/cli/tui/components/footer.d.ts +0 -4
- package/dist/cli/tui/components/footer.d.ts.map +0 -1
- package/dist/cli/tui/components/footer.js +0 -6
- package/dist/cli/tui/components/footer.js.map +0 -1
- package/dist/cli/tui/components/header.d.ts +0 -14
- package/dist/cli/tui/components/header.d.ts.map +0 -1
- package/dist/cli/tui/components/header.js +0 -21
- package/dist/cli/tui/components/header.js.map +0 -1
- package/dist/cli/tui/components/host-chip.d.ts +0 -28
- package/dist/cli/tui/components/host-chip.d.ts.map +0 -1
- package/dist/cli/tui/components/host-chip.js +0 -35
- package/dist/cli/tui/components/host-chip.js.map +0 -1
- package/dist/cli/tui/components/keymap-bar.d.ts +0 -17
- package/dist/cli/tui/components/keymap-bar.d.ts.map +0 -1
- package/dist/cli/tui/components/keymap-bar.js +0 -13
- package/dist/cli/tui/components/keymap-bar.js.map +0 -1
- package/dist/cli/tui/components/pill.d.ts +0 -16
- package/dist/cli/tui/components/pill.d.ts.map +0 -1
- package/dist/cli/tui/components/pill.js +0 -24
- package/dist/cli/tui/components/pill.js.map +0 -1
- package/dist/cli/tui/components/sectioned-menu.d.ts +0 -24
- package/dist/cli/tui/components/sectioned-menu.d.ts.map +0 -1
- package/dist/cli/tui/components/sectioned-menu.js +0 -72
- package/dist/cli/tui/components/sectioned-menu.js.map +0 -1
- package/dist/cli/tui/components/tab-bar.d.ts +0 -23
- package/dist/cli/tui/components/tab-bar.d.ts.map +0 -1
- package/dist/cli/tui/components/tab-bar.js +0 -17
- package/dist/cli/tui/components/tab-bar.js.map +0 -1
- package/dist/cli/tui/screens/main-menu.d.ts +0 -8
- package/dist/cli/tui/screens/main-menu.d.ts.map +0 -1
- package/dist/cli/tui/screens/main-menu.js +0 -24
- package/dist/cli/tui/screens/main-menu.js.map +0 -1
- package/dist/cli/tui/screens/mcp-done.d.ts +0 -10
- package/dist/cli/tui/screens/mcp-done.d.ts.map +0 -1
- package/dist/cli/tui/screens/mcp-done.js +0 -24
- package/dist/cli/tui/screens/mcp-done.js.map +0 -1
- package/dist/cli/tui/screens/mcp-wizard.d.ts +0 -10
- package/dist/cli/tui/screens/mcp-wizard.d.ts.map +0 -1
- package/dist/cli/tui/screens/mcp-wizard.js +0 -97
- package/dist/cli/tui/screens/mcp-wizard.js.map +0 -1
- package/dist/cli/tui/tabs/plugins-tab.d.ts +0 -8
- package/dist/cli/tui/tabs/plugins-tab.d.ts.map +0 -1
- package/dist/cli/tui/tabs/plugins-tab.js +0 -635
- package/dist/cli/tui/tabs/plugins-tab.js.map +0 -1
- package/dist/cli/tui/tabs/update-tab.d.ts +0 -20
- package/dist/cli/tui/tabs/update-tab.d.ts.map +0 -1
- package/dist/cli/tui/tabs/update-tab.js +0 -83
- package/dist/cli/tui/tabs/update-tab.js.map +0 -1
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { runCodeScan } from "../../application/code-scan-service.js";
|
|
2
|
-
import { runBootstrapDsn } from "../../application/dev-bootstrap-dsn-service.js";
|
|
3
|
-
import { runGraduate } from "../../application/dev-graduate-service.js";
|
|
4
|
-
import { runUpgradeHubMode } from "../../application/upgrade-hub-mode-service.js";
|
|
5
|
-
export const bootstrapDsnCommand = {
|
|
6
|
-
name: "bootstrap-dsn",
|
|
7
|
-
describe: "Persist DB_CERT_DSN/DB_PROD_DSN to the namespace's dsn.env file.",
|
|
8
|
-
async execute(_args, ctx) {
|
|
9
|
-
const certDsn = ctx.env.get("DB_CERT_DSN");
|
|
10
|
-
const prodDsn = ctx.env.get("DB_PROD_DSN");
|
|
11
|
-
const result = runBootstrapDsn(ctx.paths, { certDsn, prodDsn });
|
|
12
|
-
if ("error" in result) {
|
|
13
|
-
return {
|
|
14
|
-
ok: false,
|
|
15
|
-
error: { code: "MISSING_DSN", message: result.error },
|
|
16
|
-
data: { error: result.error },
|
|
17
|
-
exitCode: 2,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
return { ok: true, data: result, exitCode: 0 };
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
export const graduateCommand = {
|
|
24
|
-
name: "graduate",
|
|
25
|
-
describe: "Graduate session artifacts (decision/manual/script/especificacion/conclusion) to docs/.",
|
|
26
|
-
async execute(args, ctx) {
|
|
27
|
-
const input = {};
|
|
28
|
-
const kind = args.values.get("kind");
|
|
29
|
-
if (kind !== undefined)
|
|
30
|
-
input.kind = kind;
|
|
31
|
-
const session = args.values.get("session");
|
|
32
|
-
if (session !== undefined)
|
|
33
|
-
input.session = session;
|
|
34
|
-
const slug = args.values.get("slug");
|
|
35
|
-
if (slug !== undefined)
|
|
36
|
-
input.slug = slug;
|
|
37
|
-
const source = args.values.get("source");
|
|
38
|
-
if (source !== undefined)
|
|
39
|
-
input.source = source;
|
|
40
|
-
if (kind === "decision") {
|
|
41
|
-
const id = args.values.get("id") ?? args.values.get("dec-id");
|
|
42
|
-
if (id !== undefined)
|
|
43
|
-
input.decId = id;
|
|
44
|
-
}
|
|
45
|
-
const data = await runGraduate(ctx.fs, ctx.env, ctx.paths, input);
|
|
46
|
-
if ("error" in data) {
|
|
47
|
-
return {
|
|
48
|
-
ok: false,
|
|
49
|
-
error: { code: "INVALID_INPUT", message: data.error },
|
|
50
|
-
data,
|
|
51
|
-
exitCode: 1,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
return { ok: true, data, exitCode: 0 };
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
export const upgradeHubModeCommand = {
|
|
58
|
-
name: "upgrade-hub-mode",
|
|
59
|
-
describe: "Detect and apply Mode: hub upgrade when ≥2 sources declared.",
|
|
60
|
-
async execute(args, ctx) {
|
|
61
|
-
const dryRun = args.flags.has("--dry-run");
|
|
62
|
-
const data = await runUpgradeHubMode(ctx.fs, ctx.env, ctx.paths, dryRun ? { dryRun: true } : {}, ctx.runtime);
|
|
63
|
-
return { ok: true, data, exitCode: 0 };
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
export const codeScanCommand = {
|
|
67
|
-
name: "code-scan",
|
|
68
|
-
describe: "Scan files for release patterns (localhost, secrets, TODOs, ...).",
|
|
69
|
-
async execute(args, ctx) {
|
|
70
|
-
const root = args.values.get("root");
|
|
71
|
-
const patternsFile = args.values.get("patterns-file");
|
|
72
|
-
const ext = args.values.get("ext");
|
|
73
|
-
const exclude = args.values.get("exclude");
|
|
74
|
-
const maxStr = args.values.get("max-per-pattern");
|
|
75
|
-
const inlinePatterns = collectInlinePatterns(process.argv.slice(2));
|
|
76
|
-
const input = {};
|
|
77
|
-
if (root !== undefined)
|
|
78
|
-
input.root = root;
|
|
79
|
-
if (patternsFile !== undefined)
|
|
80
|
-
input.patternsFile = patternsFile;
|
|
81
|
-
if (inlinePatterns.length > 0)
|
|
82
|
-
input.inlinePatterns = inlinePatterns;
|
|
83
|
-
if (ext !== undefined) {
|
|
84
|
-
input.extOverride = ext
|
|
85
|
-
.split(",")
|
|
86
|
-
.map((e) => e.trim())
|
|
87
|
-
.filter((e) => e.length > 0)
|
|
88
|
-
.map((e) => `.${e.replace(/^\.+/, "")}`);
|
|
89
|
-
}
|
|
90
|
-
if (exclude !== undefined) {
|
|
91
|
-
input.excludeOverride = exclude
|
|
92
|
-
.split(",")
|
|
93
|
-
.map((d) => d.trim())
|
|
94
|
-
.filter((d) => d.length > 0);
|
|
95
|
-
}
|
|
96
|
-
if (maxStr !== undefined) {
|
|
97
|
-
const n = Number.parseInt(maxStr, 10);
|
|
98
|
-
if (Number.isFinite(n))
|
|
99
|
-
input.maxPerPattern = n;
|
|
100
|
-
}
|
|
101
|
-
const data = await runCodeScan(ctx.fs, ctx.env, ctx.paths, input);
|
|
102
|
-
return { ok: true, data, exitCode: 0 };
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
function collectInlinePatterns(argv) {
|
|
106
|
-
const out = [];
|
|
107
|
-
for (let i = 0; i < argv.length; i++) {
|
|
108
|
-
if (argv[i] === "--pattern" && i + 1 < argv.length) {
|
|
109
|
-
const parsed = parsePatternArg(argv[i + 1] ?? "");
|
|
110
|
-
if (parsed)
|
|
111
|
-
out.push(parsed);
|
|
112
|
-
i += 1;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return out;
|
|
116
|
-
}
|
|
117
|
-
function parsePatternArg(arg) {
|
|
118
|
-
const first = arg.indexOf(":");
|
|
119
|
-
if (first === -1)
|
|
120
|
-
return null;
|
|
121
|
-
const id = arg.slice(0, first);
|
|
122
|
-
const rest = arg.slice(first + 1);
|
|
123
|
-
const second = rest.indexOf(":");
|
|
124
|
-
let regex;
|
|
125
|
-
let severity;
|
|
126
|
-
if (second === -1) {
|
|
127
|
-
regex = rest;
|
|
128
|
-
severity = "media";
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
regex = rest.slice(0, second);
|
|
132
|
-
severity = rest.slice(second + 1);
|
|
133
|
-
}
|
|
134
|
-
if (!id || !regex)
|
|
135
|
-
return null;
|
|
136
|
-
return { id, regex, severity, recommendation: "" };
|
|
137
|
-
}
|
|
138
|
-
//# sourceMappingURL=wave4d-simple.js.map
|
|
@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CAAC;IACjC,IAAI,KAAa,CAAC;IAClB,IAAI,QAAgB,CAAC;IACrB,IAAI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;QAClB,KAAK,GAAG,IAAI,CAAC;QACb,QAAQ,GAAG,OAAO,CAAC;IACrB,CAAC;SAAM,CAAC;QACN,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;QAC9B,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACpC,CAAC;IACD,IAAI,CAAC,EAAE,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAC/B,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;AACrD,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type ConfirmTone = "warning" | "danger" | "info";
|
|
2
|
-
export interface ConfirmModalProps {
|
|
3
|
-
tone: ConfirmTone;
|
|
4
|
-
title: string;
|
|
5
|
-
body: string | string[];
|
|
6
|
-
confirmKey: string;
|
|
7
|
-
cancelKey: string;
|
|
8
|
-
confirmLabel: string;
|
|
9
|
-
cancelLabel: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function ConfirmModal({ tone, title, body, confirmKey, cancelKey, confirmLabel, cancelLabel, }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=confirm-modal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-modal.d.ts","sourceRoot":"","sources":["../../../../src/cli/tui/components/confirm-modal.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAcxD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,GACZ,EAAE,iBAAiB,2CAwCnB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from "ink";
|
|
3
|
-
import { colors } from "../theme.js";
|
|
4
|
-
const TONE_TO_BORDER = {
|
|
5
|
-
warning: colors.warning,
|
|
6
|
-
danger: colors.error,
|
|
7
|
-
info: colors.info,
|
|
8
|
-
};
|
|
9
|
-
const TONE_TO_ICON = {
|
|
10
|
-
warning: "⚠",
|
|
11
|
-
danger: "⚠",
|
|
12
|
-
info: "ⓘ",
|
|
13
|
-
};
|
|
14
|
-
export function ConfirmModal({ tone, title, body, confirmKey, cancelKey, confirmLabel, cancelLabel, }) {
|
|
15
|
-
const lines = Array.isArray(body) ? body : [body];
|
|
16
|
-
return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: TONE_TO_BORDER[tone], paddingX: 2, paddingY: 1, children: [_jsx(Box, { children: _jsxs(Text, { color: TONE_TO_BORDER[tone], bold: true, children: [TONE_TO_ICON[tone], " ", title] }) }), _jsx(Box, { marginTop: 1, flexDirection: "column", children: lines.map((line) => (_jsx(Text, { color: colors.fg, children: line }, line))) }), _jsxs(Box, { marginTop: 1, flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: TONE_TO_BORDER[tone], bold: true, children: confirmKey }), _jsx(Text, { color: colors.fgMoreSubtle, children: " " }), _jsx(Text, { color: colors.fg, children: confirmLabel })] }), _jsxs(Box, { children: [_jsx(Text, { color: colors.fgSubtle, bold: true, children: cancelKey }), _jsx(Text, { color: colors.fgMoreSubtle, children: " " }), _jsx(Text, { color: colors.fgSubtle, children: cancelLabel })] })] })] }));
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=confirm-modal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-modal.js","sourceRoot":"","sources":["../../../../src/cli/tui/components/confirm-modal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC,MAAM,cAAc,GAAgC;IAClD,OAAO,EAAE,MAAM,CAAC,OAAO;IACvB,MAAM,EAAE,MAAM,CAAC,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC,IAAI;CAClB,CAAC;AAEF,MAAM,YAAY,GAAgC;IAChD,OAAO,EAAE,GAAG;IACZ,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;CACV,CAAC;AAYF,MAAM,UAAU,YAAY,CAAC,EAC3B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,GACO;IAClB,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClD,OAAO,CACL,MAAC,GAAG,IACF,aAAa,EAAC,QAAQ,EACtB,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,cAAc,CAAC,IAAI,CAAC,EACjC,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,CAAC,aAEX,KAAC,GAAG,cACF,MAAC,IAAI,IAAC,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,mBACpC,YAAY,CAAC,IAAI,CAAC,OAAG,KAAK,IACtB,GACH,EACN,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,EAAE,aAAa,EAAC,QAAQ,YACtC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,KAAC,IAAI,IAAY,KAAK,EAAE,MAAM,CAAC,EAAE,YAC9B,IAAI,IADI,IAAI,CAER,CACR,CAAC,GACE,EACN,MAAC,GAAG,IAAC,SAAS,EAAE,CAAC,EAAE,aAAa,EAAC,QAAQ,aACvC,MAAC,GAAG,eACF,KAAC,IAAI,IAAC,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,kBACpC,UAAU,GACN,EACP,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,kBAAU,EAC1C,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,EAAE,YAAG,YAAY,GAAQ,IACzC,EACN,MAAC,GAAG,eACF,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,kBAC/B,SAAS,GACL,EACP,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,kBAAU,EAC1C,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,YAAG,WAAW,GAAQ,IAC9C,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SelfMcpConnectionView } from "../../../application/self/mcp-config.js";
|
|
2
|
-
export interface ConnectionsGridProps {
|
|
3
|
-
connections: SelfMcpConnectionView[];
|
|
4
|
-
cursor: number;
|
|
5
|
-
isActive: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function ConnectionsGrid({ connections, cursor, isActive }: ConnectionsGridProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=connections-grid.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connections-grid.d.ts","sourceRoot":"","sources":["../../../../src/cli/tui/components/connections-grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAerF,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CA+DtF"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from "ink";
|
|
3
|
-
import { colors, icons } from "../theme.js";
|
|
4
|
-
const STATUS_ICON = {
|
|
5
|
-
si: icons.check,
|
|
6
|
-
no: "–",
|
|
7
|
-
drift: "!",
|
|
8
|
-
};
|
|
9
|
-
const STATUS_COLOR = {
|
|
10
|
-
si: colors.success,
|
|
11
|
-
no: colors.fgMoreSubtle,
|
|
12
|
-
drift: colors.warning,
|
|
13
|
-
};
|
|
14
|
-
export function ConnectionsGrid({ connections, cursor, isActive }) {
|
|
15
|
-
if (connections.length === 0) {
|
|
16
|
-
return (_jsx(Box, { children: _jsxs(Text, { color: colors.fgMoreSubtle, italic: true, children: ["(sin conexiones registradas \u2014 pulsa", " ", _jsx(Text, { color: colors.accent, bold: true, children: "n" }), " ", "para crear una)"] }) }));
|
|
17
|
-
}
|
|
18
|
-
const widths = computeColumnWidths(connections);
|
|
19
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: colors.fgMoreSubtle, children: " " }), _jsx(ColumnHeader, { text: "nombre", width: widths.name }), _jsx(Spacer, {}), _jsx(ColumnHeader, { text: "DSN var", width: widths.dsn }), _jsx(Spacer, {}), _jsx(ColumnHeader, { text: "Claude", width: widths.claude }), _jsx(Spacer, {}), _jsx(ColumnHeader, { text: "Codex", width: widths.codex }), _jsx(Spacer, {}), _jsx(ColumnHeader, { text: "Warp", width: widths.warp })] }), _jsxs(Box, { children: [_jsx(Text, { color: colors.fgMoreSubtle, children: " " }), _jsx(Text, { color: colors.fgMoreSubtle, children: "─".repeat(widths.name + widths.dsn + widths.claude + widths.codex + widths.warp + 8) })] }), connections.map((c, i) => {
|
|
20
|
-
const focused = isActive && i === cursor;
|
|
21
|
-
const labelColor = focused ? colors.fg : colors.fgSubtle;
|
|
22
|
-
return (_jsxs(Box, { children: [_jsx(Text, { color: focused ? colors.primary : colors.fgMoreSubtle, bold: focused, children: focused ? icons.focusBullet : " " }), _jsx(Text, { color: labelColor, ...(focused ? { bold: true } : {}), children: pad(c.nombre, widths.name) }), _jsx(Spacer, {}), _jsx(Text, { color: colors.fgSubtle, children: pad(c.dsn_var, widths.dsn) }), _jsx(Spacer, {}), _jsx(StatusCell, { status: c.instalado.claude_code, width: widths.claude }), _jsx(Spacer, {}), _jsx(StatusCell, { status: c.instalado.codex, width: widths.codex }), _jsx(Spacer, {}), _jsx(StatusCell, { status: c.instalado.warp, width: widths.warp })] }, c.nombre));
|
|
23
|
-
})] }));
|
|
24
|
-
}
|
|
25
|
-
function ColumnHeader({ text, width }) {
|
|
26
|
-
return (_jsx(Text, { color: colors.fgMoreSubtle, bold: true, children: pad(text, width) }));
|
|
27
|
-
}
|
|
28
|
-
function StatusCell({ status, width, }) {
|
|
29
|
-
const icon = STATUS_ICON[status];
|
|
30
|
-
const color = STATUS_COLOR[status];
|
|
31
|
-
const padded = centerPad(icon, width);
|
|
32
|
-
return (_jsx(Text, { color: color, bold: status === "si", children: padded }));
|
|
33
|
-
}
|
|
34
|
-
function Spacer() {
|
|
35
|
-
return _jsx(Text, { children: " " });
|
|
36
|
-
}
|
|
37
|
-
function pad(text, width) {
|
|
38
|
-
if (text.length >= width)
|
|
39
|
-
return text;
|
|
40
|
-
return text + " ".repeat(width - text.length);
|
|
41
|
-
}
|
|
42
|
-
function centerPad(text, width) {
|
|
43
|
-
if (text.length >= width)
|
|
44
|
-
return text;
|
|
45
|
-
const total = width - text.length;
|
|
46
|
-
const left = Math.floor(total / 2);
|
|
47
|
-
const right = total - left;
|
|
48
|
-
return " ".repeat(left) + text + " ".repeat(right);
|
|
49
|
-
}
|
|
50
|
-
function computeColumnWidths(connections) {
|
|
51
|
-
const name = Math.max("nombre".length, ...connections.map((c) => c.nombre.length));
|
|
52
|
-
const dsn = Math.max("DSN var".length, ...connections.map((c) => c.dsn_var.length));
|
|
53
|
-
return { name, dsn, claude: "Claude".length, codex: "Codex".length, warp: "Warp".length };
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=connections-grid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connections-grid.js","sourceRoot":"","sources":["../../../../src/cli/tui/components/connections-grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,GAA0C;IACzD,EAAE,EAAE,KAAK,CAAC,KAAK;IACf,EAAE,EAAE,GAAG;IACP,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,MAAM,YAAY,GAA0C;IAC1D,EAAE,EAAE,MAAM,CAAC,OAAO;IAClB,EAAE,EAAE,MAAM,CAAC,YAAY;IACvB,KAAK,EAAE,MAAM,CAAC,OAAO;CACtB,CAAC;AAQF,MAAM,UAAU,eAAe,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAwB;IACrF,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,CACL,KAAC,GAAG,cACF,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,+DACF,GAAG,EACvC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,wBAEzB,EAAC,GAAG,uBAEN,GACH,CACP,CAAC;IACJ,CAAC;IAED,MAAM,MA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M,EAAE,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IACnF,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACpF,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;AAC5F,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type SelfMcpConnectionView } from "../../../application/self/mcp-config.js";
|
|
2
|
-
export declare function ConnectionsTable({ connections }: {
|
|
3
|
-
connections: SelfMcpConnectionView[];
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=connections-table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connections-table.d.ts","sourceRoot":"","sources":["../../../../src/cli/tui/components/connections-table.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yCAAyC,CAAC;AAGjD,wBAAgB,gBAAgB,CAAC,EAAE,WAAW,EAAE,EAAE;IAAE,WAAW,EAAE,qBAAqB,EAAE,CAAA;CAAE,2CAWzF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from "ink";
|
|
3
|
-
import { formatConnectionsTable, } from "../../../application/self/mcp-config.js";
|
|
4
|
-
import { colors } from "../theme.js";
|
|
5
|
-
export function ConnectionsTable({ connections }) {
|
|
6
|
-
if (connections.length === 0) {
|
|
7
|
-
return (_jsx(Box, { children: _jsx(Text, { color: colors.fgMoreSubtle, italic: true, children: "(sin conexiones registradas)" }) }));
|
|
8
|
-
}
|
|
9
|
-
return _jsx(Text, { color: colors.fgSubtle, children: formatConnectionsTable(connections) });
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=connections-table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connections-table.js","sourceRoot":"","sources":["../../../../src/cli/tui/components/connections-table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAEL,sBAAsB,GACvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,UAAU,gBAAgB,CAAC,EAAE,WAAW,EAA4C;IACxF,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,CACL,KAAC,GAAG,cACF,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,mDAEjC,GACH,CACP,CAAC;IACJ,CAAC;IACD,OAAO,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,YAAG,sBAAsB,CAAC,WAAW,CAAC,GAAQ,CAAC;AACpF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../../src/cli/tui/components/footer.tsx"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,2CAMhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"footer.js","sourceRoot":"","sources":["../../../../src/cli/tui/components/footer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,MAAM,UAAU,MAAM,CAAC,EAAE,IAAI,EAAoB;IAC/C,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,IAAI,GAAQ,GAC5B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface HeaderProps {
|
|
2
|
-
version: string;
|
|
3
|
-
cwd?: string;
|
|
4
|
-
homeDir?: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Header — minimal chrome superior.
|
|
8
|
-
*
|
|
9
|
-
* Izquierda: diamante + name + version. Derecha: path corto.
|
|
10
|
-
* Sin "live indicator" — ruido innecesario.
|
|
11
|
-
*/
|
|
12
|
-
export declare function Header({ version, cwd, homeDir }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare function prettyPath(cwd: string, homeDir?: string): string;
|
|
14
|
-
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/cli/tui/components/header.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,WAAW,2CAe5D;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAMhE"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from "ink";
|
|
3
|
-
import { colors, icons } from "../theme.js";
|
|
4
|
-
/**
|
|
5
|
-
* Header — minimal chrome superior.
|
|
6
|
-
*
|
|
7
|
-
* Izquierda: diamante + name + version. Derecha: path corto.
|
|
8
|
-
* Sin "live indicator" — ruido innecesario.
|
|
9
|
-
*/
|
|
10
|
-
export function Header({ version, cwd, homeDir }) {
|
|
11
|
-
const path = cwd ? prettyPath(cwd, homeDir) : undefined;
|
|
12
|
-
return (_jsxs(Box, { justifyContent: "space-between", marginBottom: 1, children: [_jsxs(Box, { children: [_jsx(Text, { color: colors.accent, children: icons.brand }), _jsx(Text, { children: " " }), _jsx(Text, { color: colors.fgBright, bold: true, children: "agent-workflow" }), _jsxs(Text, { color: colors.fgFaint, children: [" v", version] })] }), path ? _jsx(Text, { color: colors.fgMoreSubtle, children: path }) : null] }));
|
|
13
|
-
}
|
|
14
|
-
export function prettyPath(cwd, homeDir) {
|
|
15
|
-
if (homeDir && cwd.startsWith(homeDir)) {
|
|
16
|
-
const rest = cwd.slice(homeDir.length);
|
|
17
|
-
return `~${rest}`;
|
|
18
|
-
}
|
|
19
|
-
return cwd;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../../src/cli/tui/components/header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAQ5C;;;;;GAKG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAe;IAC3D,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACxD,OAAO,CACL,MAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,YAAY,EAAE,CAAC,aACjD,MAAC,GAAG,eACF,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,YAAG,KAAK,CAAC,KAAK,GAAQ,EAChD,KAAC,IAAI,oBAAS,EACd,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,qCAE3B,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,mBAAK,OAAO,IAAQ,IAC3C,EACL,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,YAAG,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,IAC1D,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,GAAW,EAAE,OAAgB;IACtD,IAAI,OAAO,IAAI,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,IAAI,IAAI,EAAE,CAAC;IACpB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type HostMeta } from "../hosts.js";
|
|
2
|
-
export interface HostChipProps {
|
|
3
|
-
/** id del host del registry */
|
|
4
|
-
id: string;
|
|
5
|
-
/** true = host instalado / activo */
|
|
6
|
-
on?: boolean;
|
|
7
|
-
/** override de display (overrides host.glyph) */
|
|
8
|
-
glyph?: string;
|
|
9
|
-
/** sólo "sm" por defecto en TTY; "md" agrega padding lateral */
|
|
10
|
-
size?: "xs" | "sm" | "md";
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* HostChip — glyph compacto de 1 letra que indica un host.
|
|
14
|
-
* En TTY no hay fondos arbitrarios; usamos `backgroundColor` de Ink (que el
|
|
15
|
-
* renderer adapta al terminal) y color de letra. Cuando `on=false` el chip
|
|
16
|
-
* pierde el fill verde y vuelve a hueso (muted).
|
|
17
|
-
*/
|
|
18
|
-
export declare function HostChip({ id, on, glyph, size }: HostChipProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
/**
|
|
20
|
-
* HostChipStrip — todos los hosts del registry como chips, en línea.
|
|
21
|
-
* Los `active` reciben color de "on", el resto queda en "off".
|
|
22
|
-
*/
|
|
23
|
-
export declare function HostChipStrip({ active, size, hosts, }: {
|
|
24
|
-
active: readonly string[];
|
|
25
|
-
size?: "xs" | "sm" | "md";
|
|
26
|
-
hosts?: readonly HostMeta[];
|
|
27
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
//# sourceMappingURL=host-chip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host-chip.d.ts","sourceRoot":"","sources":["../../../../src/cli/tui/components/host-chip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,QAAQ,EAAY,MAAM,aAAa,CAAC;AAG7D,MAAM,WAAW,aAAa;IAC5B,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAS,EAAE,KAAK,EAAE,IAAW,EAAE,EAAE,aAAa,2CAe5E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,IAAW,EACX,KAAa,GACd,EAAE;IACD,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAC;CAC7B,2CAWA"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from "ink";
|
|
3
|
-
import { HOSTS, hostMeta } from "../hosts.js";
|
|
4
|
-
import { colors } from "../theme.js";
|
|
5
|
-
/**
|
|
6
|
-
* HostChip — glyph compacto de 1 letra que indica un host.
|
|
7
|
-
* En TTY no hay fondos arbitrarios; usamos `backgroundColor` de Ink (que el
|
|
8
|
-
* renderer adapta al terminal) y color de letra. Cuando `on=false` el chip
|
|
9
|
-
* pierde el fill verde y vuelve a hueso (muted).
|
|
10
|
-
*/
|
|
11
|
-
export function HostChip({ id, on = true, glyph, size = "sm" }) {
|
|
12
|
-
const meta = hostMeta(id);
|
|
13
|
-
const ch = glyph ?? meta.glyph;
|
|
14
|
-
if (on) {
|
|
15
|
-
return (_jsx(Text, { color: colors.success, bold: true, children: wrap(ch, size) }));
|
|
16
|
-
}
|
|
17
|
-
return (_jsx(Text, { color: colors.fgFaint, dimColor: true, children: wrap(ch, size) }));
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* HostChipStrip — todos los hosts del registry como chips, en línea.
|
|
21
|
-
* Los `active` reciben color de "on", el resto queda en "off".
|
|
22
|
-
*/
|
|
23
|
-
export function HostChipStrip({ active, size = "sm", hosts = HOSTS, }) {
|
|
24
|
-
const onSet = new Set(active);
|
|
25
|
-
return (_jsx(Box, { children: hosts.map((h, idx) => (_jsx(Box, { marginLeft: idx === 0 ? 0 : 1, children: _jsx(HostChip, { id: h.id, on: onSet.has(h.id), size: size }) }, h.id))) }));
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Render del chip — en TTY usamos `[X]` para md, `X` solo para sm/xs.
|
|
29
|
-
*/
|
|
30
|
-
function wrap(ch, size) {
|
|
31
|
-
if (size === "md")
|
|
32
|
-
return `[${ch}]`;
|
|
33
|
-
return ch;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=host-chip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host-chip.js","sourceRoot":"","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E,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,GAAI,IAD/C,CAAC,CAAC,EAAE,CAER,CACP,CAAC,GACE,CACP,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,IAAI,CAAC,EAAU,EAAE,IAAwB;IAChD,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,IAAI,EAAE,GAAG,CAAC;IACpC,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface KeymapEntry {
|
|
2
|
-
key: string;
|
|
3
|
-
action: string;
|
|
4
|
-
/** Si true, el key se renderiza en accent bold (para Ctrl+K, Enter, etc) */
|
|
5
|
-
accent?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface KeymapBarProps {
|
|
8
|
-
entries: KeymapEntry[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* KeymapBar — footer minimal con los atajos del tab activo.
|
|
12
|
-
*
|
|
13
|
-
* Una sola línea: `key label · key label · …`. Sin palette hint a la derecha
|
|
14
|
-
* (la entry de Ctrl+K va en la lista normal cuando aplica).
|
|
15
|
-
*/
|
|
16
|
-
export declare function KeymapBar({ entries }: KeymapBarProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
//# sourceMappingURL=keymap-bar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keymap-bar.d.ts","sourceRoot":"","sources":["../../../../src/cli/tui/components/keymap-bar.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,cAAc,2CAiBpD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from "ink";
|
|
3
|
-
import { colors } from "../theme.js";
|
|
4
|
-
/**
|
|
5
|
-
* KeymapBar — footer minimal con los atajos del tab activo.
|
|
6
|
-
*
|
|
7
|
-
* Una sola línea: `key label · key label · …`. Sin palette hint a la derecha
|
|
8
|
-
* (la entry de Ctrl+K va en la lista normal cuando aplica).
|
|
9
|
-
*/
|
|
10
|
-
export function KeymapBar({ entries }) {
|
|
11
|
-
return (_jsx(Box, { marginTop: 1, children: entries.map((entry, idx) => (_jsxs(Box, { children: [idx > 0 ? _jsx(Text, { color: colors.fgFaint, children: " \u00B7 " }) : null, _jsx(Text, { color: entry.accent ? colors.accent : colors.fgSubtle, ...(entry.accent ? { bold: true } : {}), children: entry.key }), _jsxs(Text, { color: colors.fgMoreSubtle, children: [" ", entry.action] })] }, `${entry.key}-${entry.action}`))) }));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=keymap-bar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keymap-bar.js","sourceRoot":"","sources":["../../../../src/cli/tui/components/keymap-bar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAarC;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,EAAE,OAAO,EAAkB;IACnD,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACd,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3B,MAAC,GAAG,eACD,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,yBAAY,CAAC,CAAC,CAAC,IAAI,EACzD,KAAC,IAAI,IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,KACjD,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,YAEvC,KAAK,CAAC,GAAG,GACL,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,kBAAI,KAAK,CAAC,MAAM,IAAQ,KARhD,GAAG,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,CASlC,CACP,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type PillTone = "ok" | "warn" | "err" | "info" | "muted" | "accent";
|
|
2
|
-
export interface PillProps {
|
|
3
|
-
tone?: PillTone;
|
|
4
|
-
children: string;
|
|
5
|
-
/** Si true, mantiene case del texto; default lo deja en lowercase. */
|
|
6
|
-
preserveCase?: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Pill — etiqueta corta tipo `[label]` con tono de color.
|
|
10
|
-
*
|
|
11
|
-
* Ink no permite `border-radius` ni `background-color` arbitrario en todos los
|
|
12
|
-
* terminales — usamos paréntesis cuadrados y color de texto para señalizar el
|
|
13
|
-
* tono. Mantiene la legibilidad y respeta la paleta sobria.
|
|
14
|
-
*/
|
|
15
|
-
export declare function Pill({ tone, children, preserveCase }: PillProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
//# sourceMappingURL=pill.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pill.d.ts","sourceRoot":"","sources":["../../../../src/cli/tui/components/pill.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,EAAE,IAAc,EAAE,QAAQ,EAAE,YAAoB,EAAE,EAAE,SAAS,2CAUjF"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from "ink";
|
|
3
|
-
import { colors } from "../theme.js";
|
|
4
|
-
/**
|
|
5
|
-
* Pill — etiqueta corta tipo `[label]` con tono de color.
|
|
6
|
-
*
|
|
7
|
-
* Ink no permite `border-radius` ni `background-color` arbitrario en todos los
|
|
8
|
-
* terminales — usamos paréntesis cuadrados y color de texto para señalizar el
|
|
9
|
-
* tono. Mantiene la legibilidad y respeta la paleta sobria.
|
|
10
|
-
*/
|
|
11
|
-
export function Pill({ tone = "muted", children, preserveCase = false }) {
|
|
12
|
-
const color = TONE_COLOR[tone];
|
|
13
|
-
const text = preserveCase ? children : children.toLowerCase();
|
|
14
|
-
return (_jsxs(Text, { color: color, children: ["[", text, "]"] }));
|
|
15
|
-
}
|
|
16
|
-
const TONE_COLOR = {
|
|
17
|
-
ok: colors.success,
|
|
18
|
-
warn: colors.warning,
|
|
19
|
-
err: colors.error,
|
|
20
|
-
info: colors.info,
|
|
21
|
-
muted: colors.fgMoreSubtle,
|
|
22
|
-
accent: colors.accent,
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=pill.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pill.js","sourceRoot":"","sources":["../../../../src/cli/tui/components/pill.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAWrC;;;;;;GAMG;AACH,MAAM,UAAU,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,EAAE,QAAQ,EAAE,YAAY,GAAG,KAAK,EAAa;IAChF,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/B,MAAM,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;IAC9D,OAAO,CACL,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,aACf,GAAG,EACH,IAAI,EACJ,GAAG,IACC,CACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,GAA6B;IAC3C,EAAE,EAAE,MAAM,CAAC,OAAO;IAClB,IAAI,EAAE,MAAM,CAAC,OAAO;IACpB,GAAG,EAAE,MAAM,CAAC,KAAK;IACjB,IAAI,EAAE,MAAM,CAAC,IAAI;IACjB,KAAK,EAAE,MAAM,CAAC,YAAY;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM;CACtB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type ColorName } from "../theme.js";
|
|
2
|
-
export interface MenuItemTrailing {
|
|
3
|
-
icon: string;
|
|
4
|
-
color: ColorName;
|
|
5
|
-
text?: string;
|
|
6
|
-
}
|
|
7
|
-
export type MenuItem<T extends string> = {
|
|
8
|
-
kind: "item";
|
|
9
|
-
label: string;
|
|
10
|
-
value: T;
|
|
11
|
-
description?: string;
|
|
12
|
-
trailing?: MenuItemTrailing;
|
|
13
|
-
} | {
|
|
14
|
-
kind: "section";
|
|
15
|
-
label?: string;
|
|
16
|
-
};
|
|
17
|
-
export interface SectionedMenuProps<T extends string> {
|
|
18
|
-
items: MenuItem<T>[];
|
|
19
|
-
onSelect: (value: T) => void;
|
|
20
|
-
isActive?: boolean;
|
|
21
|
-
defaultValue?: T;
|
|
22
|
-
}
|
|
23
|
-
export declare function SectionedMenu<T extends string>(props: SectionedMenuProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
//# sourceMappingURL=sectioned-menu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sectioned-menu.d.ts","sourceRoot":"","sources":["../../../../src/cli/tui/components/sectioned-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,aAAa,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IACjC;IACE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;IACT,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B,GACD;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAExC,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM;IAClD,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,CAAC;CAClB;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CAyD3E"}
|