chore: track local setup helper and ignore generated Go caches
continuous-integration/drone Build encountered an error
continuous-integration/drone Build encountered an error
This commit is contained in:
@@ -44,6 +44,9 @@ go.work.sum
|
|||||||
/web/.tmp/
|
/web/.tmp/
|
||||||
/.tmp-test/
|
/.tmp-test/
|
||||||
/.tmp-go-cache/
|
/.tmp-go-cache/
|
||||||
|
/.tmp-go/
|
||||||
|
/.tmp-go-mod/
|
||||||
|
/node-user-path-backup-*.txt
|
||||||
*.sqlite
|
*.sqlite
|
||||||
*.sqlite-journal
|
*.sqlite-journal
|
||||||
*.sqlite-shm
|
*.sqlite-shm
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
## Work ownership
|
## Work ownership
|
||||||
|
|
||||||
- Agree on file ownership before concurrent edits. Shared files include `web/src/App.vue`, `internal/api/server.go`, `internal/model/proxy.go`, `go.mod`, and `go.sum`.
|
- Agree on file ownership before concurrent edits. Shared files include `web/src/react/App.tsx`, `internal/api/server.go`, `internal/model/proxy.go`, `go.mod`, and `go.sum`.
|
||||||
- Assign independent features by directory or module. Protocol implementations belong in `internal/protocol/<protocol>`, outbound transports in `internal/outbound`, persistence in `internal/store`, and HTTP endpoints in `internal/api`.
|
- Assign independent features by directory or module. Protocol implementations belong in `internal/protocol/<protocol>`, outbound transports in `internal/outbound`, persistence in `internal/store`, and HTTP endpoints in `internal/api`.
|
||||||
- Keep endpoint behavior in domain files (`targets.go`, `proxies.go`, `commands.go`, `events.go`). Keep `server.go` focused on server state, middleware, and routing.
|
- Keep endpoint behavior in domain files (`targets.go`, `proxies.go`, `commands.go`, `events.go`). Keep `server.go` focused on server state, middleware, and routing.
|
||||||
- Put independent frontend state in `web/src/composables` and reusable views in separate Vue components. `App.vue` owns navigation and coordinates shared state.
|
- Put independent frontend state in React hooks and reusable views in separate React components under `web/src/react`. `App.tsx` owns navigation and coordinates shared state. Use Ant Design components and their default theme; keep application CSS limited to layout.
|
||||||
- Announce shared-file handoffs. Read the current file before editing; preserve changes made by other agents. Do not restore entire files or stage unrelated work.
|
- Announce shared-file handoffs. Read the current file before editing; preserve changes made by other agents. Do not restore entire files or stage unrelated work.
|
||||||
- Keep behavior-preserving moves separate from feature changes where possible. Update imports and run the affected package checks after each move.
|
- Keep behavior-preserving moves separate from feature changes where possible. Update imports and run the affected package checks after each move.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
powershell.exe -NoProfile -Command "$ErrorActionPreference='Stop'; $nodeDir=Join-Path $env:APPDATA 'fnm\aliases\default'; $npmDir=Join-Path $env:APPDATA 'npm'; if (!(Test-Path (Join-Path $nodeDir 'node.exe'))) { throw ('Node not found: '+$nodeDir) }; $original=[Environment]::GetEnvironmentVariable('Path','User'); $entries=@($original -split ';' | Where-Object { $_ }); foreach ($directory in @($nodeDir,$npmDir)) { if (!($entries | Where-Object { $_.TrimEnd('\') -ieq $directory })) { $entries += $directory } }; $updated=$entries -join ';'; if ($updated -cne $original) { [Environment]::SetEnvironmentVariable('Path',$updated,'User') }; if ([Environment]::GetEnvironmentVariable('Path','User') -cne $updated) { throw 'User PATH verification failed' }; Write-Host 'User PATH updated. Existing entries preserved.'"
|
||||||
|
if errorlevel 1 goto failed
|
||||||
|
set "PATH=%APPDATA%\fnm\aliases\default;%APPDATA%\npm;%PATH%"
|
||||||
|
where node
|
||||||
|
node --version
|
||||||
|
if errorlevel 1 goto failed
|
||||||
|
call npm.cmd --version
|
||||||
|
if errorlevel 1 goto failed
|
||||||
|
echo.
|
||||||
|
echo Node and npm are ready. Close and reopen your terminal application.
|
||||||
|
pause
|
||||||
|
exit /b 0
|
||||||
|
:failed
|
||||||
|
echo.
|
||||||
|
echo Environment repair failed. See the error above.
|
||||||
|
pause
|
||||||
|
exit /b 1
|
||||||
Reference in New Issue
Block a user