jumbo-cli 2.12.0 → 2.14.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/registry/generated-commands.d.ts.map +1 -1
- package/dist/presentation/cli/commands/registry/generated-commands.js +6 -0
- package/dist/presentation/cli/commands/registry/generated-commands.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 +5 -39
- package/dist/presentation/cli/commands/work/refine/RefineryDisplay.d.ts.map +1 -1
- package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js +12 -89
- package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js.map +1 -1
- package/dist/presentation/cli/commands/work/refine/work.refine.d.ts.map +1 -1
- package/dist/presentation/cli/commands/work/refine/work.refine.js +25 -106
- package/dist/presentation/cli/commands/work/refine/work.refine.js.map +1 -1
- package/dist/presentation/cli/commands/work/review/ReviewerDisplay.d.ts +17 -0
- package/dist/presentation/cli/commands/work/review/ReviewerDisplay.d.ts.map +1 -0
- package/dist/presentation/cli/commands/work/review/ReviewerDisplay.js +41 -0
- package/dist/presentation/cli/commands/work/review/ReviewerDisplay.js.map +1 -0
- package/dist/presentation/cli/commands/work/review/work.review.d.ts +23 -0
- package/dist/presentation/cli/commands/work/review/work.review.d.ts.map +1 -0
- package/dist/presentation/cli/commands/work/review/work.review.js +109 -0
- package/dist/presentation/cli/commands/work/review/work.review.js.map +1 -0
- package/dist/presentation/cli/commands/work/shared/AgentSpawner.d.ts +18 -0
- package/dist/presentation/cli/commands/work/shared/AgentSpawner.d.ts.map +1 -0
- package/dist/presentation/cli/commands/work/shared/AgentSpawner.js +38 -0
- package/dist/presentation/cli/commands/work/shared/AgentSpawner.js.map +1 -0
- package/dist/presentation/cli/commands/work/shared/DaemonDisplay.d.ts +56 -0
- package/dist/presentation/cli/commands/work/shared/DaemonDisplay.d.ts.map +1 -0
- package/dist/presentation/cli/commands/work/shared/DaemonDisplay.js +93 -0
- package/dist/presentation/cli/commands/work/shared/DaemonDisplay.js.map +1 -0
- package/dist/presentation/cli/commands/work/shared/DaemonLoop.d.ts +40 -0
- package/dist/presentation/cli/commands/work/shared/DaemonLoop.d.ts.map +1 -0
- package/dist/presentation/cli/commands/work/shared/DaemonLoop.js +82 -0
- package/dist/presentation/cli/commands/work/shared/DaemonLoop.js.map +1 -0
- package/dist/presentation/cli/commands/work/shared/GoalStatusQuery.d.ts +13 -0
- package/dist/presentation/cli/commands/work/shared/GoalStatusQuery.d.ts.map +1 -0
- package/dist/presentation/cli/commands/work/shared/GoalStatusQuery.js +29 -0
- package/dist/presentation/cli/commands/work/shared/GoalStatusQuery.js.map +1 -0
- 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
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.metadata = void 0;
|
|
9
9
|
exports.relationsList = relationsList;
|
|
10
10
|
const Renderer_js_1 = require("../../../rendering/Renderer.js");
|
|
11
|
+
const RelationListOutputBuilder_js_1 = require("./RelationListOutputBuilder.js");
|
|
11
12
|
exports.metadata = {
|
|
12
13
|
description: "List all knowledge graph relations",
|
|
13
14
|
category: "relations",
|
|
@@ -35,15 +36,6 @@ exports.metadata = {
|
|
|
35
36
|
],
|
|
36
37
|
related: ["relation add", "relation remove"],
|
|
37
38
|
};
|
|
38
|
-
function formatRelationText(relation) {
|
|
39
|
-
console.log(`${relation.fromEntityType}:${relation.fromEntityId} --[${relation.relationType}]--> ${relation.toEntityType}:${relation.toEntityId}`);
|
|
40
|
-
console.log(` ${relation.description}`);
|
|
41
|
-
if (relation.strength) {
|
|
42
|
-
console.log(` Strength: ${relation.strength}`);
|
|
43
|
-
}
|
|
44
|
-
console.log(` ID: ${relation.relationId}`);
|
|
45
|
-
console.log("");
|
|
46
|
-
}
|
|
47
39
|
async function relationsList(options, container) {
|
|
48
40
|
const renderer = Renderer_js_1.Renderer.getInstance();
|
|
49
41
|
try {
|
|
@@ -59,38 +51,24 @@ async function relationsList(options, container) {
|
|
|
59
51
|
return;
|
|
60
52
|
}
|
|
61
53
|
const config = renderer.getConfig();
|
|
54
|
+
const outputBuilder = new RelationListOutputBuilder_js_1.RelationListOutputBuilder();
|
|
62
55
|
if (config.format === "text") {
|
|
63
56
|
const filterLabel = options.entityType
|
|
64
|
-
?
|
|
65
|
-
:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
formatRelationText(relation);
|
|
69
|
-
}
|
|
57
|
+
? `${options.entityType}${options.entityId ? ':' + options.entityId : ''}`
|
|
58
|
+
: undefined;
|
|
59
|
+
const output = outputBuilder.build(relations, filterLabel);
|
|
60
|
+
renderer.info(output.toHumanReadable());
|
|
70
61
|
}
|
|
71
62
|
else {
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
fromEntityType: r.fromEntityType,
|
|
82
|
-
fromEntityId: r.fromEntityId,
|
|
83
|
-
toEntityType: r.toEntityType,
|
|
84
|
-
toEntityId: r.toEntityId,
|
|
85
|
-
relationType: r.relationType,
|
|
86
|
-
strength: r.strength,
|
|
87
|
-
description: r.description,
|
|
88
|
-
status: r.status,
|
|
89
|
-
createdAt: r.createdAt,
|
|
90
|
-
updatedAt: r.updatedAt,
|
|
91
|
-
})),
|
|
92
|
-
};
|
|
93
|
-
renderer.data(data);
|
|
63
|
+
const output = outputBuilder.buildStructuredOutput(relations, {
|
|
64
|
+
entityType: options.entityType ?? null,
|
|
65
|
+
entityId: options.entityId ?? null,
|
|
66
|
+
status: options.status ?? "active",
|
|
67
|
+
});
|
|
68
|
+
const sections = output.getSections();
|
|
69
|
+
const dataSection = sections.find(s => s.type === "data");
|
|
70
|
+
if (dataSection)
|
|
71
|
+
renderer.data(dataSection.content);
|
|
94
72
|
}
|
|
95
73
|
}
|
|
96
74
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relations.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/relations/list/relations.list.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;
|
|
1
|
+
{"version":3,"file":"relations.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/relations/list/relations.list.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAsCH,sCA2CC;AA7ED,gEAA0D;AAI1D,iFAA2E;AAE9D,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE;QACP;YACE,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,yDAAyD;SACvE;QACD;YACE,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,8CAA8C;SAC5D;QACD;YACE,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,kEAAkE;SAChF;KACF;IACD,QAAQ,EAAE;QACR,EAAE,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,2BAA2B,EAAE;QAC7E,EAAE,OAAO,EAAE,yCAAyC,EAAE,WAAW,EAAE,gCAAgC,EAAE;QACrG,EAAE,OAAO,EAAE,mEAAmE,EAAE,WAAW,EAAE,yCAAyC,EAAE;QACxI,EAAE,OAAO,EAAE,2CAA2C,EAAE,WAAW,EAAE,iCAAiC,EAAE;QACxG,EAAE,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MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;YAC3D,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;QAC1C,CAAC;aAAM,CAAC;YACN,MAAM,MAAM,GAAG,aAAa,CAAC,qBAAqB,CAAC,SAAS,EAAE;gBAC5D,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI;gBACtC,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,IAAI;gBAClC,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,QAAQ;aACnC,CAAC,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;YACtC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC;YAC1D,IAAI,WAAW;gBAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAqB,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,0BAA0B,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TerminalOutput } from '../../../output/TerminalOutput.js';
|
|
2
|
+
import { SessionView } from '../../../../../application/context/sessions/SessionView.js';
|
|
3
|
+
export declare class SessionListOutputBuilder {
|
|
4
|
+
private builder;
|
|
5
|
+
build(sessions: SessionView[], filter?: string): TerminalOutput;
|
|
6
|
+
buildStructuredOutput(sessions: SessionView[], filter?: string): TerminalOutput;
|
|
7
|
+
buildFailureError(error: Error | string): TerminalOutput;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=SessionListOutputBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionListOutputBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/SessionListOutputBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,4DAA4D,CAAC;AAIzF,qBAAa,wBAAwB;IACnC,OAAO,CAAC,OAAO,CAA+B;IAE9C,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc;IA0B/D,qBAAqB,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc;IAkB/E,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,cAAc;CAQzD"}
|
|
@@ -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,CAAC,IAAI,CAAC,IAAA,6BAAW,EAAC,GAAG,uBAAM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C,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;AArFD,gEAA0D;AAE1D,+EAAyE;AAEzE;;GAEG;A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
+
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,CAAC,CAAC;YACzD,KAAK,CAAC,IAAI,CAAC,GA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;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;IAEhC,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAA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
1
|
/**
|
|
2
2
|
* Refinery Display
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* compact config, and gradient braille spinners.
|
|
4
|
+
* Display module for the `jumbo work refine` daemon.
|
|
5
|
+
* Extends DaemonDisplay with refine-specific labels.
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
maxRetries: number;
|
|
12
|
-
}
|
|
13
|
-
export declare class RefineryDisplay {
|
|
14
|
-
private config;
|
|
15
|
-
private write;
|
|
16
|
-
constructor(config: RefineryConfig);
|
|
17
|
-
/** Render the header block: accent bar + glimmer title + config + divider */
|
|
18
|
-
renderHeader(): Promise<void>;
|
|
19
|
-
/** Start the idle "Waiting..." braille spinner */
|
|
20
|
-
startWaiting(): {
|
|
21
|
-
stop: () => void;
|
|
22
|
-
};
|
|
23
|
-
/** Render goal discovery info */
|
|
24
|
-
renderGoalStart(goalId: string, objective: string, attempt: number, maxRetries: number): void;
|
|
25
|
-
/** Start the active "Refining..." braille spinner */
|
|
26
|
-
startRefining(): {
|
|
27
|
-
stop: () => void;
|
|
28
|
-
};
|
|
29
|
-
/** Render goal completion */
|
|
30
|
-
renderGoalComplete(goalId: string, objective: string, attempts: number): void;
|
|
31
|
-
/** Render goal exhaustion/skip warning */
|
|
32
|
-
renderGoalSkipped(goalId: string, status: string, maxRetries: number): void;
|
|
33
|
-
/** Render retry info */
|
|
34
|
-
renderRetry(attempt: number, maxRetries: number): void;
|
|
35
|
-
/** Render unknown agent error */
|
|
36
|
-
renderUnknownAgent(agent: string, supported: readonly string[]): void;
|
|
37
|
-
/** Render shutdown message */
|
|
38
|
-
renderShutdown(): void;
|
|
39
|
-
private out;
|
|
40
|
-
private line;
|
|
41
|
-
private divider;
|
|
42
|
-
private truncateObjective;
|
|
43
|
-
private shortId;
|
|
7
|
+
import { DaemonDisplay, DaemonRuntimeConfig } from "../shared/DaemonDisplay.js";
|
|
8
|
+
export declare class RefineryDisplay extends DaemonDisplay {
|
|
9
|
+
constructor(runtimeConfig: DaemonRuntimeConfig);
|
|
44
10
|
}
|
|
45
11
|
//# sourceMappingURL=RefineryDisplay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefineryDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/work/refine/RefineryDisplay.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"RefineryDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/work/refine/RefineryDisplay.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,qBAAa,eAAgB,SAAQ,aAAa;gBACpC,aAAa,EAAE,mBAAmB;CAY/C"}
|
|
@@ -2,98 +2,21 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Refinery Display
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* compact config, and gradient braille spinners.
|
|
5
|
+
* Display module for the `jumbo work refine` daemon.
|
|
6
|
+
* Extends DaemonDisplay with refine-specific labels.
|
|
8
7
|
*/
|
|
9
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
9
|
exports.RefineryDisplay = void 0;
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const [jbR, jbG, jbB] = StyleConfig_js_1.BrandColors.jumboBlueRaw;
|
|
22
|
-
const JUMBO_BLUE = `\x1b[38;2;${jbR};${jbG};${jbB}m`;
|
|
23
|
-
class RefineryDisplay {
|
|
24
|
-
constructor(config) {
|
|
25
|
-
this.config = config;
|
|
26
|
-
this.write = (s) => process.stderr.write(s);
|
|
27
|
-
}
|
|
28
|
-
/** Render the header block: accent bar + glimmer title + config + divider */
|
|
29
|
-
async renderHeader() {
|
|
30
|
-
const { agentId, pollIntervalS, maxRetries } = this.config;
|
|
31
|
-
this.line("");
|
|
32
|
-
await (0, GlimmerEffect_js_1.playGlimmer)("Jumbo Refinery", ` ${JUMBO_BLUE}│${RESET} `, {
|
|
33
|
-
baseColor: JUMBO_BLUE,
|
|
34
|
-
highlightColor: BRIGHT_WHITE,
|
|
35
|
-
}, this.write);
|
|
36
|
-
this.out("\n");
|
|
37
|
-
this.line(` ${JUMBO_BLUE}│${RESET} ${DIM}${agentId} · poll ${pollIntervalS}s · retries ${maxRetries} · Q to stop${RESET}`);
|
|
38
|
-
this.divider();
|
|
39
|
-
}
|
|
40
|
-
/** Start the idle "Waiting..." braille spinner */
|
|
41
|
-
startWaiting() {
|
|
42
|
-
return (0, BrailleSpinner_js_1.startBrailleSpinner)({ label: "foraging", write: this.write });
|
|
43
|
-
}
|
|
44
|
-
/** Render goal discovery info */
|
|
45
|
-
renderGoalStart(goalId, objective, attempt, maxRetries) {
|
|
46
|
-
const sid = this.shortId(goalId);
|
|
47
|
-
this.line(` ${GREEN}●${RESET} ${BOLD}${sid}${RESET} ${DIM}attempt ${attempt}/${maxRetries}${RESET}`);
|
|
48
|
-
this.line(` ${DIM}${this.truncateObjective(objective)}${RESET}`);
|
|
49
|
-
}
|
|
50
|
-
/** Start the active "Refining..." braille spinner */
|
|
51
|
-
startRefining() {
|
|
52
|
-
return (0, BrailleSpinner_js_1.startBrailleSpinner)({ label: "refining", write: this.write });
|
|
53
|
-
}
|
|
54
|
-
/** Render goal completion */
|
|
55
|
-
renderGoalComplete(goalId, objective, attempts) {
|
|
56
|
-
const sid = this.shortId(goalId);
|
|
57
|
-
this.line(` ${GREEN}✓${RESET} ${GREEN}refined${RESET} ${BOLD}${sid}${RESET} ${DIM}${attempts} attempt${attempts !== 1 ? "s" : ""}${RESET}`);
|
|
58
|
-
this.line(` ${DIM}${this.truncateObjective(objective)}${RESET}`);
|
|
59
|
-
this.line("");
|
|
60
|
-
}
|
|
61
|
-
/** Render goal exhaustion/skip warning */
|
|
62
|
-
renderGoalSkipped(goalId, status, maxRetries) {
|
|
63
|
-
const sid = this.shortId(goalId);
|
|
64
|
-
this.line(` ${YELLOW}⚠${RESET} ${sid} did not reach 'refined' after ${maxRetries} attempts (status: ${status}). Skipping.`);
|
|
65
|
-
this.line("");
|
|
66
|
-
}
|
|
67
|
-
/** Render retry info */
|
|
68
|
-
renderRetry(attempt, maxRetries) {
|
|
69
|
-
this.line(` ${DIM}→ Retry ${attempt}/${maxRetries}...${RESET}`);
|
|
70
|
-
}
|
|
71
|
-
/** Render unknown agent error */
|
|
72
|
-
renderUnknownAgent(agent, supported) {
|
|
73
|
-
this.line(`${RED}✗${RESET} Unknown agent '${agent}'. Supported: ${supported.join(", ")}`);
|
|
74
|
-
}
|
|
75
|
-
/** Render shutdown message */
|
|
76
|
-
renderShutdown() {
|
|
77
|
-
this.line("");
|
|
78
|
-
this.line(` ${DIM}→ Refinery stopped.${RESET}`);
|
|
79
|
-
}
|
|
80
|
-
// --- Private helpers ---
|
|
81
|
-
out(msg) {
|
|
82
|
-
this.write(msg);
|
|
83
|
-
}
|
|
84
|
-
line(msg) {
|
|
85
|
-
this.write(`${msg}\n`);
|
|
86
|
-
}
|
|
87
|
-
divider() {
|
|
88
|
-
this.line(` ${DIM}${"─".repeat(50)}${RESET}`);
|
|
89
|
-
}
|
|
90
|
-
truncateObjective(text, max = 60) {
|
|
91
|
-
if (text.length <= max)
|
|
92
|
-
return text;
|
|
93
|
-
return text.slice(0, max - 3) + "...";
|
|
94
|
-
}
|
|
95
|
-
shortId(goalId) {
|
|
96
|
-
return goalId.length > 12 ? goalId.slice(0, 8) : goalId;
|
|
10
|
+
const DaemonDisplay_js_1 = require("../shared/DaemonDisplay.js");
|
|
11
|
+
class RefineryDisplay extends DaemonDisplay_js_1.DaemonDisplay {
|
|
12
|
+
constructor(runtimeConfig) {
|
|
13
|
+
super({
|
|
14
|
+
title: "Jumbo Refinery",
|
|
15
|
+
idleLabel: "foraging",
|
|
16
|
+
activeLabel: "refining",
|
|
17
|
+
completeStatus: "refined",
|
|
18
|
+
daemonName: "Refinery",
|
|
19
|
+
}, runtimeConfig);
|
|
97
20
|
}
|
|
98
21
|
}
|
|
99
22
|
exports.RefineryDisplay = RefineryDisplay;
|