@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,29 @@
1
+ /**
2
+ * CLI Analysis Adapter
3
+ * @description Bridges CLI commands with Domain Layer analysis engine
4
+ * @package apps/cli
5
+ */
6
+ import { analyze, type AnalysisOptions, type CoreAnalysisResult } from '@delta/domain';
7
+ export type { AnalysisOptions, CoreAnalysisResult as AnalysisResult, } from '@delta/domain';
8
+ /**
9
+ * Analyze a project using Domain Layer engine
10
+ * Replaces local validators with unified Domain analysis
11
+ */
12
+ export declare function analyzeProject(projectPath: string, options?: Partial<AnalysisOptions>): Promise<CoreAnalysisResult>;
13
+ /**
14
+ * Generate report from analysis results
15
+ */
16
+ export declare function generateAnalysisReport(result: CoreAnalysisResult, format?: 'json' | 'html' | 'markdown'): Promise<{
17
+ id: string;
18
+ content: string;
19
+ format: string;
20
+ }>;
21
+ /**
22
+ * Create analysis session for progress tracking
23
+ */
24
+ export declare function createAnalysisSession(config: any, policies: any): import("@delta/domain/core/analysis/engine").AnalysisSession;
25
+ /**
26
+ * Direct engine access for advanced use cases
27
+ */
28
+ export { analyze as runDirectAnalysis };
29
+ //# sourceMappingURL=analysis.adapter.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Analyze Command
3
+ * @description Main analysis command using Domain Layer engine
4
+ */
5
+ interface AnalyzeOptions {
6
+ language: string;
7
+ output: string;
8
+ depth: string;
9
+ config?: string;
10
+ strict: boolean;
11
+ }
12
+ export declare function analyzeCommand(projectPath: string, options: AnalyzeOptions): Promise<void>;
13
+ export {};
14
+ //# sourceMappingURL=analyze.d.ts.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Config Command
3
+ * @description Manage analyzer configuration
4
+ */
5
+ interface ConfigOptions {
6
+ init?: boolean;
7
+ show?: boolean;
8
+ set?: string;
9
+ }
10
+ export declare function configCommand(options: ConfigOptions): Promise<void>;
11
+ export {};
12
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Report Command
3
+ * @description Generate report from previous analysis
4
+ */
5
+ interface ReportOptions {
6
+ template: string;
7
+ output?: string;
8
+ }
9
+ export declare function reportCommand(analysisFile: string, options: ReportOptions): Promise<void>;
10
+ export {};
11
+ //# sourceMappingURL=report.d.ts.map
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Report Generator
3
+ * @description Generates analysis reports in various formats
4
+ */
5
+ interface AnalysisResult {
6
+ project: {
7
+ name: string;
8
+ path: string;
9
+ language: string;
10
+ fileCount: number;
11
+ };
12
+ timestamp: string;
13
+ overall: {
14
+ score: number;
15
+ percentage: number;
16
+ grade: string;
17
+ compliant: boolean;
18
+ };
19
+ scores: Record<string, {
20
+ score: number;
21
+ maxScore: number;
22
+ percentage: number;
23
+ weight: number;
24
+ }>;
25
+ violations: Array<{
26
+ id: string;
27
+ axis: string;
28
+ severity: string;
29
+ message: string;
30
+ }>;
31
+ recommendations: Array<{
32
+ axis: string;
33
+ priority: string;
34
+ description: string;
35
+ action: string;
36
+ }>;
37
+ }
38
+ export declare class ReportGenerator {
39
+ static generateHTML(result: AnalysisResult): string;
40
+ static generateMarkdown(result: AnalysisResult): string;
41
+ }
42
+ export {};
43
+ //# sourceMappingURL=report.generator.d.ts.map
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Delta CLI Analyzer
4
+ * @description Analyze projects against Delta Constitution
5
+ * @version 1.0.0
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Project Scanner
3
+ * @description Scans project structure and extracts metadata
4
+ */
5
+ export interface ProjectInfo {
6
+ path: string;
7
+ name: string;
8
+ language: string;
9
+ size: number;
10
+ fileCount: number;
11
+ files: string[];
12
+ directories: string[];
13
+ imports: ImportInfo[];
14
+ hasPackageJson: boolean;
15
+ hasTsConfig: boolean;
16
+ hasTests: boolean;
17
+ }
18
+ export interface ImportInfo {
19
+ source: string;
20
+ target: string;
21
+ type: 'internal' | 'external';
22
+ }
23
+ export declare class ProjectScanner {
24
+ static scan(projectPath: string, language: string): Promise<ProjectInfo>;
25
+ private static scanDirectory;
26
+ private static isSourceFile;
27
+ private static extractImports;
28
+ }
29
+ //# sourceMappingURL=project.scanner.d.ts.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Contracts Validator
3
+ * @description Validates Contracts rules
4
+ */
5
+ import { ProjectInfo } from '../scanners/project.scanner';
6
+ interface ValidationOptions {
7
+ depth: string;
8
+ }
9
+ interface ValidationResult {
10
+ score: number;
11
+ maxScore: number;
12
+ percentage: number;
13
+ violations: Violation[];
14
+ }
15
+ interface Violation {
16
+ id: string;
17
+ severity: 'critical' | 'error' | 'warning' | 'info';
18
+ message: string;
19
+ file?: string;
20
+ line?: number;
21
+ rule: string;
22
+ }
23
+ export declare class ContractsValidator {
24
+ static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=contracts.validator.d.ts.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Maintainability Validator
3
+ * @description Validates Maintainability rules
4
+ */
5
+ import { ProjectInfo } from '../scanners/project.scanner';
6
+ interface ValidationOptions {
7
+ depth: string;
8
+ }
9
+ interface ValidationResult {
10
+ score: number;
11
+ maxScore: number;
12
+ percentage: number;
13
+ violations: Violation[];
14
+ }
15
+ interface Violation {
16
+ id: string;
17
+ severity: 'critical' | 'error' | 'warning' | 'info';
18
+ message: string;
19
+ file?: string;
20
+ line?: number;
21
+ rule: string;
22
+ }
23
+ export declare class MaintainabilityValidator {
24
+ static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=maintainability.validator.d.ts.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Observability Validator
3
+ * @description Validates Observability rules
4
+ */
5
+ import { ProjectInfo } from '../scanners/project.scanner';
6
+ interface ValidationOptions {
7
+ depth: string;
8
+ }
9
+ interface ValidationResult {
10
+ score: number;
11
+ maxScore: number;
12
+ percentage: number;
13
+ violations: Violation[];
14
+ }
15
+ interface Violation {
16
+ id: string;
17
+ severity: 'critical' | 'error' | 'warning' | 'info';
18
+ message: string;
19
+ file?: string;
20
+ line?: number;
21
+ rule: string;
22
+ }
23
+ export declare class ObservabilityValidator {
24
+ static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=observability.validator.d.ts.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Performance Validator
3
+ * @description Validates performance rules
4
+ */
5
+ import { ProjectInfo } from '../scanners/project.scanner';
6
+ interface ValidationOptions {
7
+ depth: string;
8
+ }
9
+ interface ValidationResult {
10
+ score: number;
11
+ maxScore: number;
12
+ percentage: number;
13
+ violations: Violation[];
14
+ }
15
+ interface Violation {
16
+ id: string;
17
+ severity: 'critical' | 'error' | 'warning' | 'info';
18
+ message: string;
19
+ file?: string;
20
+ line?: number;
21
+ rule: string;
22
+ }
23
+ export declare class PerformanceValidator {
24
+ static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=performance.validator.d.ts.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Security Validator
3
+ * @description Validates security rules against project
4
+ */
5
+ import { ProjectInfo } from '../scanners/project.scanner';
6
+ interface ValidationOptions {
7
+ depth: string;
8
+ }
9
+ interface ValidationResult {
10
+ score: number;
11
+ maxScore: number;
12
+ percentage: number;
13
+ violations: Violation[];
14
+ }
15
+ interface Violation {
16
+ id: string;
17
+ severity: 'critical' | 'error' | 'warning' | 'info';
18
+ message: string;
19
+ file?: string;
20
+ line?: number;
21
+ rule: string;
22
+ }
23
+ export declare class SecurityValidator {
24
+ static validate(project: ProjectInfo, options: ValidationOptions): Promise<ValidationResult>;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=security.validator.d.ts.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * SoC Validator
3
+ * @description Validates Separation of Concerns rules
4
+ */
5
+ import { ProjectInfo } from '../scanners/project.scanner';
6
+ interface ValidationOptions {
7
+ depth: string;
8
+ }
9
+ interface ValidationResult {
10
+ score: number;
11
+ maxScore: number;
12
+ percentage: number;
13
+ violations: Violation[];
14
+ }
15
+ interface Violation {
16
+ id: string;
17
+ severity: 'critical' | 'error' | 'warning' | 'info';
18
+ message: string;
19
+ file?: string;
20
+ line?: number;
21
+ rule: string;
22
+ }
23
+ export declare class SocValidator {
24
+ static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=soc.validator.d.ts.map
@@ -0,0 +1,18 @@
1
+ export declare class DeviceAuthorizationFlow {
2
+ private apiUrl;
3
+ private clientId;
4
+ constructor(apiUrl: string, clientId?: string);
5
+ startDeviceFlow(): Promise<boolean>;
6
+ private requestDeviceCode;
7
+ private displayAuthorizationInstructions;
8
+ private openBrowser;
9
+ private executeCommand;
10
+ private pollForToken;
11
+ private saveTokens;
12
+ private showSuccess;
13
+ private handleError;
14
+ private makeRequest;
15
+ private sleep;
16
+ }
17
+ export declare function startDeviceFlow(apiUrl: string): Promise<boolean>;
18
+ //# sourceMappingURL=device-auth.d.ts.map
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Secure Authentication System with OAuth2 + Keychain Integration
3
+ * Features:
4
+ * - OAuth2 PKCE flow
5
+ * - Secure token storage in OS keychain
6
+ * - Automatic token refresh
7
+ * - Session management
8
+ * - PAT (Personal Access Token) support for CI/CD
9
+ */
10
+ export declare class SecureTokenStore {
11
+ private static saveTokens;
12
+ private static loadTokens;
13
+ static saveAccessToken(token: string): Promise<void>;
14
+ static getAccessToken(): Promise<string | null>;
15
+ static saveRefreshToken(token: string): Promise<void>;
16
+ static saveSessionInfo(sessionInfo: {
17
+ session_id: string;
18
+ expires_at: string;
19
+ }): Promise<void>;
20
+ static getRefreshToken(): Promise<string | null>;
21
+ static clearTokens(): Promise<void>;
22
+ static hasTokens(): Promise<boolean>;
23
+ }
24
+ export declare function startOAuthFlow(method?: string): Promise<boolean>;
25
+ export declare function authenticateWithPAT(token: string): Promise<boolean>;
26
+ export declare function refreshAccessToken(): Promise<boolean>;
27
+ export declare function logout(): Promise<void>;
28
+ export declare function getAuthStatus(): Promise<{
29
+ authenticated: boolean;
30
+ user?: {
31
+ email: string;
32
+ plan: string;
33
+ };
34
+ }>;
35
+ //# sourceMappingURL=secure-auth.d.ts.map