@pellux/goodvibes-tui 0.18.13 → 0.18.17

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 (65) hide show
  1. package/CHANGELOG.md +122 -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/builtin/session.ts +66 -0
  22. package/src/panels/builtin/shared.ts +1 -1
  23. package/src/panels/provider-account-snapshot.ts +1 -1
  24. package/src/panels/provider-accounts-panel.ts +23 -27
  25. package/src/panels/qr-panel.ts +182 -0
  26. package/src/panels/scrollable-list-panel.ts +407 -0
  27. package/src/panels/services-panel.ts +1 -1
  28. package/src/panels/subscription-panel.ts +1 -1
  29. package/src/panels/worktree-panel.ts +20 -19
  30. package/src/renderer/qr-renderer.ts +117 -0
  31. package/src/renderer/settings-modal-helpers.ts +122 -0
  32. package/src/renderer/settings-modal.ts +147 -111
  33. package/src/runtime/bootstrap-command-context.ts +1 -1
  34. package/src/runtime/bootstrap-command-parts.ts +31 -15
  35. package/src/runtime/bootstrap.ts +6 -1
  36. package/src/runtime/diagnostics/panels/index.ts +5 -5
  37. package/src/runtime/services.ts +1 -1
  38. package/src/runtime/store/domains/domain-read-matrix.ts +0 -2
  39. package/src/runtime/ui-events.ts +1 -46
  40. package/src/runtime/ui-read-model-helpers.ts +1 -32
  41. package/src/runtime/ui-read-models-observability-maintenance.ts +1 -81
  42. package/src/runtime/ui-read-models-observability-options.ts +1 -5
  43. package/src/runtime/ui-read-models-observability-remote.ts +1 -73
  44. package/src/runtime/ui-read-models-observability-security.ts +1 -172
  45. package/src/runtime/ui-read-models-observability-system.ts +1 -217
  46. package/src/runtime/ui-read-models-observability.ts +1 -59
  47. package/src/runtime/ui-service-queries.ts +1 -114
  48. package/src/version.ts +1 -1
  49. package/src/config/service-registry.ts +0 -1
  50. package/src/config/subscription-providers.ts +0 -1
  51. package/src/runtime/diagnostics/actions.ts +0 -776
  52. package/src/runtime/diagnostics/index.ts +0 -99
  53. package/src/runtime/diagnostics/panels/agents.ts +0 -252
  54. package/src/runtime/diagnostics/panels/events.ts +0 -188
  55. package/src/runtime/diagnostics/panels/health.ts +0 -242
  56. package/src/runtime/diagnostics/panels/tasks.ts +0 -251
  57. package/src/runtime/diagnostics/panels/tool-calls.ts +0 -267
  58. package/src/runtime/diagnostics/provider.ts +0 -262
  59. package/src/runtime/store/domains/conversation.ts +0 -1
  60. package/src/runtime/store/domains/permissions.ts +0 -1
  61. package/src/runtime/store/helpers/reducers/conversation.ts +0 -1
  62. package/src/runtime/store/helpers/reducers/lifecycle.ts +0 -1
  63. package/src/runtime/store/helpers/reducers/shared.ts +0 -60
  64. package/src/runtime/store/helpers/reducers/sync.ts +0 -555
  65. package/src/runtime/store/helpers/reducers.ts +0 -30
@@ -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.17';
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';