@vee-stack/delta-cli 2.0.8 → 2.0.10

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 (183) hide show
  1. package/dist/adapters/analysis.adapter.d.ts +29 -0
  2. package/dist/analyzer/commands/analyze.d.ts +14 -0
  3. package/dist/analyzer/commands/config.d.ts +12 -0
  4. package/dist/analyzer/commands/report.d.ts +11 -0
  5. package/dist/analyzer/generators/report.generator.d.ts +43 -0
  6. package/dist/analyzer/index.d.ts +8 -0
  7. package/dist/analyzer/scanners/project.scanner.d.ts +29 -0
  8. package/dist/analyzer/validators/contracts.validator.d.ts +27 -0
  9. package/dist/analyzer/validators/maintainability.validator.d.ts +27 -0
  10. package/dist/analyzer/validators/observability.validator.d.ts +27 -0
  11. package/dist/analyzer/validators/performance.validator.d.ts +27 -0
  12. package/dist/analyzer/validators/security.validator.d.ts +27 -0
  13. package/dist/analyzer/validators/soc.validator.d.ts +27 -0
  14. package/dist/auth/device-auth.d.ts +18 -0
  15. package/dist/auth/secure-auth.d.ts +35 -0
  16. package/dist/bundle.mjs +422 -0
  17. package/dist/commands/analyze.d.ts +12 -0
  18. package/dist/commands/auth-new.d.ts +6 -0
  19. package/dist/commands/auth.d.ts +17 -0
  20. package/dist/commands/config.d.ts +8 -0
  21. package/dist/commands/deploy.d.ts +5 -0
  22. package/dist/commands/init.d.ts +7 -0
  23. package/dist/commands/logout.d.ts +2 -0
  24. package/dist/commands/plugins.d.ts +7 -0
  25. package/dist/commands/status.d.ts +5 -0
  26. package/dist/commands/sync.d.ts +5 -0
  27. package/dist/commands/whoami.d.ts +4 -0
  28. package/dist/components/Dashboard.d.ts +8 -0
  29. package/dist/components/DeltaApp.d.ts +13 -0
  30. package/dist/components/UnifiedManager.d.ts +10 -0
  31. package/dist/core/audit.d.ts +60 -0
  32. package/dist/core/completion.d.ts +79 -0
  33. package/dist/core/contracts.d.ts +127 -0
  34. package/dist/core/engine.d.ts +26 -0
  35. package/dist/core/exit-codes.d.ts +19 -0
  36. package/dist/core/hooks.d.ts +50 -0
  37. package/dist/{apps/cli/src/core/index.js → core/index.d.ts} +1 -1
  38. package/dist/core/policy.d.ts +24 -0
  39. package/dist/core/profiles.d.ts +45 -0
  40. package/dist/core/wizard.d.ts +28 -0
  41. package/dist/interactive/index.d.ts +5 -0
  42. package/dist/plugins/GitStatusPlugin.d.ts +25 -0
  43. package/dist/providers/ai-provider.d.ts +21 -0
  44. package/dist/providers/local-provider.d.ts +21 -0
  45. package/dist/providers/remote-provider.d.ts +15 -0
  46. package/dist/telemetry/wrapper.d.ts +18 -0
  47. package/dist/types/api.d.ts +46 -0
  48. package/dist/ui.d.ts +52 -0
  49. package/dist/welcome.d.ts +8 -0
  50. package/package.json +8 -8
  51. package/dist/analyzer/commands/analyze.js +0 -260
  52. package/dist/analyzer/commands/config.js +0 -83
  53. package/dist/analyzer/commands/report.js +0 -38
  54. package/dist/analyzer/generators/report.generator.js +0 -123
  55. package/dist/analyzer/index.js +0 -44
  56. package/dist/analyzer/scanners/project.scanner.js +0 -92
  57. package/dist/analyzer/validators/contracts.validator.js +0 -42
  58. package/dist/analyzer/validators/maintainability.validator.js +0 -40
  59. package/dist/analyzer/validators/observability.validator.js +0 -39
  60. package/dist/analyzer/validators/performance.validator.js +0 -42
  61. package/dist/analyzer/validators/security.validator.js +0 -66
  62. package/dist/analyzer/validators/soc.validator.js +0 -75
  63. package/dist/apps/cli/src/analyzer/commands/analyze.js +0 -256
  64. package/dist/apps/cli/src/analyzer/commands/config.js +0 -83
  65. package/dist/apps/cli/src/analyzer/commands/report.js +0 -38
  66. package/dist/apps/cli/src/analyzer/generators/report.generator.js +0 -123
  67. package/dist/apps/cli/src/analyzer/index.js +0 -44
  68. package/dist/apps/cli/src/analyzer/scanners/project.scanner.js +0 -92
  69. package/dist/apps/cli/src/analyzer/validators/contracts.validator.js +0 -42
  70. package/dist/apps/cli/src/analyzer/validators/maintainability.validator.js +0 -40
  71. package/dist/apps/cli/src/analyzer/validators/observability.validator.js +0 -39
  72. package/dist/apps/cli/src/analyzer/validators/performance.validator.js +0 -42
  73. package/dist/apps/cli/src/analyzer/validators/security.validator.js +0 -66
  74. package/dist/apps/cli/src/analyzer/validators/soc.validator.js +0 -75
  75. package/dist/apps/cli/src/auth/secure-auth.js +0 -312
  76. package/dist/apps/cli/src/commands/analyze.js +0 -286
  77. package/dist/apps/cli/src/commands/auth-new.js +0 -37
  78. package/dist/apps/cli/src/commands/auth.js +0 -122
  79. package/dist/apps/cli/src/commands/config.js +0 -49
  80. package/dist/apps/cli/src/commands/deploy.js +0 -6
  81. package/dist/apps/cli/src/commands/init.js +0 -47
  82. package/dist/apps/cli/src/commands/logout.js +0 -23
  83. package/dist/apps/cli/src/commands/plugins.js +0 -21
  84. package/dist/apps/cli/src/commands/status.js +0 -80
  85. package/dist/apps/cli/src/commands/sync.js +0 -6
  86. package/dist/apps/cli/src/commands/whoami.js +0 -115
  87. package/dist/apps/cli/src/components/Dashboard.js +0 -168
  88. package/dist/apps/cli/src/components/DeltaApp.js +0 -56
  89. package/dist/apps/cli/src/components/UnifiedManager.js +0 -324
  90. package/dist/apps/cli/src/core/audit.js +0 -184
  91. package/dist/apps/cli/src/core/completion.js +0 -294
  92. package/dist/apps/cli/src/core/contracts.js +0 -6
  93. package/dist/apps/cli/src/core/engine.js +0 -124
  94. package/dist/apps/cli/src/core/exit-codes.js +0 -71
  95. package/dist/apps/cli/src/core/hooks.js +0 -181
  96. package/dist/apps/cli/src/core/policy.js +0 -115
  97. package/dist/apps/cli/src/core/profiles.js +0 -161
  98. package/dist/apps/cli/src/core/wizard.js +0 -203
  99. package/dist/apps/cli/src/index.js +0 -636
  100. package/dist/apps/cli/src/interactive/index.js +0 -11
  101. package/dist/apps/cli/src/plugins/GitStatusPlugin.js +0 -99
  102. package/dist/apps/cli/src/providers/ai-provider.js +0 -74
  103. package/dist/apps/cli/src/providers/local-provider.js +0 -302
  104. package/dist/apps/cli/src/providers/remote-provider.js +0 -100
  105. package/dist/apps/cli/src/types/api.js +0 -3
  106. package/dist/apps/cli/src/ui.js +0 -219
  107. package/dist/apps/cli/src/welcome.js +0 -81
  108. package/dist/auth/secure-auth.js +0 -372
  109. package/dist/bundle.js +0 -504
  110. package/dist/commands/analyze.js +0 -390
  111. package/dist/commands/auth-new.js +0 -37
  112. package/dist/commands/auth.js +0 -134
  113. package/dist/commands/config.js +0 -51
  114. package/dist/commands/deploy.js +0 -6
  115. package/dist/commands/init.js +0 -47
  116. package/dist/commands/logout.js +0 -31
  117. package/dist/commands/plugins.js +0 -21
  118. package/dist/commands/status.js +0 -82
  119. package/dist/commands/sync.js +0 -6
  120. package/dist/commands/whoami.js +0 -72
  121. package/dist/components/Dashboard.js +0 -169
  122. package/dist/components/DeltaApp.js +0 -57
  123. package/dist/components/UnifiedManager.js +0 -344
  124. package/dist/core/audit.js +0 -184
  125. package/dist/core/completion.js +0 -294
  126. package/dist/core/contracts.js +0 -6
  127. package/dist/core/engine.js +0 -124
  128. package/dist/core/exit-codes.js +0 -71
  129. package/dist/core/hooks.js +0 -181
  130. package/dist/core/index.js +0 -7
  131. package/dist/core/policy.js +0 -115
  132. package/dist/core/profiles.js +0 -161
  133. package/dist/core/wizard.js +0 -203
  134. package/dist/index.js +0 -387
  135. package/dist/interactive/index.js +0 -11
  136. package/dist/packages/domain/src/constitution/contracts/index.js +0 -43
  137. package/dist/packages/domain/src/constitution/contracts/ts.rules.js +0 -268
  138. package/dist/packages/domain/src/constitution/index.js +0 -139
  139. package/dist/packages/domain/src/constitution/maintainability/index.js +0 -43
  140. package/dist/packages/domain/src/constitution/maintainability/ts.rules.js +0 -344
  141. package/dist/packages/domain/src/constitution/observability/index.js +0 -43
  142. package/dist/packages/domain/src/constitution/observability/ts.rules.js +0 -307
  143. package/dist/packages/domain/src/constitution/performance/index.js +0 -43
  144. package/dist/packages/domain/src/constitution/performance/ts.rules.js +0 -325
  145. package/dist/packages/domain/src/constitution/security/index.js +0 -50
  146. package/dist/packages/domain/src/constitution/security/ts.rules.js +0 -267
  147. package/dist/packages/domain/src/constitution/soc/index.js +0 -43
  148. package/dist/packages/domain/src/constitution/soc/ts.rules.js +0 -360
  149. package/dist/packages/domain/src/contracts/analysis.contract.js +0 -18
  150. package/dist/packages/domain/src/contracts/index.js +0 -7
  151. package/dist/packages/domain/src/contracts/projects.contract.js +0 -18
  152. package/dist/packages/domain/src/control/registry/rules.registry.js +0 -29
  153. package/dist/packages/domain/src/control/schemas/policies.js +0 -6
  154. package/dist/packages/domain/src/core/analysis/discovery.js +0 -163
  155. package/dist/packages/domain/src/core/analysis/engine.contract.js +0 -298
  156. package/dist/packages/domain/src/core/analysis/engine.js +0 -77
  157. package/dist/packages/domain/src/core/analysis/index.js +0 -14
  158. package/dist/packages/domain/src/core/analysis/orchestrator.js +0 -242
  159. package/dist/packages/domain/src/core/comparison/engine.js +0 -29
  160. package/dist/packages/domain/src/core/comparison/index.js +0 -5
  161. package/dist/packages/domain/src/core/documentation/index.js +0 -5
  162. package/dist/packages/domain/src/core/documentation/pipeline.js +0 -41
  163. package/dist/packages/domain/src/core/fs/adapter.js +0 -111
  164. package/dist/packages/domain/src/core/fs/index.js +0 -5
  165. package/dist/packages/domain/src/core/parser/unified-parser.js +0 -166
  166. package/dist/packages/domain/src/index.js +0 -33
  167. package/dist/packages/domain/src/plugin/registry.js +0 -195
  168. package/dist/packages/domain/src/plugin/types.js +0 -6
  169. package/dist/packages/domain/src/ports/analysis.engine.js +0 -7
  170. package/dist/packages/domain/src/ports/audit.logger.js +0 -7
  171. package/dist/packages/domain/src/ports/project.repository.js +0 -7
  172. package/dist/packages/domain/src/rules/index.js +0 -134
  173. package/dist/packages/domain/src/types/analysis.js +0 -6
  174. package/dist/packages/domain/src/types/errors.js +0 -53
  175. package/dist/packages/domain/src/types/fs.js +0 -6
  176. package/dist/packages/domain/src/types/index.js +0 -7
  177. package/dist/plugins/GitStatusPlugin.js +0 -93
  178. package/dist/providers/ai-provider.js +0 -74
  179. package/dist/providers/local-provider.js +0 -304
  180. package/dist/providers/remote-provider.js +0 -100
  181. package/dist/types/api.js +0 -3
  182. package/dist/ui.js +0 -219
  183. package/dist/welcome.js +0 -81
@@ -0,0 +1,12 @@
1
+ interface AnalyzeOptions {
2
+ format: string;
3
+ output: string;
4
+ include?: string;
5
+ exclude?: string;
6
+ maxSize: string;
7
+ upload: boolean;
8
+ projectName?: string;
9
+ }
10
+ export declare function analyzeCommand(projectPath: string, options: AnalyzeOptions): Promise<void>;
11
+ export {};
12
+ //# sourceMappingURL=analyze.d.ts.map
@@ -0,0 +1,6 @@
1
+ export declare function loginCommand(options: {
2
+ method?: string;
3
+ token?: string;
4
+ }): Promise<void>;
5
+ export declare function logoutCommand(): Promise<void>;
6
+ //# sourceMappingURL=auth-new.d.ts.map
@@ -0,0 +1,17 @@
1
+ interface LoginOptions {
2
+ token?: string;
3
+ }
4
+ interface AuthConfig {
5
+ apiUrl: string;
6
+ lastUsedAt?: string;
7
+ }
8
+ declare const CONFIG_FILE: string;
9
+ declare function loadConfig(): Promise<Partial<AuthConfig>>;
10
+ declare function saveConfig(config: AuthConfig): Promise<void>;
11
+ export declare const authCommands: {
12
+ login(options: LoginOptions): Promise<void>;
13
+ };
14
+ export declare const loginCommand: (options: LoginOptions) => Promise<void>;
15
+ export { loadConfig, saveConfig, CONFIG_FILE };
16
+ export type { AuthConfig };
17
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1,8 @@
1
+ interface ConfigOptions {
2
+ get?: string;
3
+ set?: string;
4
+ list?: boolean;
5
+ }
6
+ export declare function configCommand(options: ConfigOptions): Promise<void>;
7
+ export {};
8
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare function deployCommand(_options: {
2
+ build?: boolean;
3
+ domain?: string;
4
+ }): Promise<void>;
5
+ //# sourceMappingURL=deploy.d.ts.map
@@ -0,0 +1,7 @@
1
+ interface InitOptions {
2
+ template?: string;
3
+ force?: boolean;
4
+ }
5
+ export declare function initCommand(projectPath: string, options: InitOptions): Promise<void>;
6
+ export {};
7
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare function logoutCommand(): Promise<void>;
2
+ //# sourceMappingURL=logout.d.ts.map
@@ -0,0 +1,7 @@
1
+ export declare function pluginsCommand(options: {
2
+ list?: boolean;
3
+ install?: string;
4
+ uninstall?: string;
5
+ search?: string;
6
+ }): Promise<void>;
7
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare function statusCommand(projectPath: string, _options?: {
2
+ diagnostics?: boolean;
3
+ fix?: boolean;
4
+ }): Promise<void>;
5
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare function syncCommand(_options: {
2
+ watch?: boolean;
3
+ force?: boolean;
4
+ }): Promise<void>;
5
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1,4 @@
1
+ export declare function whoamiCommand(_options?: {
2
+ format?: string;
3
+ }): Promise<void>;
4
+ //# sourceMappingURL=whoami.d.ts.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Enhanced Dashboard Component
3
+ * Visual dashboard with project status, analysis reports, and charts
4
+ */
5
+ import React from 'react';
6
+ export declare const EnhancedDashboard: React.FC;
7
+ export default EnhancedDashboard;
8
+ //# sourceMappingURL=Dashboard.d.ts.map
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export declare const DeltaLogo: React.FC;
3
+ export declare const DeltaApp: React.FC;
4
+ export declare const LoadingScreen: React.FC<{
5
+ message?: string;
6
+ }>;
7
+ export declare const ErrorDisplay: React.FC<{
8
+ error: Error;
9
+ }>;
10
+ export declare const SuccessMessage: React.FC<{
11
+ message: string;
12
+ }>;
13
+ //# sourceMappingURL=DeltaApp.d.ts.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Delta Unified Manager - Professional TUI Dashboard
3
+ * World-class integrated terminal interface
4
+ * Design matching GUI screenshot with sidebar, cards, and logs
5
+ * Features: Keyboard Shortcuts, Log Filtering, Persistent State, Plugin System
6
+ */
7
+ import React from 'react';
8
+ export declare const UnifiedManager: React.FC;
9
+ export default UnifiedManager;
10
+ //# sourceMappingURL=UnifiedManager.d.ts.map
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Audit Logger for Delta CLI
3
+ * Tracks all commands, results, and performance metrics
4
+ * Enterprise-grade logging for compliance and debugging
5
+ */
6
+ import type { TaskResponse } from './contracts.js';
7
+ export interface AuditEntry {
8
+ id: string;
9
+ timestamp: string;
10
+ command: string;
11
+ args: string[];
12
+ options: Record<string, unknown>;
13
+ exitCode: number;
14
+ success: boolean;
15
+ duration: number;
16
+ provider: string;
17
+ user?: string;
18
+ project?: string;
19
+ error?: {
20
+ code: string;
21
+ message: string;
22
+ };
23
+ metadata?: {
24
+ nodeVersion: string;
25
+ platform: string;
26
+ cwd: string;
27
+ ci: boolean;
28
+ };
29
+ }
30
+ export interface AuditConfig {
31
+ enabled: boolean;
32
+ logLevel: 'minimal' | 'standard' | 'verbose';
33
+ retentionDays: number;
34
+ maxEntries: number;
35
+ includeMetadata: boolean;
36
+ remoteEndpoint?: string;
37
+ }
38
+ export declare class AuditLogger {
39
+ private config;
40
+ private initialized;
41
+ constructor();
42
+ initialize(): Promise<void>;
43
+ logCommand(command: string, args: string[], options: Record<string, unknown>, response: TaskResponse, startTime: number): Promise<void>;
44
+ getRecentEntries(limit?: number): Promise<AuditEntry[]>;
45
+ getStats(): Promise<{
46
+ totalCommands: number;
47
+ successRate: number;
48
+ avgDuration: number;
49
+ mostUsed: string[];
50
+ lastUsed: string;
51
+ }>;
52
+ private appendEntry;
53
+ private sendRemote;
54
+ private sanitizeOptions;
55
+ private generateId;
56
+ cleanup(): Promise<void>;
57
+ }
58
+ export declare function getAuditLogger(): AuditLogger;
59
+ export declare function resetAuditLogger(): void;
60
+ //# sourceMappingURL=audit.d.ts.map
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Tab Autocomplete System for Delta CLI
3
+ * Provides shell completion for commands, flags, and options
4
+ */
5
+ export declare const completionDatabase: {
6
+ commands: {
7
+ name: string;
8
+ alias: string[];
9
+ desc: string;
10
+ }[];
11
+ globalFlags: ({
12
+ name: string;
13
+ desc: string;
14
+ values?: undefined;
15
+ alias?: undefined;
16
+ } | {
17
+ name: string;
18
+ values: string[];
19
+ desc: string;
20
+ alias?: undefined;
21
+ } | {
22
+ name: string;
23
+ alias: string;
24
+ desc: string;
25
+ values?: undefined;
26
+ })[];
27
+ commandFlags: {
28
+ analyze: ({
29
+ name: string;
30
+ values: string[];
31
+ desc: string;
32
+ } | {
33
+ name: string;
34
+ desc: string;
35
+ values?: undefined;
36
+ })[];
37
+ init: ({
38
+ name: string;
39
+ values: string[];
40
+ desc: string;
41
+ alias?: undefined;
42
+ } | {
43
+ name: string;
44
+ alias: string;
45
+ desc: string;
46
+ values?: undefined;
47
+ } | {
48
+ name: string;
49
+ desc: string;
50
+ values?: undefined;
51
+ alias?: undefined;
52
+ })[];
53
+ status: {
54
+ name: string;
55
+ desc: string;
56
+ }[];
57
+ login: ({
58
+ name: string;
59
+ values: string[];
60
+ desc: string;
61
+ } | {
62
+ name: string;
63
+ desc: string;
64
+ values?: undefined;
65
+ })[];
66
+ config: ({
67
+ name: string;
68
+ desc: string;
69
+ alias?: undefined;
70
+ } | {
71
+ name: string;
72
+ alias: string;
73
+ desc: string;
74
+ })[];
75
+ };
76
+ };
77
+ export declare function generateCompletionScript(shell: 'bash' | 'zsh' | 'fish' | 'powershell'): string;
78
+ export declare function installCompletion(shell?: string): Promise<void>;
79
+ //# sourceMappingURL=completion.d.ts.map
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Core Contracts - Interface definitions for Delta CLI
3
+ * AI-Ready Architecture: Separate CLI from Business Logic
4
+ */
5
+ import { ExitCode } from './exit-codes.js';
6
+ export type TaskType = 'analyze' | 'init' | 'status' | 'sync' | 'deploy' | 'config' | 'auth' | 'plugin';
7
+ export interface ProviderCapabilities {
8
+ commands: TaskType[];
9
+ features: {
10
+ json: boolean;
11
+ streaming: boolean;
12
+ caching: boolean;
13
+ ai: boolean;
14
+ };
15
+ constraints?: {
16
+ maxFileSize?: number;
17
+ maxFiles?: number;
18
+ requiresAuth?: boolean;
19
+ };
20
+ }
21
+ export interface TaskRequest {
22
+ type: TaskType;
23
+ command: string;
24
+ payload: Record<string, unknown>;
25
+ options: {
26
+ json?: boolean;
27
+ nonInteractive?: boolean;
28
+ provider?: 'local' | 'remote' | 'ai';
29
+ [key: string]: unknown;
30
+ };
31
+ }
32
+ export interface TaskResponse {
33
+ success: boolean;
34
+ exitCode: ExitCode;
35
+ meta: {
36
+ command: string;
37
+ duration: number;
38
+ timestamp: string;
39
+ version: string;
40
+ coldStart?: number;
41
+ provider: string;
42
+ };
43
+ data?: Record<string, unknown>;
44
+ error?: {
45
+ code: string;
46
+ message: string;
47
+ details?: Record<string, unknown>;
48
+ };
49
+ }
50
+ export interface ExecutionProvider {
51
+ readonly name: string;
52
+ readonly version: string;
53
+ readonly capabilities: ProviderCapabilities;
54
+ isAvailable(): Promise<boolean>;
55
+ execute(request: TaskRequest): Promise<TaskResponse>;
56
+ }
57
+ export interface AIProvider extends ExecutionProvider {
58
+ generate?(input: string, context?: Record<string, unknown>): Promise<string>;
59
+ analyzeCode?(code: string, language: string): Promise<{
60
+ insights: string[];
61
+ suggestions: string[];
62
+ score: number;
63
+ }>;
64
+ }
65
+ export interface EngineConfig {
66
+ defaultProvider: 'local' | 'remote';
67
+ providers: {
68
+ local: LocalProviderConfig;
69
+ remote?: RemoteProviderConfig;
70
+ ai?: AIProviderConfig;
71
+ };
72
+ features: {
73
+ cache: boolean;
74
+ offlineMode: boolean;
75
+ autoUpdate: boolean;
76
+ };
77
+ }
78
+ export interface LocalProviderConfig {
79
+ enabled: boolean;
80
+ maxFileSize: number;
81
+ excludePatterns: string[];
82
+ cacheDir?: string;
83
+ }
84
+ export interface RemoteProviderConfig {
85
+ enabled: boolean;
86
+ apiUrl: string;
87
+ timeout: number;
88
+ retryAttempts: number;
89
+ }
90
+ export interface AIProviderConfig {
91
+ enabled: boolean;
92
+ provider: 'openai' | 'anthropic' | 'local';
93
+ model?: string;
94
+ apiKey?: string;
95
+ }
96
+ export type EngineEvent = {
97
+ type: 'task:start';
98
+ request: TaskRequest;
99
+ } | {
100
+ type: 'task:progress';
101
+ request: TaskRequest;
102
+ progress: number;
103
+ } | {
104
+ type: 'task:complete';
105
+ request: TaskRequest;
106
+ response: TaskResponse;
107
+ } | {
108
+ type: 'task:error';
109
+ request: TaskRequest;
110
+ error: Error;
111
+ };
112
+ export type EngineEventListener = (event: EngineEvent) => void;
113
+ export interface ExecutionPolicy {
114
+ validate(request: TaskRequest): {
115
+ valid: boolean;
116
+ reason?: string;
117
+ exitCode?: ExitCode;
118
+ };
119
+ selectProvider(request: TaskRequest, providers: Map<string, ExecutionProvider>): ExecutionProvider | null;
120
+ transform?(request: TaskRequest): TaskRequest;
121
+ checkCapabilities?(request: TaskRequest): {
122
+ allowed: boolean;
123
+ reason?: string;
124
+ exitCode?: ExitCode;
125
+ };
126
+ }
127
+ //# sourceMappingURL=contracts.d.ts.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Delta Engine - Core Execution Engine
3
+ * Mediator between CLI and Execution Providers
4
+ */
5
+ import { TaskRequest, TaskResponse, ExecutionProvider, EngineConfig, EngineEvent, EngineEventListener, ExecutionPolicy } from './contracts.js';
6
+ export declare class DeltaEngine {
7
+ private providers;
8
+ private config;
9
+ private policy;
10
+ private listeners;
11
+ private version;
12
+ constructor(config: EngineConfig, policy: ExecutionPolicy);
13
+ registerProvider(provider: ExecutionProvider): void;
14
+ getProvider(name: string): ExecutionProvider | undefined;
15
+ execute(request: TaskRequest): Promise<TaskResponse>;
16
+ on(_event: EngineEvent['type'], listener: EngineEventListener): void;
17
+ private emit;
18
+ getStatus(): {
19
+ version: string;
20
+ providers: string[];
21
+ defaultProvider: string;
22
+ };
23
+ }
24
+ export declare function createEngine(config: EngineConfig, policy: ExecutionPolicy): DeltaEngine;
25
+ export declare function getEngine(): DeltaEngine | null;
26
+ //# sourceMappingURL=engine.d.ts.map
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Exit Code Contract - Enterprise-grade error classification
3
+ * Critical for CI/CD integration and automation
4
+ */
5
+ export declare enum ExitCode {
6
+ SUCCESS = 0,// Everything worked correctly
7
+ VALIDATION_ERROR = 1,// Invalid input, missing arguments, bad config
8
+ NETWORK_ERROR = 2,// Connection issues, API unreachable
9
+ AUTH_ERROR = 3,// Authentication/authorization failure
10
+ POLICY_BLOCKED = 4,// Blocked by policy (quota, permissions, etc.)
11
+ EXECUTION_ERROR = 5,// Runtime error during execution
12
+ UNKNOWN_ERROR = 6
13
+ }
14
+ export declare function getExitCode(error: Error | string | {
15
+ code?: string;
16
+ message?: string;
17
+ }): ExitCode;
18
+ export declare const ExitCodeDescription: Record<ExitCode, string>;
19
+ //# sourceMappingURL=exit-codes.d.ts.map
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Hooks & Notifications System
3
+ * Post-command hooks for Slack, Teams, Webhooks
4
+ * Enterprise CI/CD integration
5
+ */
6
+ import type { TaskResponse } from './contracts.js';
7
+ export type HookType = 'post-success' | 'post-failure' | 'post-always';
8
+ export interface Hook {
9
+ id: string;
10
+ name: string;
11
+ type: HookType;
12
+ command?: string;
13
+ url: string;
14
+ method: 'POST' | 'GET';
15
+ headers?: Record<string, string>;
16
+ payload?: string;
17
+ enabled: boolean;
18
+ }
19
+ export interface NotificationPayload {
20
+ command: string;
21
+ success: boolean;
22
+ exitCode: number;
23
+ duration: number;
24
+ timestamp: string;
25
+ project?: string;
26
+ user?: string;
27
+ error?: string;
28
+ summary?: string;
29
+ }
30
+ export declare class HookManager {
31
+ private hooks;
32
+ private loaded;
33
+ load(): Promise<void>;
34
+ save(): Promise<void>;
35
+ addHook(hook: Omit<Hook, 'id'>): Promise<Hook>;
36
+ removeHook(id: string): Promise<void>;
37
+ listHooks(): Promise<Hook[]>;
38
+ toggleHook(id: string): Promise<void>;
39
+ executeHooks(type: HookType, command: string, response: TaskResponse, startTime: number): Promise<void>;
40
+ private sendNotification;
41
+ private renderTemplate;
42
+ private generateSummary;
43
+ }
44
+ export declare const hookTemplates: {
45
+ slack: (webhookUrl: string) => Omit<Hook, "id">;
46
+ teams: (webhookUrl: string) => Omit<Hook, "id">;
47
+ generic: (url: string) => Omit<Hook, "id">;
48
+ };
49
+ export declare function getHookManager(): HookManager;
50
+ //# sourceMappingURL=hooks.d.ts.map
@@ -4,4 +4,4 @@
4
4
  export * from './contracts.js';
5
5
  export * from './engine.js';
6
6
  export * from './policy.js';
7
- //# sourceMappingURL=index.js.map
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Default Execution Policy
3
+ * Determines how tasks are executed and which provider to use
4
+ */
5
+ import { TaskRequest, ExecutionPolicy, EngineConfig, ExecutionProvider } from './contracts.js';
6
+ import { ExitCode } from './exit-codes.js';
7
+ export declare class DefaultExecutionPolicy implements ExecutionPolicy {
8
+ private config;
9
+ constructor(config: EngineConfig);
10
+ validate(request: TaskRequest): {
11
+ valid: boolean;
12
+ reason?: string;
13
+ exitCode?: ExitCode;
14
+ };
15
+ selectProvider(request: TaskRequest, providers: Map<string, ExecutionProvider>): ExecutionProvider | null;
16
+ private getPreferredProvider;
17
+ transform(request: TaskRequest): TaskRequest;
18
+ checkCapabilities(_request: TaskRequest): {
19
+ allowed: boolean;
20
+ reason?: string;
21
+ exitCode?: ExitCode;
22
+ };
23
+ }
24
+ //# sourceMappingURL=policy.d.ts.map
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Profile Management System
3
+ * Manage multiple environments: dev, staging, prod
4
+ * Auto-select provider and settings based on active profile
5
+ */
6
+ export type ProfileName = 'dev' | 'staging' | 'prod' | 'local' | string;
7
+ export interface ProfileConfig {
8
+ name: ProfileName;
9
+ provider: 'local' | 'remote' | 'ai';
10
+ apiUrl?: string;
11
+ apiKey?: string;
12
+ timeout: number;
13
+ retries: number;
14
+ features: {
15
+ analytics: boolean;
16
+ caching: boolean;
17
+ autoSync: boolean;
18
+ };
19
+ env: Record<string, string>;
20
+ }
21
+ export interface ProfilesData {
22
+ activeProfile: ProfileName;
23
+ profiles: Record<ProfileName, ProfileConfig>;
24
+ }
25
+ export declare class ProfileManager {
26
+ private data;
27
+ private loaded;
28
+ constructor();
29
+ load(): Promise<void>;
30
+ save(): Promise<void>;
31
+ getActiveProfile(): ProfileConfig;
32
+ getProfile(name: ProfileName): ProfileConfig | undefined;
33
+ setActiveProfile(name: ProfileName): Promise<void>;
34
+ createProfile(name: ProfileName, config: Partial<ProfileConfig>): Promise<void>;
35
+ deleteProfile(name: ProfileName): Promise<void>;
36
+ listProfiles(): Array<{
37
+ name: ProfileName;
38
+ active: boolean;
39
+ provider: string;
40
+ }>;
41
+ applyToEnvironment(): void;
42
+ getProviderForCommand(command: string): 'local' | 'remote' | 'ai';
43
+ }
44
+ export declare function getProfileManager(): ProfileManager;
45
+ //# sourceMappingURL=profiles.d.ts.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Interactive Wizard Mode
3
+ * Step-by-step guided experience for complex commands
4
+ */
5
+ export interface WizardStep {
6
+ name: string;
7
+ message: string;
8
+ type: 'text' | 'select' | 'multiselect' | 'confirm' | 'toggle';
9
+ choices?: Array<{
10
+ title: string;
11
+ value: string;
12
+ description?: string;
13
+ }>;
14
+ initial?: string | boolean;
15
+ validate?: (value: string) => boolean | string;
16
+ }
17
+ export interface InitWizardResult {
18
+ projectName: string;
19
+ projectPath: string;
20
+ template: string;
21
+ initializeGit: boolean;
22
+ installDependencies: boolean;
23
+ features: string[];
24
+ }
25
+ export declare function runInitWizard(): Promise<InitWizardResult>;
26
+ export declare function executeWizardActions(result: InitWizardResult): Promise<void>;
27
+ export declare function runQuickWizard(command: string): Promise<Record<string, unknown> | null>;
28
+ //# sourceMappingURL=wizard.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare function runInteractiveMode(options: {
2
+ port?: string;
3
+ mode?: 'app' | 'manager';
4
+ }): Promise<void>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,25 @@
1
+ /**
2
+ * GitStatusPlugin - MVP Plugin Example
3
+ * Displays git repository status in the sidebar
4
+ * Demonstrates Plugin System capabilities
5
+ */
6
+ import type { DeltaPlugin, PluginCommand, DashboardWidget, PluginContext } from '@delta/domain';
7
+ export declare class GitStatusPlugin implements DeltaPlugin {
8
+ id: string;
9
+ name: string;
10
+ version: string;
11
+ description: string;
12
+ private context;
13
+ private branch;
14
+ private status;
15
+ private aheadBehind;
16
+ constructor(context: PluginContext);
17
+ onActivate(): void;
18
+ onDeactivate(): void;
19
+ registerCommands(): PluginCommand[];
20
+ registerDashboardWidgets(): DashboardWidget[];
21
+ private updateGitStatus;
22
+ private renderWidget;
23
+ }
24
+ export default GitStatusPlugin;
25
+ //# sourceMappingURL=GitStatusPlugin.d.ts.map
@@ -0,0 +1,21 @@
1
+ /**
2
+ * AI Provider (Placeholder)
3
+ * Reserved for future AI integration without breaking existing architecture
4
+ */
5
+ import { TaskRequest, TaskResponse, AIProvider, ProviderCapabilities, AIProviderConfig } from '../core/contracts.js';
6
+ export declare class AIProviderPlaceholder implements AIProvider {
7
+ readonly name = "ai";
8
+ readonly version = "2.0.0-placeholder";
9
+ readonly capabilities: ProviderCapabilities;
10
+ private config;
11
+ constructor(config: AIProviderConfig);
12
+ isAvailable(): Promise<boolean>;
13
+ execute(request: TaskRequest): Promise<TaskResponse>;
14
+ generate(input: string, _context?: Record<string, unknown>): Promise<string>;
15
+ analyzeCode(_code: string, _language: string): Promise<{
16
+ insights: string[];
17
+ suggestions: string[];
18
+ score: number;
19
+ }>;
20
+ }
21
+ //# sourceMappingURL=ai-provider.d.ts.map