@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,24 @@
|
|
|
1
|
+
import { Writable } from 'node:stream';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a Writable stream that parses pino JSON log lines and emits
|
|
4
|
+
* 'log:append' events on the given bus for the ink App to consume.
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* const bridge = createPinoBridge(uiBus);
|
|
8
|
+
* const logger = new CliLogger(pino({ level: 'debug' }, bridge));
|
|
9
|
+
*/
|
|
10
|
+
export function createPinoBridge(bus) {
|
|
11
|
+
return new Writable({
|
|
12
|
+
write(chunk, _enc, callback) {
|
|
13
|
+
try {
|
|
14
|
+
const record = JSON.parse(chunk.toString());
|
|
15
|
+
bus.emit('log:append', record);
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
// malformed line — ignore
|
|
19
|
+
}
|
|
20
|
+
callback();
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=pino-bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pino-bridge.js","sourceRoot":"","sources":["../../src/ui/pino-bridge.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAErC;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAiB;IAChD,OAAO,IAAI,QAAQ,CAAC;QAClB,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ;YACzB,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;gBAC5C,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;YACjC,CAAC;YAAC,MAAM,CAAC;gBACP,0BAA0B;YAC5B,CAAC;YAED,QAAQ,EAAE,CAAC;QACb,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PoolEventBus } from '@b64hub/sfpm-orgs';
|
|
2
|
+
import type EventEmitter from 'node:events';
|
|
3
|
+
/**
|
|
4
|
+
* Bridges PoolManager delete events onto the PoolDeleteApp's uiBus.
|
|
5
|
+
*
|
|
6
|
+
* `delete:start`/`delete:done` are emitted directly by the CLI around the
|
|
7
|
+
* `manager.delete()` call (see `PoolDelete.deleteTag()`) rather than from
|
|
8
|
+
* here, because the domain bus stays silent when a pool has no matching
|
|
9
|
+
* orgs — the CLI's own await always resolves and is the reliable signal.
|
|
10
|
+
* This bridge only forwards the events PoolManager does emit mid-flight.
|
|
11
|
+
*/
|
|
12
|
+
export declare function attachPoolDeleteBridge(eventBus: PoolEventBus, uiBus: EventEmitter, tag: string): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridges PoolManager delete events onto the PoolDeleteApp's uiBus.
|
|
3
|
+
*
|
|
4
|
+
* `delete:start`/`delete:done` are emitted directly by the CLI around the
|
|
5
|
+
* `manager.delete()` call (see `PoolDelete.deleteTag()`) rather than from
|
|
6
|
+
* here, because the domain bus stays silent when a pool has no matching
|
|
7
|
+
* orgs — the CLI's own await always resolves and is the reliable signal.
|
|
8
|
+
* This bridge only forwards the events PoolManager does emit mid-flight.
|
|
9
|
+
*/
|
|
10
|
+
export function attachPoolDeleteBridge(eventBus, uiBus, tag) {
|
|
11
|
+
eventBus.on('pool:delete:start', p => {
|
|
12
|
+
uiBus.emit('delete:count', { count: p.count, tag });
|
|
13
|
+
});
|
|
14
|
+
eventBus.on('pool:org:deleted', () => {
|
|
15
|
+
uiBus.emit('delete:org:done', { tag });
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=pool-delete-event-bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool-delete-event-bridge.js","sourceRoot":"","sources":["../../src/ui/pool-delete-event-bridge.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAsB,EAAE,KAAmB,EAAE,GAAW;IAC7F,QAAQ,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE;QACnC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,EAAC,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE;QACnC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAC,GAAG,EAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PoolEventBus } from '@b64hub/sfpm-orgs';
|
|
2
|
+
import type EventEmitter from 'node:events';
|
|
3
|
+
/**
|
|
4
|
+
* Bridges PoolManager events onto the PoolFillApp's uiBus.
|
|
5
|
+
*
|
|
6
|
+
* The bridge owns the translation from pool domain events to the
|
|
7
|
+
* flat uiBus vocabulary consumed by PoolFillApp's reducer.
|
|
8
|
+
*/
|
|
9
|
+
export declare function attachPoolFillBridge(eventBus: PoolEventBus, uiBus: EventEmitter, tag: string): void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridges PoolManager events onto the PoolFillApp's uiBus.
|
|
3
|
+
*
|
|
4
|
+
* The bridge owns the translation from pool domain events to the
|
|
5
|
+
* flat uiBus vocabulary consumed by PoolFillApp's reducer.
|
|
6
|
+
*/
|
|
7
|
+
export function attachPoolFillBridge(eventBus, uiBus, tag) {
|
|
8
|
+
eventBus.on('pool:provision:start', p => {
|
|
9
|
+
uiBus.emit('pool:start', { tag, total: p.toAllocate });
|
|
10
|
+
});
|
|
11
|
+
eventBus.on('pool:org:created', p => {
|
|
12
|
+
uiBus.emit('org:appeared', { alias: p.alias, tag, username: p.username });
|
|
13
|
+
});
|
|
14
|
+
// Creation failure — org never provisioned, forward alias for display
|
|
15
|
+
eventBus.on('pool:org:failed', p => {
|
|
16
|
+
uiBus.emit('pool:creation:failed', { alias: p.alias, tag });
|
|
17
|
+
});
|
|
18
|
+
eventBus.on('pool:task:start', p => {
|
|
19
|
+
if (p.task === 'install-sfpm-package') {
|
|
20
|
+
uiBus.emit('org:prereqs', { username: p.username });
|
|
21
|
+
}
|
|
22
|
+
else if (p.task === 'deploy-packages') {
|
|
23
|
+
uiBus.emit('org:deploying', { username: p.username });
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
eventBus.on('pool:package:start', p => {
|
|
27
|
+
uiBus.emit('org:pkg:start', { packageName: p.packageName, total: p.total, username: p.username });
|
|
28
|
+
});
|
|
29
|
+
eventBus.on('pool:package:complete', p => {
|
|
30
|
+
uiBus.emit('org:pkg:done', {
|
|
31
|
+
packageName: p.packageName, success: p.success, username: p.username, version: p.version,
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
// deploy-packages completing signals the org is fully provisioned
|
|
35
|
+
eventBus.on('pool:task:complete', p => {
|
|
36
|
+
if (p.task === 'deploy-packages') {
|
|
37
|
+
uiBus.emit('org:done', { username: p.username });
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
// Task error or post-creation discard → org failed
|
|
41
|
+
eventBus.on('pool:task:error', p => {
|
|
42
|
+
uiBus.emit('org:failed', { username: p.username });
|
|
43
|
+
});
|
|
44
|
+
eventBus.on('pool:org:discarded', p => {
|
|
45
|
+
uiBus.emit('org:failed', { username: p.username });
|
|
46
|
+
});
|
|
47
|
+
eventBus.on('pool:provision:complete', () => {
|
|
48
|
+
uiBus.emit('pool:done', { tag });
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=pool-fill-event-bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool-fill-event-bridge.js","sourceRoot":"","sources":["../../src/ui/pool-fill-event-bridge.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAsB,EAAE,KAAmB,EAAE,GAAW;IA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@
|
|
|
1
|
+
/** Days-remaining + ISO date, or a red "Expired" badge. */
|
|
2
|
+
export declare function formatExpiry(expiry: number): string;
|
|
3
|
+
/** Human-readable, coloured stage label. */
|
|
4
|
+
export declare function formatStage(stage?: string): string;
|
|
5
|
+
/** Ink color string for a pool stage. */
|
|
6
|
+
export declare function stageColor(stage?: string): string;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
/** Days-remaining + ISO date, or a red "Expired" badge. */
|
|
3
|
+
export function formatExpiry(expiry) {
|
|
4
|
+
const d = new Date(expiry);
|
|
5
|
+
const days = Math.ceil((d.getTime() - Date.now()) / 86_400_000);
|
|
6
|
+
const date = d.toISOString().split('T')[0];
|
|
7
|
+
return days <= 0 ? chalk.red(`Expired ${chalk.dim(date)}`) : `${days}d ${chalk.dim(date)}`;
|
|
8
|
+
}
|
|
9
|
+
/** Human-readable, coloured stage label. */
|
|
10
|
+
export function formatStage(stage) {
|
|
11
|
+
switch (stage) {
|
|
12
|
+
case 'Allocate': {
|
|
13
|
+
return chalk.blue('Allocate');
|
|
14
|
+
}
|
|
15
|
+
case 'Assigned': {
|
|
16
|
+
return chalk.hex('#FFA500')('Assigned');
|
|
17
|
+
}
|
|
18
|
+
case 'Available': {
|
|
19
|
+
return chalk.green('Available');
|
|
20
|
+
}
|
|
21
|
+
case 'InProgress': {
|
|
22
|
+
return chalk.yellow('In Progress');
|
|
23
|
+
}
|
|
24
|
+
default: {
|
|
25
|
+
return stage ?? '—';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/** Ink color string for a pool stage. */
|
|
30
|
+
export function stageColor(stage) {
|
|
31
|
+
switch (stage) {
|
|
32
|
+
case 'Allocate': {
|
|
33
|
+
return 'blue';
|
|
34
|
+
}
|
|
35
|
+
case 'Assigned': {
|
|
36
|
+
return '#FFA500';
|
|
37
|
+
}
|
|
38
|
+
case 'Available': {
|
|
39
|
+
return 'green';
|
|
40
|
+
}
|
|
41
|
+
case 'InProgress': {
|
|
42
|
+
return 'yellow';
|
|
43
|
+
}
|
|
44
|
+
default: {
|
|
45
|
+
return 'gray';
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=pool-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool-utils.js","sourceRoot":"","sources":["../../src/ui/pool-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,2DAA2D;AAC3D,MAAM,UAAU,YAAY,CAAC,MAAc;IACzC,MAAM,CAAC,GAAM,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC;IAChE,MAAM,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;AAC7F,CAAC;AAED,4CAA4C;AAC5C,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,QAAQ,KAAK,EAAE,CAAC;QAChB,KAAK,UAAU,CAAC,CAAC,CAAC;YAAA,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAChD,CAAC;QAED,KAAK,UAAU,CAAC,CAAC,CAAC;YAAA,OAAO,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;QAC1D,CAAC;QAED,KAAK,WAAW,CAAC,CAAC,CAAC;YAAA,OAAO,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACnD,CAAC;QAED,KAAK,YAAY,CAAC,CAAC,CAAC;YAAA,OAAO,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACvD,CAAC;QAED,OAAO,CAAC,CAAC,CAAC;YAAA,OAAO,KAAK,IAAI,GAAG,CAAC;QAC9B,CAAC;IACD,CAAC;AACH,CAAC;AAED,yCAAyC;AACzC,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,QAAQ,KAAK,EAAE,CAAC;QAChB,KAAK,UAAU,CAAC,CAAC,CAAC;YAAA,OAAO,MAAM,CAAC;QAChC,CAAC;QAED,KAAK,UAAU,CAAC,CAAC,CAAC;YAAA,OAAO,SAAS,CAAC;QACnC,CAAC;QAED,KAAK,WAAW,CAAC,CAAC,CAAC;YAAA,OAAO,OAAO,CAAC;QAClC,CAAC;QAED,KAAK,YAAY,CAAC,CAAC,CAAC;YAAA,OAAO,QAAQ,CAAC;QACpC,CAAC;QAED,OAAO,CAAC,CAAC,CAAC;YAAA,OAAO,MAAM,CAAC;QACxB,CAAC;IACD,CAAC;AACH,CAAC"}
|
|
@@ -1,11 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Width of one column in the standard three-column footer / progress-bar layout.
|
|
3
|
+
* Mirrors the formula used by Footer.tsx so every app renders bars at the same scale.
|
|
4
|
+
*/
|
|
5
|
+
export declare function colWidth(termWidth: number): number;
|
|
6
|
+
/**
|
|
7
|
+
* Raw (uncolored) symbols. Use for contexts that apply their
|
|
8
|
+
* own styling (e.g., listr2 icon overrides).
|
|
9
|
+
*/
|
|
10
|
+
export declare const rawSym: {
|
|
11
|
+
readonly fail: "✖";
|
|
12
|
+
readonly pending: "○";
|
|
13
|
+
readonly progress: "●";
|
|
14
|
+
readonly skip: "○";
|
|
15
|
+
readonly skipped: "–";
|
|
16
|
+
readonly success: "✔";
|
|
17
|
+
readonly warn: "⚠";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Standardized symbols for progress rendering.
|
|
21
|
+
*
|
|
22
|
+
* Pre-colored with their semantic color so every call site
|
|
23
|
+
* renders the same symbol the same way.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* logger.log(`${sym.success} Package built`);
|
|
28
|
+
* logger.log(`${sym.fail} Deploy failed — ${error.message}`);
|
|
29
|
+
* logger.log(`${sym.skip} Already installed`);
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const sym: {
|
|
33
|
+
/** Red ✖ — failure, error */
|
|
34
|
+
readonly fail: string;
|
|
35
|
+
/** Dim ● — in-progress, running */
|
|
36
|
+
readonly progress: string;
|
|
37
|
+
/** Yellow ○ — skipped */
|
|
38
|
+
readonly skip: string;
|
|
39
|
+
/** Green ✔ — success, complete */
|
|
40
|
+
readonly success: string;
|
|
41
|
+
/** Yellow ⚠ — warning */
|
|
42
|
+
readonly warn: string;
|
|
43
|
+
};
|
|
1
44
|
/**
|
|
2
45
|
* Output modes for progress rendering.
|
|
3
46
|
*
|
|
4
|
-
* - `interactive` — Full UI with spinners, colors, boxes
|
|
5
|
-
* - `
|
|
6
|
-
* - `json` —
|
|
47
|
+
* - `interactive` — Full UI with listr, spinners, colors, boxes
|
|
48
|
+
* - `plain` — Line-by-line text with colors and symbols, no cursor tricks
|
|
49
|
+
* - `json` — Silent during execution; structured JSON envelope at completion
|
|
7
50
|
*/
|
|
8
|
-
export type OutputMode = 'interactive' | 'json' | '
|
|
51
|
+
export type OutputMode = 'interactive' | 'json' | 'plain';
|
|
9
52
|
/**
|
|
10
53
|
* Logger interface for rendering output.
|
|
11
54
|
*/
|
|
@@ -40,6 +83,17 @@ export interface EventConfig {
|
|
|
40
83
|
* - ≥ 60 s → `"2m 15s"`
|
|
41
84
|
*/
|
|
42
85
|
export declare function formatDuration(ms: number): string;
|
|
86
|
+
/**
|
|
87
|
+
* Create a clickable terminal hyperlink using OSC 8 escape sequences.
|
|
88
|
+
*
|
|
89
|
+
* Supported by most modern terminals (iTerm2, Windows Terminal, GNOME
|
|
90
|
+
* Terminal, VS Code integrated terminal). Terminals that don't support
|
|
91
|
+
* it will show the display text as plain text.
|
|
92
|
+
*
|
|
93
|
+
* @param text - The visible display text
|
|
94
|
+
* @param url - The URL to link to
|
|
95
|
+
*/
|
|
96
|
+
export declare function terminalLink(text: string, url: string): string;
|
|
43
97
|
/**
|
|
44
98
|
* Calculate the human-readable duration between a start date and an end date.
|
|
45
99
|
* Returns an empty string when `start` is undefined.
|
|
@@ -1,7 +1,59 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
1
2
|
// ============================================================================
|
|
2
3
|
// Shared Types & Utilities for Progress Renderers
|
|
3
4
|
// ============================================================================
|
|
4
5
|
// ============================================================================
|
|
6
|
+
// Layout
|
|
7
|
+
// ============================================================================
|
|
8
|
+
/**
|
|
9
|
+
* Width of one column in the standard three-column footer / progress-bar layout.
|
|
10
|
+
* Mirrors the formula used by Footer.tsx so every app renders bars at the same scale.
|
|
11
|
+
*/
|
|
12
|
+
export function colWidth(termWidth) {
|
|
13
|
+
return Math.floor((termWidth - 6) / 3); // 6 = two " │ " separators
|
|
14
|
+
}
|
|
15
|
+
// ============================================================================
|
|
16
|
+
// Symbols
|
|
17
|
+
// ============================================================================
|
|
18
|
+
/**
|
|
19
|
+
* Raw (uncolored) symbols. Use for contexts that apply their
|
|
20
|
+
* own styling (e.g., listr2 icon overrides).
|
|
21
|
+
*/
|
|
22
|
+
export const rawSym = {
|
|
23
|
+
fail: '✖',
|
|
24
|
+
pending: '○', // not started
|
|
25
|
+
progress: '●',
|
|
26
|
+
skip: '○', // deprecated alias — use pending; will align with skipped once old renderers are gone
|
|
27
|
+
skipped: '–', // intentionally bypassed
|
|
28
|
+
success: '✔',
|
|
29
|
+
warn: '⚠',
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Standardized symbols for progress rendering.
|
|
33
|
+
*
|
|
34
|
+
* Pre-colored with their semantic color so every call site
|
|
35
|
+
* renders the same symbol the same way.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* logger.log(`${sym.success} Package built`);
|
|
40
|
+
* logger.log(`${sym.fail} Deploy failed — ${error.message}`);
|
|
41
|
+
* logger.log(`${sym.skip} Already installed`);
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export const sym = {
|
|
45
|
+
/** Red ✖ — failure, error */
|
|
46
|
+
fail: chalk.red(rawSym.fail),
|
|
47
|
+
/** Dim ● — in-progress, running */
|
|
48
|
+
progress: chalk.dim(rawSym.progress),
|
|
49
|
+
/** Yellow ○ — skipped */
|
|
50
|
+
skip: chalk.yellow(rawSym.skip),
|
|
51
|
+
/** Green ✔ — success, complete */
|
|
52
|
+
success: chalk.green(rawSym.success),
|
|
53
|
+
/** Yellow ⚠ — warning */
|
|
54
|
+
warn: chalk.yellow(rawSym.warn),
|
|
55
|
+
};
|
|
56
|
+
// ============================================================================
|
|
5
57
|
// Duration Formatting
|
|
6
58
|
// ============================================================================
|
|
7
59
|
/**
|
|
@@ -20,6 +72,19 @@ export function formatDuration(ms) {
|
|
|
20
72
|
const seconds = Math.floor((ms % 60_000) / 1000);
|
|
21
73
|
return `${minutes}m ${seconds}s`;
|
|
22
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Create a clickable terminal hyperlink using OSC 8 escape sequences.
|
|
77
|
+
*
|
|
78
|
+
* Supported by most modern terminals (iTerm2, Windows Terminal, GNOME
|
|
79
|
+
* Terminal, VS Code integrated terminal). Terminals that don't support
|
|
80
|
+
* it will show the display text as plain text.
|
|
81
|
+
*
|
|
82
|
+
* @param text - The visible display text
|
|
83
|
+
* @param url - The URL to link to
|
|
84
|
+
*/
|
|
85
|
+
export function terminalLink(text, url) {
|
|
86
|
+
return `\u001B]8;;${url}\u0007${text}\u001B]8;;\u0007`;
|
|
87
|
+
}
|
|
23
88
|
/**
|
|
24
89
|
* Calculate the human-readable duration between a start date and an end date.
|
|
25
90
|
* Returns an empty string when `start` is undefined.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer-utils.js","sourceRoot":"","sources":["../../src/ui/renderer-utils.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,kDAAkD;AAClD,+EAA+E;
|
|
1
|
+
{"version":3,"file":"renderer-utils.js","sourceRoot":"","sources":["../../src/ui/renderer-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,+EAA+E;AAC/E,kDAAkD;AAClD,+EAA+E;AAE/E,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,SAAiB;IACxC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,2BAA2B;AACrE,CAAC;AAED,+EAA+E;AAC/E,UAAU;AACV,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,GAAG,EAAI,cAAc;IAC9B,QAAQ,EAAE,GAAG;IACb,IAAI,EAAE,GAAG,EAAO,sFAAsF;IACtG,OAAO,EAAE,GAAG,EAAI,yBAAyB;IACzC,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,GAAG;CACD,CAAC;AAEX;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,8BAA8B;IAC9B,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;IAC5B,oCAAoC;IACpC,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;IACpC,0BAA0B;IAC1B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC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G,CAAC,IAAY;QACd,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACrB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IAED,iDAAiD;IACjD,GAAG,CAAC,IAAY;QACd,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACrC,CAAC;IAED,mDAAmD;IACnD,KAAK;QACH,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Instance } from 'ink';
|
|
2
|
+
import type EventEmitter from 'node:events';
|
|
3
|
+
/**
|
|
4
|
+
* Mount the pool delete Ink UI.
|
|
5
|
+
*
|
|
6
|
+
* One `PoolDeleteApp` instance is shared across every tag being deleted —
|
|
7
|
+
* call `attachPoolDeleteBridge` once per manager (one per tag) against the
|
|
8
|
+
* bus returned here, then render once. The app self-exits once every row
|
|
9
|
+
* it has seen a `delete:start` for has also reported `delete:done`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function renderPoolDelete(uiBus: EventEmitter, devhubAlias: string): Instance;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render } from 'ink';
|
|
3
|
+
import { PoolDeleteApp } from './apps/PoolDeleteApp.js';
|
|
4
|
+
/**
|
|
5
|
+
* Mount the pool delete Ink UI.
|
|
6
|
+
*
|
|
7
|
+
* One `PoolDeleteApp` instance is shared across every tag being deleted —
|
|
8
|
+
* call `attachPoolDeleteBridge` once per manager (one per tag) against the
|
|
9
|
+
* bus returned here, then render once. The app self-exits once every row
|
|
10
|
+
* it has seen a `delete:start` for has also reported `delete:done`.
|
|
11
|
+
*/
|
|
12
|
+
export function renderPoolDelete(uiBus, devhubAlias) {
|
|
13
|
+
return render(_jsx(PoolDeleteApp, { bus: uiBus, devhubAlias: devhubAlias }));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=run-pool-delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-pool-delete.js","sourceRoot":"","sources":["../../src/ui/run-pool-delete.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,MAAM,EAAC,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAEtD;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAmB,EAAE,WAAmB;IACvE,OAAO,MAAM,CAAC,KAAC,aAAa,IAAC,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,GAAI,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Instance } from 'ink';
|
|
2
|
+
import type EventEmitter from 'node:events';
|
|
3
|
+
/**
|
|
4
|
+
* Mount the pool fill Ink UI.
|
|
5
|
+
*
|
|
6
|
+
* `uiBus` must be the same bus passed to `createRunLogger(uiBus)` so that
|
|
7
|
+
* pino log records get bridged into the ink app instead of writing raw to
|
|
8
|
+
* stderr (which races with Ink's redraws and garbles the terminal).
|
|
9
|
+
*
|
|
10
|
+
* One `PoolFillApp` instance is shared across every tag being filled —
|
|
11
|
+
* call `attachPoolFillBridge` once per manager (one per tag) against the
|
|
12
|
+
* bus returned here, then render once. The app self-exits once every pool
|
|
13
|
+
* it has seen a `pool:start` for has also reported `pool:done`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function renderPoolFill(uiBus: EventEmitter, devhubAlias: string): Instance;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render } from 'ink';
|
|
3
|
+
import { PoolFillApp } from './apps/PoolFillApp.js';
|
|
4
|
+
/**
|
|
5
|
+
* Mount the pool fill Ink UI.
|
|
6
|
+
*
|
|
7
|
+
* `uiBus` must be the same bus passed to `createRunLogger(uiBus)` so that
|
|
8
|
+
* pino log records get bridged into the ink app instead of writing raw to
|
|
9
|
+
* stderr (which races with Ink's redraws and garbles the terminal).
|
|
10
|
+
*
|
|
11
|
+
* One `PoolFillApp` instance is shared across every tag being filled —
|
|
12
|
+
* call `attachPoolFillBridge` once per manager (one per tag) against the
|
|
13
|
+
* bus returned here, then render once. The app self-exits once every pool
|
|
14
|
+
* it has seen a `pool:start` for has also reported `pool:done`.
|
|
15
|
+
*/
|
|
16
|
+
export function renderPoolFill(uiBus, devhubAlias) {
|
|
17
|
+
return render(_jsx(PoolFillApp, { bus: uiBus, devhubAlias: devhubAlias }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=run-pool-fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-pool-fill.js","sourceRoot":"","sources":["../../src/ui/run-pool-fill.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,MAAM,EAAC,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,cAAc,CAAC,KAAmB,EAAE,WAAmB;IACrE,OAAO,MAAM,CAAC,KAAC,WAAW,IAAC,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,GAAI,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render } from 'ink';
|
|
3
|
+
import { PoolListApp } from './apps/PoolListApp.js';
|
|
4
|
+
export function renderPoolList(orgs, devhubAlias, tag) {
|
|
5
|
+
return render(_jsx(PoolListApp, { orgs: orgs, devhubAlias: devhubAlias, tag: tag }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=run-pool-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-pool-list.js","sourceRoot":"","sources":["../../src/ui/run-pool-list.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,MAAM,EAAC,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,MAAM,UAAU,cAAc,CAAC,IAAe,EAAE,WAAmB,EAAE,GAAY;IAC/E,OAAO,MAAM,CAAC,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC,CAAC;AACjF,CAAC"}
|
package/dist/ui/run.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type EventEmitter from 'node:events';
|
|
2
|
+
import type { Instance } from 'ink';
|
|
3
|
+
import type { ConnectedOrg } from './apps/BuildApp.js';
|
|
4
|
+
export interface RenderAppOptions {
|
|
5
|
+
/** Path to the run log file, shown on failure in the final frame. */
|
|
6
|
+
logPath?: string;
|
|
7
|
+
/** Called with each keypress when step-mode is active. */
|
|
8
|
+
onAdvance?: (key: string) => void;
|
|
9
|
+
/** Connected org badge shown above the package tree, when known. */
|
|
10
|
+
org?: ConnectedOrg;
|
|
11
|
+
}
|
|
12
|
+
export declare function renderApp(bus: EventEmitter, opts?: RenderAppOptions): Instance;
|
package/dist/ui/run.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render } from 'ink';
|
|
3
|
+
import { App } from './apps/BuildApp.js';
|
|
4
|
+
export function renderApp(bus, opts = {}) {
|
|
5
|
+
return render(_jsx(App, { bus: bus, logPath: opts.logPath, onAdvance: opts.onAdvance, org: opts.org }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/ui/run.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,MAAM,EAAC,MAAM,KAAK,CAAC;AAI3B,OAAO,EAAC,GAAG,EAAC,MAAM,oBAAoB,CAAC;AAWvC,MAAM,UAAU,SAAS,CAAC,GAAiB,EAAE,OAAyB,EAAE;IACtE,OAAO,MAAM,CAAC,KAAC,GAAG,IAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,GAAI,CAAC,CAAC;AACpG,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from 'ink';
|
|
3
|
+
import { PackageRow } from "../components/PackageRow.js";
|
|
4
|
+
import { StatusIcon } from "../components/base/StatusIcon.js";
|
|
5
|
+
import { rawSym } from "../renderer-utils.js";
|
|
6
|
+
const STEP_ICON = {
|
|
7
|
+
failed: rawSym.fail,
|
|
8
|
+
pending: rawSym.pending,
|
|
9
|
+
running: rawSym.progress,
|
|
10
|
+
skipped: rawSym.skipped,
|
|
11
|
+
success: rawSym.success,
|
|
12
|
+
validating: rawSym.progress,
|
|
13
|
+
};
|
|
14
|
+
export function toRowProps(node, getColumns) {
|
|
15
|
+
const isFailed = node.status === 'failed';
|
|
16
|
+
const runningSteps = node.children.filter(c => c.status === 'running');
|
|
17
|
+
const runningStep = runningSteps[runningSteps.length - 1];
|
|
18
|
+
const hint = node.status === 'running' || node.status === 'validating'
|
|
19
|
+
? (runningStep?.label ?? node.detail)
|
|
20
|
+
: node.detail;
|
|
21
|
+
const hintNode = hint !== undefined ? _jsx(PackageRow.Secondary, { children: hint }) : undefined;
|
|
22
|
+
const steps = node.children.map((c, i) => ({
|
|
23
|
+
id: c.id,
|
|
24
|
+
icon: STEP_ICON[c.status],
|
|
25
|
+
primary: c.label,
|
|
26
|
+
secondary: c.detail,
|
|
27
|
+
isLast: i === node.children.length - 1,
|
|
28
|
+
}));
|
|
29
|
+
// Structured breakdown (e.g. one line per failing deploy component).
|
|
30
|
+
// Formatting `${label}: ${message}` into a plain string happens here —
|
|
31
|
+
// the one place that actually needs a string — not upstream.
|
|
32
|
+
const errorLines = isFailed
|
|
33
|
+
? node.errorDetails?.map(d => `${d.label}: ${d.message}`)
|
|
34
|
+
: undefined;
|
|
35
|
+
// Warnings are additive on top of a successful/skipped status — never
|
|
36
|
+
// shown for a failed package, whose own error is already the whole story.
|
|
37
|
+
const warningCount = !isFailed ? node.warnings?.length : undefined;
|
|
38
|
+
const warningNode = warningCount
|
|
39
|
+
? _jsx(Text, { color: "yellow", children: `${rawSym.warn} ${warningCount} warning${warningCount === 1 ? '' : 's'}` })
|
|
40
|
+
: undefined;
|
|
41
|
+
const warningLines = warningCount
|
|
42
|
+
? node.warnings?.map(w => `${w.label}: ${w.message}`)
|
|
43
|
+
: undefined;
|
|
44
|
+
return {
|
|
45
|
+
id: node.id,
|
|
46
|
+
icon: _jsx(StatusIcon, { status: node.status }),
|
|
47
|
+
primary: node.label,
|
|
48
|
+
// A failed package's own message is shown via `error`, which also
|
|
49
|
+
// suppresses step children in PackageRow — not `secondary`.
|
|
50
|
+
secondary: isFailed ? undefined : hintNode,
|
|
51
|
+
error: isFailed ? hintNode : undefined,
|
|
52
|
+
errorLines,
|
|
53
|
+
warning: warningNode,
|
|
54
|
+
warningLines,
|
|
55
|
+
columns: getColumns ? getColumns(node) : undefined,
|
|
56
|
+
trailing: _jsx(PackageRow.Trailing, { duration: node.duration, startedAt: node.startedAt }),
|
|
57
|
+
steps,
|
|
58
|
+
expanded: node.status === 'running' || node.status === 'failed' || node.status === 'validating',
|
|
59
|
+
indent: 2,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
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OAAO;QACL,EAAE,EAAS,IAAI,CAAC,EAAE;QAClB,IAAI,EAAO,KAAC,UAAU,IAAC,MAAM,EAAE,IAAI,CAAC,MAAM,GAAI;QAC9C,OAAO,EAAI,IAAI,CAAC,KAAK;QACrB,kEAAkE;QAClE,4DAA4D;QAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;QAC1C,KAAK,EAAM,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;QAC1C,UAAU;QACV,OAAO,EAAI,WAAW;QACtB,YAAY;QACZ,OAAO,EAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;QACpD,QAAQ,EAAG,KAAC,UAAU,CAAC,QAAQ,IAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,GAAI;QACtF,KAAK;QACL,QAAQ,EAAG,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,YAAY;QAChG,MAAM,EAAK,CAAC;KACb,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type PoolDeletePhase = 'done' | 'empty' | 'failed' | 'running' | 'warning';
|
|
2
|
+
export interface PoolDeleteRow {
|
|
3
|
+
/** Orgs deleted so far (ticks up in real time as they land, fast as it is). */
|
|
4
|
+
completed: number;
|
|
5
|
+
/** Final deleted count — set once the tag's `delete:done` arrives. */
|
|
6
|
+
deleted: number;
|
|
7
|
+
/** Final error messages — set once the tag's `delete:done` arrives. */
|
|
8
|
+
errors: string[];
|
|
9
|
+
phase: PoolDeletePhase;
|
|
10
|
+
startedAt: number;
|
|
11
|
+
tag: string;
|
|
12
|
+
/** Orgs matching the pool's criteria — unknown until the query resolves. */
|
|
13
|
+
total?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface PoolDeleteState {
|
|
16
|
+
devhubAlias: string;
|
|
17
|
+
phase: 'done' | 'idle' | 'running';
|
|
18
|
+
rows: PoolDeleteRow[];
|
|
19
|
+
}
|
|
20
|
+
export declare function initialState(devhubAlias: string): PoolDeleteState;
|
|
21
|
+
export type Action = {
|
|
22
|
+
count: number;
|
|
23
|
+
tag: string;
|
|
24
|
+
type: 'delete:count';
|
|
25
|
+
} | {
|
|
26
|
+
deleted: number;
|
|
27
|
+
errors: string[];
|
|
28
|
+
tag: string;
|
|
29
|
+
type: 'delete:done';
|
|
30
|
+
} | {
|
|
31
|
+
tag: string;
|
|
32
|
+
type: 'delete:org:done';
|
|
33
|
+
} | {
|
|
34
|
+
tag: string;
|
|
35
|
+
type: 'delete:start';
|
|
36
|
+
};
|
|
37
|
+
export declare function reducer(state: PoolDeleteState, action: Action): PoolDeleteState;
|