@b64hub/sfpm-cli 0.1.0 → 0.2.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/README.md +416 -204
- package/dist/commands/add.d.ts +10 -0
- package/dist/commands/add.js +50 -0
- package/dist/commands/add.js.map +1 -0
- package/dist/commands/bootstrap.d.ts +18 -5
- package/dist/commands/bootstrap.js +372 -167
- package/dist/commands/bootstrap.js.map +1 -1
- package/dist/commands/build/index.d.ts +59 -0
- package/dist/commands/build/index.js +425 -0
- package/dist/commands/build/index.js.map +1 -0
- package/dist/commands/build/status.d.ts +3 -4
- package/dist/commands/build/status.js +13 -162
- package/dist/commands/build/status.js.map +1 -1
- package/dist/commands/deploy/artifact.d.ts +17 -13
- package/dist/commands/deploy/artifact.js +31 -88
- package/dist/commands/deploy/artifact.js.map +1 -1
- package/dist/commands/deploy/index.d.ts +52 -0
- package/dist/commands/deploy/index.js +162 -0
- package/dist/commands/deploy/index.js.map +1 -0
- package/dist/commands/dev/pool-list-replay.d.ts +11 -0
- package/dist/commands/dev/pool-list-replay.js +19 -0
- package/dist/commands/dev/pool-list-replay.js.map +1 -0
- package/dist/commands/dev/pool-replay.d.ts +16 -0
- package/dist/commands/dev/pool-replay.js +80 -0
- package/dist/commands/dev/pool-replay.js.map +1 -0
- package/dist/commands/dev/replay.d.ts +21 -0
- package/dist/commands/dev/replay.js +103 -0
- package/dist/commands/dev/replay.js.map +1 -0
- package/dist/commands/install.d.ts +10 -4
- package/dist/commands/install.js +73 -70
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/package/create.d.ts +31 -0
- package/dist/commands/package/create.js +270 -0
- package/dist/commands/package/create.js.map +1 -0
- package/dist/commands/pool/delete.d.ts +4 -5
- package/dist/commands/pool/delete.js +64 -52
- package/dist/commands/pool/delete.js.map +1 -1
- package/dist/commands/pool/fetch.d.ts +5 -4
- package/dist/commands/pool/fetch.js +77 -37
- package/dist/commands/pool/fetch.js.map +1 -1
- package/dist/commands/pool/fill.d.ts +22 -0
- package/dist/commands/pool/fill.js +172 -0
- package/dist/commands/pool/fill.js.map +1 -0
- package/dist/commands/pool/list.d.ts +3 -6
- package/dist/commands/pool/list.js +60 -58
- package/dist/commands/pool/list.js.map +1 -1
- package/dist/commands/{project.d.ts → project/index.d.ts} +1 -1
- package/dist/commands/{project.js → project/index.js} +6 -6
- package/dist/commands/project/index.js.map +1 -0
- package/dist/commands/project/init/turbo.js +3 -11
- package/dist/commands/project/init/turbo.js.map +1 -1
- package/dist/commands/project/sync.js +2 -10
- package/dist/commands/project/sync.js.map +1 -1
- package/dist/commands/project/version/bump.js +12 -13
- package/dist/commands/project/version/bump.js.map +1 -1
- package/dist/commands/publish.d.ts +14 -0
- package/dist/commands/publish.js +60 -0
- package/dist/commands/publish.js.map +1 -0
- package/dist/commands/watch/cancel.d.ts +12 -0
- package/dist/commands/watch/cancel.js +44 -0
- package/dist/commands/watch/cancel.js.map +1 -0
- package/dist/commands/watch/clean.d.ts +10 -0
- package/dist/commands/watch/clean.js +29 -0
- package/dist/commands/watch/clean.js.map +1 -0
- package/dist/commands/watch/status.d.ts +13 -0
- package/dist/commands/watch/status.js +137 -0
- package/dist/commands/watch/status.js.map +1 -0
- package/dist/logger.d.ts +80 -0
- package/dist/logger.js +143 -0
- package/dist/logger.js.map +1 -0
- package/dist/sfpm-command.d.ts +40 -3
- package/dist/sfpm-command.js +112 -18
- package/dist/sfpm-command.js.map +1 -1
- package/dist/types/bootstrap.d.ts +67 -0
- package/dist/types/bootstrap.js +78 -0
- package/dist/types/bootstrap.js.map +1 -0
- package/dist/ui/apps/BuildApp.d.ts +11 -0
- package/dist/ui/apps/BuildApp.js +32 -0
- package/dist/ui/apps/BuildApp.js.map +1 -0
- package/dist/ui/apps/PoolDeleteApp.d.ts +6 -0
- package/dist/ui/apps/PoolDeleteApp.js +77 -0
- package/dist/ui/apps/PoolDeleteApp.js.map +1 -0
- package/dist/ui/apps/PoolFillApp.d.ts +7 -0
- package/dist/ui/apps/PoolFillApp.js +107 -0
- package/dist/ui/apps/PoolFillApp.js.map +1 -0
- package/dist/ui/apps/PoolListApp.d.ts +14 -0
- package/dist/ui/apps/PoolListApp.js +33 -0
- package/dist/ui/apps/PoolListApp.js.map +1 -0
- package/dist/ui/build-event-bridge.d.ts +21 -0
- package/dist/ui/build-event-bridge.js +140 -0
- package/dist/ui/build-event-bridge.js.map +1 -0
- package/dist/ui/build-progress-renderer.d.ts +21 -35
- package/dist/ui/build-progress-renderer.js +147 -505
- package/dist/ui/build-progress-renderer.js.map +1 -1
- package/dist/ui/build-summary.d.ts +15 -0
- package/dist/ui/build-summary.js +26 -0
- package/dist/ui/build-summary.js.map +1 -0
- package/dist/ui/components/OrchestrationView.d.ts +20 -0
- package/dist/ui/components/OrchestrationView.js +59 -0
- package/dist/ui/components/OrchestrationView.js.map +1 -0
- package/dist/ui/components/PackageRow.d.ts +130 -0
- package/dist/ui/components/PackageRow.js +80 -0
- package/dist/ui/components/PackageRow.js.map +1 -0
- package/dist/ui/components/ValidationView.d.ts +4 -0
- package/dist/ui/components/ValidationView.js +9 -0
- package/dist/ui/components/ValidationView.js.map +1 -0
- package/dist/ui/components/base/Divider.d.ts +4 -0
- package/dist/ui/components/base/Divider.js +9 -0
- package/dist/ui/components/base/Divider.js.map +1 -0
- package/dist/ui/components/base/ElapsedTime.d.ts +14 -0
- package/dist/ui/components/base/ElapsedTime.js +19 -0
- package/dist/ui/components/base/ElapsedTime.js.map +1 -0
- package/dist/ui/components/base/Footer.d.ts +58 -0
- package/dist/ui/components/base/Footer.js +59 -0
- package/dist/ui/components/base/Footer.js.map +1 -0
- package/dist/ui/components/base/GradientBar.d.ts +7 -0
- package/dist/ui/components/base/GradientBar.js +19 -0
- package/dist/ui/components/base/GradientBar.js.map +1 -0
- package/dist/ui/components/base/OrgBadge.d.ts +8 -0
- package/dist/ui/components/base/OrgBadge.js +10 -0
- package/dist/ui/components/base/OrgBadge.js.map +1 -0
- package/dist/ui/components/base/StatusIcon.d.ts +4 -0
- package/dist/ui/components/base/StatusIcon.js +22 -0
- package/dist/ui/components/base/StatusIcon.js.map +1 -0
- package/dist/ui/components/pool/OrgRow.d.ts +17 -0
- package/dist/ui/components/pool/OrgRow.js +37 -0
- package/dist/ui/components/pool/OrgRow.js.map +1 -0
- package/dist/ui/components/pool/PoolOrgRow.d.ts +16 -0
- package/dist/ui/components/pool/PoolOrgRow.js +44 -0
- package/dist/ui/components/pool/PoolOrgRow.js.map +1 -0
- package/dist/ui/connect-devhub.d.ts +41 -0
- package/dist/ui/connect-devhub.js +52 -0
- package/dist/ui/connect-devhub.js.map +1 -0
- package/dist/ui/fixtures/happy-path.d.ts +85 -0
- package/dist/ui/fixtures/happy-path.js +62 -0
- package/dist/ui/fixtures/happy-path.js.map +1 -0
- package/dist/ui/fixtures/large-scale.d.ts +19 -0
- package/dist/ui/fixtures/large-scale.js +140 -0
- package/dist/ui/fixtures/large-scale.js.map +1 -0
- package/dist/ui/fixtures/partial-failure.d.ts +71 -0
- package/dist/ui/fixtures/partial-failure.js +21 -0
- package/dist/ui/fixtures/partial-failure.js.map +1 -0
- package/dist/ui/fixtures/pool-happy-path.d.ts +14 -0
- package/dist/ui/fixtures/pool-happy-path.js +74 -0
- package/dist/ui/fixtures/pool-happy-path.js.map +1 -0
- package/dist/ui/fixtures/pool-list.d.ts +6 -0
- package/dist/ui/fixtures/pool-list.js +44 -0
- package/dist/ui/fixtures/pool-list.js.map +1 -0
- package/dist/ui/fixtures/pool-partial-failure.d.ts +15 -0
- package/dist/ui/fixtures/pool-partial-failure.js +86 -0
- package/dist/ui/fixtures/pool-partial-failure.js.map +1 -0
- package/dist/ui/hooks/use-event-bus-wiring.d.ts +7 -0
- package/dist/ui/hooks/use-event-bus-wiring.js +32 -0
- package/dist/ui/hooks/use-event-bus-wiring.js.map +1 -0
- package/dist/ui/hooks/use-term-width.d.ts +2 -0
- package/dist/ui/hooks/use-term-width.js +7 -0
- package/dist/ui/hooks/use-term-width.js.map +1 -0
- package/dist/ui/install-event-bridge.d.ts +9 -0
- package/dist/ui/install-event-bridge.js +91 -0
- package/dist/ui/install-event-bridge.js.map +1 -0
- package/dist/ui/install-progress-renderer.d.ts +20 -60
- package/dist/ui/install-progress-renderer.js +161 -307
- package/dist/ui/install-progress-renderer.js.map +1 -1
- package/dist/ui/orchestration-listr.d.ts +35 -187
- package/dist/ui/orchestration-listr.js +164 -328
- package/dist/ui/orchestration-listr.js.map +1 -1
- package/dist/ui/pino-bridge.d.ts +11 -0
- package/dist/ui/pino-bridge.js +24 -0
- package/dist/ui/pino-bridge.js.map +1 -0
- package/dist/ui/pool-delete-event-bridge.d.ts +12 -0
- package/dist/ui/pool-delete-event-bridge.js +18 -0
- package/dist/ui/pool-delete-event-bridge.js.map +1 -0
- package/dist/ui/pool-fill-event-bridge.d.ts +9 -0
- package/dist/ui/pool-fill-event-bridge.js +51 -0
- package/dist/ui/pool-fill-event-bridge.js.map +1 -0
- package/dist/ui/pool-utils.d.ts +6 -0
- package/dist/ui/pool-utils.js +49 -0
- package/dist/ui/pool-utils.js.map +1 -0
- package/dist/ui/renderer-utils.d.ts +58 -4
- package/dist/ui/renderer-utils.js +65 -0
- package/dist/ui/renderer-utils.js.map +1 -1
- package/dist/ui/run-pool-delete.d.ts +11 -0
- package/dist/ui/run-pool-delete.js +15 -0
- package/dist/ui/run-pool-delete.js.map +1 -0
- package/dist/ui/run-pool-fill.d.ts +15 -0
- package/dist/ui/run-pool-fill.js +19 -0
- package/dist/ui/run-pool-fill.js.map +1 -0
- package/dist/ui/run-pool-list.d.ts +3 -0
- package/dist/ui/run-pool-list.js +7 -0
- package/dist/ui/run-pool-list.js.map +1 -0
- package/dist/ui/run.d.ts +12 -0
- package/dist/ui/run.js +7 -0
- package/dist/ui/run.js.map +1 -0
- package/dist/ui/state/adapters.d.ts +4 -0
- package/dist/ui/state/adapters.js +62 -0
- package/dist/ui/state/adapters.js.map +1 -0
- package/dist/ui/state/pool-delete-reducer.d.ts +37 -0
- package/dist/ui/state/pool-delete-reducer.js +47 -0
- package/dist/ui/state/pool-delete-reducer.js.map +1 -0
- package/dist/ui/state/pool-fill-reducer.d.ts +87 -0
- package/dist/ui/state/pool-fill-reducer.js +109 -0
- package/dist/ui/state/pool-fill-reducer.js.map +1 -0
- package/dist/ui/state/reducer.d.ts +7 -0
- package/dist/ui/state/reducer.js +150 -0
- package/dist/ui/state/reducer.js.map +1 -0
- package/dist/ui/state/selectors.d.ts +18 -0
- package/dist/ui/state/selectors.js +36 -0
- package/dist/ui/state/selectors.js.map +1 -0
- package/dist/ui/state/types.d.ts +35 -0
- package/dist/ui/state/types.js +2 -0
- package/dist/ui/state/types.js.map +1 -0
- package/dist/ui/strategies/display-strategy.d.ts +51 -0
- package/dist/ui/strategies/display-strategy.js +5 -0
- package/dist/ui/strategies/display-strategy.js.map +1 -0
- package/dist/ui/strategies/index.d.ts +14 -0
- package/dist/ui/strategies/index.js +24 -0
- package/dist/ui/strategies/index.js.map +1 -0
- package/dist/ui/strategies/interactive.d.ts +36 -0
- package/dist/ui/strategies/interactive.js +149 -0
- package/dist/ui/strategies/interactive.js.map +1 -0
- package/dist/ui/strategies/plain.d.ts +24 -0
- package/dist/ui/strategies/plain.js +72 -0
- package/dist/ui/strategies/plain.js.map +1 -0
- package/dist/ui/strategies/silent.d.ts +22 -0
- package/dist/ui/strategies/silent.js +25 -0
- package/dist/ui/strategies/silent.js.map +1 -0
- package/dist/ui/strategies/validation-display-strategy.d.ts +64 -0
- package/dist/ui/strategies/validation-display-strategy.js +109 -0
- package/dist/ui/strategies/validation-display-strategy.js.map +1 -0
- package/dist/ui/table.d.ts +4 -0
- package/dist/ui/table.js +33 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/theme.d.ts +12 -0
- package/dist/ui/theme.js +4 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/ui/validation-progress-renderer.d.ts +48 -0
- package/dist/ui/validation-progress-renderer.js +114 -0
- package/dist/ui/validation-progress-renderer.js.map +1 -0
- package/dist/utils/package-resolver.d.ts +20 -0
- package/dist/utils/package-resolver.js +44 -0
- package/dist/utils/package-resolver.js.map +1 -0
- package/dist/utils/project-dir.d.ts +9 -0
- package/dist/utils/project-dir.js +13 -0
- package/dist/utils/project-dir.js.map +1 -0
- package/dist/utils/suppress.d.ts +13 -0
- package/dist/utils/suppress.js +29 -0
- package/dist/utils/suppress.js.map +1 -0
- package/dist/utils/validation-runner.js +69 -0
- package/dist/utils/validation-runner.js.map +1 -0
- package/dist/utils/watcher-runner.d.ts +1 -0
- package/dist/utils/watcher-runner.js +148 -0
- package/dist/utils/watcher-runner.js.map +1 -0
- package/dist/utils/watcher.d.ts +27 -0
- package/dist/utils/watcher.js +51 -0
- package/dist/utils/watcher.js.map +1 -0
- package/oclif.manifest.json +1519 -501
- package/package.json +19 -8
- package/dist/commands/build.d.ts +0 -30
- package/dist/commands/build.js +0 -228
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/deploy.d.ts +0 -20
- package/dist/commands/deploy.js +0 -141
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/hello/index.d.ts +0 -12
- package/dist/commands/hello/index.js +0 -20
- package/dist/commands/hello/index.js.map +0 -1
- package/dist/commands/hello/world.d.ts +0 -8
- package/dist/commands/hello/world.js +0 -15
- package/dist/commands/hello/world.js.map +0 -1
- package/dist/commands/pool/provision.d.ts +0 -22
- package/dist/commands/pool/provision.js +0 -115
- package/dist/commands/pool/provision.js.map +0 -1
- package/dist/commands/project.js.map +0 -1
- package/dist/ui/pool-progress-renderer.d.ts +0 -68
- package/dist/ui/pool-progress-renderer.js +0 -298
- package/dist/ui/pool-progress-renderer.js.map +0 -1
- package/dist/utils/validation-watcher.js +0 -114
- package/dist/utils/validation-watcher.js.map +0 -1
- /package/dist/utils/{validation-watcher.d.ts → validation-runner.d.ts} +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useStdout } from 'ink';
|
|
3
|
+
import { Box, Text } from 'ink';
|
|
4
|
+
import { rawSym } from '../../renderer-utils.js';
|
|
5
|
+
import { ElapsedTime } from './ElapsedTime.js';
|
|
6
|
+
import { GradientBar } from './GradientBar.js';
|
|
7
|
+
import { SFPM_GRADIENT } from '../../theme.js';
|
|
8
|
+
// ---- composable column sub-components ----
|
|
9
|
+
/** Left column default: running · queued. */
|
|
10
|
+
function Active({ counts }) {
|
|
11
|
+
return (_jsxs(Box, { gap: 1, children: [counts.running > 0 && _jsxs(Text, { color: "yellow", children: [counts.running, " running"] }), counts.running > 0 && counts.pending > 0 && _jsx(Text, { dimColor: true, children: "\u00B7" }), counts.pending > 0 && _jsxs(Text, { dimColor: true, children: [counts.pending, " queued"] })] }));
|
|
12
|
+
}
|
|
13
|
+
/** Middle column default: done / failed / skipped. */
|
|
14
|
+
function Results({ counts }) {
|
|
15
|
+
return (_jsxs(Box, { gap: 2, children: [_jsxs(Text, { color: "green", children: [counts.success, " done"] }), counts.failed > 0 && _jsxs(Text, { color: "red", children: [counts.failed, " ", rawSym.fail] }), counts.skipped > 0 && _jsxs(Text, { dimColor: true, children: [counts.skipped, " skipped"] })] }));
|
|
16
|
+
}
|
|
17
|
+
// ---- component ----
|
|
18
|
+
function FooterFn({ counts, startedAt, showActive = true, showResults = true, showTime = true, progressBar = true, activeSlot, resultsSlot, timeSlot, }) {
|
|
19
|
+
const { stdout } = useStdout();
|
|
20
|
+
const termWidth = stdout?.columns ?? 80;
|
|
21
|
+
const completed = counts.success + counts.skipped + counts.failed;
|
|
22
|
+
const progressLabel = `${completed}/${counts.total}`;
|
|
23
|
+
const colWidth = Math.floor((termWidth - 6) / 3); // 6 = two " │ " separators
|
|
24
|
+
const barValue = counts.total > 0 ? Math.round((completed / counts.total) * 100) : 0;
|
|
25
|
+
// Slots override show* flags. An empty column (show*=false, no slot) still
|
|
26
|
+
// renders its flexGrow box so the │ separators never shift.
|
|
27
|
+
const leftContent = activeSlot ?? (showActive ? _jsx(Active, { counts: counts }) : null);
|
|
28
|
+
const middleContent = resultsSlot ?? (showResults ? _jsx(Results, { counts: counts }) : null);
|
|
29
|
+
const rightContent = timeSlot ?? (showTime && startedAt !== undefined
|
|
30
|
+
? _jsx(ElapsedTime, { startedAt: startedAt, dimColor: true })
|
|
31
|
+
: null);
|
|
32
|
+
return (_jsxs(Box, { flexDirection: "column", marginTop: 1, marginBottom: 1, borderStyle: "single", borderBottom: false, borderLeft: false, borderRight: false, borderDimColor: true, children: [_jsxs(Box, { width: termWidth, children: [_jsx(Box, { width: colWidth, children: leftContent }), _jsx(Text, { dimColor: true, children: " \u2502 " }), _jsx(Box, { width: colWidth, children: middleContent }), _jsx(Text, { dimColor: true, children: " \u2502 " }), _jsx(Box, { width: colWidth, justifyContent: "flex-end", children: rightContent })] }), progressBar && counts.total > 0 && (_jsxs(Box, { gap: 1, marginTop: 1, children: [_jsx(GradientBar, { gradient: SFPM_GRADIENT, value: barValue, width: colWidth }), _jsx(Text, { dimColor: true, children: progressLabel })] }))] }));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Footer with composable column sub-components.
|
|
36
|
+
*
|
|
37
|
+
* @example Default usage
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <Footer counts={counts} startedAt={startedAt} progressBar={isBuilding} />
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @example Explicit slot composition
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <Footer counts={counts} progressBar={isBuilding}
|
|
45
|
+
* activeSlot={<Footer.Active counts={counts} />}
|
|
46
|
+
* resultsSlot={<Footer.Results counts={counts} />}
|
|
47
|
+
* timeSlot={startedAt !== undefined ? <Footer.Elapsed startedAt={startedAt} dimColor /> : undefined}
|
|
48
|
+
* />
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export const Footer = Object.assign(FooterFn, {
|
|
52
|
+
/** Left column: running · queued. */
|
|
53
|
+
Active: Active,
|
|
54
|
+
/** Middle column: done / failed / skipped. */
|
|
55
|
+
Results: Results,
|
|
56
|
+
/** Animated elapsed time. Re-exported from PackageRow for slot convenience. */
|
|
57
|
+
Elapsed: ElapsedTime,
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=Footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../src/ui/components/base/Footer.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,KAAK,CAAC;AAI9B,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAE7C,6CAA6C;AAE7C,6CAA6C;AAC7C,SAAS,MAAM,CAAC,EAAC,MAAM,EAA0B;IAC/C,OAAO,CACL,MAAC,GAAG,IAAC,GAAG,EAAE,CAAC,aACR,MAAM,CAAC,OAAO,GAAG,CAAC,IAAI,MAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,aAAE,MAAM,CAAC,OAAO,gBAAgB,EAC1E,MAAM,CAAC,OAAO,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,GAAG,CAAC,IAAI,KAAC,IAAI,IAAC,QAAQ,6BAAS,EACnE,MAAM,CAAC,OAAO,GAAG,CAAC,IAAI,MAAC,IAAI,IAAC,QAAQ,mBAAE,MAAM,CAAC,OAAO,eAAe,IAChE,CACP,CAAC;AACJ,CAAC;AAED,sDAAsD;AACtD,SAAS,OAAO,CAAC,EAAC,MAAM,EAA0B;IAChD,OAAO,CACL,MAAC,GAAG,IAAC,GAAG,EAAE,CAAC,aACT,MAAC,IAAI,IAAC,KAAK,EAAC,OAAO,a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;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC5C,qCAAqC;IACrC,MAAM,EAAG,MAAM;IACf,8CAA8C;IAC9C,OAAO,EAAE,OAAO;IAChB,+EAA+E;IAC/E,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text, Box } from "ink";
|
|
3
|
+
import { SFPM_GRADIENT } from '../../theme.js';
|
|
4
|
+
/** Gradient progress bar */
|
|
5
|
+
export function GradientBar({ gradient = SFPM_GRADIENT, value, width }) {
|
|
6
|
+
const filled = Math.round((Math.min(100, Math.max(0, value)) / 100) * width);
|
|
7
|
+
const lerp = (a, b, t) => Math.round(a + (b - a) * t);
|
|
8
|
+
const hex = (n) => n.toString(16).padStart(2, '0');
|
|
9
|
+
return (_jsx(Box, { children: Array.from({ length: width }, (_, i) => {
|
|
10
|
+
if (i >= filled)
|
|
11
|
+
return _jsx(Text, { dimColor: true, children: "\u2591" }, i);
|
|
12
|
+
const t = width > 1 ? i / (width - 1) : 1;
|
|
13
|
+
const r = lerp(gradient.start.r, gradient.end.r, t);
|
|
14
|
+
const g = lerp(gradient.start.g, gradient.end.g, t);
|
|
15
|
+
const b = lerp(gradient.start.b, gradient.end.b, t);
|
|
16
|
+
return (_jsx(Text, { color: `#${hex(r)}${hex(g)}${hex(b)}`, children: "\u2588" }, i));
|
|
17
|
+
}) }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=GradientBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GradientBar.js","sourceRoot":"","sources":["../../../../src/ui/components/base/GradientBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAW,aAAa,EAAC,MAAM,gBA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ACpD,MAAM,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACpD,OAAO,CACL,KAAC,IAAI,IAAS,KAAK,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,wBAAxC,CAAC,CAEL,CACR,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from 'ink';
|
|
3
|
+
/**
|
|
4
|
+
* Static badge for a connected org.
|
|
5
|
+
* Shown once in the static header — no animation needed.
|
|
6
|
+
*/
|
|
7
|
+
export function OrgBadge({ alias, username }) {
|
|
8
|
+
return (_jsxs(Box, { gap: 1, margin: 1, children: [_jsx(Text, { color: "green", children: "\u25CF" }), _jsx(Text, { bold: true, children: alias }), username ? _jsxs(Text, { dimColor: true, children: [" \u00B7 ", username, " "] }) : '', _jsx(Text, { dimColor: true, children: "\u2500\u2500 connected" })] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=OrgBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrgBadge.js","sourceRoot":"","sources":["../../../../src/ui/components/base/OrgBadge.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,KAAK,CAAC;AAE9B;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAqC;IAC5E,OAAO,CACL,MAAC,GAAG,IAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,aACpB,KAAC,IAAI,IAAC,KAAK,EAAC,OAAO,uBAAS,EAC5B,KAAC,IAAI,IAAC,IAAI,kBAAE,KAAK,GAAQ,EACxB,QAAQ,CAAC,CAAC,CAAC,MAAC,IAAI,IAAC,QAAQ,+BAAK,QAAQ,SAAS,CAAC,CAAC,CAAC,EAAE,EACrD,KAAC,IAAI,IAAC,QAAQ,6CAAoB,IAC9B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useSpinner } from '@inkjs/ui';
|
|
3
|
+
import { Text } from 'ink';
|
|
4
|
+
import { rawSym } from '../../renderer-utils.js';
|
|
5
|
+
const ICONS = {
|
|
6
|
+
failed: { char: rawSym.fail, color: 'red' },
|
|
7
|
+
pending: { char: rawSym.pending, color: 'gray' },
|
|
8
|
+
skipped: { char: rawSym.skipped, color: 'gray' },
|
|
9
|
+
success: { char: rawSym.success, color: 'green' },
|
|
10
|
+
};
|
|
11
|
+
// Isolated component so the spinner hook only runs when the node is actually running.
|
|
12
|
+
function RunningIcon() {
|
|
13
|
+
const { frame } = useSpinner({});
|
|
14
|
+
return _jsx(Text, { color: "yellow", children: frame });
|
|
15
|
+
}
|
|
16
|
+
export function StatusIcon({ status }) {
|
|
17
|
+
if (status === 'running' || status === 'validating')
|
|
18
|
+
return _jsx(RunningIcon, {});
|
|
19
|
+
const { char, color } = ICONS[status];
|
|
20
|
+
return _jsx(Text, { color: color, children: char });
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=StatusIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusIcon.js","sourceRoot":"","sources":["../../../../src/ui/components/base/StatusIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAIzB,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAE/C,MAAM,KAAK,GAAyF;IAClG,MAAM,EAAG,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAK,KAAK,EAAE,KAAK,EAAC;IAC7C,OAAO,EAAE,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAC;IAC9C,OAAO,EAAE,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAC;IAC9C,OAAO,EAAE,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAC;CAChD,CAAC;AAEF,sFAAsF;AACtF,SAAS,WAAW;IAClB,MAAM,EAAC,KAAK,EAAC,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;IAC/B,OAAO,KAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,YAAE,KAAK,GAAQ,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAC,MAAM,EAAuB;IACvD,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,YAAY;QAAE,OAAO,KAAC,WAAW,KAAG,CAAC;IAC5E,MAAM,EAAC,IAAI,EAAE,KAAK,EAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC,OAAO,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,YAAG,IAAI,GAAQ,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type OrgPhase = 'creating' | 'deploying' | 'done' | 'failed' | 'prereqs' | 'warning';
|
|
2
|
+
export interface OrgRowProps {
|
|
3
|
+
alias: string;
|
|
4
|
+
/** Required for active phases; omit for terminal phases (no bar rendered). */
|
|
5
|
+
barWidth?: number;
|
|
6
|
+
completedPackages: number;
|
|
7
|
+
currentPackage?: string;
|
|
8
|
+
currentPackageVersion?: string;
|
|
9
|
+
failedPackages: number;
|
|
10
|
+
phase: OrgPhase;
|
|
11
|
+
totalPackages: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Single org row — used in both the live area (during provisioning) and the
|
|
15
|
+
* static flush (at the end). Handles all phases so both contexts share one renderer.
|
|
16
|
+
*/
|
|
17
|
+
export declare function OrgRow({ alias, barWidth, completedPackages, currentPackage, currentPackageVersion, failedPackages, phase, totalPackages, }: OrgRowProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from 'ink';
|
|
3
|
+
import { GradientBar } from '../base/GradientBar.js';
|
|
4
|
+
import { rawSym } from '../../renderer-utils.js';
|
|
5
|
+
import { SFPM_GRADIENT } from '../../theme.js';
|
|
6
|
+
const ALIAS_COL = 20;
|
|
7
|
+
function PhaseLabel({ phase }) {
|
|
8
|
+
switch (phase) {
|
|
9
|
+
case 'creating': return _jsx(Text, { dimColor: true, children: "creating..." });
|
|
10
|
+
case 'prereqs': return _jsx(Text, { dimColor: true, children: "installing prerequisites..." });
|
|
11
|
+
default: return null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Single org row — used in both the live area (during provisioning) and the
|
|
16
|
+
* static flush (at the end). Handles all phases so both contexts share one renderer.
|
|
17
|
+
*/
|
|
18
|
+
export function OrgRow({ alias, barWidth = 20, completedPackages, currentPackage, currentPackageVersion, failedPackages, phase, totalPackages, }) {
|
|
19
|
+
const barValue = totalPackages > 0 ? Math.round((completedPackages / totalPackages) * 100) : 0;
|
|
20
|
+
const aliasNode = (_jsx(Box, { width: ALIAS_COL, children: _jsx(Text, { wrap: "truncate", children: alias }) }));
|
|
21
|
+
// ── Terminal phases ───────────────────────────────────────────────────────
|
|
22
|
+
if (phase === 'done' || phase === 'warning' || phase === 'failed') {
|
|
23
|
+
const icon = phase === 'done' ? rawSym.success : phase === 'warning' ? '⚠' : rawSym.fail;
|
|
24
|
+
const color = phase === 'done' ? 'green' : phase === 'warning' ? 'yellow' : 'red';
|
|
25
|
+
const summary = phase === 'failed'
|
|
26
|
+
? (totalPackages > 0 ? `failed · ${completedPackages}/${totalPackages} packages` : 'failed')
|
|
27
|
+
: failedPackages > 0
|
|
28
|
+
? `${completedPackages - failedPackages}/${totalPackages} packages · ${failedPackages} failed`
|
|
29
|
+
: `${completedPackages}/${totalPackages} packages`;
|
|
30
|
+
return (_jsxs(Box, { gap: 1, children: [_jsx(Text, { color: color, children: icon }), aliasNode, _jsx(Text, { dimColor: true, children: summary })] }));
|
|
31
|
+
}
|
|
32
|
+
// ── Active phases ─────────────────────────────────────────────────────────
|
|
33
|
+
return (_jsxs(Box, { gap: 1, children: [_jsx(Text, { color: "gray", children: rawSym.pending }), aliasNode, phase === 'deploying' && totalPackages > 0
|
|
34
|
+
? (_jsxs(_Fragment, { children: [_jsx(GradientBar, { gradient: SFPM_GRADIENT, value: barValue, width: barWidth }), _jsxs(Text, { dimColor: true, children: [completedPackages, "/", totalPackages] }), currentPackage && (_jsxs(Text, { dimColor: true, wrap: "truncate", children: [' · ', currentPackage, currentPackageVersion ? ` ${currentPackageVersion}` : ''] }))] }))
|
|
35
|
+
: _jsx(PhaseLabel, { phase: phase })] }));
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=OrgRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrgRow.js","sourceRoot":"","sources":["../../../../src/ui/components/pool/OrgRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,KAAK,CAAC;AAE9B,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAgB7C,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,SAAS,UAAU,CAAC,EAAC,KAAK,EAAoB;IAC5C,QAAQ,KAAK,EAAE,CAAC;QAChB,KAAK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|
3
|
+
/**
|
|
4
|
+
* Fixed-width metadata columns for pool org rows.
|
|
5
|
+
* Pass the same spec to both `<PoolOrgRow>` and the header row.
|
|
6
|
+
*/
|
|
7
|
+
export declare const POOL_ORG_COLS: MetaColSpec[];
|
|
8
|
+
/**
|
|
9
|
+
* A single pool org row using the PackageRow layout.
|
|
10
|
+
*
|
|
11
|
+
* Slots: icon (stage-coloured dot) · alias · username (dim) | pool · stage · type · expires
|
|
12
|
+
*/
|
|
13
|
+
export declare function PoolOrgRow({ org, width }: {
|
|
14
|
+
org: PoolOrg;
|
|
15
|
+
width: number;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from 'ink';
|
|
3
|
+
import { PackageRow } from '../PackageRow.js';
|
|
4
|
+
import { formatExpiry, formatStage, stageColor } from '../../pool-utils.js';
|
|
5
|
+
// ── Column spec ───────────────────────────────────────────────────────────────
|
|
6
|
+
/**
|
|
7
|
+
* Fixed-width metadata columns for pool org rows.
|
|
8
|
+
* Pass the same spec to both `<PoolOrgRow>` and the header row.
|
|
9
|
+
*/
|
|
10
|
+
export const POOL_ORG_COLS = [
|
|
11
|
+
{ key: 'tag', label: 'pool', width: 14 },
|
|
12
|
+
{ key: 'stage', label: 'stage', width: 12 },
|
|
13
|
+
{ key: 'type', label: 'type', width: 8 },
|
|
14
|
+
{ key: 'expires', label: 'expires', width: 14 },
|
|
15
|
+
];
|
|
16
|
+
// ── Row ───────────────────────────────────────────────────────────────────────
|
|
17
|
+
function orgToProps(org) {
|
|
18
|
+
const stage = org.pool?.stage;
|
|
19
|
+
const alias = org.auth.alias ?? org.auth.username;
|
|
20
|
+
const secondary = org.auth.alias
|
|
21
|
+
? _jsx(PackageRow.Secondary, { children: org.auth.username })
|
|
22
|
+
: undefined;
|
|
23
|
+
return {
|
|
24
|
+
columns: (_jsx(PackageRow.MetaCols, { cols: POOL_ORG_COLS, meta: {
|
|
25
|
+
expires: org.expiry ? formatExpiry(org.expiry) : '—',
|
|
26
|
+
stage: formatStage(stage),
|
|
27
|
+
tag: org.pool?.tag ?? '—',
|
|
28
|
+
type: org.orgType,
|
|
29
|
+
} })),
|
|
30
|
+
icon: _jsx(Text, { color: stageColor(stage), children: "\u25CF" }),
|
|
31
|
+
id: org.orgId,
|
|
32
|
+
primary: alias,
|
|
33
|
+
secondary,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A single pool org row using the PackageRow layout.
|
|
38
|
+
*
|
|
39
|
+
* Slots: icon (stage-coloured dot) · alias · username (dim) | pool · stage · type · expires
|
|
40
|
+
*/
|
|
41
|
+
export function PoolOrgRow({ org, width }) {
|
|
42
|
+
return _jsx(PackageRow, { props: orgToProps(org), width: width });
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=PoolOrgRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoolOrgRow.js","sourceRoot":"","sources":["../../../../src/ui/components/pool/PoolOrgRow.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAIzB,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAE1E,iFAAiF;AAEjF;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,EAAC,GAAG,EAAE,KAAK,EAAM,KAAK,EAAE,MAAM,EAAK,KAAK,EAAE,EAAE,EAAC;IAC7C,EAAC,GAAG,EAAE,OAAO,EAAI,KAAK,EAAE,OAAO,EAAI,KAAK,EAAE,EAAE,EAAC;IAC7C,EAAC,GAAG,EAAE,MAAM,EAAK,KAAK,EAAE,MAAM,EAAK,KAAK,EAAE,CAAC,EAAC;IAC5C,EAAC,GAAG,EAAE,SAAS,EAAE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esforce/core';
|
|
2
|
+
/**
|
|
3
|
+
* Options for `connectDevHub()`.
|
|
4
|
+
*/
|
|
5
|
+
export interface ConnectDevHubOptions {
|
|
6
|
+
/** The alias/username passed via --target-dev-hub flag */
|
|
7
|
+
alias?: string;
|
|
8
|
+
/** Output mode — spinner only shown in 'interactive' */
|
|
9
|
+
showSpinner: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Optional validation steps to run after connecting.
|
|
12
|
+
* Each step updates the spinner text and runs an async check.
|
|
13
|
+
* If a step throws, the spinner fails and the error propagates.
|
|
14
|
+
*/
|
|
15
|
+
validate?: Array<{
|
|
16
|
+
label: string;
|
|
17
|
+
run: (devhub: Org) => Promise<void>;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Result from `connectDevHub()`.
|
|
22
|
+
*/
|
|
23
|
+
export interface ConnectDevHubResult {
|
|
24
|
+
/** The resolved alias/username used */
|
|
25
|
+
alias: string;
|
|
26
|
+
/** The authenticated Org instance */
|
|
27
|
+
devhub: Org;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Resolve a DevHub org from alias/flag or sf config, with spinner feedback.
|
|
31
|
+
*
|
|
32
|
+
* Handles the full flow:
|
|
33
|
+
* 1. Resolve alias from flag or `ConfigAggregator`
|
|
34
|
+
* 2. Show connecting spinner
|
|
35
|
+
* 3. Authenticate via `Org.create()`
|
|
36
|
+
* 4. Run optional validation steps (updating spinner text)
|
|
37
|
+
* 5. Succeed/fail spinner
|
|
38
|
+
*
|
|
39
|
+
* @throws Error if no alias is resolved or connection/validation fails
|
|
40
|
+
*/
|
|
41
|
+
export declare function connectDevHub(options: ConnectDevHubOptions): Promise<ConnectDevHubResult>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ConfigAggregator, Org } from '@salesforce/core';
|
|
2
|
+
import chalk from 'chalk';
|
|
3
|
+
import ora from 'ora';
|
|
4
|
+
/**
|
|
5
|
+
* Resolve a DevHub org from alias/flag or sf config, with spinner feedback.
|
|
6
|
+
*
|
|
7
|
+
* Handles the full flow:
|
|
8
|
+
* 1. Resolve alias from flag or `ConfigAggregator`
|
|
9
|
+
* 2. Show connecting spinner
|
|
10
|
+
* 3. Authenticate via `Org.create()`
|
|
11
|
+
* 4. Run optional validation steps (updating spinner text)
|
|
12
|
+
* 5. Succeed/fail spinner
|
|
13
|
+
*
|
|
14
|
+
* @throws Error if no alias is resolved or connection/validation fails
|
|
15
|
+
*/
|
|
16
|
+
export async function connectDevHub(options) {
|
|
17
|
+
const { showSpinner, validate } = options;
|
|
18
|
+
// 1. Resolve alias
|
|
19
|
+
let { alias } = options;
|
|
20
|
+
if (!alias) {
|
|
21
|
+
const configAggregator = await ConfigAggregator.create();
|
|
22
|
+
alias = configAggregator.getPropertyValue('target-dev-hub') ?? undefined;
|
|
23
|
+
}
|
|
24
|
+
if (!alias) {
|
|
25
|
+
throw new Error('A target dev hub is required. Specify one with --target-dev-hub (-v) or set a default with: sf config set target-dev-hub=<username>');
|
|
26
|
+
}
|
|
27
|
+
// 2. Spinner
|
|
28
|
+
const spinner = showSpinner
|
|
29
|
+
? ora(`Connecting to ${chalk.cyan(alias)}...`).start()
|
|
30
|
+
: undefined;
|
|
31
|
+
try {
|
|
32
|
+
// 3. Connect
|
|
33
|
+
const devhub = await Org.create({ aliasOrUsername: alias });
|
|
34
|
+
// 4. Validations
|
|
35
|
+
if (validate) {
|
|
36
|
+
for (const step of validate) {
|
|
37
|
+
if (spinner)
|
|
38
|
+
spinner.text = step.label;
|
|
39
|
+
// eslint-disable-next-line no-await-in-loop -- sequential validation steps
|
|
40
|
+
await step.run(devhub);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// 5. Success
|
|
44
|
+
spinner?.succeed(`Connected to ${chalk.cyan(alias)}`);
|
|
45
|
+
return { alias, devhub };
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
spinner?.fail('Failed');
|
|
49
|
+
throw error;
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,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;gBACvC,2EAA2E;gBAC3E,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;QAED,aAAa;QACb,OAAO,EAAE,OAAO,CAAC,gBAAgB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAEtD,OAAO,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC;IACzB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxB,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Two-level build: core-utils + shared-types in parallel (Level 0),
|
|
3
|
+
* then app-shell (Level 1).
|
|
4
|
+
*
|
|
5
|
+
* Level 0 packages go through async validation — they stay non-terminal
|
|
6
|
+
* (status: 'validating') while app-shell builds, then resolve after
|
|
7
|
+
* orchestration:complete. Exercises the validation-folding flow.
|
|
8
|
+
*/
|
|
9
|
+
export declare const happyPathEvents: ({
|
|
10
|
+
levels: string[][];
|
|
11
|
+
type: string;
|
|
12
|
+
packageName?: undefined;
|
|
13
|
+
step?: undefined;
|
|
14
|
+
status?: undefined;
|
|
15
|
+
meta?: undefined;
|
|
16
|
+
success?: undefined;
|
|
17
|
+
detail?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
packageName: string;
|
|
20
|
+
type: string;
|
|
21
|
+
levels?: undefined;
|
|
22
|
+
step?: undefined;
|
|
23
|
+
status?: undefined;
|
|
24
|
+
meta?: undefined;
|
|
25
|
+
success?: undefined;
|
|
26
|
+
detail?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
packageName: string;
|
|
29
|
+
step: string;
|
|
30
|
+
type: string;
|
|
31
|
+
levels?: undefined;
|
|
32
|
+
status?: undefined;
|
|
33
|
+
meta?: undefined;
|
|
34
|
+
success?: undefined;
|
|
35
|
+
detail?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
packageName: string;
|
|
38
|
+
status: string;
|
|
39
|
+
step: string;
|
|
40
|
+
type: string;
|
|
41
|
+
levels?: undefined;
|
|
42
|
+
meta?: undefined;
|
|
43
|
+
success?: undefined;
|
|
44
|
+
detail?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
packageName: string;
|
|
47
|
+
status: string;
|
|
48
|
+
type: string;
|
|
49
|
+
levels?: undefined;
|
|
50
|
+
step?: undefined;
|
|
51
|
+
meta?: undefined;
|
|
52
|
+
success?: undefined;
|
|
53
|
+
detail?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
meta: {
|
|
56
|
+
components: string;
|
|
57
|
+
hash: string;
|
|
58
|
+
version: string;
|
|
59
|
+
};
|
|
60
|
+
packageName: string;
|
|
61
|
+
status: string;
|
|
62
|
+
type: string;
|
|
63
|
+
levels?: undefined;
|
|
64
|
+
step?: undefined;
|
|
65
|
+
success?: undefined;
|
|
66
|
+
detail?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
success: boolean;
|
|
69
|
+
type: string;
|
|
70
|
+
levels?: undefined;
|
|
71
|
+
packageName?: undefined;
|
|
72
|
+
step?: undefined;
|
|
73
|
+
status?: undefined;
|
|
74
|
+
meta?: undefined;
|
|
75
|
+
detail?: undefined;
|
|
76
|
+
} | {
|
|
77
|
+
detail: string;
|
|
78
|
+
packageName: string;
|
|
79
|
+
step: string;
|
|
80
|
+
type: string;
|
|
81
|
+
levels?: undefined;
|
|
82
|
+
status?: undefined;
|
|
83
|
+
meta?: undefined;
|
|
84
|
+
success?: undefined;
|
|
85
|
+
})[];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Two-level build: core-utils + shared-types in parallel (Level 0),
|
|
3
|
+
* then app-shell (Level 1).
|
|
4
|
+
*
|
|
5
|
+
* Level 0 packages go through async validation — they stay non-terminal
|
|
6
|
+
* (status: 'validating') while app-shell builds, then resolve after
|
|
7
|
+
* orchestration:complete. Exercises the validation-folding flow.
|
|
8
|
+
*/
|
|
9
|
+
export const happyPathEvents = [
|
|
10
|
+
{ levels: [['core-utils', 'shared-types'], ['app-shell']], type: 'orchestration:init' },
|
|
11
|
+
// ── Level 0 ───────────────────────────────────────────────────────────────
|
|
12
|
+
{ packageName: 'core-utils', type: 'package:running' },
|
|
13
|
+
{ packageName: 'shared-types', type: 'package:running' },
|
|
14
|
+
{ packageName: 'core-utils', step: 'pre-hooks', type: 'step:start' },
|
|
15
|
+
{
|
|
16
|
+
packageName: 'core-utils', status: 'success', step: 'pre-hooks', type: 'step:complete',
|
|
17
|
+
},
|
|
18
|
+
{ packageName: 'core-utils', step: 'stage', type: 'step:start' },
|
|
19
|
+
{ packageName: 'shared-types', step: 'stage', type: 'step:start' },
|
|
20
|
+
{
|
|
21
|
+
packageName: 'shared-types', status: 'success', step: 'stage', type: 'step:complete',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
packageName: 'core-utils', status: 'success', step: 'stage', type: 'step:complete',
|
|
25
|
+
},
|
|
26
|
+
// Build done — both need async validation, so they enter 'validating' instead of 'success'.
|
|
27
|
+
{ packageName: 'core-utils', status: 'validating', type: 'package:complete' },
|
|
28
|
+
{ packageName: 'core-utils', step: 'validate', type: 'step:start' },
|
|
29
|
+
{ packageName: 'shared-types', status: 'validating', type: 'package:complete' },
|
|
30
|
+
{ packageName: 'shared-types', step: 'validate', type: 'step:start' },
|
|
31
|
+
// ── Level 1 ───────────────────────────────────────────────────────────────
|
|
32
|
+
// Builds while core-utils + shared-types are still validating.
|
|
33
|
+
{ packageName: 'app-shell', type: 'package:running' },
|
|
34
|
+
{
|
|
35
|
+
meta: { components: '47', hash: 'c3d4e5f', version: '3.0.0' }, packageName: 'app-shell', status: 'success', type: 'package:complete',
|
|
36
|
+
},
|
|
37
|
+
// ── Orchestration complete (build done; validation still in flight) ────────
|
|
38
|
+
{ success: true, type: 'orchestration:complete' },
|
|
39
|
+
// ── Validation resolves ───────────────────────────────────────────────────
|
|
40
|
+
{
|
|
41
|
+
detail: 'polling (attempt 1)', packageName: 'core-utils', step: 'validate', type: 'step:update',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
detail: 'polling (attempt 1)', packageName: 'shared-types', step: 'validate', type: 'step:update',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
detail: 'polling (attempt 2)', packageName: 'core-utils', step: 'validate', type: 'step:update',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
packageName: 'core-utils', status: 'success', step: 'validate', type: 'step:complete',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
meta: { components: '12', hash: 'a1b2c3d', version: '1.2.0' }, packageName: 'core-utils', status: 'success', type: 'package:complete',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
packageName: 'shared-types', status: 'success', step: 'validate', type: 'step:complete',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
meta: { components: '3', hash: 'b2c3d4e', version: '0.8.0' }, packageName: 'shared-types', status: 'success', type: 'package:complete',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
//# sourceMappingURL=happy-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"happy-path.js","sourceRoot":"","sources":["../../../src/ui/fixtures/happy-path.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,EAAC,MAAM,EAAE,CAAC,CAAC,YAAY,EAAE,cAAc,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAC;IAErF,6EAA6E;IAC7E,EAAC,WAAW,EAAE,YAAY,EAAI,IAAI,EAAE,iBAAiB,EAAC;IACtD,EAAC,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,iBAAiB,EAAC;IAEtD,EAAC,WAAW,EAAE,YAAY,EAAE,I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wBAAwB,EAAC;IAE/C,6EAA6E;IAC7E;QACE,MAAM,EAAE,qBAAqB,EAAE,WAAW,EAAE,YAAY,EAAI,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa;KAClG;IACD;QACE,MAAM,EAAE,qBAAqB,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa;KAClG;IACD;QACE,MAAM,EAAE,qBAAqB,EAAE,WAAW,EAAE,YAAY,EAAI,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa;KAClG;IAED;QACE,WAAW,EAAE,YAAY,EAAI,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe;KACxF;IACD;QACE,IAAI,EAAE,EAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAC,EAAE,WAAW,EAAE,YAAY,EAAI,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB;KACtI;IAED;QACE,WAAW,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe;KACxF;IACD;QACE,IAAI,EAAE,EAAC,UAAU,EAAE,GAAG,EAAG,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAC,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB;KACtI;CACF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Large-scale build: 4 levels, 17 packages.
|
|
3
|
+
*
|
|
4
|
+
* Designed to stress-test the OrchestrationView layout:
|
|
5
|
+
*
|
|
6
|
+
* Phase 1 — Level 0 (3 packages, with build steps; all enter 'validating')
|
|
7
|
+
* Phase 2 — Level 1 (3 packages, one failure; validating packages visible above)
|
|
8
|
+
* Phase 3 — Level 2 becomes active: all 8 packages pending
|
|
9
|
+
* → 3 visible queued + "⋯ 5 more queued" + "Level 3 — 3 waiting"
|
|
10
|
+
* Phase 4 — Level 2 packs start running in batches, truncation shrinks
|
|
11
|
+
* Phase 5 — Level 2 done, Level 3 runs and completes
|
|
12
|
+
* Phase 6 — orchestration:complete(false) — failure from ui-kit propagates
|
|
13
|
+
* Phase 7 — validation resolves for Level 0 packages (folded into main tree)
|
|
14
|
+
*/
|
|
15
|
+
type Event = Record<string, unknown> & {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const largeBuildEvents: Event[];
|
|
19
|
+
export {};
|