jumbo-cli 2.12.0 → 2.13.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/application/context/goals/IGoalTitleReader.d.ts +9 -0
- package/dist/application/context/goals/IGoalTitleReader.d.ts.map +1 -0
- package/dist/application/context/goals/IGoalTitleReader.js +3 -0
- package/dist/application/context/goals/IGoalTitleReader.js.map +1 -0
- package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.d.ts +10 -0
- package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.d.ts.map +1 -0
- package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.js +3 -0
- package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.js.map +1 -0
- package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.d.ts +9 -0
- package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.d.ts.map +1 -0
- package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.js +14 -0
- package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.js.map +1 -0
- package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.d.ts +14 -0
- package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.d.ts.map +1 -0
- package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.js +35 -0
- package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.js.map +1 -0
- package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.d.ts +20 -0
- package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.d.ts.map +1 -0
- package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.js +48 -0
- package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.js.map +1 -0
- package/dist/infrastructure/context/goals/SqliteGoalStatusReader.d.ts +3 -1
- package/dist/infrastructure/context/goals/SqliteGoalStatusReader.d.ts.map +1 -1
- package/dist/infrastructure/context/goals/SqliteGoalStatusReader.js +6 -0
- package/dist/infrastructure/context/goals/SqliteGoalStatusReader.js.map +1 -1
- package/dist/infrastructure/host/HostBuilder.d.ts.map +1 -1
- package/dist/infrastructure/host/HostBuilder.js +10 -0
- package/dist/infrastructure/host/HostBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/architecture/view/architecture.view.d.ts.map +1 -1
- package/dist/presentation/cli/commands/architecture/view/architecture.view.js +27 -16
- package/dist/presentation/cli/commands/architecture/view/architecture.view.js.map +1 -1
- package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.js +52 -0
- package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/audience-pains/list/audiencePains.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/audience-pains/list/audiencePains.list.js +9 -33
- package/dist/presentation/cli/commands/audience-pains/list/audiencePains.list.js.map +1 -1
- package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.js +53 -0
- package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/audiences/list/audiences.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/audiences/list/audiences.list.js +9 -33
- package/dist/presentation/cli/commands/audiences/list/audiences.list.js.map +1 -1
- package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.js +62 -0
- package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/components/list/components.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/components/list/components.list.js +9 -48
- package/dist/presentation/cli/commands/components/list/components.list.js.map +1 -1
- package/dist/presentation/cli/commands/components/search/ComponentSearchOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/components/search/ComponentSearchOutputBuilder.js +16 -11
- package/dist/presentation/cli/commands/components/search/ComponentSearchOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/components/search/components.search.js +1 -1
- package/dist/presentation/cli/commands/components/search/components.search.js.map +1 -1
- package/dist/presentation/cli/commands/components/show/ComponentShowOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/components/show/ComponentShowOutputBuilder.js +42 -21
- package/dist/presentation/cli/commands/components/show/ComponentShowOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/components/undeprecate/ComponentUndeprecateOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/components/undeprecate/ComponentUndeprecateOutputBuilder.js +12 -2
- package/dist/presentation/cli/commands/components/undeprecate/ComponentUndeprecateOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.js +73 -0
- package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/decisions/list/decisions.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/decisions/list/decisions.list.js +9 -55
- package/dist/presentation/cli/commands/decisions/list/decisions.list.js.map +1 -1
- package/dist/presentation/cli/commands/decisions/restore/DecisionRestoreOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/decisions/restore/DecisionRestoreOutputBuilder.js +11 -2
- package/dist/presentation/cli/commands/decisions/restore/DecisionRestoreOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.js +67 -0
- package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/dependencies/list/dependencies.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/dependencies/list/dependencies.list.js +21 -71
- package/dist/presentation/cli/commands/dependencies/list/dependencies.list.js.map +1 -1
- package/dist/presentation/cli/commands/evolve/EvolveOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/evolve/EvolveOutputBuilder.js +25 -4
- package/dist/presentation/cli/commands/evolve/EvolveOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/add/GoalAddOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/add/GoalAddOutputBuilder.js +15 -4
- package/dist/presentation/cli/commands/goals/add/GoalAddOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/approve/GoalApproveOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/approve/GoalApproveOutputBuilder.js +18 -21
- package/dist/presentation/cli/commands/goals/approve/GoalApproveOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/approve/goal.approve.js +1 -1
- package/dist/presentation/cli/commands/goals/approve/goal.approve.js.map +1 -1
- package/dist/presentation/cli/commands/goals/block/GoalBlockOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/block/GoalBlockOutputBuilder.js +12 -6
- package/dist/presentation/cli/commands/goals/block/GoalBlockOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/block/goal.block.js +1 -1
- package/dist/presentation/cli/commands/goals/block/goal.block.js.map +1 -1
- package/dist/presentation/cli/commands/goals/close/GoalCloseOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/close/GoalCloseOutputBuilder.js +25 -11
- package/dist/presentation/cli/commands/goals/close/GoalCloseOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/close/goal.close.js +1 -1
- package/dist/presentation/cli/commands/goals/close/goal.close.js.map +1 -1
- package/dist/presentation/cli/commands/goals/codify/GoalCodifyOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/codify/GoalCodifyOutputBuilder.js +78 -60
- package/dist/presentation/cli/commands/goals/codify/GoalCodifyOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/codify/goal.codify.js +1 -1
- package/dist/presentation/cli/commands/goals/codify/goal.codify.js.map +1 -1
- package/dist/presentation/cli/commands/goals/commit/GoalCommitOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/commit/GoalCommitOutputBuilder.js +13 -5
- package/dist/presentation/cli/commands/goals/commit/GoalCommitOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/commit/goal.commit.js +1 -1
- package/dist/presentation/cli/commands/goals/commit/goal.commit.js.map +1 -1
- package/dist/presentation/cli/commands/goals/list/GoalListOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/list/GoalListOutputBuilder.js +20 -10
- package/dist/presentation/cli/commands/goals/list/GoalListOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/pause/GoalPauseOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/pause/GoalPauseOutputBuilder.js +14 -8
- package/dist/presentation/cli/commands/goals/pause/GoalPauseOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/pause/goal.pause.js +2 -2
- package/dist/presentation/cli/commands/goals/pause/goal.pause.js.map +1 -1
- package/dist/presentation/cli/commands/goals/qualify/GoalQualifyOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/qualify/GoalQualifyOutputBuilder.js +19 -20
- package/dist/presentation/cli/commands/goals/qualify/GoalQualifyOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/qualify/goal.qualify.js +1 -1
- package/dist/presentation/cli/commands/goals/qualify/goal.qualify.js.map +1 -1
- package/dist/presentation/cli/commands/goals/refine/GoalRefineOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/refine/GoalRefineOutputBuilder.js +25 -22
- package/dist/presentation/cli/commands/goals/refine/GoalRefineOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/refine/goal.refine.js +6 -5
- package/dist/presentation/cli/commands/goals/refine/goal.refine.js.map +1 -1
- package/dist/presentation/cli/commands/goals/reject/GoalRejectOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/reject/GoalRejectOutputBuilder.js +23 -23
- package/dist/presentation/cli/commands/goals/reject/GoalRejectOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/reject/goal.reject.js +1 -1
- package/dist/presentation/cli/commands/goals/reject/goal.reject.js.map +1 -1
- package/dist/presentation/cli/commands/goals/remove/GoalRemoveOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/remove/GoalRemoveOutputBuilder.js +12 -6
- package/dist/presentation/cli/commands/goals/remove/GoalRemoveOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/remove/goal.remove.js +1 -1
- package/dist/presentation/cli/commands/goals/remove/goal.remove.js.map +1 -1
- package/dist/presentation/cli/commands/goals/reset/GoalResetOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/reset/GoalResetOutputBuilder.js +13 -7
- package/dist/presentation/cli/commands/goals/reset/GoalResetOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/reset/goal.reset.js +1 -1
- package/dist/presentation/cli/commands/goals/reset/goal.reset.js.map +1 -1
- package/dist/presentation/cli/commands/goals/resume/GoalResumeOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/resume/GoalResumeOutputBuilder.js +62 -56
- package/dist/presentation/cli/commands/goals/resume/GoalResumeOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/resume/goal.resume.js +2 -2
- package/dist/presentation/cli/commands/goals/resume/goal.resume.js.map +1 -1
- package/dist/presentation/cli/commands/goals/review/GoalReviewOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/review/GoalReviewOutputBuilder.js +73 -52
- package/dist/presentation/cli/commands/goals/review/GoalReviewOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/review/goal.review.js +1 -1
- package/dist/presentation/cli/commands/goals/review/goal.review.js.map +1 -1
- package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.d.ts +0 -8
- package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.js +53 -105
- package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/show/goal.show.js +1 -1
- package/dist/presentation/cli/commands/goals/show/goal.show.js.map +1 -1
- package/dist/presentation/cli/commands/goals/start/GoalStartOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/start/GoalStartOutputBuilder.js +58 -51
- package/dist/presentation/cli/commands/goals/start/GoalStartOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/start/goal.start.js +2 -2
- package/dist/presentation/cli/commands/goals/start/goal.start.js.map +1 -1
- package/dist/presentation/cli/commands/goals/submit/GoalSubmitOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/submit/GoalSubmitOutputBuilder.js +15 -14
- package/dist/presentation/cli/commands/goals/submit/GoalSubmitOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/submit/goal.submit.js +1 -1
- package/dist/presentation/cli/commands/goals/submit/goal.submit.js.map +1 -1
- package/dist/presentation/cli/commands/goals/unblock/GoalUnblockOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/unblock/GoalUnblockOutputBuilder.js +14 -2
- package/dist/presentation/cli/commands/goals/unblock/GoalUnblockOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/unblock/goal.unblock.js +2 -2
- package/dist/presentation/cli/commands/goals/unblock/goal.unblock.js.map +1 -1
- package/dist/presentation/cli/commands/goals/update/GoalUpdateOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/update/GoalUpdateOutputBuilder.js +10 -2
- package/dist/presentation/cli/commands/goals/update/GoalUpdateOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/update/goal.update.js +4 -4
- package/dist/presentation/cli/commands/goals/update/goal.update.js.map +1 -1
- package/dist/presentation/cli/commands/goals/update-progress/GoalUpdateProgressOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/update-progress/GoalUpdateProgressOutputBuilder.js +16 -8
- package/dist/presentation/cli/commands/goals/update-progress/GoalUpdateProgressOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/update-progress/goal.update-progress.js +1 -1
- package/dist/presentation/cli/commands/goals/update-progress/goal.update-progress.js.map +1 -1
- package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.js +57 -0
- package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/guidelines/list/guidelines.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/guidelines/list/guidelines.list.js +9 -27
- package/dist/presentation/cli/commands/guidelines/list/guidelines.list.js.map +1 -1
- package/dist/presentation/cli/commands/heal/HealOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/heal/HealOutputBuilder.js +18 -6
- package/dist/presentation/cli/commands/heal/HealOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/host/workers/worker.view.d.ts.map +1 -1
- package/dist/presentation/cli/commands/host/workers/worker.view.js +10 -4
- package/dist/presentation/cli/commands/host/workers/worker.view.js.map +1 -1
- package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.js +53 -0
- package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/invariants/list/invariants.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/invariants/list/invariants.list.js +9 -23
- package/dist/presentation/cli/commands/invariants/list/invariants.list.js.map +1 -1
- package/dist/presentation/cli/commands/project/init/project.init.js +8 -8
- package/dist/presentation/cli/commands/project/init/project.init.js.map +1 -1
- package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.d.ts +13 -0
- package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.js +64 -0
- package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/relations/list/relations.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/relations/list/relations.list.js +15 -37
- package/dist/presentation/cli/commands/relations/list/relations.list.js.map +1 -1
- package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.js +61 -0
- package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/sessions/list/sessions.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/sessions/list/sessions.list.js +9 -47
- package/dist/presentation/cli/commands/sessions/list/sessions.list.js.map +1 -1
- package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.js +59 -0
- package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/value-propositions/list/values.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/value-propositions/list/values.list.js +9 -32
- package/dist/presentation/cli/commands/value-propositions/list/values.list.js.map +1 -1
- package/dist/presentation/cli/commands/work/refine/RefineryDisplay.d.ts.map +1 -1
- package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js +12 -15
- package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js.map +1 -1
- package/dist/presentation/cli/rendering/OutputLayout.d.ts +39 -0
- package/dist/presentation/cli/rendering/OutputLayout.d.ts.map +1 -0
- package/dist/presentation/cli/rendering/OutputLayout.js +81 -0
- package/dist/presentation/cli/rendering/OutputLayout.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SessionListOutputBuilder = void 0;
|
|
4
|
+
const TerminalOutputBuilder_js_1 = require("../../../output/TerminalOutputBuilder.js");
|
|
5
|
+
const StyleConfig_js_1 = require("../../../rendering/StyleConfig.js");
|
|
6
|
+
const OutputLayout_js_1 = require("../../../rendering/OutputLayout.js");
|
|
7
|
+
class SessionListOutputBuilder {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.builder = new TerminalOutputBuilder_js_1.TerminalOutputBuilder();
|
|
10
|
+
}
|
|
11
|
+
build(sessions, filter) {
|
|
12
|
+
this.builder.reset();
|
|
13
|
+
const filterLabel = filter && filter !== "all" ? ` (${filter})` : "";
|
|
14
|
+
const lines = [];
|
|
15
|
+
lines.push("");
|
|
16
|
+
lines.push((0, OutputLayout_js_1.heading)(`Session History${filterLabel} (${sessions.length})`));
|
|
17
|
+
for (let i = 0; i < sessions.length; i++) {
|
|
18
|
+
const s = sessions[i];
|
|
19
|
+
if (i > 0)
|
|
20
|
+
lines.push("");
|
|
21
|
+
const statusTag = `[${s.status.toUpperCase()}]`;
|
|
22
|
+
lines.push((0, OutputLayout_js_1.contentLine)(`${StyleConfig_js_1.Colors.bold(statusTag)} ${StyleConfig_js_1.BrandColors.accentCyan(s.sessionId)}`));
|
|
23
|
+
if (s.focus) {
|
|
24
|
+
lines.push((0, OutputLayout_js_1.metaField)("Focus", StyleConfig_js_1.Colors.primary(s.focus), 9));
|
|
25
|
+
}
|
|
26
|
+
lines.push((0, OutputLayout_js_1.metaField)("Started", StyleConfig_js_1.Colors.muted(s.startedAt), 9));
|
|
27
|
+
if (s.endedAt) {
|
|
28
|
+
lines.push((0, OutputLayout_js_1.metaField)("Ended", StyleConfig_js_1.Colors.muted(s.endedAt), 9));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
this.builder.addPrompt(lines.join("\n"));
|
|
32
|
+
return this.builder.build();
|
|
33
|
+
}
|
|
34
|
+
buildStructuredOutput(sessions, filter) {
|
|
35
|
+
this.builder.reset();
|
|
36
|
+
this.builder.addData({
|
|
37
|
+
count: sessions.length,
|
|
38
|
+
filter: filter ?? "all",
|
|
39
|
+
sessions: sessions.map((s) => ({
|
|
40
|
+
sessionId: s.sessionId,
|
|
41
|
+
status: s.status,
|
|
42
|
+
focus: s.focus,
|
|
43
|
+
startedAt: s.startedAt,
|
|
44
|
+
endedAt: s.endedAt,
|
|
45
|
+
createdAt: s.createdAt,
|
|
46
|
+
updatedAt: s.updatedAt,
|
|
47
|
+
})),
|
|
48
|
+
});
|
|
49
|
+
return this.builder.build();
|
|
50
|
+
}
|
|
51
|
+
buildFailureError(error) {
|
|
52
|
+
this.builder.reset();
|
|
53
|
+
this.builder.addPrompt(`${StyleConfig_js_1.Symbols.cross} ${StyleConfig_js_1.Colors.error("Failed to list sessions")}`);
|
|
54
|
+
this.builder.addData({
|
|
55
|
+
message: error instanceof Error ? error.message : error,
|
|
56
|
+
});
|
|
57
|
+
return this.builder.build();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.SessionListOutputBuilder = SessionListOutputBuilder;
|
|
61
|
+
//# sourceMappingURL=SessionListOutputBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionListOutputBuilder.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/SessionListOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAGjF,sEAAiF;AACjF,wEAAqF;AAErF,MAAa,wBAAwB;IAArC;QACU,YAAO,GAAG,IAAI,gDAAqB,EAAE,CAAC;IAsDhD,CAAC;IApDC,KAAK,CAAC,QAAuB,EAAE,MAAe;QAC5C,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,MAAM,WAAW,GAAG,MAAM,IAAI,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACrE,MAAM,KAAK,GAAa,EAAE,CAAC;QAE3B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,IAAA,yBAAO,EAAC,kBAAkB,WAAW,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAE1E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YACtB,IAAI,CAAC,GAAG,CAAC;gBAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC;YAChD,KAAK,CAA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EAAE,CAAC,CAAC,KAAK;gBACd,SAAS,EAAE,CAAC,CAAC,SAAS;gBACtB,OAAO,EAAE,CAAC,CAAC,OAAO;gBAClB,SAAS,EAAE,CAAC,CAAC,SAAS;gBACtB,SAAS,EAAE,CAAC,CAAC,SAAS;aACvB,CAAC,CAAC;SACJ,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED,iBAAiB,CAAC,KAAqB;QACrC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,wBAAO,CAAC,KAAK,IAAI,uBAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,EAAE,CAAC,CAAC;QACtF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;SACxD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AAvDD,4DAuDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.list.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/sessions.list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"sessions.list.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/sessions.list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAOjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAwBtB,CAAC;AASF;;;GAGG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EAC5B,SAAS,EAAE,qBAAqB,iBAuCjC"}
|
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.metadata = void 0;
|
|
14
14
|
exports.sessionsList = sessionsList;
|
|
15
15
|
const Renderer_js_1 = require("../../../rendering/Renderer.js");
|
|
16
|
+
const SessionListOutputBuilder_js_1 = require("./SessionListOutputBuilder.js");
|
|
16
17
|
/**
|
|
17
18
|
* Command metadata for auto-registration
|
|
18
19
|
*/
|
|
@@ -41,32 +42,6 @@ exports.metadata = {
|
|
|
41
42
|
],
|
|
42
43
|
related: ["session start", "session end"],
|
|
43
44
|
};
|
|
44
|
-
/**
|
|
45
|
-
* Format status for display
|
|
46
|
-
*/
|
|
47
|
-
function formatStatus(status) {
|
|
48
|
-
const statusMap = {
|
|
49
|
-
active: "[ACTIVE]",
|
|
50
|
-
paused: "[PAUSED]",
|
|
51
|
-
blocked: "[BLOCKED]",
|
|
52
|
-
ended: "[ENDED]",
|
|
53
|
-
};
|
|
54
|
-
return statusMap[status] || `[${status.toUpperCase()}]`;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Format session for text output
|
|
58
|
-
*/
|
|
59
|
-
function formatSessionText(session) {
|
|
60
|
-
console.log(`${formatStatus(session.status)} ${session.sessionId}`);
|
|
61
|
-
if (session.focus) {
|
|
62
|
-
console.log(` Focus: ${session.focus}`);
|
|
63
|
-
}
|
|
64
|
-
console.log(` Started: ${session.startedAt}`);
|
|
65
|
-
if (session.endedAt) {
|
|
66
|
-
console.log(` Ended: ${session.endedAt}`);
|
|
67
|
-
}
|
|
68
|
-
console.log("");
|
|
69
|
-
}
|
|
70
45
|
/**
|
|
71
46
|
* Validate status filter
|
|
72
47
|
*/
|
|
@@ -95,30 +70,17 @@ async function sessionsList(options, container) {
|
|
|
95
70
|
}
|
|
96
71
|
// Check if we're in structured output mode by examining renderer config
|
|
97
72
|
const config = renderer.getConfig();
|
|
73
|
+
const outputBuilder = new SessionListOutputBuilder_js_1.SessionListOutputBuilder();
|
|
98
74
|
if (config.format === "text") {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
console.log(`\nSession History${filterLabel} (${sessions.length}):\n`);
|
|
102
|
-
for (const session of sessions) {
|
|
103
|
-
formatSessionText(session);
|
|
104
|
-
}
|
|
75
|
+
const output = outputBuilder.build(sessions, statusFilter);
|
|
76
|
+
renderer.info(output.toHumanReadable());
|
|
105
77
|
}
|
|
106
78
|
else {
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
sessionId: s.sessionId,
|
|
113
|
-
status: s.status,
|
|
114
|
-
focus: s.focus,
|
|
115
|
-
startedAt: s.startedAt,
|
|
116
|
-
endedAt: s.endedAt,
|
|
117
|
-
createdAt: s.createdAt,
|
|
118
|
-
updatedAt: s.updatedAt,
|
|
119
|
-
})),
|
|
120
|
-
};
|
|
121
|
-
renderer.data(data);
|
|
79
|
+
const output = outputBuilder.buildStructuredOutput(sessions, statusFilter);
|
|
80
|
+
const sections = output.getSections();
|
|
81
|
+
const dataSection = sections.find(s => s.type === "data");
|
|
82
|
+
if (dataSection)
|
|
83
|
+
renderer.data(dataSection.content);
|
|
122
84
|
}
|
|
123
85
|
}
|
|
124
86
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/sessions.list.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;
|
|
1
|
+
{"version":3,"file":"sessions.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/sessions.list.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAkDH,oCAyCC;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
+
import { TerminalOutput } from '../../../output/TerminalOutput.js';
|
|
2
|
+
import { ValuePropositionView } from '../../../../../application/context/value-propositions/ValuePropositionView.js';
|
|
3
|
+
export declare class ValueListOutputBuilder {
|
|
4
|
+
private builder;
|
|
5
|
+
build(values: ValuePropositionView[]): TerminalOutput;
|
|
6
|
+
buildStructuredOutput(values: ValuePropositionView[]): TerminalOutput;
|
|
7
|
+
buildFailureError(error: Error | string): TerminalOutput;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=ValueListOutputBuilder.d.ts.map
|
package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueListOutputBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+EAA+E,CAAC;AAIrH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,OAAO,CAA+B;IAE9C,KAAK,CAAC,MAAM,EAAE,oBAAoB,EAAE,GAAG,cAAc;IAyBrD,qBAAqB,CAAC,MAAM,EAAE,oBAAoB,EAAE,GAAG,cAAc;IAiBrE,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,cAAc;CAQzD"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValueListOutputBuilder = void 0;
|
|
4
|
+
const TerminalOutputBuilder_js_1 = require("../../../output/TerminalOutputBuilder.js");
|
|
5
|
+
const StyleConfig_js_1 = require("../../../rendering/StyleConfig.js");
|
|
6
|
+
const OutputLayout_js_1 = require("../../../rendering/OutputLayout.js");
|
|
7
|
+
class ValueListOutputBuilder {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.builder = new TerminalOutputBuilder_js_1.TerminalOutputBuilder();
|
|
10
|
+
}
|
|
11
|
+
build(values) {
|
|
12
|
+
this.builder.reset();
|
|
13
|
+
const lines = [];
|
|
14
|
+
lines.push("");
|
|
15
|
+
lines.push((0, OutputLayout_js_1.heading)(`Value Propositions (${values.length})`));
|
|
16
|
+
for (let i = 0; i < values.length; i++) {
|
|
17
|
+
const v = values[i];
|
|
18
|
+
if (i > 0)
|
|
19
|
+
lines.push("");
|
|
20
|
+
lines.push((0, OutputLayout_js_1.contentLine)(StyleConfig_js_1.BrandColors.accentCyan(v.title)));
|
|
21
|
+
lines.push(...(0, OutputLayout_js_1.wrapContent)(v.description));
|
|
22
|
+
if (v.benefit) {
|
|
23
|
+
lines.push((0, OutputLayout_js_1.metaField)("Benefit", StyleConfig_js_1.Colors.primary(v.benefit), 9));
|
|
24
|
+
}
|
|
25
|
+
if (v.measurableOutcome) {
|
|
26
|
+
lines.push((0, OutputLayout_js_1.metaField)("Outcome", StyleConfig_js_1.Colors.primary(v.measurableOutcome), 9));
|
|
27
|
+
}
|
|
28
|
+
lines.push((0, OutputLayout_js_1.metaField)("ID", StyleConfig_js_1.Colors.muted(v.valuePropositionId), 9));
|
|
29
|
+
}
|
|
30
|
+
this.builder.addPrompt(lines.join("\n"));
|
|
31
|
+
return this.builder.build();
|
|
32
|
+
}
|
|
33
|
+
buildStructuredOutput(values) {
|
|
34
|
+
this.builder.reset();
|
|
35
|
+
this.builder.addData({
|
|
36
|
+
count: values.length,
|
|
37
|
+
valuePropositions: values.map((v) => ({
|
|
38
|
+
valuePropositionId: v.valuePropositionId,
|
|
39
|
+
title: v.title,
|
|
40
|
+
description: v.description,
|
|
41
|
+
benefit: v.benefit,
|
|
42
|
+
measurableOutcome: v.measurableOutcome,
|
|
43
|
+
createdAt: v.createdAt,
|
|
44
|
+
updatedAt: v.updatedAt,
|
|
45
|
+
})),
|
|
46
|
+
});
|
|
47
|
+
return this.builder.build();
|
|
48
|
+
}
|
|
49
|
+
buildFailureError(error) {
|
|
50
|
+
this.builder.reset();
|
|
51
|
+
this.builder.addPrompt(`${StyleConfig_js_1.Symbols.cross} ${StyleConfig_js_1.Colors.error("Failed to list value propositions")}`);
|
|
52
|
+
this.builder.addData({
|
|
53
|
+
message: error instanceof Error ? error.message : error,
|
|
54
|
+
});
|
|
55
|
+
return this.builder.build();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ValueListOutputBuilder = ValueListOutputBuilder;
|
|
59
|
+
//# sourceMappingURL=ValueListOutputBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueListOutputBuilder.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAGjF,sEAAiF;AACjF,wEAAkG;AAElG,MAAa,sBAAsB;IAAnC;QACU,YAAO,GAAG,IAAI,gDAAqB,EAAE,CAAC;IAoDhD,CAAC;IAlDC,KAAK,CAAC,MAA8B;QAClC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,MAAM,KAAK,GAAa,EAAE,CAAC;QAE3B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,IAAA,yBAAO,EAAC,uBAAuB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAE7D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACpB,IAAI,CAAC,GAAG,CAAC;gBAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC1B,KAAK,CAAC,IAAI,CAAC,IAAA,6BAAW,EAAC,4BAAW,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC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,iBAAiB;gBACtC,SAAS,EAAE,CAAC,CAAC,SAAS;gBACtB,SAAS,EAAE,CAAC,CAAC,SAAS;aACvB,CAAC,CAAC;SACJ,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED,iBAAiB,CAAC,KAAqB;QACrC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,wBAAO,CAAC,KAAK,IAAI,uBAAM,CAAC,KAAK,CAAC,mCAAmC,CAAC,EAAE,CAAC,CAAC;QAChG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;SACxD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AArDD,wDAqDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.list.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/values.list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"values.list.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/values.list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAKjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAkBtB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC/B,SAAS,EAAE,qBAAqB,iBA8BjC"}
|
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.metadata = void 0;
|
|
14
14
|
exports.valuesList = valuesList;
|
|
15
15
|
const Renderer_js_1 = require("../../../rendering/Renderer.js");
|
|
16
|
+
const ValueListOutputBuilder_js_1 = require("./ValueListOutputBuilder.js");
|
|
16
17
|
/**
|
|
17
18
|
* Command metadata for auto-registration
|
|
18
19
|
*/
|
|
@@ -35,19 +36,6 @@ exports.metadata = {
|
|
|
35
36
|
],
|
|
36
37
|
related: ["value add", "value update", "value remove"],
|
|
37
38
|
};
|
|
38
|
-
/**
|
|
39
|
-
* Format value proposition for text output
|
|
40
|
-
*/
|
|
41
|
-
function formatValueText(value) {
|
|
42
|
-
console.log(`${value.title}`);
|
|
43
|
-
console.log(` ${value.description}`);
|
|
44
|
-
console.log(` Benefit: ${value.benefit}`);
|
|
45
|
-
if (value.measurableOutcome) {
|
|
46
|
-
console.log(` Outcome: ${value.measurableOutcome}`);
|
|
47
|
-
}
|
|
48
|
-
console.log(` ID: ${value.valuePropositionId}`);
|
|
49
|
-
console.log("");
|
|
50
|
-
}
|
|
51
39
|
/**
|
|
52
40
|
* Command handler
|
|
53
41
|
* Called by Commander with parsed options
|
|
@@ -62,28 +50,17 @@ async function valuesList(_options, container) {
|
|
|
62
50
|
}
|
|
63
51
|
// Check if we're in structured output mode by examining renderer config
|
|
64
52
|
const config = renderer.getConfig();
|
|
53
|
+
const outputBuilder = new ValueListOutputBuilder_js_1.ValueListOutputBuilder();
|
|
65
54
|
if (config.format === "text") {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (const value of values) {
|
|
69
|
-
formatValueText(value);
|
|
70
|
-
}
|
|
55
|
+
const output = outputBuilder.build(values);
|
|
56
|
+
renderer.info(output.toHumanReadable());
|
|
71
57
|
}
|
|
72
58
|
else {
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
title: v.title,
|
|
79
|
-
description: v.description,
|
|
80
|
-
benefit: v.benefit,
|
|
81
|
-
measurableOutcome: v.measurableOutcome,
|
|
82
|
-
createdAt: v.createdAt,
|
|
83
|
-
updatedAt: v.updatedAt,
|
|
84
|
-
})),
|
|
85
|
-
};
|
|
86
|
-
renderer.data(data);
|
|
59
|
+
const output = outputBuilder.buildStructuredOutput(values);
|
|
60
|
+
const sections = output.getSections();
|
|
61
|
+
const dataSection = sections.find(s => s.type === "data");
|
|
62
|
+
if (dataSection)
|
|
63
|
+
renderer.data(dataSection.content);
|
|
87
64
|
}
|
|
88
65
|
}
|
|
89
66
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/values.list.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;
|
|
1
|
+
{"version":3,"file":"values.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/values.list.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAmCH,gCAgCC;AA/DD,gEAA0D;AAE1D,2EAAqE;AAErE;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,mBAAmB;IAC7B,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,mBAAmB;YAC5B,WAAW,EAAE,4CAA4C;SAC1D;QACD;YACE,OAAO,EAAE,iCAAiC;YAC1C,WAAW,EAAE,qCAAqC;SACnD;QACD;YACE,OAAO,EAAE,iCAAiC;YAC1C,WAAW,EAAE,qCAAqC;SACnD;KACF;IACD,OAAO,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,cAAc,CAAC;CACvD,CAAC;AAEF;;;GAGG;AACI,KAAK,UAAU,UAAU,CAC9B,QAA+B,EAC/B,SAAgC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AChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefineryDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/work/refine/RefineryDisplay.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"RefineryDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/work/refine/RefineryDisplay.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,KAAK,CAAsB;gBAEvB,MAAM,EAAE,cAAc;IAKlC,6EAA6E;IACvE,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBnC,kDAAkD;IAClD,YAAY,IAAI;QAAE,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;IAIpC,iCAAiC;IACjC,eAAe,CACb,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,IAAI;IAQP,qDAAqD;IACrD,aAAa,IAAI;QAAE,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;IAIrC,6BAA6B;IAC7B,kBAAkB,CAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,IAAI;IASP,0CAA0C;IAC1C,iBAAiB,CACf,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB,IAAI;IAQP,wBAAwB;IACxB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAItD,iCAAiC;IACjC,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAIrE,8BAA8B;IAC9B,cAAc,IAAI,IAAI;IAOtB,OAAO,CAAC,GAAG;IAIX,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,OAAO;CAGhB"}
|
|
@@ -11,12 +11,9 @@ exports.RefineryDisplay = void 0;
|
|
|
11
11
|
const StyleConfig_js_1 = require("../../../rendering/StyleConfig.js");
|
|
12
12
|
const GlimmerEffect_js_1 = require("../../../animations/GlimmerEffect.js");
|
|
13
13
|
const BrailleSpinner_js_1 = require("../../../animations/BrailleSpinner.js");
|
|
14
|
+
// Raw ANSI codes retained only for the glimmer animation API
|
|
15
|
+
// which requires raw string prefixes, not chalk-wrapped strings.
|
|
14
16
|
const RESET = "\x1b[0m";
|
|
15
|
-
const DIM = "\x1b[2m";
|
|
16
|
-
const GREEN = "\x1b[32m";
|
|
17
|
-
const YELLOW = "\x1b[33m";
|
|
18
|
-
const RED = "\x1b[31m";
|
|
19
|
-
const BOLD = "\x1b[1m";
|
|
20
17
|
const BRIGHT_WHITE = "\x1b[97m";
|
|
21
18
|
const [jbR, jbG, jbB] = StyleConfig_js_1.BrandColors.jumboBlueRaw;
|
|
22
19
|
const JUMBO_BLUE = `\x1b[38;2;${jbR};${jbG};${jbB}m`;
|
|
@@ -34,7 +31,7 @@ class RefineryDisplay {
|
|
|
34
31
|
highlightColor: BRIGHT_WHITE,
|
|
35
32
|
}, this.write);
|
|
36
33
|
this.out("\n");
|
|
37
|
-
this.line(` ${
|
|
34
|
+
this.line(` ${StyleConfig_js_1.BrandColors.jumboBlue(StyleConfig_js_1.Symbols.accentBar)} ${StyleConfig_js_1.Colors.dim(`${agentId} · poll ${pollIntervalS}s · retries ${maxRetries} · Q to stop`)}`);
|
|
38
35
|
this.divider();
|
|
39
36
|
}
|
|
40
37
|
/** Start the idle "Waiting..." braille spinner */
|
|
@@ -44,8 +41,8 @@ class RefineryDisplay {
|
|
|
44
41
|
/** Render goal discovery info */
|
|
45
42
|
renderGoalStart(goalId, objective, attempt, maxRetries) {
|
|
46
43
|
const sid = this.shortId(goalId);
|
|
47
|
-
this.line(` ${
|
|
48
|
-
this.line(` ${
|
|
44
|
+
this.line(` ${StyleConfig_js_1.Colors.success(StyleConfig_js_1.Symbols.filledCircle)} ${StyleConfig_js_1.Colors.bold(sid)} ${StyleConfig_js_1.Colors.dim(`attempt ${attempt}/${maxRetries}`)}`);
|
|
45
|
+
this.line(` ${StyleConfig_js_1.Colors.dim(this.truncateObjective(objective))}`);
|
|
49
46
|
}
|
|
50
47
|
/** Start the active "Refining..." braille spinner */
|
|
51
48
|
startRefining() {
|
|
@@ -54,28 +51,28 @@ class RefineryDisplay {
|
|
|
54
51
|
/** Render goal completion */
|
|
55
52
|
renderGoalComplete(goalId, objective, attempts) {
|
|
56
53
|
const sid = this.shortId(goalId);
|
|
57
|
-
this.line(` ${
|
|
58
|
-
this.line(` ${
|
|
54
|
+
this.line(` ${StyleConfig_js_1.Colors.success(StyleConfig_js_1.Symbols.check)} ${StyleConfig_js_1.Colors.success("refined")} ${StyleConfig_js_1.Colors.bold(sid)} ${StyleConfig_js_1.Colors.dim(`${attempts} attempt${attempts !== 1 ? "s" : ""}`)}`);
|
|
55
|
+
this.line(` ${StyleConfig_js_1.Colors.dim(this.truncateObjective(objective))}`);
|
|
59
56
|
this.line("");
|
|
60
57
|
}
|
|
61
58
|
/** Render goal exhaustion/skip warning */
|
|
62
59
|
renderGoalSkipped(goalId, status, maxRetries) {
|
|
63
60
|
const sid = this.shortId(goalId);
|
|
64
|
-
this.line(` ${
|
|
61
|
+
this.line(` ${StyleConfig_js_1.Colors.warning(StyleConfig_js_1.Symbols.warning)} ${sid} did not reach 'refined' after ${maxRetries} attempts (status: ${status}). Skipping.`);
|
|
65
62
|
this.line("");
|
|
66
63
|
}
|
|
67
64
|
/** Render retry info */
|
|
68
65
|
renderRetry(attempt, maxRetries) {
|
|
69
|
-
this.line(` ${
|
|
66
|
+
this.line(` ${StyleConfig_js_1.Colors.dim(`${StyleConfig_js_1.Symbols.arrow} Retry ${attempt}/${maxRetries}...`)}`);
|
|
70
67
|
}
|
|
71
68
|
/** Render unknown agent error */
|
|
72
69
|
renderUnknownAgent(agent, supported) {
|
|
73
|
-
this.line(`${
|
|
70
|
+
this.line(`${StyleConfig_js_1.Colors.error(StyleConfig_js_1.Symbols.cross)} Unknown agent '${agent}'. Supported: ${supported.join(", ")}`);
|
|
74
71
|
}
|
|
75
72
|
/** Render shutdown message */
|
|
76
73
|
renderShutdown() {
|
|
77
74
|
this.line("");
|
|
78
|
-
this.line(` ${
|
|
75
|
+
this.line(` ${StyleConfig_js_1.Colors.dim(`${StyleConfig_js_1.Symbols.arrow} Refinery stopped.`)}`);
|
|
79
76
|
}
|
|
80
77
|
// --- Private helpers ---
|
|
81
78
|
out(msg) {
|
|
@@ -85,7 +82,7 @@ class RefineryDisplay {
|
|
|
85
82
|
this.write(`${msg}\n`);
|
|
86
83
|
}
|
|
87
84
|
divider() {
|
|
88
|
-
this.line(` ${
|
|
85
|
+
this.line(` ${StyleConfig_js_1.Colors.dim("─".repeat(50))}`);
|
|
89
86
|
}
|
|
90
87
|
truncateObjective(text, max = 60) {
|
|
91
88
|
if (text.length <= max)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefineryDisplay.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/work/refine/RefineryDisplay.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"RefineryDisplay.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/work/refine/RefineryDisplay.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,sEAAiF;AACjF,2EAAmE;AACnE,6EAA4E;AAE5E,6DAA6D;AAC7D,iEAAiE;AACjE,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB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AC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC;IAEO,iBAAiB,CAAC,IAAY,EAAE,GAAG,GAAG,EAAE;QAC9C,IAAI,IAAI,CAAC,MAAM,IAAI,GAAG;YAAE,OAAO,IAAI,CAAC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;IACxC,CAAC;IAEO,OAAO,CAAC,MAAc;QAC5B,OAAO,MAAM,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1D,CAAC;CACF;AAnHD,0CAmHC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OutputLayout — Shared design tokens and palette-aware layout helpers.
|
|
3
|
+
*
|
|
4
|
+
* Extracted from GoalShowOutputBuilder to provide a single source of truth
|
|
5
|
+
* for the accent bar layout, column grid, and brand-colored helpers used
|
|
6
|
+
* across all OutputBuilder implementations.
|
|
7
|
+
*
|
|
8
|
+
* Layout grid (x-axis positioning):
|
|
9
|
+
* x=0 left margin
|
|
10
|
+
* x=2 EDGE (2 leading spaces)
|
|
11
|
+
* x=3 accent bar position (Symbols.accentBar)
|
|
12
|
+
* x=7 content column (EDGE + CONTENT_PAD)
|
|
13
|
+
* x=11 indent column (EDGE + INDENT_PAD)
|
|
14
|
+
* x=90 right boundary (DIVIDER_WIDTH)
|
|
15
|
+
*/
|
|
16
|
+
export declare const EDGE = " ";
|
|
17
|
+
export declare const HEADING_PAD = " ";
|
|
18
|
+
export declare const CONTENT_PAD = " ";
|
|
19
|
+
export declare const INDENT_PAD = " ";
|
|
20
|
+
export declare const DIVIDER_WIDTH = 90;
|
|
21
|
+
export declare const WRAP_CONTENT = 83;
|
|
22
|
+
export declare const WRAP_INDENT = 81;
|
|
23
|
+
/** Styled accent bar in brand blue. */
|
|
24
|
+
export declare function bar(): string;
|
|
25
|
+
/** Full-width dim horizontal divider. */
|
|
26
|
+
export declare function divider(): string;
|
|
27
|
+
/** Section heading: accent bar + bold brand-blue title. */
|
|
28
|
+
export declare function heading(title: string): string;
|
|
29
|
+
/** Key-value metadata field at the content column. */
|
|
30
|
+
export declare function metaField(label: string, value: string, labelWidth?: number): string;
|
|
31
|
+
/** Content line at the content column. */
|
|
32
|
+
export declare function contentLine(text: string): string;
|
|
33
|
+
/** Indented content line at the indent column. */
|
|
34
|
+
export declare function indentLine(text: string): string;
|
|
35
|
+
/** Word-wrap text at the content column width, styled with Colors.primary. */
|
|
36
|
+
export declare function wrapContent(text: string): string[];
|
|
37
|
+
/** Bullet + word-wrapped continuation at the indent column. */
|
|
38
|
+
export declare function wrapBulletContinuation(text: string): string[];
|
|
39
|
+
//# sourceMappingURL=OutputLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputLayout.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/rendering/OutputLayout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,eAAO,MAAM,IAAI,OAAO,CAAC;AACzB,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM,UAAU,cAAc,CAAC;AACtC,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,WAAW,KAAK,CAAC;AAI9B,uCAAuC;AACvC,wBAAgB,GAAG,IAAI,MAAM,CAE5B;AAED,yCAAyC;AACzC,wBAAgB,OAAO,IAAI,MAAM,CAEhC;AAED,2DAA2D;AAC3D,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED,sDAAsD;AACtD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,SAAI,GAAG,MAAM,CAG9E;AAED,0CAA0C;AAC1C,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,kDAAkD;AAClD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED,8EAA8E;AAC9E,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAIlD;AAED,+DAA+D;AAC/D,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAY7D"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* OutputLayout — Shared design tokens and palette-aware layout helpers.
|
|
4
|
+
*
|
|
5
|
+
* Extracted from GoalShowOutputBuilder to provide a single source of truth
|
|
6
|
+
* for the accent bar layout, column grid, and brand-colored helpers used
|
|
7
|
+
* across all OutputBuilder implementations.
|
|
8
|
+
*
|
|
9
|
+
* Layout grid (x-axis positioning):
|
|
10
|
+
* x=0 left margin
|
|
11
|
+
* x=2 EDGE (2 leading spaces)
|
|
12
|
+
* x=3 accent bar position (Symbols.accentBar)
|
|
13
|
+
* x=7 content column (EDGE + CONTENT_PAD)
|
|
14
|
+
* x=11 indent column (EDGE + INDENT_PAD)
|
|
15
|
+
* x=90 right boundary (DIVIDER_WIDTH)
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.WRAP_INDENT = exports.WRAP_CONTENT = exports.DIVIDER_WIDTH = exports.INDENT_PAD = exports.CONTENT_PAD = exports.HEADING_PAD = exports.EDGE = void 0;
|
|
19
|
+
exports.bar = bar;
|
|
20
|
+
exports.divider = divider;
|
|
21
|
+
exports.heading = heading;
|
|
22
|
+
exports.metaField = metaField;
|
|
23
|
+
exports.contentLine = contentLine;
|
|
24
|
+
exports.indentLine = indentLine;
|
|
25
|
+
exports.wrapContent = wrapContent;
|
|
26
|
+
exports.wrapBulletContinuation = wrapBulletContinuation;
|
|
27
|
+
const StyleConfig_js_1 = require("./StyleConfig.js");
|
|
28
|
+
// ── Layout grid constants ──
|
|
29
|
+
exports.EDGE = " "; // 2 spaces
|
|
30
|
+
exports.HEADING_PAD = " "; // bar(1) + space(1) + 1 extra
|
|
31
|
+
exports.CONTENT_PAD = " "; // 5 spaces from EDGE → content column
|
|
32
|
+
exports.INDENT_PAD = " "; // 9 spaces from EDGE → indent column
|
|
33
|
+
exports.DIVIDER_WIDTH = 90;
|
|
34
|
+
exports.WRAP_CONTENT = 83; // max chars at content column (90 - 7 leading)
|
|
35
|
+
exports.WRAP_INDENT = 81; // max chars at indent column (90 - 9 leading)
|
|
36
|
+
// ── Palette-aware helpers ──
|
|
37
|
+
/** Styled accent bar in brand blue. */
|
|
38
|
+
function bar() {
|
|
39
|
+
return StyleConfig_js_1.BrandColors.jumboBlue(StyleConfig_js_1.Symbols.accentBar);
|
|
40
|
+
}
|
|
41
|
+
/** Full-width dim horizontal divider. */
|
|
42
|
+
function divider() {
|
|
43
|
+
return `${exports.EDGE}${StyleConfig_js_1.Colors.dim("─".repeat(exports.DIVIDER_WIDTH))}`;
|
|
44
|
+
}
|
|
45
|
+
/** Section heading: accent bar + bold brand-blue title. */
|
|
46
|
+
function heading(title) {
|
|
47
|
+
return `${exports.EDGE}${bar()} ${StyleConfig_js_1.Colors.bold(StyleConfig_js_1.BrandColors.jumboBlue(title))}`;
|
|
48
|
+
}
|
|
49
|
+
/** Key-value metadata field at the content column. */
|
|
50
|
+
function metaField(label, value, labelWidth = 9) {
|
|
51
|
+
const padded = (label + ":").padEnd(labelWidth);
|
|
52
|
+
return `${exports.EDGE}${exports.CONTENT_PAD}${StyleConfig_js_1.Colors.muted(padded)}${value}`;
|
|
53
|
+
}
|
|
54
|
+
/** Content line at the content column. */
|
|
55
|
+
function contentLine(text) {
|
|
56
|
+
return `${exports.EDGE}${exports.CONTENT_PAD}${text}`;
|
|
57
|
+
}
|
|
58
|
+
/** Indented content line at the indent column. */
|
|
59
|
+
function indentLine(text) {
|
|
60
|
+
return `${exports.EDGE}${exports.INDENT_PAD}${text}`;
|
|
61
|
+
}
|
|
62
|
+
/** Word-wrap text at the content column width, styled with Colors.primary. */
|
|
63
|
+
function wrapContent(text) {
|
|
64
|
+
return (0, StyleConfig_js_1.wordWrap)(text, exports.WRAP_CONTENT, 0).map(line => `${exports.EDGE}${exports.CONTENT_PAD}${StyleConfig_js_1.Colors.primary(line.trimStart())}`);
|
|
65
|
+
}
|
|
66
|
+
/** Bullet + word-wrapped continuation at the indent column. */
|
|
67
|
+
function wrapBulletContinuation(text) {
|
|
68
|
+
const lines = (0, StyleConfig_js_1.wordWrap)(text, exports.WRAP_INDENT, 0);
|
|
69
|
+
const result = [];
|
|
70
|
+
for (let i = 0; i < lines.length; i++) {
|
|
71
|
+
const trimmed = lines[i].trimStart();
|
|
72
|
+
if (i === 0) {
|
|
73
|
+
result.push(`${exports.EDGE}${exports.CONTENT_PAD}${StyleConfig_js_1.Colors.dim("·")} ${StyleConfig_js_1.Colors.primary(trimmed)}`);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
result.push(`${exports.EDGE}${exports.INDENT_PAD}${StyleConfig_js_1.Colors.primary(trimmed)}`);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=OutputLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputLayout.js","sourceRoot":"","sources":["../../../../src/presentation/cli/rendering/OutputLayout.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAiBH,kBAEC;AAGD,0BAEC;AAGD,0BAEC;AAGD,8BAGC;AAGD,kCAEC;AAGD,gCAEC;AAGD,kCAIC;AAGD,wDAYC;AAjED,qDAA0E;AAE1E,8BAA8B;AAEjB,QAAA,IAAI,GAAG,IAAI,CAAC,C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