@vee-stack/delta-cli 2.0.1
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/analyzer/commands/analyze.d.ts +14 -0
- package/dist/analyzer/commands/analyze.d.ts.map +1 -0
- package/dist/analyzer/commands/analyze.js +260 -0
- package/dist/analyzer/commands/analyze.js.map +1 -0
- package/dist/analyzer/commands/config.d.ts +12 -0
- package/dist/analyzer/commands/config.d.ts.map +1 -0
- package/dist/analyzer/commands/config.js +83 -0
- package/dist/analyzer/commands/config.js.map +1 -0
- package/dist/analyzer/commands/report.d.ts +11 -0
- package/dist/analyzer/commands/report.d.ts.map +1 -0
- package/dist/analyzer/commands/report.js +38 -0
- package/dist/analyzer/commands/report.js.map +1 -0
- package/dist/analyzer/generators/report.generator.d.ts +43 -0
- package/dist/analyzer/generators/report.generator.d.ts.map +1 -0
- package/dist/analyzer/generators/report.generator.js +123 -0
- package/dist/analyzer/generators/report.generator.js.map +1 -0
- package/dist/analyzer/index.d.ts +8 -0
- package/dist/analyzer/index.d.ts.map +1 -0
- package/dist/analyzer/index.js +44 -0
- package/dist/analyzer/index.js.map +1 -0
- package/dist/analyzer/scanners/project.scanner.d.ts +29 -0
- package/dist/analyzer/scanners/project.scanner.d.ts.map +1 -0
- package/dist/analyzer/scanners/project.scanner.js +92 -0
- package/dist/analyzer/scanners/project.scanner.js.map +1 -0
- package/dist/analyzer/validators/contracts.validator.d.ts +27 -0
- package/dist/analyzer/validators/contracts.validator.d.ts.map +1 -0
- package/dist/analyzer/validators/contracts.validator.js +42 -0
- package/dist/analyzer/validators/contracts.validator.js.map +1 -0
- package/dist/analyzer/validators/maintainability.validator.d.ts +27 -0
- package/dist/analyzer/validators/maintainability.validator.d.ts.map +1 -0
- package/dist/analyzer/validators/maintainability.validator.js +40 -0
- package/dist/analyzer/validators/maintainability.validator.js.map +1 -0
- package/dist/analyzer/validators/observability.validator.d.ts +27 -0
- package/dist/analyzer/validators/observability.validator.d.ts.map +1 -0
- package/dist/analyzer/validators/observability.validator.js +39 -0
- package/dist/analyzer/validators/observability.validator.js.map +1 -0
- package/dist/analyzer/validators/performance.validator.d.ts +27 -0
- package/dist/analyzer/validators/performance.validator.d.ts.map +1 -0
- package/dist/analyzer/validators/performance.validator.js +42 -0
- package/dist/analyzer/validators/performance.validator.js.map +1 -0
- package/dist/analyzer/validators/security.validator.d.ts +27 -0
- package/dist/analyzer/validators/security.validator.d.ts.map +1 -0
- package/dist/analyzer/validators/security.validator.js +66 -0
- package/dist/analyzer/validators/security.validator.js.map +1 -0
- package/dist/analyzer/validators/soc.validator.d.ts +27 -0
- package/dist/analyzer/validators/soc.validator.d.ts.map +1 -0
- package/dist/analyzer/validators/soc.validator.js +75 -0
- package/dist/analyzer/validators/soc.validator.js.map +1 -0
- package/dist/apps/cli/src/analyzer/commands/analyze.d.ts +14 -0
- package/dist/apps/cli/src/analyzer/commands/analyze.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/commands/analyze.js +256 -0
- package/dist/apps/cli/src/analyzer/commands/analyze.js.map +1 -0
- package/dist/apps/cli/src/analyzer/commands/config.d.ts +12 -0
- package/dist/apps/cli/src/analyzer/commands/config.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/commands/config.js +83 -0
- package/dist/apps/cli/src/analyzer/commands/config.js.map +1 -0
- package/dist/apps/cli/src/analyzer/commands/report.d.ts +11 -0
- package/dist/apps/cli/src/analyzer/commands/report.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/commands/report.js +38 -0
- package/dist/apps/cli/src/analyzer/commands/report.js.map +1 -0
- package/dist/apps/cli/src/analyzer/generators/report.generator.d.ts +43 -0
- package/dist/apps/cli/src/analyzer/generators/report.generator.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/generators/report.generator.js +123 -0
- package/dist/apps/cli/src/analyzer/generators/report.generator.js.map +1 -0
- package/dist/apps/cli/src/analyzer/index.d.ts +8 -0
- package/dist/apps/cli/src/analyzer/index.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/index.js +44 -0
- package/dist/apps/cli/src/analyzer/index.js.map +1 -0
- package/dist/apps/cli/src/analyzer/scanners/project.scanner.d.ts +29 -0
- package/dist/apps/cli/src/analyzer/scanners/project.scanner.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/scanners/project.scanner.js +92 -0
- package/dist/apps/cli/src/analyzer/scanners/project.scanner.js.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/contracts.validator.d.ts +27 -0
- package/dist/apps/cli/src/analyzer/validators/contracts.validator.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/contracts.validator.js +42 -0
- package/dist/apps/cli/src/analyzer/validators/contracts.validator.js.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/maintainability.validator.d.ts +27 -0
- package/dist/apps/cli/src/analyzer/validators/maintainability.validator.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/maintainability.validator.js +40 -0
- package/dist/apps/cli/src/analyzer/validators/maintainability.validator.js.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/observability.validator.d.ts +27 -0
- package/dist/apps/cli/src/analyzer/validators/observability.validator.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/observability.validator.js +39 -0
- package/dist/apps/cli/src/analyzer/validators/observability.validator.js.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/performance.validator.d.ts +27 -0
- package/dist/apps/cli/src/analyzer/validators/performance.validator.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/performance.validator.js +42 -0
- package/dist/apps/cli/src/analyzer/validators/performance.validator.js.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/security.validator.d.ts +27 -0
- package/dist/apps/cli/src/analyzer/validators/security.validator.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/security.validator.js +66 -0
- package/dist/apps/cli/src/analyzer/validators/security.validator.js.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/soc.validator.d.ts +27 -0
- package/dist/apps/cli/src/analyzer/validators/soc.validator.d.ts.map +1 -0
- package/dist/apps/cli/src/analyzer/validators/soc.validator.js +75 -0
- package/dist/apps/cli/src/analyzer/validators/soc.validator.js.map +1 -0
- package/dist/apps/cli/src/auth/secure-auth.d.ts +29 -0
- package/dist/apps/cli/src/auth/secure-auth.d.ts.map +1 -0
- package/dist/apps/cli/src/auth/secure-auth.js +312 -0
- package/dist/apps/cli/src/auth/secure-auth.js.map +1 -0
- package/dist/apps/cli/src/commands/analyze.d.ts +12 -0
- package/dist/apps/cli/src/commands/analyze.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/analyze.js +286 -0
- package/dist/apps/cli/src/commands/analyze.js.map +1 -0
- package/dist/apps/cli/src/commands/auth-new.d.ts +6 -0
- package/dist/apps/cli/src/commands/auth-new.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/auth-new.js +37 -0
- package/dist/apps/cli/src/commands/auth-new.js.map +1 -0
- package/dist/apps/cli/src/commands/auth.d.ts +18 -0
- package/dist/apps/cli/src/commands/auth.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/auth.js +122 -0
- package/dist/apps/cli/src/commands/auth.js.map +1 -0
- package/dist/apps/cli/src/commands/config.d.ts +8 -0
- package/dist/apps/cli/src/commands/config.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/config.js +49 -0
- package/dist/apps/cli/src/commands/config.js.map +1 -0
- package/dist/apps/cli/src/commands/deploy.d.ts +5 -0
- package/dist/apps/cli/src/commands/deploy.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/deploy.js +6 -0
- package/dist/apps/cli/src/commands/deploy.js.map +1 -0
- package/dist/apps/cli/src/commands/init.d.ts +7 -0
- package/dist/apps/cli/src/commands/init.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/init.js +47 -0
- package/dist/apps/cli/src/commands/init.js.map +1 -0
- package/dist/apps/cli/src/commands/logout.d.ts +2 -0
- package/dist/apps/cli/src/commands/logout.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/logout.js +23 -0
- package/dist/apps/cli/src/commands/logout.js.map +1 -0
- package/dist/apps/cli/src/commands/plugins.d.ts +7 -0
- package/dist/apps/cli/src/commands/plugins.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/plugins.js +21 -0
- package/dist/apps/cli/src/commands/plugins.js.map +1 -0
- package/dist/apps/cli/src/commands/status.d.ts +5 -0
- package/dist/apps/cli/src/commands/status.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/status.js +80 -0
- package/dist/apps/cli/src/commands/status.js.map +1 -0
- package/dist/apps/cli/src/commands/sync.d.ts +5 -0
- package/dist/apps/cli/src/commands/sync.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/sync.js +6 -0
- package/dist/apps/cli/src/commands/sync.js.map +1 -0
- package/dist/apps/cli/src/commands/whoami.d.ts +4 -0
- package/dist/apps/cli/src/commands/whoami.d.ts.map +1 -0
- package/dist/apps/cli/src/commands/whoami.js +115 -0
- package/dist/apps/cli/src/commands/whoami.js.map +1 -0
- package/dist/apps/cli/src/components/Dashboard.d.ts +8 -0
- package/dist/apps/cli/src/components/Dashboard.d.ts.map +1 -0
- package/dist/apps/cli/src/components/Dashboard.js +168 -0
- package/dist/apps/cli/src/components/Dashboard.js.map +1 -0
- package/dist/apps/cli/src/components/DeltaApp.d.ts +13 -0
- package/dist/apps/cli/src/components/DeltaApp.d.ts.map +1 -0
- package/dist/apps/cli/src/components/DeltaApp.js +56 -0
- package/dist/apps/cli/src/components/DeltaApp.js.map +1 -0
- package/dist/apps/cli/src/components/UnifiedManager.d.ts +10 -0
- package/dist/apps/cli/src/components/UnifiedManager.d.ts.map +1 -0
- package/dist/apps/cli/src/components/UnifiedManager.js +324 -0
- package/dist/apps/cli/src/components/UnifiedManager.js.map +1 -0
- package/dist/apps/cli/src/core/audit.d.ts +60 -0
- package/dist/apps/cli/src/core/audit.d.ts.map +1 -0
- package/dist/apps/cli/src/core/audit.js +184 -0
- package/dist/apps/cli/src/core/audit.js.map +1 -0
- package/dist/apps/cli/src/core/completion.d.ts +79 -0
- package/dist/apps/cli/src/core/completion.d.ts.map +1 -0
- package/dist/apps/cli/src/core/completion.js +294 -0
- package/dist/apps/cli/src/core/completion.js.map +1 -0
- package/dist/apps/cli/src/core/contracts.d.ts +127 -0
- package/dist/apps/cli/src/core/contracts.d.ts.map +1 -0
- package/dist/apps/cli/src/core/contracts.js +6 -0
- package/dist/apps/cli/src/core/contracts.js.map +1 -0
- package/dist/apps/cli/src/core/engine.d.ts +26 -0
- package/dist/apps/cli/src/core/engine.d.ts.map +1 -0
- package/dist/apps/cli/src/core/engine.js +124 -0
- package/dist/apps/cli/src/core/engine.js.map +1 -0
- package/dist/apps/cli/src/core/exit-codes.d.ts +19 -0
- package/dist/apps/cli/src/core/exit-codes.d.ts.map +1 -0
- package/dist/apps/cli/src/core/exit-codes.js +71 -0
- package/dist/apps/cli/src/core/exit-codes.js.map +1 -0
- package/dist/apps/cli/src/core/hooks.d.ts +50 -0
- package/dist/apps/cli/src/core/hooks.d.ts.map +1 -0
- package/dist/apps/cli/src/core/hooks.js +181 -0
- package/dist/apps/cli/src/core/hooks.js.map +1 -0
- package/dist/apps/cli/src/core/index.d.ts +7 -0
- package/dist/apps/cli/src/core/index.d.ts.map +1 -0
- package/dist/apps/cli/src/core/index.js +7 -0
- package/dist/apps/cli/src/core/index.js.map +1 -0
- package/dist/apps/cli/src/core/policy.d.ts +24 -0
- package/dist/apps/cli/src/core/policy.d.ts.map +1 -0
- package/dist/apps/cli/src/core/policy.js +115 -0
- package/dist/apps/cli/src/core/policy.js.map +1 -0
- package/dist/apps/cli/src/core/profiles.d.ts +45 -0
- package/dist/apps/cli/src/core/profiles.d.ts.map +1 -0
- package/dist/apps/cli/src/core/profiles.js +161 -0
- package/dist/apps/cli/src/core/profiles.js.map +1 -0
- package/dist/apps/cli/src/core/wizard.d.ts +28 -0
- package/dist/apps/cli/src/core/wizard.d.ts.map +1 -0
- package/dist/apps/cli/src/core/wizard.js +203 -0
- package/dist/apps/cli/src/core/wizard.js.map +1 -0
- package/dist/apps/cli/src/index.d.ts +32 -0
- package/dist/apps/cli/src/index.d.ts.map +1 -0
- package/dist/apps/cli/src/index.js +636 -0
- package/dist/apps/cli/src/index.js.map +1 -0
- package/dist/apps/cli/src/interactive/index.d.ts +5 -0
- package/dist/apps/cli/src/interactive/index.d.ts.map +1 -0
- package/dist/apps/cli/src/interactive/index.js +11 -0
- package/dist/apps/cli/src/interactive/index.js.map +1 -0
- package/dist/apps/cli/src/plugins/GitStatusPlugin.d.ts +25 -0
- package/dist/apps/cli/src/plugins/GitStatusPlugin.d.ts.map +1 -0
- package/dist/apps/cli/src/plugins/GitStatusPlugin.js +99 -0
- package/dist/apps/cli/src/plugins/GitStatusPlugin.js.map +1 -0
- package/dist/apps/cli/src/providers/ai-provider.d.ts +21 -0
- package/dist/apps/cli/src/providers/ai-provider.d.ts.map +1 -0
- package/dist/apps/cli/src/providers/ai-provider.js +74 -0
- package/dist/apps/cli/src/providers/ai-provider.js.map +1 -0
- package/dist/apps/cli/src/providers/local-provider.d.ts +21 -0
- package/dist/apps/cli/src/providers/local-provider.d.ts.map +1 -0
- package/dist/apps/cli/src/providers/local-provider.js +302 -0
- package/dist/apps/cli/src/providers/local-provider.js.map +1 -0
- package/dist/apps/cli/src/providers/remote-provider.d.ts +15 -0
- package/dist/apps/cli/src/providers/remote-provider.d.ts.map +1 -0
- package/dist/apps/cli/src/providers/remote-provider.js +100 -0
- package/dist/apps/cli/src/providers/remote-provider.js.map +1 -0
- package/dist/apps/cli/src/types/api.d.ts +46 -0
- package/dist/apps/cli/src/types/api.d.ts.map +1 -0
- package/dist/apps/cli/src/types/api.js +3 -0
- package/dist/apps/cli/src/types/api.js.map +1 -0
- package/dist/apps/cli/src/ui.d.ts +52 -0
- package/dist/apps/cli/src/ui.d.ts.map +1 -0
- package/dist/apps/cli/src/ui.js +219 -0
- package/dist/apps/cli/src/ui.js.map +1 -0
- package/dist/apps/cli/src/welcome.d.ts +8 -0
- package/dist/apps/cli/src/welcome.d.ts.map +1 -0
- package/dist/apps/cli/src/welcome.js +81 -0
- package/dist/apps/cli/src/welcome.js.map +1 -0
- package/dist/auth/secure-auth.d.ts +31 -0
- package/dist/auth/secure-auth.d.ts.map +1 -0
- package/dist/auth/secure-auth.js +418 -0
- package/dist/auth/secure-auth.js.map +1 -0
- package/dist/commands/analyze.d.ts +12 -0
- package/dist/commands/analyze.d.ts.map +1 -0
- package/dist/commands/analyze.js +363 -0
- package/dist/commands/analyze.js.map +1 -0
- package/dist/commands/auth-new.d.ts +6 -0
- package/dist/commands/auth-new.d.ts.map +1 -0
- package/dist/commands/auth-new.js +37 -0
- package/dist/commands/auth-new.js.map +1 -0
- package/dist/commands/auth.d.ts +17 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/auth.js +133 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/config.d.ts +8 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +50 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/deploy.d.ts +5 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +6 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/init.d.ts +7 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +47 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/logout.d.ts +2 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +30 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/plugins.d.ts +7 -0
- package/dist/commands/plugins.d.ts.map +1 -0
- package/dist/commands/plugins.js +21 -0
- package/dist/commands/plugins.js.map +1 -0
- package/dist/commands/status.d.ts +5 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +82 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/sync.d.ts +5 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/sync.js +6 -0
- package/dist/commands/sync.js.map +1 -0
- package/dist/commands/whoami.d.ts +4 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +71 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/components/Dashboard.d.ts +8 -0
- package/dist/components/Dashboard.d.ts.map +1 -0
- package/dist/components/Dashboard.js +169 -0
- package/dist/components/Dashboard.js.map +1 -0
- package/dist/components/DeltaApp.d.ts +13 -0
- package/dist/components/DeltaApp.d.ts.map +1 -0
- package/dist/components/DeltaApp.js +57 -0
- package/dist/components/DeltaApp.js.map +1 -0
- package/dist/components/UnifiedManager.d.ts +10 -0
- package/dist/components/UnifiedManager.d.ts.map +1 -0
- package/dist/components/UnifiedManager.js +344 -0
- package/dist/components/UnifiedManager.js.map +1 -0
- package/dist/core/audit.d.ts +60 -0
- package/dist/core/audit.d.ts.map +1 -0
- package/dist/core/audit.js +184 -0
- package/dist/core/audit.js.map +1 -0
- package/dist/core/completion.d.ts +79 -0
- package/dist/core/completion.d.ts.map +1 -0
- package/dist/core/completion.js +294 -0
- package/dist/core/completion.js.map +1 -0
- package/dist/core/contracts.d.ts +127 -0
- package/dist/core/contracts.d.ts.map +1 -0
- package/dist/core/contracts.js +6 -0
- package/dist/core/contracts.js.map +1 -0
- package/dist/core/engine.d.ts +26 -0
- package/dist/core/engine.d.ts.map +1 -0
- package/dist/core/engine.js +124 -0
- package/dist/core/engine.js.map +1 -0
- package/dist/core/exit-codes.d.ts +19 -0
- package/dist/core/exit-codes.d.ts.map +1 -0
- package/dist/core/exit-codes.js +71 -0
- package/dist/core/exit-codes.js.map +1 -0
- package/dist/core/hooks.d.ts +50 -0
- package/dist/core/hooks.d.ts.map +1 -0
- package/dist/core/hooks.js +181 -0
- package/dist/core/hooks.js.map +1 -0
- package/dist/core/index.d.ts +7 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +7 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/policy.d.ts +24 -0
- package/dist/core/policy.d.ts.map +1 -0
- package/dist/core/policy.js +115 -0
- package/dist/core/policy.js.map +1 -0
- package/dist/core/profiles.d.ts +45 -0
- package/dist/core/profiles.d.ts.map +1 -0
- package/dist/core/profiles.js +161 -0
- package/dist/core/profiles.js.map +1 -0
- package/dist/core/wizard.d.ts +28 -0
- package/dist/core/wizard.d.ts.map +1 -0
- package/dist/core/wizard.js +203 -0
- package/dist/core/wizard.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +387 -0
- package/dist/index.js.map +1 -0
- package/dist/interactive/index.d.ts +5 -0
- package/dist/interactive/index.d.ts.map +1 -0
- package/dist/interactive/index.js +11 -0
- package/dist/interactive/index.js.map +1 -0
- package/dist/packages/domain/src/constitution/contracts/index.d.ts +35 -0
- package/dist/packages/domain/src/constitution/contracts/index.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/contracts/index.js +43 -0
- package/dist/packages/domain/src/constitution/contracts/index.js.map +1 -0
- package/dist/packages/domain/src/constitution/contracts/ts.rules.d.ts +176 -0
- package/dist/packages/domain/src/constitution/contracts/ts.rules.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/contracts/ts.rules.js +268 -0
- package/dist/packages/domain/src/constitution/contracts/ts.rules.js.map +1 -0
- package/dist/packages/domain/src/constitution/index.d.ts +151 -0
- package/dist/packages/domain/src/constitution/index.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/index.js +139 -0
- package/dist/packages/domain/src/constitution/index.js.map +1 -0
- package/dist/packages/domain/src/constitution/maintainability/index.d.ts +35 -0
- package/dist/packages/domain/src/constitution/maintainability/index.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/maintainability/index.js +43 -0
- package/dist/packages/domain/src/constitution/maintainability/index.js.map +1 -0
- package/dist/packages/domain/src/constitution/maintainability/ts.rules.d.ts +277 -0
- package/dist/packages/domain/src/constitution/maintainability/ts.rules.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/maintainability/ts.rules.js +344 -0
- package/dist/packages/domain/src/constitution/maintainability/ts.rules.js.map +1 -0
- package/dist/packages/domain/src/constitution/observability/index.d.ts +35 -0
- package/dist/packages/domain/src/constitution/observability/index.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/observability/index.js +43 -0
- package/dist/packages/domain/src/constitution/observability/index.js.map +1 -0
- package/dist/packages/domain/src/constitution/observability/ts.rules.d.ts +277 -0
- package/dist/packages/domain/src/constitution/observability/ts.rules.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/observability/ts.rules.js +307 -0
- package/dist/packages/domain/src/constitution/observability/ts.rules.js.map +1 -0
- package/dist/packages/domain/src/constitution/performance/index.d.ts +35 -0
- package/dist/packages/domain/src/constitution/performance/index.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/performance/index.js +43 -0
- package/dist/packages/domain/src/constitution/performance/index.js.map +1 -0
- package/dist/packages/domain/src/constitution/performance/ts.rules.d.ts +243 -0
- package/dist/packages/domain/src/constitution/performance/ts.rules.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/performance/ts.rules.js +325 -0
- package/dist/packages/domain/src/constitution/performance/ts.rules.js.map +1 -0
- package/dist/packages/domain/src/constitution/security/index.d.ts +35 -0
- package/dist/packages/domain/src/constitution/security/index.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/security/index.js +50 -0
- package/dist/packages/domain/src/constitution/security/index.js.map +1 -0
- package/dist/packages/domain/src/constitution/security/ts.rules.d.ts +213 -0
- package/dist/packages/domain/src/constitution/security/ts.rules.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/security/ts.rules.js +267 -0
- package/dist/packages/domain/src/constitution/security/ts.rules.js.map +1 -0
- package/dist/packages/domain/src/constitution/soc/index.d.ts +35 -0
- package/dist/packages/domain/src/constitution/soc/index.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/soc/index.js +43 -0
- package/dist/packages/domain/src/constitution/soc/index.js.map +1 -0
- package/dist/packages/domain/src/constitution/soc/ts.rules.d.ts +252 -0
- package/dist/packages/domain/src/constitution/soc/ts.rules.d.ts.map +1 -0
- package/dist/packages/domain/src/constitution/soc/ts.rules.js +360 -0
- package/dist/packages/domain/src/constitution/soc/ts.rules.js.map +1 -0
- package/dist/packages/domain/src/contracts/analysis.contract.d.ts +206 -0
- package/dist/packages/domain/src/contracts/analysis.contract.d.ts.map +1 -0
- package/dist/packages/domain/src/contracts/analysis.contract.js +18 -0
- package/dist/packages/domain/src/contracts/analysis.contract.js.map +1 -0
- package/dist/packages/domain/src/contracts/index.d.ts +7 -0
- package/dist/packages/domain/src/contracts/index.d.ts.map +1 -0
- package/dist/packages/domain/src/contracts/index.js +7 -0
- package/dist/packages/domain/src/contracts/index.js.map +1 -0
- package/dist/packages/domain/src/contracts/projects.contract.d.ts +328 -0
- package/dist/packages/domain/src/contracts/projects.contract.d.ts.map +1 -0
- package/dist/packages/domain/src/contracts/projects.contract.js +18 -0
- package/dist/packages/domain/src/contracts/projects.contract.js.map +1 -0
- package/dist/packages/domain/src/control/registry/rules.registry.d.ts +24 -0
- package/dist/packages/domain/src/control/registry/rules.registry.d.ts.map +1 -0
- package/dist/packages/domain/src/control/registry/rules.registry.js +29 -0
- package/dist/packages/domain/src/control/registry/rules.registry.js.map +1 -0
- package/dist/packages/domain/src/control/schemas/policies.d.ts +65 -0
- package/dist/packages/domain/src/control/schemas/policies.d.ts.map +1 -0
- package/dist/packages/domain/src/control/schemas/policies.js +6 -0
- package/dist/packages/domain/src/control/schemas/policies.js.map +1 -0
- package/dist/packages/domain/src/core/analysis/discovery.d.ts +63 -0
- package/dist/packages/domain/src/core/analysis/discovery.d.ts.map +1 -0
- package/dist/packages/domain/src/core/analysis/discovery.js +163 -0
- package/dist/packages/domain/src/core/analysis/discovery.js.map +1 -0
- package/dist/packages/domain/src/core/analysis/engine.contract.d.ts +83 -0
- package/dist/packages/domain/src/core/analysis/engine.contract.d.ts.map +1 -0
- package/dist/packages/domain/src/core/analysis/engine.contract.js +298 -0
- package/dist/packages/domain/src/core/analysis/engine.contract.js.map +1 -0
- package/dist/packages/domain/src/core/analysis/engine.d.ts +51 -0
- package/dist/packages/domain/src/core/analysis/engine.d.ts.map +1 -0
- package/dist/packages/domain/src/core/analysis/engine.js +77 -0
- package/dist/packages/domain/src/core/analysis/engine.js.map +1 -0
- package/dist/packages/domain/src/core/analysis/index.d.ts +11 -0
- package/dist/packages/domain/src/core/analysis/index.d.ts.map +1 -0
- package/dist/packages/domain/src/core/analysis/index.js +14 -0
- package/dist/packages/domain/src/core/analysis/index.js.map +1 -0
- package/dist/packages/domain/src/core/analysis/orchestrator.d.ts +85 -0
- package/dist/packages/domain/src/core/analysis/orchestrator.d.ts.map +1 -0
- package/dist/packages/domain/src/core/analysis/orchestrator.js +242 -0
- package/dist/packages/domain/src/core/analysis/orchestrator.js.map +1 -0
- package/dist/packages/domain/src/core/comparison/engine.d.ts +26 -0
- package/dist/packages/domain/src/core/comparison/engine.d.ts.map +1 -0
- package/dist/packages/domain/src/core/comparison/engine.js +29 -0
- package/dist/packages/domain/src/core/comparison/engine.js.map +1 -0
- package/dist/packages/domain/src/core/comparison/index.d.ts +5 -0
- package/dist/packages/domain/src/core/comparison/index.d.ts.map +1 -0
- package/dist/packages/domain/src/core/comparison/index.js +5 -0
- package/dist/packages/domain/src/core/comparison/index.js.map +1 -0
- package/dist/packages/domain/src/core/documentation/index.d.ts +5 -0
- package/dist/packages/domain/src/core/documentation/index.d.ts.map +1 -0
- package/dist/packages/domain/src/core/documentation/index.js +5 -0
- package/dist/packages/domain/src/core/documentation/index.js.map +1 -0
- package/dist/packages/domain/src/core/documentation/pipeline.d.ts +22 -0
- package/dist/packages/domain/src/core/documentation/pipeline.d.ts.map +1 -0
- package/dist/packages/domain/src/core/documentation/pipeline.js +41 -0
- package/dist/packages/domain/src/core/documentation/pipeline.js.map +1 -0
- package/dist/packages/domain/src/core/fs/adapter.d.ts +41 -0
- package/dist/packages/domain/src/core/fs/adapter.d.ts.map +1 -0
- package/dist/packages/domain/src/core/fs/adapter.js +111 -0
- package/dist/packages/domain/src/core/fs/adapter.js.map +1 -0
- package/dist/packages/domain/src/core/fs/index.d.ts +5 -0
- package/dist/packages/domain/src/core/fs/index.d.ts.map +1 -0
- package/dist/packages/domain/src/core/fs/index.js +5 -0
- package/dist/packages/domain/src/core/fs/index.js.map +1 -0
- package/dist/packages/domain/src/core/parser/unified-parser.d.ts +36 -0
- package/dist/packages/domain/src/core/parser/unified-parser.d.ts.map +1 -0
- package/dist/packages/domain/src/core/parser/unified-parser.js +166 -0
- package/dist/packages/domain/src/core/parser/unified-parser.js.map +1 -0
- package/dist/packages/domain/src/index.d.ts +31 -0
- package/dist/packages/domain/src/index.d.ts.map +1 -0
- package/dist/packages/domain/src/index.js +33 -0
- package/dist/packages/domain/src/index.js.map +1 -0
- package/dist/packages/domain/src/plugin/registry.d.ts +72 -0
- package/dist/packages/domain/src/plugin/registry.d.ts.map +1 -0
- package/dist/packages/domain/src/plugin/registry.js +195 -0
- package/dist/packages/domain/src/plugin/registry.js.map +1 -0
- package/dist/packages/domain/src/plugin/types.d.ts +172 -0
- package/dist/packages/domain/src/plugin/types.d.ts.map +1 -0
- package/dist/packages/domain/src/plugin/types.js +6 -0
- package/dist/packages/domain/src/plugin/types.js.map +1 -0
- package/dist/packages/domain/src/ports/analysis.engine.d.ts +33 -0
- package/dist/packages/domain/src/ports/analysis.engine.d.ts.map +1 -0
- package/dist/packages/domain/src/ports/analysis.engine.js +7 -0
- package/dist/packages/domain/src/ports/analysis.engine.js.map +1 -0
- package/dist/packages/domain/src/ports/audit.logger.d.ts +34 -0
- package/dist/packages/domain/src/ports/audit.logger.d.ts.map +1 -0
- package/dist/packages/domain/src/ports/audit.logger.js +7 -0
- package/dist/packages/domain/src/ports/audit.logger.js.map +1 -0
- package/dist/packages/domain/src/ports/project.repository.d.ts +39 -0
- package/dist/packages/domain/src/ports/project.repository.d.ts.map +1 -0
- package/dist/packages/domain/src/ports/project.repository.js +7 -0
- package/dist/packages/domain/src/ports/project.repository.js.map +1 -0
- package/dist/packages/domain/src/rules/index.d.ts +10 -0
- package/dist/packages/domain/src/rules/index.d.ts.map +1 -0
- package/dist/packages/domain/src/rules/index.js +134 -0
- package/dist/packages/domain/src/rules/index.js.map +1 -0
- package/dist/packages/domain/src/types/analysis.d.ts +81 -0
- package/dist/packages/domain/src/types/analysis.d.ts.map +1 -0
- package/dist/packages/domain/src/types/analysis.js +6 -0
- package/dist/packages/domain/src/types/analysis.js.map +1 -0
- package/dist/packages/domain/src/types/errors.d.ts +35 -0
- package/dist/packages/domain/src/types/errors.d.ts.map +1 -0
- package/dist/packages/domain/src/types/errors.js +53 -0
- package/dist/packages/domain/src/types/errors.js.map +1 -0
- package/dist/packages/domain/src/types/fs.d.ts +32 -0
- package/dist/packages/domain/src/types/fs.d.ts.map +1 -0
- package/dist/packages/domain/src/types/fs.js +6 -0
- package/dist/packages/domain/src/types/fs.js.map +1 -0
- package/dist/packages/domain/src/types/index.d.ts +7 -0
- package/dist/packages/domain/src/types/index.d.ts.map +1 -0
- package/dist/packages/domain/src/types/index.js +7 -0
- package/dist/packages/domain/src/types/index.js.map +1 -0
- package/dist/plugins/GitStatusPlugin.d.ts +25 -0
- package/dist/plugins/GitStatusPlugin.d.ts.map +1 -0
- package/dist/plugins/GitStatusPlugin.js +93 -0
- package/dist/plugins/GitStatusPlugin.js.map +1 -0
- package/dist/providers/ai-provider.d.ts +21 -0
- package/dist/providers/ai-provider.d.ts.map +1 -0
- package/dist/providers/ai-provider.js +74 -0
- package/dist/providers/ai-provider.js.map +1 -0
- package/dist/providers/local-provider.d.ts +21 -0
- package/dist/providers/local-provider.d.ts.map +1 -0
- package/dist/providers/local-provider.js +304 -0
- package/dist/providers/local-provider.js.map +1 -0
- package/dist/providers/remote-provider.d.ts +15 -0
- package/dist/providers/remote-provider.d.ts.map +1 -0
- package/dist/providers/remote-provider.js +100 -0
- package/dist/providers/remote-provider.js.map +1 -0
- package/dist/types/api.d.ts +46 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/api.js +3 -0
- package/dist/types/api.js.map +1 -0
- package/dist/ui.d.ts +52 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +219 -0
- package/dist/ui.js.map +1 -0
- package/dist/welcome.d.ts +8 -0
- package/dist/welcome.d.ts.map +1 -0
- package/dist/welcome.js +81 -0
- package/dist/welcome.js.map +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export declare const gradients: {
|
|
3
|
+
delta: {
|
|
4
|
+
(text: string): string;
|
|
5
|
+
multiline(text: string): string;
|
|
6
|
+
};
|
|
7
|
+
cyber: {
|
|
8
|
+
(text: string): string;
|
|
9
|
+
multiline(text: string): string;
|
|
10
|
+
};
|
|
11
|
+
sunset: {
|
|
12
|
+
(text: string): string;
|
|
13
|
+
multiline(text: string): string;
|
|
14
|
+
};
|
|
15
|
+
neon: {
|
|
16
|
+
(text: string): string;
|
|
17
|
+
multiline(text: string): string;
|
|
18
|
+
};
|
|
19
|
+
ocean: {
|
|
20
|
+
(text: string): string;
|
|
21
|
+
multiline(text: string): string;
|
|
22
|
+
};
|
|
23
|
+
fire: {
|
|
24
|
+
(text: string): string;
|
|
25
|
+
multiline(text: string): string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare function printLogo(variant?: keyof typeof gradients): void;
|
|
29
|
+
export declare function printMinimalLogo(): void;
|
|
30
|
+
export declare function printWelcome(): void;
|
|
31
|
+
export declare function printTips(): void;
|
|
32
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":";AAqCA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CAOrB,CAAC;AAGF,wBAAgB,SAAS,CAAC,OAAO,GAAE,MAAM,OAAO,SAAmB,GAAG,IAAI,CAOzE;AAGD,wBAAgB,gBAAgB,IAAI,IAAI,CAMvC;AAGD,wBAAgB,YAAY,IAAI,IAAI,CAoBnC;AAGD,wBAAgB,SAAS,IAAI,IAAI,CAiBhC"}
|
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { Command } from 'commander';
|
|
3
|
+
import gradient from 'gradient-string';
|
|
4
|
+
import figlet from 'figlet';
|
|
5
|
+
import updateNotifier from 'update-notifier';
|
|
6
|
+
import chalk from 'chalk';
|
|
7
|
+
import { readFileSync } from 'fs';
|
|
8
|
+
import { fileURLToPath } from 'url';
|
|
9
|
+
import { dirname, join } from 'path';
|
|
10
|
+
import { runInteractiveMode } from './interactive/index.js';
|
|
11
|
+
// Core Engine Imports
|
|
12
|
+
import { createEngine } from './core/engine.js';
|
|
13
|
+
import { DefaultExecutionPolicy } from './core/policy.js';
|
|
14
|
+
import { LocalProvider } from './providers/local-provider.js';
|
|
15
|
+
import { RemoteProvider } from './providers/remote-provider.js';
|
|
16
|
+
import { AIProviderPlaceholder } from './providers/ai-provider.js';
|
|
17
|
+
import { installCompletion, generateCompletionScript } from './core/completion.js';
|
|
18
|
+
import { runInitWizard, executeWizardActions } from './core/wizard.js';
|
|
19
|
+
import { getAuditLogger } from './core/audit.js';
|
|
20
|
+
import { getProfileManager } from './core/profiles.js';
|
|
21
|
+
import { getHookManager, hookTemplates } from './core/hooks.js';
|
|
22
|
+
import { loadConfig } from './commands/auth.js';
|
|
23
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
24
|
+
const __dirname = dirname(__filename);
|
|
25
|
+
// Read package.json for version info
|
|
26
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf8'));
|
|
27
|
+
// Check for updates
|
|
28
|
+
const notifier = updateNotifier({
|
|
29
|
+
pkg,
|
|
30
|
+
updateCheckInterval: 1000 * 60 * 60 // 1 hour
|
|
31
|
+
});
|
|
32
|
+
// Define gradient themes
|
|
33
|
+
export const gradients = {
|
|
34
|
+
delta: gradient(['#00d4ff', '#7b2cbf', '#ff006e']),
|
|
35
|
+
cyber: gradient(['#00f5ff', '#0080ff', '#8000ff']),
|
|
36
|
+
sunset: gradient(['#ff4e50', '#fca311', '#e85d04']),
|
|
37
|
+
neon: gradient(['#39ff14', '#00ffff', '#ff00ff']),
|
|
38
|
+
ocean: gradient(['#0066ff', '#00ccff', '#66ffff']),
|
|
39
|
+
fire: gradient(['#ff4e00', '#ff9500', '#ffcc00']),
|
|
40
|
+
};
|
|
41
|
+
// Print animated logo
|
|
42
|
+
export function printLogo(variant = 'delta') {
|
|
43
|
+
const text = figlet.textSync('DELTA', {
|
|
44
|
+
font: 'Big Money-nw',
|
|
45
|
+
horizontalLayout: 'default',
|
|
46
|
+
verticalLayout: 'default',
|
|
47
|
+
});
|
|
48
|
+
console.log('\n' + gradients[variant](text) + '\n');
|
|
49
|
+
}
|
|
50
|
+
// Print minimal logo
|
|
51
|
+
export function printMinimalLogo() {
|
|
52
|
+
const text = figlet.textSync('Ī', {
|
|
53
|
+
font: 'ANSI Shadow',
|
|
54
|
+
horizontalLayout: 'default',
|
|
55
|
+
});
|
|
56
|
+
console.log(gradients.delta(text));
|
|
57
|
+
}
|
|
58
|
+
// Print welcome screen
|
|
59
|
+
export function printWelcome() {
|
|
60
|
+
console.clear();
|
|
61
|
+
printLogo();
|
|
62
|
+
console.log(chalk.dim(' āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā'));
|
|
63
|
+
console.log();
|
|
64
|
+
console.log(chalk.white.bold(' š Delta CLI v2.0') + chalk.gray(' ā Next-gen code analysis & documentation'));
|
|
65
|
+
console.log();
|
|
66
|
+
console.log(chalk.gray(' Local-first architecture with ') + chalk.cyan('cloud power') + chalk.gray(' & ') + chalk.magenta('AI intelligence'));
|
|
67
|
+
console.log();
|
|
68
|
+
console.log(chalk.dim(' āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā'));
|
|
69
|
+
console.log();
|
|
70
|
+
// Update notification
|
|
71
|
+
if (notifier.update) {
|
|
72
|
+
console.log(chalk.yellow.bold(' ā” Update Available!'));
|
|
73
|
+
console.log(chalk.gray(` ${notifier.update.current} ā ${notifier.update.latest}`));
|
|
74
|
+
console.log(chalk.cyan(` Run: npm install -g ${pkg.name}`));
|
|
75
|
+
console.log();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
// Print tips
|
|
79
|
+
export function printTips() {
|
|
80
|
+
const tips = [
|
|
81
|
+
{ cmd: 'delta /help', desc: 'Quick help with slash commands' },
|
|
82
|
+
{ cmd: 'delta /analyze', desc: 'Run analysis with / command' },
|
|
83
|
+
{ cmd: 'delta /status', desc: 'Check project status' },
|
|
84
|
+
{ cmd: 'delta --interactive', desc: 'Open interactive dashboard' },
|
|
85
|
+
];
|
|
86
|
+
console.log(chalk.bold.cyan(' Quick Start (Slash Commands Available):'));
|
|
87
|
+
console.log();
|
|
88
|
+
tips.forEach(({ cmd, desc }) => {
|
|
89
|
+
console.log(chalk.gray(' ⢠') + chalk.cyan(cmd) + chalk.gray(` ā ${desc}`));
|
|
90
|
+
});
|
|
91
|
+
console.log();
|
|
92
|
+
console.log(chalk.dim(' Try ') + chalk.cyan('/help') + chalk.dim(', ') + chalk.cyan('/analyze') + chalk.dim(', ') + chalk.cyan('/status') + chalk.dim(' for quick access'));
|
|
93
|
+
console.log(chalk.dim(' Press ') + chalk.bold('Ctrl+T') + chalk.dim(' for variants ⢠') + chalk.bold('Tab') + chalk.dim(' for agents ⢠') + chalk.bold('Ctrl+P') + chalk.dim(' for commands'));
|
|
94
|
+
console.log();
|
|
95
|
+
}
|
|
96
|
+
// Initialize Core Engine
|
|
97
|
+
let engine = null;
|
|
98
|
+
async function initializeEngine() {
|
|
99
|
+
if (engine)
|
|
100
|
+
return engine;
|
|
101
|
+
const auth = await loadConfig();
|
|
102
|
+
const config = {
|
|
103
|
+
defaultProvider: 'local',
|
|
104
|
+
providers: {
|
|
105
|
+
local: {
|
|
106
|
+
enabled: true,
|
|
107
|
+
maxFileSize: 10 * 1024 * 1024, // 10MB
|
|
108
|
+
excludePatterns: ['node_modules', 'dist', '.git', 'coverage'],
|
|
109
|
+
},
|
|
110
|
+
remote: {
|
|
111
|
+
enabled: !!auth.pat,
|
|
112
|
+
apiUrl: auth.apiUrl || 'https://api.delta.dev',
|
|
113
|
+
timeout: 30000,
|
|
114
|
+
retryAttempts: 3,
|
|
115
|
+
},
|
|
116
|
+
ai: {
|
|
117
|
+
enabled: false, // Reserved for future
|
|
118
|
+
provider: 'openai',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
features: {
|
|
122
|
+
cache: true,
|
|
123
|
+
offlineMode: !auth.pat,
|
|
124
|
+
autoUpdate: true,
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
const policy = new DefaultExecutionPolicy(config);
|
|
128
|
+
engine = createEngine(config, policy);
|
|
129
|
+
// Register providers
|
|
130
|
+
engine.registerProvider(new LocalProvider(config.providers.local));
|
|
131
|
+
if (config.providers.remote.enabled) {
|
|
132
|
+
engine.registerProvider(new RemoteProvider(config.providers.remote));
|
|
133
|
+
}
|
|
134
|
+
engine.registerProvider(new AIProviderPlaceholder(config.providers.ai));
|
|
135
|
+
return engine;
|
|
136
|
+
}
|
|
137
|
+
// JSON Output Helper
|
|
138
|
+
function outputJSON(response) {
|
|
139
|
+
console.log(JSON.stringify(response, null, 2));
|
|
140
|
+
}
|
|
141
|
+
// Non-TTY Detection
|
|
142
|
+
function isNonTTY() {
|
|
143
|
+
return !process.stdout.isTTY || process.env.CI === 'true' || process.env.NO_COLOR === 'true';
|
|
144
|
+
}
|
|
145
|
+
// CLI Program Setup
|
|
146
|
+
const program = new Command();
|
|
147
|
+
program
|
|
148
|
+
.name('delta')
|
|
149
|
+
.description('Delta Platform - Next-gen code analysis and documentation')
|
|
150
|
+
.version(pkg.version, '-v, --version', 'Display version number')
|
|
151
|
+
.usage('<command> [options]')
|
|
152
|
+
.helpOption('-h, --help', 'Display help for command')
|
|
153
|
+
.addHelpCommand('help [command]', 'Display help for command');
|
|
154
|
+
// Global options
|
|
155
|
+
program
|
|
156
|
+
.option('-i, --interactive', 'Run in interactive mode', false)
|
|
157
|
+
.option('--no-color', 'Disable colored output', false)
|
|
158
|
+
.option('--theme <name>', 'Set color theme (delta, cyber, sunset, neon, ocean, fire)', 'delta')
|
|
159
|
+
.option('--verbose', 'Enable verbose logging', false);
|
|
160
|
+
// Auth commands
|
|
161
|
+
program
|
|
162
|
+
.command('login')
|
|
163
|
+
.description('š Authenticate with Delta cloud (OAuth2 + secure keychain storage)')
|
|
164
|
+
.option('--method <type>', 'Auth method: oauth, pat, github, google', 'oauth')
|
|
165
|
+
.option('--token <token>', 'Personal Access Token (for CI/CD)')
|
|
166
|
+
.action(async (options) => {
|
|
167
|
+
printWelcome();
|
|
168
|
+
const { loginCommand } = await import('./commands/auth.js');
|
|
169
|
+
await loginCommand(options);
|
|
170
|
+
});
|
|
171
|
+
program
|
|
172
|
+
.command('logout')
|
|
173
|
+
.description('š Remove stored authentication and clear credentials')
|
|
174
|
+
.action(async () => {
|
|
175
|
+
const { logoutCommand } = await import('./commands/logout.js');
|
|
176
|
+
await logoutCommand();
|
|
177
|
+
});
|
|
178
|
+
program
|
|
179
|
+
.command('whoami')
|
|
180
|
+
.alias('me')
|
|
181
|
+
.description('š¤ Show current user, plan, quota, and session info')
|
|
182
|
+
.option('--format <type>', 'Output format: table, json, compact', 'table')
|
|
183
|
+
.action(async (options) => {
|
|
184
|
+
const { whoamiCommand } = await import('./commands/whoami.js');
|
|
185
|
+
await whoamiCommand(options);
|
|
186
|
+
});
|
|
187
|
+
// Main commands
|
|
188
|
+
program
|
|
189
|
+
.command('manager')
|
|
190
|
+
.alias('mgr')
|
|
191
|
+
.description('šļø Launch Unified Manager TUI - Run CLI + Web from single terminal')
|
|
192
|
+
.action(async () => {
|
|
193
|
+
printWelcome();
|
|
194
|
+
console.log(chalk.cyan('\nš Starting Unified Manager...\n'));
|
|
195
|
+
console.log(chalk.gray('Press ? for help, q to quit\n'));
|
|
196
|
+
await runInteractiveMode({ mode: 'manager' });
|
|
197
|
+
});
|
|
198
|
+
program
|
|
199
|
+
.command('analyze [path]')
|
|
200
|
+
.alias('a')
|
|
201
|
+
.description('š Run comprehensive code analysis with AI insights')
|
|
202
|
+
.option('-f, --format <type>', 'Output format: json, html, markdown, sarif', 'json')
|
|
203
|
+
.option('-o, --output <dir>', 'Output directory', './delta-reports')
|
|
204
|
+
.option('-i, --include <patterns...>', 'Include file patterns')
|
|
205
|
+
.option('-e, --exclude <patterns...>', 'Exclude file patterns')
|
|
206
|
+
.option('--max-size <bytes>', 'Max file size in bytes', '10485760')
|
|
207
|
+
.option('--upload', 'Upload report to Delta cloud', false)
|
|
208
|
+
.option('--share', 'Generate shareable link after upload', false)
|
|
209
|
+
.option('--project-name <name>', 'Project name for the report')
|
|
210
|
+
.option('--ai-insights', 'Enable AI-powered code insights', true)
|
|
211
|
+
.option('--security-scan', 'Enable security vulnerability scan', true)
|
|
212
|
+
.option('--performance', 'Enable performance analysis', true)
|
|
213
|
+
.option('--json', 'Output results as JSON', false)
|
|
214
|
+
.option('--provider <name>', 'Execution provider: local, remote, ai', 'local')
|
|
215
|
+
.action(async (path, options) => {
|
|
216
|
+
const engine = await initializeEngine();
|
|
217
|
+
const targetPath = path || '.';
|
|
218
|
+
const response = await engine.execute({
|
|
219
|
+
type: 'analyze',
|
|
220
|
+
command: 'analyze',
|
|
221
|
+
payload: {
|
|
222
|
+
targetPath,
|
|
223
|
+
options: {
|
|
224
|
+
format: options.format,
|
|
225
|
+
output: options.output,
|
|
226
|
+
maxSize: parseInt(options.maxSize, 10),
|
|
227
|
+
projectName: options.projectName,
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
options: {
|
|
231
|
+
json: options.json || isNonTTY(),
|
|
232
|
+
provider: options.provider,
|
|
233
|
+
},
|
|
234
|
+
});
|
|
235
|
+
if (options.json || isNonTTY()) {
|
|
236
|
+
outputJSON(response);
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
// Human-readable output
|
|
240
|
+
if (response.success) {
|
|
241
|
+
console.log('\nā
Analysis complete');
|
|
242
|
+
console.log(` Files analyzed: ${response.data?.filesAnalyzed}`);
|
|
243
|
+
console.log(` Findings: ${response.data?.findings}`);
|
|
244
|
+
console.log(` Report: ${response.data?.reportFile}`);
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
console.error('\nā Analysis failed:', response.error?.message);
|
|
248
|
+
process.exit(1);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
program
|
|
253
|
+
.command('init [path]')
|
|
254
|
+
.description('š Initialize a new Delta project with wizard')
|
|
255
|
+
.option('-t, --template <name>', 'Project template: default, nextjs, react, node, python', 'default')
|
|
256
|
+
.option('-f, --force', 'Overwrite existing config', false)
|
|
257
|
+
.option('--git', 'Initialize git repository', false)
|
|
258
|
+
.option('--json', 'Output results as JSON', false)
|
|
259
|
+
.option('--provider <name>', 'Execution provider: local, remote', 'local')
|
|
260
|
+
.option('-w, --wizard', 'Run interactive wizard', false)
|
|
261
|
+
.action(async (path, options) => {
|
|
262
|
+
// Run wizard if requested or no path provided
|
|
263
|
+
if (options.wizard || !path) {
|
|
264
|
+
const wizardResult = await runInitWizard();
|
|
265
|
+
await executeWizardActions(wizardResult);
|
|
266
|
+
// Then run engine init with wizard results
|
|
267
|
+
const engine = await initializeEngine();
|
|
268
|
+
const response = await engine.execute({
|
|
269
|
+
type: 'init',
|
|
270
|
+
command: 'init',
|
|
271
|
+
payload: {
|
|
272
|
+
projectPath: wizardResult.projectPath,
|
|
273
|
+
template: wizardResult.template,
|
|
274
|
+
force: options.force,
|
|
275
|
+
git: wizardResult.initializeGit,
|
|
276
|
+
},
|
|
277
|
+
options: {
|
|
278
|
+
json: options.json || isNonTTY(),
|
|
279
|
+
provider: options.provider,
|
|
280
|
+
},
|
|
281
|
+
});
|
|
282
|
+
if (options.json || isNonTTY()) {
|
|
283
|
+
outputJSON(response);
|
|
284
|
+
}
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
// Standard init flow
|
|
288
|
+
const engine = await initializeEngine();
|
|
289
|
+
const projectPath = path || '.';
|
|
290
|
+
const response = await engine.execute({
|
|
291
|
+
type: 'init',
|
|
292
|
+
command: 'init',
|
|
293
|
+
payload: {
|
|
294
|
+
projectPath,
|
|
295
|
+
template: options.template,
|
|
296
|
+
force: options.force,
|
|
297
|
+
git: options.git,
|
|
298
|
+
},
|
|
299
|
+
options: {
|
|
300
|
+
json: options.json || isNonTTY(),
|
|
301
|
+
provider: options.provider,
|
|
302
|
+
},
|
|
303
|
+
});
|
|
304
|
+
if (options.json || isNonTTY()) {
|
|
305
|
+
outputJSON(response);
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
printWelcome();
|
|
309
|
+
if (response.success) {
|
|
310
|
+
console.log('\nš Project initialized');
|
|
311
|
+
console.log(` Path: ${response.data?.projectPath}`);
|
|
312
|
+
console.log(` Config: ${response.data?.configPath}`);
|
|
313
|
+
console.log(` Template: ${response.data?.template}`);
|
|
314
|
+
}
|
|
315
|
+
else {
|
|
316
|
+
console.error('\nā Init failed:', response.error?.message);
|
|
317
|
+
process.exit(1);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
program
|
|
322
|
+
.command('config')
|
|
323
|
+
.description('āļø Manage CLI configuration with schema validation')
|
|
324
|
+
.option('-g, --get <key>', 'Get config value')
|
|
325
|
+
.option('-s, --set <key=value>', 'Set config value')
|
|
326
|
+
.option('-l, --list', 'List all config')
|
|
327
|
+
.option('--reset', 'Reset to default configuration')
|
|
328
|
+
.action(async (options) => {
|
|
329
|
+
const { configCommand } = await import('./commands/config.js');
|
|
330
|
+
await configCommand(options);
|
|
331
|
+
});
|
|
332
|
+
program
|
|
333
|
+
.command('status [path]')
|
|
334
|
+
.alias('st')
|
|
335
|
+
.description('š Check project health, connection status, and diagnostics')
|
|
336
|
+
.option('--diagnostics', 'Run full diagnostics', false)
|
|
337
|
+
.option('--fix', 'Auto-fix issues where possible', false)
|
|
338
|
+
.option('--json', 'Output results as JSON', false)
|
|
339
|
+
.action(async (path, options) => {
|
|
340
|
+
const engine = await initializeEngine();
|
|
341
|
+
const projectPath = path || '.';
|
|
342
|
+
const response = await engine.execute({
|
|
343
|
+
type: 'status',
|
|
344
|
+
command: 'status',
|
|
345
|
+
payload: {
|
|
346
|
+
projectPath,
|
|
347
|
+
diagnostics: options.diagnostics,
|
|
348
|
+
fix: options.fix,
|
|
349
|
+
},
|
|
350
|
+
options: {
|
|
351
|
+
json: options.json || isNonTTY(),
|
|
352
|
+
},
|
|
353
|
+
});
|
|
354
|
+
if (options.json || isNonTTY()) {
|
|
355
|
+
outputJSON(response);
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
if (response.success) {
|
|
359
|
+
const data = response.data;
|
|
360
|
+
console.log('\nš Project Status');
|
|
361
|
+
console.log(` Path: ${data?.project?.path || 'N/A'}`);
|
|
362
|
+
console.log(` Config: ${data?.project?.hasConfig ? 'ā
' : 'ā'}`);
|
|
363
|
+
console.log(` Auth: ${data?.auth?.authenticated ? 'ā
' : 'ā'}`);
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
console.error('\nā Status check failed:', response.error?.message);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
program
|
|
371
|
+
.command('completion [shell]')
|
|
372
|
+
.description('š§ Generate shell completion script (bash, zsh, fish, powershell)')
|
|
373
|
+
.option('--install', 'Install completion for current shell', false)
|
|
374
|
+
.action(async (shell, options) => {
|
|
375
|
+
const targetShell = shell || 'bash';
|
|
376
|
+
if (options.install) {
|
|
377
|
+
await installCompletion(targetShell);
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
console.log(generateCompletionScript(targetShell));
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
// New advanced commands
|
|
384
|
+
program
|
|
385
|
+
.command('sync')
|
|
386
|
+
.description('āļø Sync local analysis with Delta cloud in real-time')
|
|
387
|
+
.option('--watch', 'Watch for changes and auto-sync', false)
|
|
388
|
+
.option('--force', 'Force sync and overwrite remote', false)
|
|
389
|
+
.action(async (options) => {
|
|
390
|
+
const { syncCommand } = await import('./commands/sync.js');
|
|
391
|
+
await syncCommand(options);
|
|
392
|
+
});
|
|
393
|
+
program
|
|
394
|
+
.command('deploy')
|
|
395
|
+
.description('š Deploy documentation site to Delta hosting')
|
|
396
|
+
.option('--build', 'Build before deploy', true)
|
|
397
|
+
.option('--domain <name>', 'Custom domain')
|
|
398
|
+
.action(async (options) => {
|
|
399
|
+
const { deployCommand } = await import('./commands/deploy.js');
|
|
400
|
+
await deployCommand(options);
|
|
401
|
+
});
|
|
402
|
+
program
|
|
403
|
+
.command('plugins')
|
|
404
|
+
.description('š Manage Delta CLI plugins and extensions')
|
|
405
|
+
.option('--list', 'List installed plugins')
|
|
406
|
+
.option('--install <name>', 'Install a plugin')
|
|
407
|
+
.option('--uninstall <name>', 'Uninstall a plugin')
|
|
408
|
+
.option('--search <query>', 'Search for plugins')
|
|
409
|
+
.action(async (options) => {
|
|
410
|
+
const { pluginsCommand } = await import('./commands/plugins.js');
|
|
411
|
+
await pluginsCommand(options);
|
|
412
|
+
});
|
|
413
|
+
program
|
|
414
|
+
.command('profile [action]')
|
|
415
|
+
.description('š Manage environment profiles (dev/staging/prod)')
|
|
416
|
+
.option('--list', 'List all profiles', false)
|
|
417
|
+
.option('--use <name>', 'Switch to profile', '')
|
|
418
|
+
.option('--create <name>', 'Create new profile', '')
|
|
419
|
+
.option('--delete <name>', 'Delete profile', '')
|
|
420
|
+
.option('--provider <name>', 'Provider for new profile', 'local')
|
|
421
|
+
.option('--api-url <url>', 'API URL for remote profile', '')
|
|
422
|
+
.option('--json', 'Output as JSON', false)
|
|
423
|
+
.action(async (action, options) => {
|
|
424
|
+
const profiles = getProfileManager();
|
|
425
|
+
await profiles.load();
|
|
426
|
+
// Apply profile to environment
|
|
427
|
+
profiles.applyToEnvironment();
|
|
428
|
+
if (options.list || action === 'list') {
|
|
429
|
+
const list = profiles.listProfiles();
|
|
430
|
+
if (options.json) {
|
|
431
|
+
console.log(JSON.stringify(list, null, 2));
|
|
432
|
+
}
|
|
433
|
+
else {
|
|
434
|
+
console.log(chalk.bold.cyan('\nš Profiles\n'));
|
|
435
|
+
list.forEach(p => {
|
|
436
|
+
const active = p.active ? chalk.green('ā') : chalk.gray('ā');
|
|
437
|
+
const name = p.active ? chalk.bold(p.name) : p.name;
|
|
438
|
+
console.log(` ${active} ${name} ${chalk.gray(`(${p.provider})`)}`);
|
|
439
|
+
});
|
|
440
|
+
console.log(chalk.gray('\nActive profile affects provider selection and API endpoints'));
|
|
441
|
+
}
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
if (options.use) {
|
|
445
|
+
await profiles.setActiveProfile(options.use);
|
|
446
|
+
console.log(chalk.green(`ā
Switched to profile: ${options.use}`));
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
if (options.create) {
|
|
450
|
+
await profiles.createProfile(options.create, {
|
|
451
|
+
provider: options.provider,
|
|
452
|
+
apiUrl: options.apiUrl || undefined,
|
|
453
|
+
});
|
|
454
|
+
console.log(chalk.green(`ā
Created profile: ${options.create}`));
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
if (options.delete) {
|
|
458
|
+
await profiles.deleteProfile(options.delete);
|
|
459
|
+
console.log(chalk.green(`ā
Deleted profile: ${options.delete}`));
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
// Show current profile
|
|
463
|
+
const current = profiles.getActiveProfile();
|
|
464
|
+
if (options.json) {
|
|
465
|
+
console.log(JSON.stringify(current, null, 2));
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
console.log(chalk.bold.cyan('\nš Active Profile\n'));
|
|
469
|
+
console.log(` Name: ${chalk.bold(current.name)}`);
|
|
470
|
+
console.log(` Provider: ${current.provider}`);
|
|
471
|
+
console.log(` Timeout: ${current.timeout}ms`);
|
|
472
|
+
console.log(` Retries: ${current.retries}`);
|
|
473
|
+
if (current.apiUrl)
|
|
474
|
+
console.log(` API URL: ${current.apiUrl}`);
|
|
475
|
+
console.log(` Features: ${Object.entries(current.features)
|
|
476
|
+
.filter(([, v]) => v)
|
|
477
|
+
.map(([k]) => k)
|
|
478
|
+
.join(', ') || 'none'}`);
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
program
|
|
482
|
+
.command('audit')
|
|
483
|
+
.description('š View audit log of recent commands')
|
|
484
|
+
.option('--recent <n>', 'Show last N entries', '50')
|
|
485
|
+
.option('--stats', 'Show usage statistics', false)
|
|
486
|
+
.option('--json', 'Output as JSON', false)
|
|
487
|
+
.action(async (options) => {
|
|
488
|
+
const audit = getAuditLogger();
|
|
489
|
+
if (options.stats) {
|
|
490
|
+
const stats = await audit.getStats();
|
|
491
|
+
if (options.json) {
|
|
492
|
+
console.log(JSON.stringify(stats, null, 2));
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
console.log(chalk.bold.cyan('\nš Audit Statistics\n'));
|
|
496
|
+
console.log(` Total Commands: ${stats.totalCommands}`);
|
|
497
|
+
console.log(` Success Rate: ${stats.successRate}%`);
|
|
498
|
+
console.log(` Avg Duration: ${stats.avgDuration}ms`);
|
|
499
|
+
console.log(` Most Used: ${stats.mostUsed.join(', ') || 'N/A'}`);
|
|
500
|
+
console.log(` Last Used: ${stats.lastUsed}`);
|
|
501
|
+
}
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
const entries = await audit.getRecentEntries(parseInt(options.recent, 10));
|
|
505
|
+
if (options.json) {
|
|
506
|
+
console.log(JSON.stringify(entries, null, 2));
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
console.log(chalk.bold.cyan(`\nš Recent Commands (last ${entries.length})\n`));
|
|
510
|
+
entries.forEach(entry => {
|
|
511
|
+
const status = entry.success ? chalk.green('ā') : chalk.red('ā');
|
|
512
|
+
const cmd = chalk.cyan(entry.command);
|
|
513
|
+
const time = chalk.gray(new Date(entry.timestamp).toLocaleTimeString());
|
|
514
|
+
const duration = chalk.gray(`${entry.duration}ms`);
|
|
515
|
+
console.log(` ${status} ${cmd} ${time} ${duration}`);
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
program
|
|
520
|
+
.command('hooks')
|
|
521
|
+
.description('š Manage webhooks and notifications (Slack, Teams)')
|
|
522
|
+
.option('--list', 'List all hooks', false)
|
|
523
|
+
.option('--add-slack <url>', 'Add Slack webhook')
|
|
524
|
+
.option('--add-teams <url>', 'Add Teams webhook')
|
|
525
|
+
.option('--remove <id>', 'Remove hook by ID')
|
|
526
|
+
.option('--toggle <id>', 'Toggle hook on/off')
|
|
527
|
+
.option('--json', 'Output as JSON', false)
|
|
528
|
+
.action(async (options) => {
|
|
529
|
+
const hooks = getHookManager();
|
|
530
|
+
await hooks.load();
|
|
531
|
+
if (options.list) {
|
|
532
|
+
const list = await hooks.listHooks();
|
|
533
|
+
if (options.json) {
|
|
534
|
+
console.log(JSON.stringify(list, null, 2));
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
console.log(chalk.bold.cyan('\nš Hooks\n'));
|
|
538
|
+
if (list.length === 0) {
|
|
539
|
+
console.log(chalk.gray(' No hooks configured'));
|
|
540
|
+
}
|
|
541
|
+
else {
|
|
542
|
+
list.forEach(h => {
|
|
543
|
+
const status = h.enabled ? chalk.green('ā') : chalk.red('ā');
|
|
544
|
+
console.log(` ${status} ${h.name} ${chalk.gray(`(${h.type})`)}`);
|
|
545
|
+
console.log(` ${chalk.gray(h.url)}`);
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
if (options.addSlack) {
|
|
552
|
+
const hook = await hooks.addHook(hookTemplates.slack(options.addSlack));
|
|
553
|
+
console.log(chalk.green(`ā
Added Slack hook: ${hook.id}`));
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
if (options.addTeams) {
|
|
557
|
+
const hook = await hooks.addHook(hookTemplates.teams(options.addTeams));
|
|
558
|
+
console.log(chalk.green(`ā
Added Teams hook: ${hook.id}`));
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
561
|
+
if (options.remove) {
|
|
562
|
+
await hooks.removeHook(options.remove);
|
|
563
|
+
console.log(chalk.green(`ā
Removed hook: ${options.remove}`));
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
if (options.toggle) {
|
|
567
|
+
await hooks.toggleHook(options.toggle);
|
|
568
|
+
console.log(chalk.green(`ā
Toggled hook: ${options.toggle}`));
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
// Show help if no action
|
|
572
|
+
console.log(chalk.bold.cyan('\nš Hooks Management\n'));
|
|
573
|
+
console.log(chalk.gray(' --list List all hooks'));
|
|
574
|
+
console.log(chalk.gray(' --add-slack <url> Add Slack webhook'));
|
|
575
|
+
console.log(chalk.gray(' --add-teams <url> Add Teams webhook'));
|
|
576
|
+
console.log(chalk.gray(' --remove <id> Remove hook'));
|
|
577
|
+
console.log(chalk.gray(' --toggle <id> Toggle hook on/off'));
|
|
578
|
+
});
|
|
579
|
+
// Parse arguments
|
|
580
|
+
const args = process.argv.slice(2);
|
|
581
|
+
// Handle slash commands (e.g., /help, /analyze)
|
|
582
|
+
const slashCommandMap = {
|
|
583
|
+
'/help': 'help',
|
|
584
|
+
'/h': 'help',
|
|
585
|
+
'/analyze': 'analyze',
|
|
586
|
+
'/a': 'analyze',
|
|
587
|
+
'/status': 'status',
|
|
588
|
+
'/st': 'status',
|
|
589
|
+
'/init': 'init',
|
|
590
|
+
'/i': 'init',
|
|
591
|
+
'/login': 'login',
|
|
592
|
+
'/logout': 'logout',
|
|
593
|
+
'/whoami': 'whoami',
|
|
594
|
+
'/me': 'whoami',
|
|
595
|
+
'/config': 'config',
|
|
596
|
+
'/dashboard': 'dashboard',
|
|
597
|
+
'/ui': 'dashboard',
|
|
598
|
+
'/sync': 'sync',
|
|
599
|
+
'/deploy': 'deploy',
|
|
600
|
+
'/plugins': 'plugins',
|
|
601
|
+
'/version': '--version',
|
|
602
|
+
'/v': '--version',
|
|
603
|
+
};
|
|
604
|
+
// Convert slash commands to regular commands
|
|
605
|
+
if (args.length > 0 && args[0].startsWith('/')) {
|
|
606
|
+
const slashCmd = args[0].toLowerCase();
|
|
607
|
+
const mappedCmd = slashCommandMap[slashCmd];
|
|
608
|
+
if (mappedCmd) {
|
|
609
|
+
if (mappedCmd.startsWith('--')) {
|
|
610
|
+
// It's a flag like --version
|
|
611
|
+
args[0] = mappedCmd;
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
// It's a command
|
|
615
|
+
args[0] = mappedCmd;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
else {
|
|
619
|
+
// Unknown slash command
|
|
620
|
+
console.error(chalk.red(`ā Unknown command: ${slashCmd}`));
|
|
621
|
+
console.log(chalk.gray('Run /help to see available commands'));
|
|
622
|
+
process.exit(1);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
const parsed = program.parse(['node', 'delta', ...args]);
|
|
626
|
+
// If no command provided and not in interactive mode, show welcome
|
|
627
|
+
if (process.argv.length <= 2 && !parsed.opts().interactive) {
|
|
628
|
+
printWelcome();
|
|
629
|
+
printTips();
|
|
630
|
+
}
|
|
631
|
+
// Run interactive mode if requested
|
|
632
|
+
if (parsed.opts().interactive) {
|
|
633
|
+
printWelcome();
|
|
634
|
+
runInteractiveMode({});
|
|
635
|
+
}
|
|
636
|
+
//# sourceMappingURL=index.js.map
|