@sixb/cli 0.1.1 → 0.1.2
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/commands/dev.d.ts.map +1 -1
- package/dist/commands/worker-group.d.ts.map +1 -1
- package/dist/lib/health.d.ts +3 -3
- package/dist/lib/health.d.ts.map +1 -1
- package/dist/lib/loadSixb.d.ts +3 -48
- package/dist/lib/loadSixb.d.ts.map +1 -1
- package/dist/lib/production.d.ts +2 -2
- package/dist/lib/production.d.ts.map +1 -1
- package/dist/lib/runtime.d.ts +8 -8
- package/dist/lib/runtime.d.ts.map +1 -1
- package/dist/lib/shareable-providers.d.ts +3 -3
- package/dist/lib/shareable-providers.d.ts.map +1 -1
- package/dist/lib/storage-migration.d.ts +2 -2
- package/dist/lib/storage-migration.d.ts.map +1 -1
- package/dist/lib/worker-registry.d.ts +3 -3
- package/dist/lib/worker-registry.d.ts.map +1 -1
- package/dist/ui/index.d.ts +1 -13
- package/dist/ui/index.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/commands/api.tsx +4 -4
- package/src/commands/app.tsx +2 -2
- package/src/commands/atlas.tsx +2 -2
- package/src/commands/check.tsx +1 -1
- package/src/commands/dev.tsx +8 -9
- package/src/commands/orchestrator.tsx +2 -2
- package/src/commands/rules.tsx +2 -2
- package/src/commands/scheduler.tsx +2 -2
- package/src/commands/worker-group.tsx +4 -3
- package/src/commands/worker.tsx +2 -2
- package/src/lib/health.ts +8 -8
- package/src/lib/loadSixb.ts +70 -105
- package/src/lib/production.ts +2 -2
- package/src/lib/runtime.ts +44 -38
- package/src/lib/shareable-providers.ts +6 -6
- package/src/lib/storage-migration.ts +3 -3
- package/src/lib/worker-registry.ts +10 -15
- package/src/ui/index.tsx +0 -69
package/src/ui/index.tsx
CHANGED
|
@@ -493,9 +493,7 @@ export function DevView({
|
|
|
493
493
|
apiDocsUrl,
|
|
494
494
|
wsUrl,
|
|
495
495
|
uiUrl,
|
|
496
|
-
uiStatus,
|
|
497
496
|
appUrl,
|
|
498
|
-
mqttUrl,
|
|
499
497
|
warnings = [],
|
|
500
498
|
}: {
|
|
501
499
|
name: string
|
|
@@ -503,9 +501,7 @@ export function DevView({
|
|
|
503
501
|
apiDocsUrl: string
|
|
504
502
|
wsUrl: string
|
|
505
503
|
uiUrl: string | null
|
|
506
|
-
uiStatus: string | null
|
|
507
504
|
appUrl?: string | null
|
|
508
|
-
mqttUrl: string | null
|
|
509
505
|
warnings?: readonly string[]
|
|
510
506
|
}) {
|
|
511
507
|
const serverItems: KeyValueItem[] = [
|
|
@@ -515,8 +511,6 @@ export function DevView({
|
|
|
515
511
|
]
|
|
516
512
|
if (uiUrl) {
|
|
517
513
|
serverItems.push({ label: "Atlas UI", value: uiUrl })
|
|
518
|
-
} else if (uiStatus) {
|
|
519
|
-
serverItems.push({ label: "Atlas UI", value: uiStatus })
|
|
520
514
|
}
|
|
521
515
|
|
|
522
516
|
return (
|
|
@@ -531,12 +525,6 @@ export function DevView({
|
|
|
531
525
|
<ServicePanel name="Custom app" items={[{ label: "URL", value: appUrl }]} />
|
|
532
526
|
</>
|
|
533
527
|
) : null}
|
|
534
|
-
{mqttUrl ? (
|
|
535
|
-
<>
|
|
536
|
-
<Spacer />
|
|
537
|
-
<ServicePanel name="MQTT" items={[{ label: "Broker", value: mqttUrl }]} />
|
|
538
|
-
</>
|
|
539
|
-
) : null}
|
|
540
528
|
{warnings.length > 0 ? (
|
|
541
529
|
<>
|
|
542
530
|
<Spacer />
|
|
@@ -552,63 +540,6 @@ export function DevView({
|
|
|
552
540
|
)
|
|
553
541
|
}
|
|
554
542
|
|
|
555
|
-
export function StartView({
|
|
556
|
-
name,
|
|
557
|
-
apiUrl,
|
|
558
|
-
apiDocsUrl,
|
|
559
|
-
wsUrl,
|
|
560
|
-
uiUrl,
|
|
561
|
-
uiStatus,
|
|
562
|
-
appUrl,
|
|
563
|
-
warnings = [],
|
|
564
|
-
}: {
|
|
565
|
-
name: string
|
|
566
|
-
apiUrl: string
|
|
567
|
-
apiDocsUrl: string
|
|
568
|
-
wsUrl: string
|
|
569
|
-
uiUrl: string | null
|
|
570
|
-
uiStatus?: string | null
|
|
571
|
-
appUrl?: string | null
|
|
572
|
-
warnings?: readonly string[]
|
|
573
|
-
}) {
|
|
574
|
-
const serverItems: KeyValueItem[] = [
|
|
575
|
-
{ label: "API", value: apiUrl },
|
|
576
|
-
{ label: "API docs", value: apiDocsUrl },
|
|
577
|
-
{ label: "Events", value: wsUrl },
|
|
578
|
-
]
|
|
579
|
-
if (uiUrl) {
|
|
580
|
-
serverItems.push({ label: "Atlas UI", value: uiUrl })
|
|
581
|
-
} else if (uiStatus) {
|
|
582
|
-
serverItems.push({ label: "Atlas UI", value: uiStatus })
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
return (
|
|
586
|
-
<Box flexDirection="column">
|
|
587
|
-
<Text color="green" bold>
|
|
588
|
-
Sixb started
|
|
589
|
-
</Text>
|
|
590
|
-
<Text dimColor>{name}</Text>
|
|
591
|
-
<Spacer />
|
|
592
|
-
<ServicePanel name="Server" items={serverItems} />
|
|
593
|
-
{appUrl ? (
|
|
594
|
-
<>
|
|
595
|
-
<Spacer />
|
|
596
|
-
<ServicePanel name="Custom app" items={[{ label: "URL", value: appUrl }]} />
|
|
597
|
-
</>
|
|
598
|
-
) : null}
|
|
599
|
-
{warnings.length > 0 ? (
|
|
600
|
-
<>
|
|
601
|
-
<Spacer />
|
|
602
|
-
<SectionTitle>Warnings</SectionTitle>
|
|
603
|
-
<BulletList items={warnings} />
|
|
604
|
-
</>
|
|
605
|
-
) : null}
|
|
606
|
-
<Spacer />
|
|
607
|
-
<Text dimColor>Press Ctrl+C to stop</Text>
|
|
608
|
-
</Box>
|
|
609
|
-
)
|
|
610
|
-
}
|
|
611
|
-
|
|
612
543
|
export function WorkerView({
|
|
613
544
|
name,
|
|
614
545
|
workerId,
|