claude-dev-env 8.16.0 → 8.16.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.
@@ -20,6 +20,7 @@ description: >-
20
20
  - Status
21
21
  - Removal and teardown
22
22
  - Self-modification warning
23
+ - Handing the elevated step to the operator
23
24
  - Verification
24
25
  - Files
25
26
 
@@ -36,6 +37,8 @@ prove the task by the artifact it changes.
36
37
  - Task Scheduler inherits none of the shell PATH. A bare executable name in the action fails at run time.
37
38
  - A helper under an installer-managed path deletes itself during an installer run.
38
39
  - `LastTaskResult: 0` from a run that took the idle branch says nothing about the branch that acts.
40
+ - A `#Requires -RunAsAdministrator` line pasted at a prompt checks nothing. It applies only to a script file.
41
+ - An elevated window opens in `C:\WINDOWS\system32`. A prompt in the user's home folder is usually unelevated.
39
42
 
40
43
  ## When this applies
41
44
 
@@ -134,6 +137,27 @@ instructions on a timer. A major upgrade can land mid-session while the agent ho
134
137
  Give the operator the teardown command, name the interval, and keep the interval wide enough for a
135
138
  session to finish between runs.
136
139
 
140
+ ## Handing the elevated step to the operator
141
+
142
+ The operator runs the elevated part by hand, so hand it over as one block they paste into an
143
+ Administrator window. Put the block in the message itself. A file to download adds a step and a
144
+ path the browser can rename.
145
+
146
+ Wrap the block in `& { ... }` and open it with an elevation check, so an unelevated paste stops
147
+ with a clear line and changes nothing:
148
+
149
+ ```powershell
150
+ & {
151
+ $ErrorActionPreference = 'Stop'
152
+ $IsAdmin = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
153
+ if (-not $IsAdmin) { Write-Host 'NOT ELEVATED. Open PowerShell with Run as administrator and paste again.' -ForegroundColor Red; return }
154
+ Register-ScheduledTask -TaskName $TaskName -Action $Action -Trigger $Trigger -Settings $Settings -Principal $Principal -Force
155
+ }
156
+ ```
157
+
158
+ The script block scopes `$ErrorActionPreference` and lets `return` end the paste. End the block
159
+ with a status print the operator copies back, so the next step reads the result.
160
+
137
161
  ## Verification
138
162
 
139
163
  A run that takes the idle branch reports `LastTaskResult: 0`, and that result covers the idle branch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-dev-env",
3
- "version": "8.16.0",
3
+ "version": "8.16.1",
4
4
  "description": "Claude Code development standards — rules, hooks, agents, commands, and skills",
5
5
  "type": "module",
6
6
  "bin": {