@symbeon/orbit-devops 1.0.0 → 1.0.2

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbeon/orbit-devops",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "The Developer's Workspace Command Center. Diagnose, Optimize, Compact, Control.",
5
5
  "main": "bin/orbit.js",
6
6
  "bin": {
@@ -1,8 +1,31 @@
1
1
  # Orbit-DevOps: Sync Stack to GitHub
2
2
  # Generates a fresh dev-stack.json and pushes it to the remote repository
3
3
 
4
- $stackRepoPath = "c:\Users\João\Desktop\PROJETOS\stack"
5
- $orbitStackPath = "$env:USERPROFILE\Desktop\PROJETOS\04_DEVELOPER_TOOLS\orbit-devops\dev-stack.json"
4
+ # Determine the Stack Repository Path
5
+ # 1. Check Environment Variable
6
+ # 2. Try to find a 'stack' directory in the parent folder of the project
7
+ $stackRepoPath = $env:ORBIT_STACK_PATH
8
+
9
+ if (-not $stackRepoPath) {
10
+ # Calculate likely path (neighbor to orbit-devops directory)
11
+ # We use $PSScriptRoot and go up to the workspace root
12
+ $currentScriptDir = $PSScriptRoot
13
+ $parentDir = Split-Path (Split-Path $currentScriptDir -Parent) -Parent
14
+ $candidate = Join-Path $parentDir "stack"
15
+
16
+ if (Test-Path $candidate) {
17
+ $stackRepoPath = $candidate
18
+ }
19
+ }
20
+
21
+ if (-not $stackRepoPath -or -not (Test-Path $stackRepoPath)) {
22
+ Write-Host "⚠️ Stack repository not found!" -ForegroundColor Red
23
+ Write-Host "To use 'orbit sync', please:" -ForegroundColor Yellow
24
+ Write-Host "1. Create a repository for your environment DNA (e.g., 'stack')."
25
+ Write-Host "2. Set the environment variable ORBIT_STACK_PATH to that folder."
26
+ Write-Host " Example: [System.Environment]::SetEnvironmentVariable('ORBIT_STACK_PATH', 'C:\Path\To\Stack', 'User')"
27
+ exit 1
28
+ }
6
29
 
7
30
  Write-Host "🪐 Orbit-DevOps: Stack Sync" -ForegroundColor Cyan
8
31