microsoft/TypeAgent
Publicmirrored fromhttps://github.com/microsoft/TypeAgentAvailable
.devcontainer/scripts/post-start.sh
35lines · modecode
| 1 | #!/bin/bash |
| 2 | # Copyright (c) Microsoft Corporation. |
| 3 | # Licensed under the MIT License. |
| 4 | |
| 5 | # |
| 6 | # TypeAgent DevContainer Post-Start Script |
| 7 | # Runs each time the container starts |
| 8 | # |
| 9 | |
| 10 | echo "" |
| 11 | echo "╔══════════════════════════════════════════════════════════════╗" |
| 12 | echo "║ TypeAgent Dev Container Ready ║" |
| 13 | echo "╚══════════════════════════════════════════════════════════════╝" |
| 14 | echo "" |
| 15 | echo "Quick commands:" |
| 16 | echo " cd ts && pnpm run build # Build all packages" |
| 17 | echo " pnpm run cli # Run CLI" |
| 18 | echo " pnpm run server # Start agent server (for hybrid shell)" |
| 19 | echo " pnpm run shell # Run Electron shell (if GUI available)" |
| 20 | echo " pnpm run test:local # Run unit tests" |
| 21 | echo "" |
| 22 | echo "AI Agents:" |
| 23 | echo " claude # Start Claude Code" |
| 24 | echo " claude \"your prompt\" # Run Claude Code with prompt" |
| 25 | echo "" |
| 26 | echo "Worktree commands (for parallel agents):" |
| 27 | echo " ../scripts/agent-worktree.sh feature-name # Create worktree" |
| 28 | echo " ../scripts/agent-worktree.sh --cleanup name # Remove worktree" |
| 29 | echo "" |
| 30 | |
| 31 | # Check if Azure login is needed |
| 32 | if ! az account show &>/dev/null; then |
| 33 | echo "Note: Run 'az login --use-device-code' to authenticate with Azure" |
| 34 | echo "" |
| 35 | fi |
| 36 | |