dlw-machine-setup 0.1.0

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 (3) hide show
  1. package/README.md +112 -0
  2. package/bin/installer.js +4208 -0
  3. package/package.json +24 -0
package/README.md ADDED
@@ -0,0 +1,112 @@
1
+ # @DLW-INT-SAP-DEV/one-shot-installer
2
+
3
+ NPM wrapper for the One-Shot Setup installer. This package downloads and executes the appropriate binary from GitHub Releases based on your platform.
4
+
5
+ ## Installation
6
+
7
+ ### Using npx (Recommended)
8
+
9
+ No installation required - run directly:
10
+
11
+ ```bash
12
+ npx @DLW-INT-SAP-DEV/one-shot-installer
13
+ ```
14
+
15
+ ### Global Installation
16
+
17
+ ```bash
18
+ npm install -g @DLW-INT-SAP-DEV/one-shot-installer
19
+ one-shot-installer
20
+ ```
21
+
22
+ ### Local Installation
23
+
24
+ ```bash
25
+ npm install @DLW-INT-SAP-DEV/one-shot-installer
26
+ npx one-shot-installer
27
+ ```
28
+
29
+ ## Authentication
30
+
31
+ This package downloads binaries from a private GitHub repository. Authentication is handled automatically:
32
+
33
+ 1. **First run**: The binary will prompt you to authenticate via GitHub OAuth Device Flow
34
+ 2. **Subsequent runs**: Your token is cached at `~/.one-shot-installer/github-token.json`
35
+
36
+ ### Alternative: Environment Variable
37
+
38
+ You can also provide a GitHub token via environment variable:
39
+
40
+ ```bash
41
+ # Windows (PowerShell)
42
+ $env:GITHUB_TOKEN="your_token_here"
43
+ npx @DLW-INT-SAP-DEV/one-shot-installer
44
+
45
+ # macOS/Linux
46
+ GITHUB_TOKEN="your_token_here" npx @DLW-INT-SAP-DEV/one-shot-installer
47
+ ```
48
+
49
+ ## How It Works
50
+
51
+ 1. Detects your platform (Windows, macOS, Linux) and architecture
52
+ 2. Downloads the appropriate binary from GitHub Releases (or uses cached version)
53
+ 3. Executes the installer
54
+ 4. The installer guides you through:
55
+ - Selecting technology domains (SAPUI5, CAP, ABAP, etc.)
56
+ - Choosing your AI assistant
57
+ - Installing MCP server configuration
58
+
59
+ ## Supported Platforms
60
+
61
+ - **Windows**: x64
62
+ - **macOS**: x64 (Intel), arm64 (Apple Silicon)
63
+ - **Linux**: x64
64
+
65
+ ## Cache Location
66
+
67
+ Binaries are cached at:
68
+ - **Windows**: `%USERPROFILE%\.one-shot-installer\bin\`
69
+ - **macOS/Linux**: `~/.one-shot-installer/bin/`
70
+
71
+ ## Troubleshooting
72
+
73
+ ### "Failed to download binary"
74
+
75
+ If you see authentication errors:
76
+
77
+ 1. Make sure you have access to the repository
78
+ 2. Run the installer once to authenticate via OAuth
79
+ 3. Or set `GITHUB_TOKEN` environment variable with a valid GitHub token
80
+
81
+ ### "Unsupported platform"
82
+
83
+ The installer currently supports:
84
+ - Windows 10/11 (x64)
85
+ - macOS 10.15+ (Intel and Apple Silicon)
86
+ - Linux x64 (Ubuntu, Debian, RHEL, etc.)
87
+
88
+ ### Binary not executing
89
+
90
+ On macOS/Linux, if you get permission errors:
91
+ ```bash
92
+ chmod +x ~/.one-shot-installer/bin/machine-setup-*
93
+ ```
94
+
95
+ ## What Gets Installed
96
+
97
+ The installer provides:
98
+ - **Technology-specific context files** (documentation, patterns, best practices)
99
+ - **MCP server configuration** for AI assistants (Claude, Copilot, Cursor)
100
+ - **Setup instructions** for your development environment
101
+
102
+ ## Repository
103
+
104
+ GitHub: [DLW-INT-SAP-DEV/DBE_DLWR_AI_WORKSPACE_SETUP_client](https://github.com/DLW-INT-SAP-DEV/DBE_DLWR_AI_WORKSPACE_SETUP_client)
105
+
106
+ ## License
107
+
108
+ Internal use only - DLW-INT-SAP-DEV organization
109
+
110
+ ## Support
111
+
112
+ For issues or questions, open an issue on GitHub.