@pellux/goodvibes-tui 0.18.13 → 0.18.18

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/README.md +1 -1
  3. package/docs/foundation-artifacts/operator-contract.json +1 -1
  4. package/package.json +3 -2
  5. package/src/daemon/cli.ts +82 -6
  6. package/src/input/command-registry.ts +2 -0
  7. package/src/input/commands/control-room-runtime.ts +1 -1
  8. package/src/input/commands/health-runtime.ts +1 -1
  9. package/src/input/commands/local-setup-review.ts +1 -1
  10. package/src/input/commands/platform-access-runtime.ts +1 -1
  11. package/src/input/commands/qrcode-runtime.ts +20 -0
  12. package/src/input/commands/subscription-runtime.ts +1 -1
  13. package/src/input/commands.ts +2 -0
  14. package/src/input/handler-feed.ts +6 -0
  15. package/src/input/handler-modal-routes.ts +19 -2
  16. package/src/input/handler-modal-token-routes.ts +3 -0
  17. package/src/input/handler-picker-routes.ts +4 -2
  18. package/src/input/model-picker.ts +11 -0
  19. package/src/input/settings-modal.ts +31 -3
  20. package/src/panels/agent-logs-panel.ts +23 -24
  21. package/src/panels/base-panel.ts +6 -0
  22. package/src/panels/builtin/session.ts +66 -0
  23. package/src/panels/builtin/shared.ts +1 -1
  24. package/src/panels/provider-account-snapshot.ts +1 -1
  25. package/src/panels/provider-accounts-panel.ts +23 -27
  26. package/src/panels/qr-panel.ts +182 -0
  27. package/src/panels/scrollable-list-panel.ts +407 -0
  28. package/src/panels/services-panel.ts +1 -1
  29. package/src/panels/subscription-panel.ts +1 -1
  30. package/src/panels/types.ts +6 -0
  31. package/src/panels/worktree-panel.ts +20 -19
  32. package/src/renderer/buffer.ts +19 -0
  33. package/src/renderer/compositor.ts +19 -6
  34. package/src/renderer/panel-composite.ts +24 -3
  35. package/src/renderer/qr-renderer.ts +117 -0
  36. package/src/renderer/settings-modal-helpers.ts +122 -0
  37. package/src/renderer/settings-modal.ts +147 -111
  38. package/src/runtime/bootstrap-command-context.ts +1 -1
  39. package/src/runtime/bootstrap-command-parts.ts +31 -15
  40. package/src/runtime/bootstrap-core.ts +23 -1
  41. package/src/runtime/bootstrap.ts +6 -1
  42. package/src/runtime/diagnostics/panels/index.ts +5 -5
  43. package/src/runtime/services.ts +1 -1
  44. package/src/runtime/store/domains/domain-read-matrix.ts +0 -2
  45. package/src/runtime/ui-events.ts +1 -46
  46. package/src/runtime/ui-read-model-helpers.ts +1 -32
  47. package/src/runtime/ui-read-models-observability-maintenance.ts +1 -81
  48. package/src/runtime/ui-read-models-observability-options.ts +1 -5
  49. package/src/runtime/ui-read-models-observability-remote.ts +1 -73
  50. package/src/runtime/ui-read-models-observability-security.ts +1 -172
  51. package/src/runtime/ui-read-models-observability-system.ts +1 -217
  52. package/src/runtime/ui-read-models-observability.ts +1 -59
  53. package/src/runtime/ui-service-queries.ts +1 -114
  54. package/src/version.ts +1 -1
  55. package/src/config/service-registry.ts +0 -1
  56. package/src/config/subscription-providers.ts +0 -1
  57. package/src/runtime/diagnostics/actions.ts +0 -776
  58. package/src/runtime/diagnostics/index.ts +0 -99
  59. package/src/runtime/diagnostics/panels/agents.ts +0 -252
  60. package/src/runtime/diagnostics/panels/events.ts +0 -188
  61. package/src/runtime/diagnostics/panels/health.ts +0 -242
  62. package/src/runtime/diagnostics/panels/tasks.ts +0 -251
  63. package/src/runtime/diagnostics/panels/tool-calls.ts +0 -267
  64. package/src/runtime/diagnostics/provider.ts +0 -262
  65. package/src/runtime/store/domains/conversation.ts +0 -1
  66. package/src/runtime/store/domains/permissions.ts +0 -1
  67. package/src/runtime/store/helpers/reducers/conversation.ts +0 -1
  68. package/src/runtime/store/helpers/reducers/lifecycle.ts +0 -1
  69. package/src/runtime/store/helpers/reducers/shared.ts +0 -60
  70. package/src/runtime/store/helpers/reducers/sync.ts +0 -555
  71. package/src/runtime/store/helpers/reducers.ts +0 -30
@@ -1,59 +1 @@
1
- export type { UiObservabilityReadModelOptions } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-options';
2
- export type {
3
- UiRemoteSnapshot,
4
- UiRemoteReadModels,
5
- } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-remote';
6
- export type {
7
- UiIntelligenceSnapshot,
8
- UiMarketplaceSnapshot,
9
- UiCockpitSnapshot,
10
- UiHealthSnapshot,
11
- UiSystemObservabilityReadModels,
12
- } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-system';
13
- export type {
14
- UiSecuritySnapshot,
15
- UiMcpServerSnapshot,
16
- UiMcpSnapshot,
17
- UiLocalAuthSnapshot,
18
- UiSecurityObservabilityReadModels,
19
- } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-security';
20
- export type {
21
- UiSettingsSnapshot,
22
- UiContinuitySnapshot,
23
- UiWorktreeSnapshot,
24
- UiMaintenanceObservabilityReadModels,
25
- } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-maintenance';
26
-
27
- import type { RuntimeServices } from './services.ts';
28
- import { createRemoteReadModels, type UiRemoteReadModels } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-remote';
29
- import {
30
- createSystemObservabilityReadModels,
31
- type UiSystemObservabilityReadModels,
32
- } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-system';
33
- import {
34
- createSecurityObservabilityReadModels,
35
- type UiSecurityObservabilityReadModels,
36
- } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-security';
37
- import {
38
- createMaintenanceObservabilityReadModels,
39
- type UiMaintenanceObservabilityReadModels,
40
- } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-maintenance';
41
- import type { UiObservabilityReadModelOptions } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability-options';
42
-
43
- export interface UiObservabilityReadModels
44
- extends UiRemoteReadModels,
45
- UiSystemObservabilityReadModels,
46
- UiSecurityObservabilityReadModels,
47
- UiMaintenanceObservabilityReadModels {}
48
-
49
- export function createObservabilityReadModels(
50
- runtimeServices: RuntimeServices,
51
- options: UiObservabilityReadModelOptions = {},
52
- ): UiObservabilityReadModels {
53
- return {
54
- ...createRemoteReadModels(runtimeServices),
55
- ...createSystemObservabilityReadModels(runtimeServices, options),
56
- ...createSecurityObservabilityReadModels(runtimeServices, options),
57
- ...createMaintenanceObservabilityReadModels(runtimeServices),
58
- };
59
- }
1
+ export * from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-observability';
@@ -1,114 +1 @@
1
- import type {
2
- ServiceConfig,
3
- ServiceConnectionTestResult,
4
- ServiceInspection,
5
- } from '../config/service-registry.ts';
6
- import type {
7
- PendingSubscriptionLogin,
8
- ProviderSubscription,
9
- } from '@pellux/goodvibes-sdk/platform/config/subscriptions';
10
- import type { LocalAuthSnapshot } from '@pellux/goodvibes-sdk/platform/security/user-auth';
11
- import type { SessionInfo } from '@pellux/goodvibes-sdk/platform/sessions/manager';
12
- import type { Tool } from '@pellux/goodvibes-sdk/platform/types/tools';
13
- import type { ModelDefinition } from '@pellux/goodvibes-sdk/platform/providers/registry';
14
- import type {
15
- ProviderApi,
16
- ProviderRuntimeSnapshot,
17
- } from '@pellux/goodvibes-sdk/platform/providers/provider-api';
18
- import type { ExecutionPlan } from '@pellux/goodvibes-sdk/platform/core/execution-plan';
19
- import type { PlannerDecision, ExecutionStrategy } from '@pellux/goodvibes-sdk/platform/core/adaptive-planner';
20
-
21
- export interface EnvironmentVariableQuery {
22
- hasEnvironmentVariable(name: string): boolean;
23
- }
24
-
25
- export interface ServiceInspectionQuery {
26
- getAll(): Record<string, ServiceConfig>;
27
- inspect(name: string): Promise<ServiceInspection | null>;
28
- testConnection(name: string): Promise<ServiceConnectionTestResult>;
29
- }
30
-
31
- export interface SubscriptionAccessQuery {
32
- list(): ProviderSubscription[];
33
- listPending(): PendingSubscriptionLogin[];
34
- get(provider: string): ProviderSubscription | null;
35
- getPending(provider: string): PendingSubscriptionLogin | null;
36
- getAccessToken(provider: string): string | null;
37
- logout(provider: string): void;
38
- }
39
-
40
- export interface LocalAuthInspectionQuery {
41
- inspect(): LocalAuthSnapshot;
42
- }
43
-
44
- export interface SessionBrowserQuery {
45
- list(): SessionInfo[];
46
- search(query: string): Array<{ session: SessionInfo; matchCount: number; snippets: string[] }>;
47
- delete(name: string): void;
48
- }
49
-
50
- export interface SessionMemoryQuery {
51
- list(): readonly unknown[];
52
- }
53
-
54
- export interface ToolCatalogQuery {
55
- list(): Tool[];
56
- }
57
-
58
- export interface ProviderModelCatalogQuery {
59
- listModels(): ModelDefinition[];
60
- }
61
-
62
- export interface ProviderAccountInspectionQuery {
63
- readonly providerModels: ProviderModelCatalogQuery;
64
- readonly services: Pick<ServiceInspectionQuery, 'getAll' | 'inspect'>;
65
- readonly subscriptions: Pick<SubscriptionAccessQuery, 'list' | 'listPending' | 'get' | 'getPending'>;
66
- readonly environment: EnvironmentVariableQuery;
67
- }
68
-
69
- export interface ProviderRuntimeInspectionQuery {
70
- listProviderIds(): readonly string[];
71
- inspectAll(): Promise<readonly ProviderRuntimeSnapshot[]>;
72
- inspect(providerId: string): Promise<ProviderRuntimeSnapshot | null>;
73
- }
74
-
75
- export interface PlanDashboardQuery {
76
- getActive(): ExecutionPlan | null;
77
- }
78
-
79
- export interface OpsStrategyQuery {
80
- getLatest(): PlannerDecision | null;
81
- getMode(): ExecutionStrategy;
82
- getOverride(): ExecutionStrategy | null;
83
- getHistory(limit?: number): PlannerDecision[];
84
- }
85
-
86
- export function createEnvironmentVariableQuery(
87
- environment: Readonly<Record<string, string | undefined>>,
88
- ): EnvironmentVariableQuery {
89
- return {
90
- hasEnvironmentVariable(name: string): boolean {
91
- return Boolean(environment[name]);
92
- },
93
- };
94
- }
95
-
96
- export function createProviderRuntimeInspectionQuery(
97
- providers: Pick<ProviderApi, 'listProviderIds' | 'queryRuntimeMetadata'>,
98
- ): ProviderRuntimeInspectionQuery {
99
- return {
100
- listProviderIds(): readonly string[] {
101
- return providers.listProviderIds();
102
- },
103
-
104
- async inspectAll(): Promise<readonly ProviderRuntimeSnapshot[]> {
105
- const result = await providers.queryRuntimeMetadata({ scope: 'all' });
106
- return result.scope === 'all' ? result.snapshots : [];
107
- },
108
-
109
- async inspect(providerId: string): Promise<ProviderRuntimeSnapshot | null> {
110
- const result = await providers.queryRuntimeMetadata({ scope: 'provider', providerId });
111
- return result.scope === 'provider' ? result.snapshot : null;
112
- },
113
- };
114
- }
1
+ export * from '@pellux/goodvibes-sdk/platform/runtime/ui-service-queries';
package/src/version.ts CHANGED
@@ -6,7 +6,7 @@ import { join } from 'node:path';
6
6
  // The prebuild script updates the fallback value before compilation.
7
7
  // Uses import.meta.dir (Bun) to locate package.json relative to this file,
8
8
  // which is correct regardless of the process working directory.
9
- let _version = '0.18.13';
9
+ let _version = '0.18.18';
10
10
  try {
11
11
  const pkg = JSON.parse(readFileSync(join(import.meta.dir, '..', 'package.json'), 'utf-8'));
12
12
  _version = pkg.version ?? _version;
@@ -1 +0,0 @@
1
- export * from '@pellux/goodvibes-sdk/platform/config/service-registry';
@@ -1 +0,0 @@
1
- export * from '@pellux/goodvibes-sdk/platform/config/subscription-providers';