@teambit/status 1.0.484 → 1.0.486
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +276 -218
- package/dist/status.main.runtime.d.ts +6 -3
- package/dist/status.main.runtime.js +16 -7
- package/dist/status.main.runtime.js.map +1 -1
- package/package.json +12 -11
- /package/dist/{preview-1733282408194.js → preview-1733541556857.js} +0 -0
|
@@ -11,6 +11,7 @@ import { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-di
|
|
|
11
11
|
import { IssuesMain } from '@teambit/issues';
|
|
12
12
|
import { MiniStatusOpts } from './mini-status-cmd';
|
|
13
13
|
import { LoggerMain, Logger } from '@teambit/logger';
|
|
14
|
+
import { MergingMain } from '@teambit/merging';
|
|
14
15
|
type DivergeDataPerId = {
|
|
15
16
|
id: ComponentID;
|
|
16
17
|
divergeData: SnapsDistance;
|
|
@@ -63,7 +64,8 @@ export declare class StatusMain {
|
|
|
63
64
|
private remove;
|
|
64
65
|
private lanes;
|
|
65
66
|
private logger;
|
|
66
|
-
|
|
67
|
+
private merging;
|
|
68
|
+
constructor(workspace: Workspace, issues: IssuesMain, insights: InsightsMain, remove: RemoveMain, lanes: LanesMain, logger: Logger, merging: MergingMain);
|
|
67
69
|
status({ lanes, ignoreCircularDependencies, }: {
|
|
68
70
|
lanes?: boolean;
|
|
69
71
|
ignoreCircularDependencies?: boolean;
|
|
@@ -74,14 +76,15 @@ export declare class StatusMain {
|
|
|
74
76
|
static slots: never[];
|
|
75
77
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
76
78
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
77
|
-
static provider([cli, workspace, insights, issues, remove, lanes, loggerMain]: [
|
|
79
|
+
static provider([cli, workspace, insights, issues, remove, lanes, loggerMain, merging]: [
|
|
78
80
|
CLIMain,
|
|
79
81
|
Workspace,
|
|
80
82
|
InsightsMain,
|
|
81
83
|
IssuesMain,
|
|
82
84
|
RemoveMain,
|
|
83
85
|
LanesMain,
|
|
84
|
-
LoggerMain
|
|
86
|
+
LoggerMain,
|
|
87
|
+
MergingMain
|
|
85
88
|
]): Promise<StatusMain>;
|
|
86
89
|
}
|
|
87
90
|
export {};
|
|
@@ -109,19 +109,27 @@ function _logger() {
|
|
|
109
109
|
};
|
|
110
110
|
return data;
|
|
111
111
|
}
|
|
112
|
+
function _merging() {
|
|
113
|
+
const data = require("@teambit/merging");
|
|
114
|
+
_merging = function () {
|
|
115
|
+
return data;
|
|
116
|
+
};
|
|
117
|
+
return data;
|
|
118
|
+
}
|
|
112
119
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
113
120
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
114
121
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
115
122
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
116
123
|
const BEFORE_STATUS = 'fetching status';
|
|
117
124
|
class StatusMain {
|
|
118
|
-
constructor(workspace, issues, insights, remove, lanes, logger) {
|
|
125
|
+
constructor(workspace, issues, insights, remove, lanes, logger, merging) {
|
|
119
126
|
this.workspace = workspace;
|
|
120
127
|
this.issues = issues;
|
|
121
128
|
this.insights = insights;
|
|
122
129
|
this.remove = remove;
|
|
123
130
|
this.lanes = lanes;
|
|
124
131
|
this.logger = logger;
|
|
132
|
+
this.merging = merging;
|
|
125
133
|
}
|
|
126
134
|
async status({
|
|
127
135
|
lanes,
|
|
@@ -160,9 +168,10 @@ class StatusMain {
|
|
|
160
168
|
const invalidComponents = allInvalidComponents.filter(c => !(c.error instanceof _componentsPendingImport().default));
|
|
161
169
|
const divergeInvalid = await this.divergeDataErrorsToInvalidComp(allComps);
|
|
162
170
|
invalidComponents.push(...divergeInvalid);
|
|
163
|
-
const outdatedComponents = await componentsList.listOutdatedComponents();
|
|
164
171
|
const idsDuringMergeState = componentsList.listDuringMergeStateComponents();
|
|
165
|
-
const mergePendingComponents = await
|
|
172
|
+
const mergePendingComponents = await this.merging.listMergePendingComponents(componentsList);
|
|
173
|
+
const mergePendingComponentsIds = _componentId().ComponentIdList.fromArray(mergePendingComponents.map(c => c.id));
|
|
174
|
+
const outdatedComponents = await componentsList.listOutdatedComponents(mergePendingComponentsIds, loadOpts);
|
|
166
175
|
if (allComps.length) {
|
|
167
176
|
const issuesFromFlag = ignoreCircularDependencies ? [_componentIssues().IssuesClasses.CircularDependencies.name] : [];
|
|
168
177
|
const issuesToIgnore = [...this.issues.getIssuesToIgnoreGlobally(), ...issuesFromFlag];
|
|
@@ -172,7 +181,7 @@ class StatusMain {
|
|
|
172
181
|
const componentsWithIssues = allComps.filter(component => !component.state.issues.isEmpty());
|
|
173
182
|
const softTaggedComponents = this.workspace.filter.bySoftTagged();
|
|
174
183
|
const snappedComponents = await this.workspace.filter.bySnappedOnMain();
|
|
175
|
-
const pendingUpdatesFromMain = lanes ? await
|
|
184
|
+
const pendingUpdatesFromMain = lanes ? await this.lanes.listUpdatesFromMainPending(componentsList) : [];
|
|
176
185
|
const updatesFromForked = lanes ? await this.lanes.listUpdatesFromForked(componentsList) : [];
|
|
177
186
|
const currentLaneId = consumer.getCurrentLaneId();
|
|
178
187
|
const currentLane = await consumer.getCurrentLaneObject();
|
|
@@ -273,16 +282,16 @@ class StatusMain {
|
|
|
273
282
|
}));
|
|
274
283
|
return invalidComponents;
|
|
275
284
|
}
|
|
276
|
-
static async provider([cli, workspace, insights, issues, remove, lanes, loggerMain]) {
|
|
285
|
+
static async provider([cli, workspace, insights, issues, remove, lanes, loggerMain, merging]) {
|
|
277
286
|
const logger = loggerMain.createLogger(_status().StatusAspect.id);
|
|
278
|
-
const statusMain = new StatusMain(workspace, issues, insights, remove, lanes, logger);
|
|
287
|
+
const statusMain = new StatusMain(workspace, issues, insights, remove, lanes, logger, merging);
|
|
279
288
|
cli.register(new (_statusCmd().StatusCmd)(statusMain), new (_miniStatusCmd().MiniStatusCmd)(statusMain));
|
|
280
289
|
return statusMain;
|
|
281
290
|
}
|
|
282
291
|
}
|
|
283
292
|
exports.StatusMain = StatusMain;
|
|
284
293
|
_defineProperty(StatusMain, "slots", []);
|
|
285
|
-
_defineProperty(StatusMain, "dependencies", [_cli().CLIAspect, _workspace().WorkspaceAspect, _insights().InsightsAspect, _issues().IssuesAspect, _remove().RemoveAspect, _lanes().LanesAspect, _logger().LoggerAspect]);
|
|
294
|
+
_defineProperty(StatusMain, "dependencies", [_cli().CLIAspect, _workspace().WorkspaceAspect, _insights().InsightsAspect, _issues().IssuesAspect, _remove().RemoveAspect, _lanes().LanesAspect, _logger().LoggerAspect, _merging().MergingAspect]);
|
|
286
295
|
_defineProperty(StatusMain, "runtime", _cli().MainRuntime);
|
|
287
296
|
_status().StatusAspect.addRuntime(StatusMain);
|
|
288
297
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_pMapSeries","_interopRequireDefault","_componentIssues","_workspace","_lanes","_componentId","_remove","_componentsPendingImport","_legacy","_insights","_issues","_statusCmd","_status","_miniStatusCmd","_logger","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","BEFORE_STATUS","StatusMain","constructor","workspace","issues","insights","remove","lanes","logger","status","ignoreCircularDependencies","OutsideWorkspaceError","setStatusLine","loadOpts","loadDocs","loadCompositions","components","allComps","invalidComponents","allInvalidComponents","listWithInvalid","consumer","laneObj","getCurrentLaneObject","componentsList","ComponentsList","newComponents","listNewComponents","modifiedComponents","modified","stagedComponents","listExportPendingComponents","addRemovedStagedIfNeeded","stagedComponentsWithVersions","pMapSeries","stagedComp","versions","getLocalTagsOrHashes","scope","objects","id","toComponentId","unavailableOnMain","getUnavailableOnMainComponents","autoTagPendingComponentsIds","listAutoTagPendingComponentIds","locallySoftRemoved","listLocallySoftRemoved","remotelySoftRemoved","listRemotelySoftRemoved","importPendingComponents","filter","c","err","ComponentsPendingImport","map","error","divergeInvalid","divergeDataErrorsToInvalidComp","push","outdatedComponents","listOutdatedComponents","idsDuringMergeState","listDuringMergeStateComponents","mergePendingComponents","listMergePendingComponents","length","issuesFromFlag","IssuesClasses","CircularDependencies","name","issuesToIgnore","getIssuesToIgnoreGlobally","triggerAddComponentIssues","removeIgnoredIssuesFromComponents","componentsWithIssues","component","state","isEmpty","softTaggedComponents","bySoftTagged","snappedComponents","bySnappedOnMain","pendingUpdatesFromMain","listUpdatesFromMainPending","updatesFromForked","listUpdatesFromForked","currentLaneId","getCurrentLaneId","currentLane","forkedLaneId","forkedFrom","workspaceIssues","getWorkspaceIssues","localOnly","listLocalOnly","sortObjectsWithId","objectsWithId","sort","a","b","toString","localeCompare","onDestroy","ComponentID","sortIds","autoTagPendingComponents","headVersion","latestVersion","divergeData","diverge","componentsDuringMergeState","message","statusMini","componentPattern","opts","ids","idsByPattern","listIds","compFiles","getFilesModification","newComps","forEach","comp","hasVersion","isModified","comps","showIssues","getMany","compWithIssues","removedStagedIds","getRemovedStaged","removedStagedBitIds","nonExistsInStaged","find","isEqualWithoutVersion","modelComps","Promise","all","legacyScope","getModelComponent","_consumer","modelComponent","setDivergeData","getDivergeData","provider","cli","loggerMain","createLogger","StatusAspect","statusMain","register","StatusCmd","MiniStatusCmd","exports","CLIAspect","WorkspaceAspect","InsightsAspect","IssuesAspect","RemoveAspect","LanesAspect","LoggerAspect","MainRuntime","addRuntime"],"sources":["status.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport pMapSeries from 'p-map-series';\nimport { LaneId } from '@teambit/lane-id';\nimport { IssuesClasses, IssuesList } from '@teambit/component-issues';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { LanesAspect, LanesMain } from '@teambit/lanes';\nimport { ComponentID } from '@teambit/component-id';\nimport { Component, InvalidComponent } from '@teambit/component';\nimport { RemoveAspect, RemoveMain } from '@teambit/remove';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport ComponentsPendingImport from '@teambit/legacy/dist/consumer/exceptions/components-pending-import';\nimport { ComponentsList } from '@teambit/legacy.component-list';\nimport { ModelComponent } from '@teambit/legacy/dist/scope/models';\nimport { InsightsAspect, InsightsMain } from '@teambit/insights';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport { IssuesAspect, IssuesMain } from '@teambit/issues';\nimport { StatusCmd } from './status-cmd';\nimport { StatusAspect } from './status.aspect';\nimport { MiniStatusCmd, MiniStatusOpts } from './mini-status-cmd';\nimport { LoggerAspect, LoggerMain, Logger } from '@teambit/logger';\n\ntype DivergeDataPerId = { id: ComponentID; divergeData: SnapsDistance };\nconst BEFORE_STATUS = 'fetching status';\n\nexport type StatusResult = {\n newComponents: ComponentID[];\n modifiedComponents: ComponentID[];\n stagedComponents: { id: ComponentID; versions: string[] }[];\n componentsWithIssues: { id: ComponentID; issues: IssuesList }[];\n importPendingComponents: ComponentID[];\n autoTagPendingComponents: ComponentID[];\n invalidComponents: { id: ComponentID; error: Error }[];\n locallySoftRemoved: ComponentID[];\n remotelySoftRemoved: ComponentID[];\n outdatedComponents: { id: ComponentID; headVersion: string; latestVersion?: string }[];\n mergePendingComponents: DivergeDataPerId[];\n componentsDuringMergeState: ComponentID[];\n softTaggedComponents: ComponentID[];\n snappedComponents: ComponentID[];\n pendingUpdatesFromMain: DivergeDataPerId[];\n updatesFromForked: DivergeDataPerId[];\n unavailableOnMain: ComponentID[];\n currentLaneId: LaneId;\n forkedLaneId?: LaneId;\n workspaceIssues: string[];\n localOnly: ComponentID[];\n};\n\nexport type MiniStatusResults = {\n modified: ComponentID[];\n newComps: ComponentID[];\n compWithIssues?: Component[];\n};\n\nexport class StatusMain {\n constructor(\n private workspace: Workspace,\n private issues: IssuesMain,\n private insights: InsightsMain,\n private remove: RemoveMain,\n private lanes: LanesMain,\n private logger: Logger\n ) {}\n\n async status({\n lanes,\n ignoreCircularDependencies,\n }: {\n lanes?: boolean;\n ignoreCircularDependencies?: boolean;\n }): Promise<StatusResult> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n this.logger.setStatusLine(BEFORE_STATUS);\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const { components: allComps, invalidComponents: allInvalidComponents } =\n await this.workspace.listWithInvalid(loadOpts);\n const consumer = this.workspace.consumer;\n const laneObj = await consumer.getCurrentLaneObject();\n const componentsList = new ComponentsList(consumer);\n const newComponents: ConsumerComponent[] = (await componentsList.listNewComponents(\n true,\n loadOpts\n )) as ConsumerComponent[];\n const modifiedComponents = await this.workspace.modified(loadOpts);\n const stagedComponents: ModelComponent[] = await componentsList.listExportPendingComponents(laneObj);\n await this.addRemovedStagedIfNeeded(stagedComponents);\n const stagedComponentsWithVersions = await pMapSeries(stagedComponents, async (stagedComp) => {\n const versions = await stagedComp.getLocalTagsOrHashes(consumer.scope.objects);\n return {\n id: stagedComp.toComponentId(),\n versions,\n };\n });\n\n const unavailableOnMain = await this.workspace.getUnavailableOnMainComponents();\n const autoTagPendingComponentsIds = await this.workspace.listAutoTagPendingComponentIds();\n const locallySoftRemoved = await componentsList.listLocallySoftRemoved();\n const remotelySoftRemoved = await componentsList.listRemotelySoftRemoved();\n const importPendingComponents = allInvalidComponents\n .filter((c) => c.err instanceof ComponentsPendingImport)\n .map((i) => i.id);\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const invalidComponents = allInvalidComponents.filter((c) => !(c.error instanceof ComponentsPendingImport));\n const divergeInvalid = await this.divergeDataErrorsToInvalidComp(allComps);\n invalidComponents.push(...divergeInvalid);\n const outdatedComponents = await componentsList.listOutdatedComponents();\n const idsDuringMergeState = componentsList.listDuringMergeStateComponents();\n const mergePendingComponents = await componentsList.listMergePendingComponents();\n if (allComps.length) {\n const issuesFromFlag = ignoreCircularDependencies ? [IssuesClasses.CircularDependencies.name] : [];\n const issuesToIgnore = [...this.issues.getIssuesToIgnoreGlobally(), ...issuesFromFlag];\n await this.issues.triggerAddComponentIssues(allComps, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(allComps);\n }\n const componentsWithIssues = allComps.filter((component) => !component.state.issues.isEmpty());\n const softTaggedComponents = this.workspace.filter.bySoftTagged();\n const snappedComponents = await this.workspace.filter.bySnappedOnMain();\n const pendingUpdatesFromMain = lanes ? await componentsList.listUpdatesFromMainPending() : [];\n const updatesFromForked = lanes ? await this.lanes.listUpdatesFromForked(componentsList) : [];\n const currentLaneId = consumer.getCurrentLaneId();\n const currentLane = await consumer.getCurrentLaneObject();\n const forkedLaneId = currentLane?.forkedFrom;\n const workspaceIssues = this.workspace.getWorkspaceIssues();\n const localOnly = this.workspace.listLocalOnly();\n\n const sortObjectsWithId = <T>(objectsWithId: Array<T & { id: ComponentID }>): Array<T & { id: ComponentID }> => {\n return objectsWithId.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));\n };\n\n await consumer.onDestroy('status');\n return {\n newComponents: ComponentID.sortIds(newComponents.map((c) => c.id)),\n modifiedComponents: ComponentID.sortIds(modifiedComponents.map((c) => c.id)),\n stagedComponents: sortObjectsWithId(stagedComponentsWithVersions),\n componentsWithIssues: sortObjectsWithId(componentsWithIssues.map((c) => ({ id: c.id, issues: c.state.issues }))),\n importPendingComponents, // no need to sort, we use only its length\n autoTagPendingComponents: ComponentID.sortIds(autoTagPendingComponentsIds),\n invalidComponents: sortObjectsWithId(invalidComponents.map((c) => ({ id: c.id, error: c.err }))),\n locallySoftRemoved: ComponentID.sortIds(locallySoftRemoved),\n remotelySoftRemoved: ComponentID.sortIds(remotelySoftRemoved.map((c) => c.id)),\n outdatedComponents: sortObjectsWithId(\n outdatedComponents.map((c) => ({\n id: c.id,\n headVersion: c.headVersion,\n latestVersion: c.latestVersion,\n }))\n ),\n mergePendingComponents: sortObjectsWithId(\n mergePendingComponents.map((c) => ({ id: c.id, divergeData: c.diverge }))\n ),\n componentsDuringMergeState: ComponentID.sortIds(idsDuringMergeState),\n softTaggedComponents: ComponentID.sortIds(softTaggedComponents),\n snappedComponents: ComponentID.sortIds(snappedComponents),\n pendingUpdatesFromMain: sortObjectsWithId(pendingUpdatesFromMain),\n updatesFromForked: sortObjectsWithId(updatesFromForked),\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues: workspaceIssues.map((err) => err.message),\n localOnly,\n };\n }\n\n async statusMini(componentPattern?: string, opts: MiniStatusOpts = {}): Promise<MiniStatusResults> {\n const ids = componentPattern ? await this.workspace.idsByPattern(componentPattern) : this.workspace.listIds();\n const compFiles = await pMapSeries(ids, (id) => this.workspace.getFilesModification(id));\n const modified: ComponentID[] = [];\n const newComps: ComponentID[] = [];\n compFiles.forEach((comp) => {\n if (!comp.id.hasVersion()) newComps.push(comp.id);\n if (comp.isModified()) modified.push(comp.id);\n });\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const comps = opts.showIssues ? await this.workspace.getMany(ids, loadOpts) : [];\n if (opts.showIssues) {\n const issuesFromFlag = opts.ignoreCircularDependencies ? [IssuesClasses.CircularDependencies.name] : [];\n const issuesToIgnore = [...this.issues.getIssuesToIgnoreGlobally(), ...issuesFromFlag];\n await this.issues.triggerAddComponentIssues(comps, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(comps);\n }\n const compWithIssues = comps.filter((c) => !c.state.issues.isEmpty());\n\n return { modified, newComps, compWithIssues };\n }\n\n private async addRemovedStagedIfNeeded(stagedComponents: ModelComponent[]) {\n const removedStagedIds = await this.remove.getRemovedStaged();\n if (!removedStagedIds.length) return;\n const removedStagedBitIds = removedStagedIds.map((id) => id);\n const nonExistsInStaged = removedStagedBitIds.filter(\n (id) => !stagedComponents.find((c) => c.toComponentId().isEqualWithoutVersion(id))\n );\n if (!nonExistsInStaged.length) return;\n const modelComps = await Promise.all(\n nonExistsInStaged.map((id) => this.workspace.scope.legacyScope.getModelComponent(id))\n );\n stagedComponents.push(...modelComps);\n }\n\n private async divergeDataErrorsToInvalidComp(components: Component[]): Promise<InvalidComponent[]> {\n const invalidComponents: InvalidComponent[] = [];\n await Promise.all(\n components.map(async (component) => {\n const comp = component.state._consumer as ConsumerComponent;\n if (!comp.modelComponent) return;\n await comp.modelComponent.setDivergeData(this.workspace.scope.legacyScope.objects, false);\n const divergeData = comp.modelComponent.getDivergeData();\n if (divergeData.err) {\n invalidComponents.push({ id: component.id, err: divergeData.err });\n }\n })\n );\n return invalidComponents;\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n InsightsAspect,\n IssuesAspect,\n RemoveAspect,\n LanesAspect,\n LoggerAspect,\n ];\n static runtime = MainRuntime;\n static async provider([cli, workspace, insights, issues, remove, lanes, loggerMain]: [\n CLIMain,\n Workspace,\n InsightsMain,\n IssuesMain,\n RemoveMain,\n LanesMain,\n LoggerMain,\n ]) {\n const logger = loggerMain.createLogger(StatusAspect.id);\n const statusMain = new StatusMain(workspace, issues, insights, remove, lanes, logger);\n cli.register(new StatusCmd(statusMain), new MiniStatusCmd(statusMain));\n return statusMain;\n }\n}\n\nStatusAspect.addRuntime(StatusMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA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]}
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_pMapSeries","_interopRequireDefault","_componentIssues","_workspace","_lanes","_componentId","_remove","_componentsPendingImport","_legacy","_insights","_issues","_statusCmd","_status","_miniStatusCmd","_logger","_merging","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","BEFORE_STATUS","StatusMain","constructor","workspace","issues","insights","remove","lanes","logger","merging","status","ignoreCircularDependencies","OutsideWorkspaceError","setStatusLine","loadOpts","loadDocs","loadCompositions","components","allComps","invalidComponents","allInvalidComponents","listWithInvalid","consumer","laneObj","getCurrentLaneObject","componentsList","ComponentsList","newComponents","listNewComponents","modifiedComponents","modified","stagedComponents","listExportPendingComponents","addRemovedStagedIfNeeded","stagedComponentsWithVersions","pMapSeries","stagedComp","versions","getLocalTagsOrHashes","scope","objects","id","toComponentId","unavailableOnMain","getUnavailableOnMainComponents","autoTagPendingComponentsIds","listAutoTagPendingComponentIds","locallySoftRemoved","listLocallySoftRemoved","remotelySoftRemoved","listRemotelySoftRemoved","importPendingComponents","filter","c","err","ComponentsPendingImport","map","error","divergeInvalid","divergeDataErrorsToInvalidComp","push","idsDuringMergeState","listDuringMergeStateComponents","mergePendingComponents","listMergePendingComponents","mergePendingComponentsIds","ComponentIdList","fromArray","outdatedComponents","listOutdatedComponents","length","issuesFromFlag","IssuesClasses","CircularDependencies","name","issuesToIgnore","getIssuesToIgnoreGlobally","triggerAddComponentIssues","removeIgnoredIssuesFromComponents","componentsWithIssues","component","state","isEmpty","softTaggedComponents","bySoftTagged","snappedComponents","bySnappedOnMain","pendingUpdatesFromMain","listUpdatesFromMainPending","updatesFromForked","listUpdatesFromForked","currentLaneId","getCurrentLaneId","currentLane","forkedLaneId","forkedFrom","workspaceIssues","getWorkspaceIssues","localOnly","listLocalOnly","sortObjectsWithId","objectsWithId","sort","a","b","toString","localeCompare","onDestroy","ComponentID","sortIds","autoTagPendingComponents","headVersion","latestVersion","divergeData","diverge","componentsDuringMergeState","message","statusMini","componentPattern","opts","ids","idsByPattern","listIds","compFiles","getFilesModification","newComps","forEach","comp","hasVersion","isModified","comps","showIssues","getMany","compWithIssues","removedStagedIds","getRemovedStaged","removedStagedBitIds","nonExistsInStaged","find","isEqualWithoutVersion","modelComps","Promise","all","legacyScope","getModelComponent","_consumer","modelComponent","setDivergeData","getDivergeData","provider","cli","loggerMain","createLogger","StatusAspect","statusMain","register","StatusCmd","MiniStatusCmd","exports","CLIAspect","WorkspaceAspect","InsightsAspect","IssuesAspect","RemoveAspect","LanesAspect","LoggerAspect","MergingAspect","MainRuntime","addRuntime"],"sources":["status.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport pMapSeries from 'p-map-series';\nimport { LaneId } from '@teambit/lane-id';\nimport { IssuesClasses, IssuesList } from '@teambit/component-issues';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { LanesAspect, LanesMain } from '@teambit/lanes';\nimport { ComponentID, ComponentIdList } from '@teambit/component-id';\nimport { Component, InvalidComponent } from '@teambit/component';\nimport { RemoveAspect, RemoveMain } from '@teambit/remove';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport ComponentsPendingImport from '@teambit/legacy/dist/consumer/exceptions/components-pending-import';\nimport { ComponentsList } from '@teambit/legacy.component-list';\nimport { ModelComponent } from '@teambit/legacy/dist/scope/models';\nimport { InsightsAspect, InsightsMain } from '@teambit/insights';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport { IssuesAspect, IssuesMain } from '@teambit/issues';\nimport { StatusCmd } from './status-cmd';\nimport { StatusAspect } from './status.aspect';\nimport { MiniStatusCmd, MiniStatusOpts } from './mini-status-cmd';\nimport { LoggerAspect, LoggerMain, Logger } from '@teambit/logger';\nimport { MergingAspect, MergingMain } from '@teambit/merging';\n\ntype DivergeDataPerId = { id: ComponentID; divergeData: SnapsDistance };\nconst BEFORE_STATUS = 'fetching status';\n\nexport type StatusResult = {\n newComponents: ComponentID[];\n modifiedComponents: ComponentID[];\n stagedComponents: { id: ComponentID; versions: string[] }[];\n componentsWithIssues: { id: ComponentID; issues: IssuesList }[];\n importPendingComponents: ComponentID[];\n autoTagPendingComponents: ComponentID[];\n invalidComponents: { id: ComponentID; error: Error }[];\n locallySoftRemoved: ComponentID[];\n remotelySoftRemoved: ComponentID[];\n outdatedComponents: { id: ComponentID; headVersion: string; latestVersion?: string }[];\n mergePendingComponents: DivergeDataPerId[];\n componentsDuringMergeState: ComponentID[];\n softTaggedComponents: ComponentID[];\n snappedComponents: ComponentID[];\n pendingUpdatesFromMain: DivergeDataPerId[];\n updatesFromForked: DivergeDataPerId[];\n unavailableOnMain: ComponentID[];\n currentLaneId: LaneId;\n forkedLaneId?: LaneId;\n workspaceIssues: string[];\n localOnly: ComponentID[];\n};\n\nexport type MiniStatusResults = {\n modified: ComponentID[];\n newComps: ComponentID[];\n compWithIssues?: Component[];\n};\n\nexport class StatusMain {\n constructor(\n private workspace: Workspace,\n private issues: IssuesMain,\n private insights: InsightsMain,\n private remove: RemoveMain,\n private lanes: LanesMain,\n private logger: Logger,\n private merging: MergingMain\n ) {}\n\n async status({\n lanes,\n ignoreCircularDependencies,\n }: {\n lanes?: boolean;\n ignoreCircularDependencies?: boolean;\n }): Promise<StatusResult> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n this.logger.setStatusLine(BEFORE_STATUS);\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const { components: allComps, invalidComponents: allInvalidComponents } =\n await this.workspace.listWithInvalid(loadOpts);\n const consumer = this.workspace.consumer;\n const laneObj = await consumer.getCurrentLaneObject();\n const componentsList = new ComponentsList(consumer);\n const newComponents: ConsumerComponent[] = (await componentsList.listNewComponents(\n true,\n loadOpts\n )) as ConsumerComponent[];\n const modifiedComponents = await this.workspace.modified(loadOpts);\n const stagedComponents: ModelComponent[] = await componentsList.listExportPendingComponents(laneObj);\n await this.addRemovedStagedIfNeeded(stagedComponents);\n const stagedComponentsWithVersions = await pMapSeries(stagedComponents, async (stagedComp) => {\n const versions = await stagedComp.getLocalTagsOrHashes(consumer.scope.objects);\n return {\n id: stagedComp.toComponentId(),\n versions,\n };\n });\n\n const unavailableOnMain = await this.workspace.getUnavailableOnMainComponents();\n const autoTagPendingComponentsIds = await this.workspace.listAutoTagPendingComponentIds();\n const locallySoftRemoved = await componentsList.listLocallySoftRemoved();\n const remotelySoftRemoved = await componentsList.listRemotelySoftRemoved();\n const importPendingComponents = allInvalidComponents\n .filter((c) => c.err instanceof ComponentsPendingImport)\n .map((i) => i.id);\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const invalidComponents = allInvalidComponents.filter((c) => !(c.error instanceof ComponentsPendingImport));\n const divergeInvalid = await this.divergeDataErrorsToInvalidComp(allComps);\n invalidComponents.push(...divergeInvalid);\n const idsDuringMergeState = componentsList.listDuringMergeStateComponents();\n const mergePendingComponents = await this.merging.listMergePendingComponents(componentsList);\n const mergePendingComponentsIds = ComponentIdList.fromArray(mergePendingComponents.map((c) => c.id));\n const outdatedComponents = await componentsList.listOutdatedComponents(mergePendingComponentsIds, loadOpts);\n if (allComps.length) {\n const issuesFromFlag = ignoreCircularDependencies ? [IssuesClasses.CircularDependencies.name] : [];\n const issuesToIgnore = [...this.issues.getIssuesToIgnoreGlobally(), ...issuesFromFlag];\n await this.issues.triggerAddComponentIssues(allComps, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(allComps);\n }\n const componentsWithIssues = allComps.filter((component) => !component.state.issues.isEmpty());\n const softTaggedComponents = this.workspace.filter.bySoftTagged();\n const snappedComponents = await this.workspace.filter.bySnappedOnMain();\n const pendingUpdatesFromMain = lanes ? await this.lanes.listUpdatesFromMainPending(componentsList) : [];\n const updatesFromForked = lanes ? await this.lanes.listUpdatesFromForked(componentsList) : [];\n const currentLaneId = consumer.getCurrentLaneId();\n const currentLane = await consumer.getCurrentLaneObject();\n const forkedLaneId = currentLane?.forkedFrom;\n const workspaceIssues = this.workspace.getWorkspaceIssues();\n const localOnly = this.workspace.listLocalOnly();\n\n const sortObjectsWithId = <T>(objectsWithId: Array<T & { id: ComponentID }>): Array<T & { id: ComponentID }> => {\n return objectsWithId.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));\n };\n\n await consumer.onDestroy('status');\n return {\n newComponents: ComponentID.sortIds(newComponents.map((c) => c.id)),\n modifiedComponents: ComponentID.sortIds(modifiedComponents.map((c) => c.id)),\n stagedComponents: sortObjectsWithId(stagedComponentsWithVersions),\n componentsWithIssues: sortObjectsWithId(componentsWithIssues.map((c) => ({ id: c.id, issues: c.state.issues }))),\n importPendingComponents, // no need to sort, we use only its length\n autoTagPendingComponents: ComponentID.sortIds(autoTagPendingComponentsIds),\n invalidComponents: sortObjectsWithId(invalidComponents.map((c) => ({ id: c.id, error: c.err }))),\n locallySoftRemoved: ComponentID.sortIds(locallySoftRemoved),\n remotelySoftRemoved: ComponentID.sortIds(remotelySoftRemoved.map((c) => c.id)),\n outdatedComponents: sortObjectsWithId(\n outdatedComponents.map((c) => ({\n id: c.id,\n headVersion: c.headVersion,\n latestVersion: c.latestVersion,\n }))\n ),\n mergePendingComponents: sortObjectsWithId(\n mergePendingComponents.map((c) => ({ id: c.id, divergeData: c.diverge }))\n ),\n componentsDuringMergeState: ComponentID.sortIds(idsDuringMergeState),\n softTaggedComponents: ComponentID.sortIds(softTaggedComponents),\n snappedComponents: ComponentID.sortIds(snappedComponents),\n pendingUpdatesFromMain: sortObjectsWithId(pendingUpdatesFromMain),\n updatesFromForked: sortObjectsWithId(updatesFromForked),\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues: workspaceIssues.map((err) => err.message),\n localOnly,\n };\n }\n\n async statusMini(componentPattern?: string, opts: MiniStatusOpts = {}): Promise<MiniStatusResults> {\n const ids = componentPattern ? await this.workspace.idsByPattern(componentPattern) : this.workspace.listIds();\n const compFiles = await pMapSeries(ids, (id) => this.workspace.getFilesModification(id));\n const modified: ComponentID[] = [];\n const newComps: ComponentID[] = [];\n compFiles.forEach((comp) => {\n if (!comp.id.hasVersion()) newComps.push(comp.id);\n if (comp.isModified()) modified.push(comp.id);\n });\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const comps = opts.showIssues ? await this.workspace.getMany(ids, loadOpts) : [];\n if (opts.showIssues) {\n const issuesFromFlag = opts.ignoreCircularDependencies ? [IssuesClasses.CircularDependencies.name] : [];\n const issuesToIgnore = [...this.issues.getIssuesToIgnoreGlobally(), ...issuesFromFlag];\n await this.issues.triggerAddComponentIssues(comps, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(comps);\n }\n const compWithIssues = comps.filter((c) => !c.state.issues.isEmpty());\n\n return { modified, newComps, compWithIssues };\n }\n\n private async addRemovedStagedIfNeeded(stagedComponents: ModelComponent[]) {\n const removedStagedIds = await this.remove.getRemovedStaged();\n if (!removedStagedIds.length) return;\n const removedStagedBitIds = removedStagedIds.map((id) => id);\n const nonExistsInStaged = removedStagedBitIds.filter(\n (id) => !stagedComponents.find((c) => c.toComponentId().isEqualWithoutVersion(id))\n );\n if (!nonExistsInStaged.length) return;\n const modelComps = await Promise.all(\n nonExistsInStaged.map((id) => this.workspace.scope.legacyScope.getModelComponent(id))\n );\n stagedComponents.push(...modelComps);\n }\n\n private async divergeDataErrorsToInvalidComp(components: Component[]): Promise<InvalidComponent[]> {\n const invalidComponents: InvalidComponent[] = [];\n await Promise.all(\n components.map(async (component) => {\n const comp = component.state._consumer as ConsumerComponent;\n if (!comp.modelComponent) return;\n await comp.modelComponent.setDivergeData(this.workspace.scope.legacyScope.objects, false);\n const divergeData = comp.modelComponent.getDivergeData();\n if (divergeData.err) {\n invalidComponents.push({ id: component.id, err: divergeData.err });\n }\n })\n );\n return invalidComponents;\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n InsightsAspect,\n IssuesAspect,\n RemoveAspect,\n LanesAspect,\n LoggerAspect,\n MergingAspect,\n ];\n static runtime = MainRuntime;\n static async provider([cli, workspace, insights, issues, remove, lanes, loggerMain, merging]: [\n CLIMain,\n Workspace,\n InsightsMain,\n IssuesMain,\n RemoveMain,\n LanesMain,\n LoggerMain,\n MergingMain,\n ]) {\n const logger = loggerMain.createLogger(StatusAspect.id);\n const statusMain = new StatusMain(workspace, issues, insights, remove, lanes, logger, merging);\n cli.register(new StatusCmd(statusMain), new MiniStatusCmd(statusMain));\n return statusMain;\n }\n}\n\nStatusAspect.addRuntime(StatusMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,iBAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,gBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,WAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,OAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,MAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,aAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,YAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAQ,QAAA;EAAA,M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homepage": "https://bit.cloud/teambit/component/status",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "status",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.486"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -16,16 +16,17 @@
|
|
|
16
16
|
"@teambit/component-version": "1.0.3",
|
|
17
17
|
"@teambit/harmony": "0.4.6",
|
|
18
18
|
"@teambit/lane-id": "0.0.311",
|
|
19
|
-
"@teambit/cli": "0.0.
|
|
19
|
+
"@teambit/cli": "0.0.1063",
|
|
20
20
|
"@teambit/component-issues": "0.0.151",
|
|
21
|
-
"@teambit/component": "1.0.
|
|
22
|
-
"@teambit/insights": "1.0.
|
|
23
|
-
"@teambit/issues": "1.0.
|
|
24
|
-
"@teambit/lanes": "1.0.
|
|
25
|
-
"@teambit/legacy.component-list": "0.0.
|
|
26
|
-
"@teambit/logger": "0.0.
|
|
27
|
-
"@teambit/
|
|
28
|
-
"@teambit/
|
|
21
|
+
"@teambit/component": "1.0.486",
|
|
22
|
+
"@teambit/insights": "1.0.486",
|
|
23
|
+
"@teambit/issues": "1.0.486",
|
|
24
|
+
"@teambit/lanes": "1.0.486",
|
|
25
|
+
"@teambit/legacy.component-list": "0.0.54",
|
|
26
|
+
"@teambit/logger": "0.0.1156",
|
|
27
|
+
"@teambit/merging": "1.0.486",
|
|
28
|
+
"@teambit/remove": "1.0.486",
|
|
29
|
+
"@teambit/workspace": "1.0.486"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@types/lodash": "4.14.165",
|
|
File without changes
|