@teambit/status 0.0.421 → 0.0.423
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/mini-status-cmd.d.ts +18 -1
- package/dist/mini-status-cmd.js +29 -5
- package/dist/mini-status-cmd.js.map +1 -1
- package/dist/status.main.runtime.d.ts +4 -1
- package/dist/status.main.runtime.js +16 -4
- package/dist/status.main.runtime.js.map +1 -1
- package/package-tar/teambit-status-0.0.423.tgz +0 -0
- package/package.json +12 -11
- package/package-tar/teambit-status-0.0.421.tgz +0 -0
- /package/dist/{preview-1689585411475.js → preview-1689823719636.js} +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
2
|
import { StatusMain } from './status.main.runtime';
|
|
3
|
+
export declare type MiniStatusOpts = {
|
|
4
|
+
showIssues?: Boolean;
|
|
5
|
+
};
|
|
3
6
|
export default class MiniStatusCmd implements Command {
|
|
4
7
|
private status;
|
|
5
8
|
name: string;
|
|
@@ -14,5 +17,19 @@ export default class MiniStatusCmd implements Command {
|
|
|
14
17
|
options: CommandOptions;
|
|
15
18
|
loader: boolean;
|
|
16
19
|
constructor(status: StatusMain);
|
|
17
|
-
report([pattern]: [string]): Promise<string>;
|
|
20
|
+
report([pattern]: [string], opts: MiniStatusOpts): Promise<string>;
|
|
21
|
+
json([pattern]: [string], opts: MiniStatusOpts): Promise<{
|
|
22
|
+
modified: string[];
|
|
23
|
+
newComps: string[];
|
|
24
|
+
compWithIssues: {
|
|
25
|
+
id: string;
|
|
26
|
+
issues: {
|
|
27
|
+
type: string;
|
|
28
|
+
description: string;
|
|
29
|
+
solution: string;
|
|
30
|
+
isTagBlocker: boolean;
|
|
31
|
+
data: string;
|
|
32
|
+
}[];
|
|
33
|
+
}[] | undefined;
|
|
34
|
+
}>;
|
|
18
35
|
}
|
package/dist/mini-status-cmd.js
CHANGED
|
@@ -41,22 +41,46 @@ the modified are components that their source code have changed, it doesn't chec
|
|
|
41
41
|
}]);
|
|
42
42
|
(0, _defineProperty2().default)(this, "group", 'development');
|
|
43
43
|
(0, _defineProperty2().default)(this, "alias", 'ms');
|
|
44
|
-
(0, _defineProperty2().default)(this, "options", []);
|
|
44
|
+
(0, _defineProperty2().default)(this, "options", [['', 'show-issues', 'show component issues (slows down the command)'], ['j', 'json', 'json format']]);
|
|
45
45
|
(0, _defineProperty2().default)(this, "loader", true);
|
|
46
46
|
}
|
|
47
|
-
async report([pattern]) {
|
|
47
|
+
async report([pattern], opts) {
|
|
48
48
|
const {
|
|
49
49
|
modified,
|
|
50
|
-
newComps
|
|
51
|
-
|
|
50
|
+
newComps,
|
|
51
|
+
compWithIssues
|
|
52
|
+
} = await this.status.statusMini(pattern, opts);
|
|
52
53
|
const outputSection = (title, ids) => {
|
|
53
54
|
const titleStr = _chalk().default.bold(title);
|
|
54
55
|
const idsStr = ids.length ? ids.map(id => id.toStringWithoutVersion()).join('\n') : '<none>';
|
|
55
56
|
return `${titleStr}:\n${idsStr}`;
|
|
56
57
|
};
|
|
58
|
+
const outputCompWithIssues = () => {
|
|
59
|
+
if (!opts.showIssues) return '';
|
|
60
|
+
if (!(compWithIssues !== null && compWithIssues !== void 0 && compWithIssues.length)) return '<none>';
|
|
61
|
+
const titleStr = _chalk().default.bold('\n\ncomponent with issues');
|
|
62
|
+
const issues = compWithIssues.map(c => `${c.id.toStringWithoutVersion()}\n ${c.state.issues.outputForCLI()}`);
|
|
63
|
+
return `${titleStr}\n${issues}`;
|
|
64
|
+
};
|
|
57
65
|
const modifiedOutput = outputSection('modified components (files only)', modified);
|
|
58
66
|
const newOutput = outputSection('new components', newComps);
|
|
59
|
-
|
|
67
|
+
const compWithIssuesOutput = outputCompWithIssues();
|
|
68
|
+
return `${modifiedOutput}\n\n${newOutput}${compWithIssuesOutput}`;
|
|
69
|
+
}
|
|
70
|
+
async json([pattern], opts) {
|
|
71
|
+
const {
|
|
72
|
+
modified,
|
|
73
|
+
newComps,
|
|
74
|
+
compWithIssues
|
|
75
|
+
} = await this.status.statusMini(pattern, opts);
|
|
76
|
+
return {
|
|
77
|
+
modified: modified.map(m => m.toStringWithoutVersion()),
|
|
78
|
+
newComps: newComps.map(m => m.toStringWithoutVersion()),
|
|
79
|
+
compWithIssues: compWithIssues === null || compWithIssues === void 0 ? void 0 : compWithIssues.map(c => ({
|
|
80
|
+
id: c.id.toStringWithoutVersion(),
|
|
81
|
+
issues: c.state.issues.toReadableByIDE()
|
|
82
|
+
}))
|
|
83
|
+
};
|
|
60
84
|
}
|
|
61
85
|
}
|
|
62
86
|
exports.default = MiniStatusCmd;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MiniStatusCmd","constructor","status","name","description","COMPONENT_PATTERN_HELP","report","pattern","modified","newComps","statusMini","outputSection","title","ids","titleStr","chalk","bold","idsStr","length","map","id","toStringWithoutVersion","join","modifiedOutput","newOutput"],"sources":["mini-status-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport { ComponentID } from '@teambit/component-id';\nimport chalk from 'chalk';\nimport { StatusMain } from './status.main.runtime';\n\nexport default class MiniStatusCmd implements Command {\n name = 'mini-status [component-pattern]';\n description = 'EXPERIMENTAL. basic status for fast execution';\n extendedDescription = `shows only modified/new components. for the full status, use \"bit status\".\nthe modified are components that their source code have changed, it doesn't check for config/aspect changes`;\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n group = 'development';\n alias = 'ms';\n options = [] as CommandOptions;\n loader = true;\n\n constructor(private status: StatusMain) {}\n\n async report([pattern]: [string]) {\n const { modified, newComps } = await this.status.statusMini(pattern);\n const outputSection = (title: string, ids: ComponentID[]) => {\n const titleStr = chalk.bold(title);\n const idsStr = ids.length ? ids.map((id) => id.toStringWithoutVersion()).join('\\n') : '<none>';\n return `${titleStr}:\\n${idsStr}`;\n };\n const modifiedOutput = outputSection('modified components (files only)', modified);\n const newOutput = outputSection('new components', newComps);\n return `${modifiedOutput}\\n\\n${newOutput}`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;
|
|
1
|
+
{"version":3,"names":["MiniStatusCmd","constructor","status","name","description","COMPONENT_PATTERN_HELP","report","pattern","opts","modified","newComps","compWithIssues","statusMini","outputSection","title","ids","titleStr","chalk","bold","idsStr","length","map","id","toStringWithoutVersion","join","outputCompWithIssues","showIssues","issues","c","state","outputForCLI","modifiedOutput","newOutput","compWithIssuesOutput","json","m","toReadableByIDE"],"sources":["mini-status-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport { ComponentID } from '@teambit/component-id';\nimport chalk from 'chalk';\nimport { StatusMain } from './status.main.runtime';\n\nexport type MiniStatusOpts = {\n showIssues?: Boolean;\n};\n\nexport default class MiniStatusCmd implements Command {\n name = 'mini-status [component-pattern]';\n description = 'EXPERIMENTAL. basic status for fast execution';\n extendedDescription = `shows only modified/new components. for the full status, use \"bit status\".\nthe modified are components that their source code have changed, it doesn't check for config/aspect changes`;\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n group = 'development';\n alias = 'ms';\n options = [\n ['', 'show-issues', 'show component issues (slows down the command)'],\n ['j', 'json', 'json format'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private status: StatusMain) {}\n\n async report([pattern]: [string], opts: MiniStatusOpts) {\n const { modified, newComps, compWithIssues } = await this.status.statusMini(pattern, opts);\n const outputSection = (title: string, ids: ComponentID[]) => {\n const titleStr = chalk.bold(title);\n const idsStr = ids.length ? ids.map((id) => id.toStringWithoutVersion()).join('\\n') : '<none>';\n return `${titleStr}:\\n${idsStr}`;\n };\n const outputCompWithIssues = () => {\n if (!opts.showIssues) return '';\n if (!compWithIssues?.length) return '<none>';\n const titleStr = chalk.bold('\\n\\ncomponent with issues');\n const issues = compWithIssues.map((c) => `${c.id.toStringWithoutVersion()}\\n ${c.state.issues.outputForCLI()}`);\n return `${titleStr}\\n${issues}`;\n };\n const modifiedOutput = outputSection('modified components (files only)', modified);\n const newOutput = outputSection('new components', newComps);\n const compWithIssuesOutput = outputCompWithIssues();\n return `${modifiedOutput}\\n\\n${newOutput}${compWithIssuesOutput}`;\n }\n\n async json([pattern]: [string], opts: MiniStatusOpts) {\n const { modified, newComps, compWithIssues } = await this.status.statusMini(pattern, opts);\n return {\n modified: modified.map((m) => m.toStringWithoutVersion()),\n newComps: newComps.map((m) => m.toStringWithoutVersion()),\n compWithIssues: compWithIssues?.map((c) => ({\n id: c.id.toStringWithoutVersion(),\n issues: c.state.issues.toReadableByIDE(),\n })),\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAOe,MAAMA,aAAa,CAAoB;EAmBpDC,WAAW,CAASC,MAAkB,EAAE;IAAA,KAApBA,MAAkB,GAAlBA,MAAkB;IAAA,8CAlB/B,iCAAiC;IAAA,qDAC1B,+CAA+C;IAAA,6DACtC;AACzB,4GAA4G;IAAA,mDAC9F,CACV;MACEC,IAAI,EAAE,mBAAmB;MACzBC,WAAW,EAAEC;IACf,CAAC,CACF;IAAA,+CACO,aAAa;IAAA,+CACb,IAAI;IAAA,iDACF,CACR,CAAC,EAAE,EAAE,aAAa,EAAE,gDAAgD,CAAC,EACrE,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,CAC7B;IAAA,gDACQ,IAAI;EAE4B;EAEzC,MAAMC,MAAM,CAAC,CAACC,OAAO,CAAW,EAAEC,IAAoB,EAAE;IACtD,MAAM;MAAEC,QAAQ;MAAEC,QAAQ;MAAEC;IAAe,CA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AM;MAAEC,QAAQ;MAAEC,QAAQ;MAAEC;IAAe,CAAC,GAAG,MAAM,IAAI,CAACT,MAAM,CAACU,UAAU,CAACL,OAAO,EAAEC,IAAI,CAAC;IAC1F,OAAO;MACLC,QAAQ,EAAEA,QAAQ,CAACY,GAAG,CAAEc,CAAC,IAAKA,CAAC,CAACZ,sBAAsB,EAAE,CAAC;MACzDb,QAAQ,EAAEA,QAAQ,CAACW,GAAG,CAAEc,CAAC,IAAKA,CAAC,CAACZ,sBAAsB,EAAE,CAAC;MACzDZ,cAAc,EAAEA,cAAc,aAAdA,cAAc,uBAAdA,cAAc,CAAEU,GAAG,CAAEO,CAAC,KAAM;QAC1CN,EAAE,EAAEM,CAAC,CAACN,EAAE,CAACC,sBAAsB,EAAE;QACjCI,MAAM,EAAEC,CAAC,CAACC,KAAK,CAACF,MAAM,CAACS,eAAe;MACxC,CAAC,CAAC;IACJ,CAAC;EACH;AACF;AAAC"}
|
|
@@ -4,10 +4,12 @@ import { IssuesList } from '@teambit/component-issues';
|
|
|
4
4
|
import { Workspace } from '@teambit/workspace';
|
|
5
5
|
import { LanesMain } from '@teambit/lanes';
|
|
6
6
|
import { ComponentID } from '@teambit/component-id';
|
|
7
|
+
import { Component } from '@teambit/component';
|
|
7
8
|
import { RemoveMain } from '@teambit/remove';
|
|
8
9
|
import { InsightsMain } from '@teambit/insights';
|
|
9
10
|
import { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';
|
|
10
11
|
import { IssuesMain } from '@teambit/issues';
|
|
12
|
+
import { MiniStatusOpts } from './mini-status-cmd';
|
|
11
13
|
declare type DivergeDataPerId = {
|
|
12
14
|
id: ComponentID;
|
|
13
15
|
divergeData: SnapsDistance;
|
|
@@ -50,6 +52,7 @@ export declare type StatusResult = {
|
|
|
50
52
|
export declare type MiniStatusResults = {
|
|
51
53
|
modified: ComponentID[];
|
|
52
54
|
newComps: ComponentID[];
|
|
55
|
+
compWithIssues?: Component[];
|
|
53
56
|
};
|
|
54
57
|
export declare class StatusMain {
|
|
55
58
|
private workspace;
|
|
@@ -61,7 +64,7 @@ export declare class StatusMain {
|
|
|
61
64
|
status({ lanes }: {
|
|
62
65
|
lanes?: boolean;
|
|
63
66
|
}): Promise<StatusResult>;
|
|
64
|
-
statusMini(componentPattern?: string): Promise<MiniStatusResults>;
|
|
67
|
+
statusMini(componentPattern?: string, opts?: MiniStatusOpts): Promise<MiniStatusResults>;
|
|
65
68
|
private addRemovedStagedIfNeeded;
|
|
66
69
|
static slots: never[];
|
|
67
70
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
@@ -253,18 +253,30 @@ class StatusMain {
|
|
|
253
253
|
workspaceIssues: workspaceIssues.map(err => err.message)
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
async statusMini(componentPattern) {
|
|
256
|
+
async statusMini(componentPattern, opts = {}) {
|
|
257
257
|
const ids = componentPattern ? await this.workspace.idsByPattern(componentPattern) : await this.workspace.listIds();
|
|
258
|
-
const
|
|
258
|
+
const compFiles = await (0, _pMapSeries().default)(ids, id => this.workspace.getFilesModification(id));
|
|
259
259
|
const modified = [];
|
|
260
260
|
const newComps = [];
|
|
261
|
-
|
|
261
|
+
compFiles.forEach(comp => {
|
|
262
262
|
if (!comp.id.hasVersion()) newComps.push(comp.id);
|
|
263
263
|
if (comp.isModified()) modified.push(comp.id);
|
|
264
264
|
});
|
|
265
|
+
const loadOpts = {
|
|
266
|
+
loadDocs: false,
|
|
267
|
+
loadCompositions: false
|
|
268
|
+
};
|
|
269
|
+
const comps = opts.showIssues ? await this.workspace.getMany(ids, loadOpts) : [];
|
|
270
|
+
if (opts.showIssues) {
|
|
271
|
+
const issuesToIgnore = this.issues.getIssuesToIgnoreGlobally();
|
|
272
|
+
await this.issues.triggerAddComponentIssues(comps, issuesToIgnore);
|
|
273
|
+
this.issues.removeIgnoredIssuesFromComponents(comps);
|
|
274
|
+
}
|
|
275
|
+
const compWithIssues = comps.filter(c => !c.state.issues.isEmpty());
|
|
265
276
|
return {
|
|
266
277
|
modified,
|
|
267
|
-
newComps
|
|
278
|
+
newComps,
|
|
279
|
+
compWithIssues
|
|
268
280
|
};
|
|
269
281
|
}
|
|
270
282
|
async addRemovedStagedIfNeeded(stagedComponents) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StatusMain","constructor","workspace","issues","insights","remove","lanes","status","OutsideWorkspaceError","loader","start","BEFORE_STATUS","consumer","laneObj","getCurrentLaneObject","componentsList","ComponentsList","loadOpts","loadDocs","loadCompositions","newComponents","listNewComponents","modifiedComponents","listModifiedComponents","stagedComponents","listExportPendingComponents","addRemovedStagedIfNeeded","stagedComponentsWithVersions","pMapSeries","stagedComp","versions","getLocalTagsOrHashes","scope","objects","id","toBitId","unavailableOnMain","getUnavailableOnMainComponents","autoTagPendingComponents","listAutoTagPendingComponents","autoTagPendingComponentsIds","map","component","allInvalidComponents","listInvalidComponents","locallySoftRemoved","listLocallySoftRemoved","remotelySoftRemoved","listRemotelySoftRemoved","importPendingComponents","filter","c","error","ComponentsPendingImport","i","invalidComponents","outdatedComponents","listOutdatedComponents","idsDuringMergeState","listDuringMergeStateComponents","components","componentsDuringMergeState","loadComponents","mergePendingComponents","listMergePendingComponents","legacyCompsWithPotentialIssues","issuesToIgnore","getIssuesToIgnoreGlobally","length","compsWithPotentialIssues","getManyByLegacy","triggerAddComponentIssues","removeIgnoredIssuesFromComponents","componentsWithIssues","isEmpty","softTaggedComponents","listSoftTaggedComponents","snappedComponents","listSnappedComponentsOnMain","pendingUpdatesFromMain","listUpdatesFromMainPending","updatesFromForked","listUpdatesFromForked","currentLaneId","getCurrentLaneId","currentLane","forkedLaneId","forkedFrom","workspaceIssues","getWorkspaceIssues","Analytics","setExtraData","convertBitIdToComponentIdsAndSort","ids","ComponentID","sortIds","resolveMultipleComponentIds","convertObjToComponentIdsAndSort","objectsWithId","results","Promise","all","obj","resolveComponentId","sort","a","b","toString","localeCompare","onDestroy","headVersion","latestVersion","divergeData","diverge","err","message","statusMini","componentPattern","idsByPattern","listIds","comps","getFilesModification","modified","newComps","forEach","comp","hasVersion","push","isModified","removedStagedIds","getRemovedStaged","removedStagedBitIds","_legacy","nonExistsInStaged","find","isEqualWithoutVersion","modelComps","legacyScope","getModelComponent","provider","cli","statusMain","register","StatusCmd","MiniStatusCmd","CLIAspect","WorkspaceAspect","InsightsAspect","IssuesAspect","RemoveAspect","LanesAspect","MainRuntime","StatusAspect","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 { 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 { Analytics } from '@teambit/legacy/dist/analytics/analytics';\nimport loader from '@teambit/legacy/dist/cli/loader';\nimport { BEFORE_STATUS } from '@teambit/legacy/dist/cli/loader/loader-messages';\nimport { RemoveAspect, RemoveMain } from '@teambit/remove';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport ComponentsPendingImport from '@teambit/legacy/dist/consumer/component-ops/exceptions/components-pending-import';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport ComponentsList from '@teambit/legacy/dist/consumer/component/components-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 from './mini-status-cmd';\n\ntype DivergeDataPerId = { id: ComponentID; divergeData: SnapsDistance };\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};\n\nexport type MiniStatusResults = {\n modified: ComponentID[];\n newComps: ComponentID[];\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 ) {}\n\n async status({ lanes }: { lanes?: boolean }): Promise<StatusResult> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n loader.start(BEFORE_STATUS);\n const consumer = this.workspace.consumer;\n const laneObj = await consumer.getCurrentLaneObject();\n const componentsList = new ComponentsList(consumer);\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const newComponents: ConsumerComponent[] = (await componentsList.listNewComponents(\n true,\n loadOpts\n )) as ConsumerComponent[];\n const modifiedComponents = (await componentsList.listModifiedComponents(true, loadOpts)) as ConsumerComponent[];\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.toBitId(),\n versions,\n };\n });\n\n const unavailableOnMain = await this.workspace.getUnavailableOnMainComponents();\n const autoTagPendingComponents = await componentsList.listAutoTagPendingComponents();\n const autoTagPendingComponentsIds = autoTagPendingComponents.map((component) => component.id);\n const allInvalidComponents = await componentsList.listInvalidComponents();\n const locallySoftRemoved = await componentsList.listLocallySoftRemoved();\n const remotelySoftRemoved = await componentsList.listRemotelySoftRemoved();\n const importPendingComponents = allInvalidComponents\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n .filter((c) => c.error instanceof ComponentsPendingImport)\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\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 outdatedComponents = await componentsList.listOutdatedComponents();\n const idsDuringMergeState = componentsList.listDuringMergeStateComponents();\n const { components: componentsDuringMergeState } = await this.workspace.consumer.loadComponents(\n idsDuringMergeState,\n false\n );\n const mergePendingComponents = await componentsList.listMergePendingComponents();\n const legacyCompsWithPotentialIssues: ConsumerComponent[] = [\n ...newComponents,\n ...modifiedComponents,\n ...componentsDuringMergeState,\n ];\n const issuesToIgnore = this.issues.getIssuesToIgnoreGlobally();\n if (legacyCompsWithPotentialIssues.length) {\n const compsWithPotentialIssues = await this.workspace.getManyByLegacy(legacyCompsWithPotentialIssues, loadOpts);\n await this.issues.triggerAddComponentIssues(compsWithPotentialIssues, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(compsWithPotentialIssues);\n }\n const componentsWithIssues = legacyCompsWithPotentialIssues.filter((component: ConsumerComponent) => {\n return component.issues && !component.issues.isEmpty();\n });\n\n const softTaggedComponents = componentsList.listSoftTaggedComponents();\n const snappedComponents = (await componentsList.listSnappedComponentsOnMain()).map((c) => c.toBitId());\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 Analytics.setExtraData('new_components', newComponents.length);\n Analytics.setExtraData('staged_components', stagedComponents.length);\n Analytics.setExtraData('num_components_with_missing_dependencies', componentsWithIssues.length);\n Analytics.setExtraData('autoTagPendingComponents', autoTagPendingComponents.length);\n Analytics.setExtraData('deleted', invalidComponents.length);\n\n const convertBitIdToComponentIdsAndSort = async (ids: BitId[]) =>\n ComponentID.sortIds(await this.workspace.resolveMultipleComponentIds(ids));\n\n const convertObjToComponentIdsAndSort = async <T>(\n objectsWithId: Array<T & { id: BitId }>\n ): Promise<Array<T & { id: ComponentID }>> => {\n const results = await Promise.all(\n objectsWithId.map(async (obj) => {\n return {\n ...obj,\n id: await this.workspace.resolveComponentId(obj.id),\n };\n })\n );\n return results.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));\n };\n\n await consumer.onDestroy();\n return {\n newComponents: await convertBitIdToComponentIdsAndSort(newComponents.map((c) => c.id)),\n modifiedComponents: await convertBitIdToComponentIdsAndSort(modifiedComponents.map((c) => c.id)),\n stagedComponents: await convertObjToComponentIdsAndSort(stagedComponentsWithVersions),\n // @ts-ignore - not clear why, it fails the \"bit build\" without it\n componentsWithIssues: await convertObjToComponentIdsAndSort(\n componentsWithIssues.map((c) => ({ id: c.id, issues: c.issues }))\n ), // no need to sort, we don't print it as is\n importPendingComponents: await convertBitIdToComponentIdsAndSort(importPendingComponents), // no need to sort, we use only its length\n autoTagPendingComponents: await convertBitIdToComponentIdsAndSort(autoTagPendingComponentsIds),\n invalidComponents: await convertObjToComponentIdsAndSort(\n invalidComponents.map((c) => ({ id: c.id, error: c.error }))\n ),\n locallySoftRemoved: await convertBitIdToComponentIdsAndSort(locallySoftRemoved),\n remotelySoftRemoved: await convertBitIdToComponentIdsAndSort(remotelySoftRemoved.map((c) => c.id)),\n outdatedComponents: await convertObjToComponentIdsAndSort(\n outdatedComponents.map((c) => ({\n id: c.id,\n headVersion: c.headVersion,\n latestVersion: c.latestVersion,\n }))\n ),\n mergePendingComponents: await convertObjToComponentIdsAndSort(\n mergePendingComponents.map((c) => ({ id: c.id, divergeData: c.diverge }))\n ),\n componentsDuringMergeState: await convertBitIdToComponentIdsAndSort(idsDuringMergeState),\n softTaggedComponents: await convertBitIdToComponentIdsAndSort(softTaggedComponents),\n snappedComponents: await convertBitIdToComponentIdsAndSort(snappedComponents),\n pendingUpdatesFromMain: await convertObjToComponentIdsAndSort(pendingUpdatesFromMain),\n updatesFromForked: await convertObjToComponentIdsAndSort(updatesFromForked),\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues: workspaceIssues.map((err) => err.message),\n };\n }\n\n async statusMini(componentPattern?: string): Promise<MiniStatusResults> {\n const ids = componentPattern ? await this.workspace.idsByPattern(componentPattern) : await this.workspace.listIds();\n const comps = await pMapSeries(ids, (id) => this.workspace.getFilesModification(id));\n const modified: ComponentID[] = [];\n const newComps: ComponentID[] = [];\n comps.forEach((comp) => {\n if (!comp.id.hasVersion()) newComps.push(comp.id);\n if (comp.isModified()) modified.push(comp.id);\n });\n return { modified, newComps };\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._legacy);\n const nonExistsInStaged = removedStagedBitIds.filter(\n (id) => !stagedComponents.find((c) => c.toBitId().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 static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect, InsightsAspect, IssuesAspect, RemoveAspect, LanesAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace, insights, issues, remove, lanes]: [\n CLIMain,\n Workspace,\n InsightsMain,\n IssuesMain,\n RemoveMain,\n LanesMain\n ]) {\n const statusMain = new StatusMain(workspace, issues, insights, remove, lanes);\n cli.register(new StatusCmd(statusMain), new MiniStatusCmd(statusMain));\n return statusMain;\n }\n}\n\nStatusAspect.addRuntime(StatusMain);\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA8C;AAAA;AAAA;AAAA;AAgCvC,MAAMA,UAAU,CAAC;EACtBC,WAAW,CACDC,SAAoB,EACpBC,MAAkB,EAClBC,QAAsB,EACtBC,MAAkB,EAClBC,KAAgB,EACxB;IAAA,KALQJ,SAAoB,GAApBA,SAAoB;IAAA,KACpBC,MAAkB,GAAlBA,MAAkB;IAAA,KAClBC,QAAsB,GAAtBA,QAAsB;IAAA,KACtBC,MAAkB,GAAlBA,MAAkB;IAAA,KAClBC,KAAgB,GAAhBA,KAAgB;EACvB;EAEH,MAAMC,MAAM,CAAC;IAAED;EAA2B,CAAC,EAAyB;IAClE,IAAI,CAAC,I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ChB,OAAO,EAAE,CAACoG,qBAAqB,CAACrG,EAAE,CAAC,CAAC,CAC7E;IACD,IAAI,CAACmG,iBAAiB,CAACjE,MAAM,EAAE;IAC/B,MAAMoE,UAAU,GAAG,MAAMpC,OAAO,CAACC,GAAG,CAClCgC,iBAAiB,CAAC5F,GAAG,CAAEP,EAAE,IAAK,IAAI,CAAChC,SAAS,CAAC8B,KAAK,CAACyG,WAAW,CAACC,iBAAiB,CAACxG,EAAE,CAAC,CAAC,CACtF;IACDV,gBAAgB,CAACuG,IAAI,CAAC,GAAGS,UAAU,CAAC;EACtC;EAKA,aAAaG,QAAQ,CAAC,CAACC,GAAG,EAAE1I,SAAS,EAAEE,QAAQ,EAAED,MAAM,EAAEE,MAAM,EAAEC,KAAK,CAOrE,EAAE;IACD,MAAMuI,UAAU,GAAG,IAAI7I,UAAU,CAACE,SAAS,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,KAAK,CAAC;IAC7EsI,GAAG,CAACE,QAAQ,CAAC,KAAIC,sBAAS,EAACF,UAAU,CAAC,EAAE,KAAIG,wBAAa,EAACH,UAAU,CAAC,CAAC;IACtE,OAAOA,UAAU;EACnB;AACF;AAAC;AAAA,gCAnLY7I,UAAU,WAoKN,EAAE;AAAA,gCApKNA,UAAU,kBAqKC,CAACiJ,gBAAS,EAAEC,oBAAe,EAAEC,0BAAc,EAAEC,iBAAY,EAAEC,sBAAY,EAAEC,gBAAW,CAAC;AAAA,gCArKhGtJ,UAAU,aAsKJuJ,kBAAW;AAe9BC,sBAAY,CAACC,UAAU,CAACzJ,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"names":["StatusMain","constructor","workspace","issues","insights","remove","lanes","status","OutsideWorkspaceError","loader","start","BEFORE_STATUS","consumer","laneObj","getCurrentLaneObject","componentsList","ComponentsList","loadOpts","loadDocs","loadCompositions","newComponents","listNewComponents","modifiedComponents","listModifiedComponents","stagedComponents","listExportPendingComponents","addRemovedStagedIfNeeded","stagedComponentsWithVersions","pMapSeries","stagedComp","versions","getLocalTagsOrHashes","scope","objects","id","toBitId","unavailableOnMain","getUnavailableOnMainComponents","autoTagPendingComponents","listAutoTagPendingComponents","autoTagPendingComponentsIds","map","component","allInvalidComponents","listInvalidComponents","locallySoftRemoved","listLocallySoftRemoved","remotelySoftRemoved","listRemotelySoftRemoved","importPendingComponents","filter","c","error","ComponentsPendingImport","i","invalidComponents","outdatedComponents","listOutdatedComponents","idsDuringMergeState","listDuringMergeStateComponents","components","componentsDuringMergeState","loadComponents","mergePendingComponents","listMergePendingComponents","legacyCompsWithPotentialIssues","issuesToIgnore","getIssuesToIgnoreGlobally","length","compsWithPotentialIssues","getManyByLegacy","triggerAddComponentIssues","removeIgnoredIssuesFromComponents","componentsWithIssues","isEmpty","softTaggedComponents","listSoftTaggedComponents","snappedComponents","listSnappedComponentsOnMain","pendingUpdatesFromMain","listUpdatesFromMainPending","updatesFromForked","listUpdatesFromForked","currentLaneId","getCurrentLaneId","currentLane","forkedLaneId","forkedFrom","workspaceIssues","getWorkspaceIssues","Analytics","setExtraData","convertBitIdToComponentIdsAndSort","ids","ComponentID","sortIds","resolveMultipleComponentIds","convertObjToComponentIdsAndSort","objectsWithId","results","Promise","all","obj","resolveComponentId","sort","a","b","toString","localeCompare","onDestroy","headVersion","latestVersion","divergeData","diverge","err","message","statusMini","componentPattern","opts","idsByPattern","listIds","compFiles","getFilesModification","modified","newComps","forEach","comp","hasVersion","push","isModified","comps","showIssues","getMany","compWithIssues","state","removedStagedIds","getRemovedStaged","removedStagedBitIds","_legacy","nonExistsInStaged","find","isEqualWithoutVersion","modelComps","legacyScope","getModelComponent","provider","cli","statusMain","register","StatusCmd","MiniStatusCmd","CLIAspect","WorkspaceAspect","InsightsAspect","IssuesAspect","RemoveAspect","LanesAspect","MainRuntime","StatusAspect","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 { 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 } from '@teambit/component';\nimport { Analytics } from '@teambit/legacy/dist/analytics/analytics';\nimport loader from '@teambit/legacy/dist/cli/loader';\nimport { BEFORE_STATUS } from '@teambit/legacy/dist/cli/loader/loader-messages';\nimport { RemoveAspect, RemoveMain } from '@teambit/remove';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport ComponentsPendingImport from '@teambit/legacy/dist/consumer/component-ops/exceptions/components-pending-import';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport ComponentsList from '@teambit/legacy/dist/consumer/component/components-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';\n\ntype DivergeDataPerId = { id: ComponentID; divergeData: SnapsDistance };\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};\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 ) {}\n\n async status({ lanes }: { lanes?: boolean }): Promise<StatusResult> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n loader.start(BEFORE_STATUS);\n const consumer = this.workspace.consumer;\n const laneObj = await consumer.getCurrentLaneObject();\n const componentsList = new ComponentsList(consumer);\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const newComponents: ConsumerComponent[] = (await componentsList.listNewComponents(\n true,\n loadOpts\n )) as ConsumerComponent[];\n const modifiedComponents = (await componentsList.listModifiedComponents(true, loadOpts)) as ConsumerComponent[];\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.toBitId(),\n versions,\n };\n });\n\n const unavailableOnMain = await this.workspace.getUnavailableOnMainComponents();\n const autoTagPendingComponents = await componentsList.listAutoTagPendingComponents();\n const autoTagPendingComponentsIds = autoTagPendingComponents.map((component) => component.id);\n const allInvalidComponents = await componentsList.listInvalidComponents();\n const locallySoftRemoved = await componentsList.listLocallySoftRemoved();\n const remotelySoftRemoved = await componentsList.listRemotelySoftRemoved();\n const importPendingComponents = allInvalidComponents\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n .filter((c) => c.error instanceof ComponentsPendingImport)\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\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 outdatedComponents = await componentsList.listOutdatedComponents();\n const idsDuringMergeState = componentsList.listDuringMergeStateComponents();\n const { components: componentsDuringMergeState } = await this.workspace.consumer.loadComponents(\n idsDuringMergeState,\n false\n );\n const mergePendingComponents = await componentsList.listMergePendingComponents();\n const legacyCompsWithPotentialIssues: ConsumerComponent[] = [\n ...newComponents,\n ...modifiedComponents,\n ...componentsDuringMergeState,\n ];\n const issuesToIgnore = this.issues.getIssuesToIgnoreGlobally();\n if (legacyCompsWithPotentialIssues.length) {\n const compsWithPotentialIssues = await this.workspace.getManyByLegacy(legacyCompsWithPotentialIssues, loadOpts);\n await this.issues.triggerAddComponentIssues(compsWithPotentialIssues, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(compsWithPotentialIssues);\n }\n const componentsWithIssues = legacyCompsWithPotentialIssues.filter((component: ConsumerComponent) => {\n return component.issues && !component.issues.isEmpty();\n });\n\n const softTaggedComponents = componentsList.listSoftTaggedComponents();\n const snappedComponents = (await componentsList.listSnappedComponentsOnMain()).map((c) => c.toBitId());\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 Analytics.setExtraData('new_components', newComponents.length);\n Analytics.setExtraData('staged_components', stagedComponents.length);\n Analytics.setExtraData('num_components_with_missing_dependencies', componentsWithIssues.length);\n Analytics.setExtraData('autoTagPendingComponents', autoTagPendingComponents.length);\n Analytics.setExtraData('deleted', invalidComponents.length);\n\n const convertBitIdToComponentIdsAndSort = async (ids: BitId[]) =>\n ComponentID.sortIds(await this.workspace.resolveMultipleComponentIds(ids));\n\n const convertObjToComponentIdsAndSort = async <T>(\n objectsWithId: Array<T & { id: BitId }>\n ): Promise<Array<T & { id: ComponentID }>> => {\n const results = await Promise.all(\n objectsWithId.map(async (obj) => {\n return {\n ...obj,\n id: await this.workspace.resolveComponentId(obj.id),\n };\n })\n );\n return results.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));\n };\n\n await consumer.onDestroy();\n return {\n newComponents: await convertBitIdToComponentIdsAndSort(newComponents.map((c) => c.id)),\n modifiedComponents: await convertBitIdToComponentIdsAndSort(modifiedComponents.map((c) => c.id)),\n stagedComponents: await convertObjToComponentIdsAndSort(stagedComponentsWithVersions),\n // @ts-ignore - not clear why, it fails the \"bit build\" without it\n componentsWithIssues: await convertObjToComponentIdsAndSort(\n componentsWithIssues.map((c) => ({ id: c.id, issues: c.issues }))\n ), // no need to sort, we don't print it as is\n importPendingComponents: await convertBitIdToComponentIdsAndSort(importPendingComponents), // no need to sort, we use only its length\n autoTagPendingComponents: await convertBitIdToComponentIdsAndSort(autoTagPendingComponentsIds),\n invalidComponents: await convertObjToComponentIdsAndSort(\n invalidComponents.map((c) => ({ id: c.id, error: c.error }))\n ),\n locallySoftRemoved: await convertBitIdToComponentIdsAndSort(locallySoftRemoved),\n remotelySoftRemoved: await convertBitIdToComponentIdsAndSort(remotelySoftRemoved.map((c) => c.id)),\n outdatedComponents: await convertObjToComponentIdsAndSort(\n outdatedComponents.map((c) => ({\n id: c.id,\n headVersion: c.headVersion,\n latestVersion: c.latestVersion,\n }))\n ),\n mergePendingComponents: await convertObjToComponentIdsAndSort(\n mergePendingComponents.map((c) => ({ id: c.id, divergeData: c.diverge }))\n ),\n componentsDuringMergeState: await convertBitIdToComponentIdsAndSort(idsDuringMergeState),\n softTaggedComponents: await convertBitIdToComponentIdsAndSort(softTaggedComponents),\n snappedComponents: await convertBitIdToComponentIdsAndSort(snappedComponents),\n pendingUpdatesFromMain: await convertObjToComponentIdsAndSort(pendingUpdatesFromMain),\n updatesFromForked: await convertObjToComponentIdsAndSort(updatesFromForked),\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues: workspaceIssues.map((err) => err.message),\n };\n }\n\n async statusMini(componentPattern?: string, opts: MiniStatusOpts = {}): Promise<MiniStatusResults> {\n const ids = componentPattern ? await this.workspace.idsByPattern(componentPattern) : await 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 issuesToIgnore = this.issues.getIssuesToIgnoreGlobally();\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._legacy);\n const nonExistsInStaged = removedStagedBitIds.filter(\n (id) => !stagedComponents.find((c) => c.toBitId().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 static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect, InsightsAspect, IssuesAspect, RemoveAspect, LanesAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace, insights, issues, remove, lanes]: [\n CLIMain,\n Workspace,\n InsightsMain,\n IssuesMain,\n RemoveMain,\n LanesMain\n ]) {\n const statusMain = new StatusMain(workspace, issues, insights, remove, lanes);\n cli.register(new StatusCmd(statusMain), new MiniStatusCmd(statusMain));\n return statusMain;\n }\n}\n\nStatusAspect.addRuntime(StatusMain);\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAkE;AAAA;AAAA;AAAA;AAiC3D,MAAMA,UAAU,CAAC;EACtBC,WAAW,CACDC,SAAoB,EACpBC,MAAkB,EAClBC,QAAsB,EACtBC,MAAkB,EAClBC,KAAgB,EACxB;IAAA,KALQJ,SAAoB,GAApBA,SAAoB;IAAA,KACpBC,MAAkB,GAAlBA,MAAkB;IAAA,KAClBC,QAAsB,GAAtBA,QAAsB;IAAA,KACtBC,MAAkB,GAAlBA,MAAkB;IAAA,KAClBC,KAAgB,GAAhBA,KAAgB;EACvB;EAEH,MAAMC,MAAM,CAAC;IAAED;EAA2B,CAAC,EAAyB;IAClE,IAAI,CAAC,IAAI,CAACJ,SAAS,EAAE,MAAM,KAAIM,kCA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E,QAAQ,CAAC,KAAIC,sBAAS,EAACF,UAAU,CAAC,EAAE,KAAIG,wBAAa,EAACH,UAAU,CAAC,CAAC;IACtE,OAAOA,UAAU;EACnB;AACF;AAAC;AAAA,gCA/LYnJ,UAAU,WAgLN,EAAE;AAAA,gCAhLNA,UAAU,kBAiLC,CAACuJ,gBAAS,EAAEC,oBAAe,EAAEC,0BAAc,EAAEC,iBAAY,EAAEC,sBAAY,EAAEC,gBAAW,CAAC;AAAA,gCAjLhG5J,UAAU,aAkLJ6J,kBAAW;AAe9BC,sBAAY,CAACC,UAAU,CAAC/J,UAAU,CAAC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/status",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.423",
|
|
4
4
|
"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": "0.0.
|
|
9
|
+
"version": "0.0.423"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -18,15 +18,16 @@
|
|
|
18
18
|
"@teambit/component-id": "0.0.427",
|
|
19
19
|
"@teambit/harmony": "0.4.6",
|
|
20
20
|
"@teambit/legacy-bit-id": "0.0.423",
|
|
21
|
-
"@teambit/cli": "0.0.
|
|
22
|
-
"@teambit/component-issues": "0.0.
|
|
21
|
+
"@teambit/cli": "0.0.743",
|
|
22
|
+
"@teambit/component-issues": "0.0.93",
|
|
23
23
|
"@teambit/component-version": "0.0.409",
|
|
24
|
-
"@teambit/
|
|
25
|
-
"@teambit/
|
|
26
|
-
"@teambit/
|
|
27
|
-
"@teambit/
|
|
28
|
-
"@teambit/
|
|
29
|
-
"@teambit/
|
|
24
|
+
"@teambit/component": "0.0.1111",
|
|
25
|
+
"@teambit/insights": "0.0.1111",
|
|
26
|
+
"@teambit/issues": "0.0.419",
|
|
27
|
+
"@teambit/lane-id": "0.0.259",
|
|
28
|
+
"@teambit/lanes": "0.0.683",
|
|
29
|
+
"@teambit/remove": "0.0.288",
|
|
30
|
+
"@teambit/workspace": "0.0.1111"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@types/lodash": "4.14.165",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@teambit/legacy": "1.0.
|
|
42
|
+
"@teambit/legacy": "1.0.523",
|
|
42
43
|
"react": "^16.8.0 || ^17.0.0",
|
|
43
44
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
44
45
|
},
|
|
Binary file
|
|
File without changes
|