Skip to content

Agent Directive: External Dependencies Bootstrap

Objective

Use PowerShell automation to launch the exact Cloudflare and Azure DevOps configuration portals in the user's default browser, facilitating the manual generation of necessary API tokens. Validate the environment configuration once the user updates the file.

Execution Sequence

1. Launch Browser Portals

  • Execute a PowerShell command to open the Azure DevOps Project portal: Start-Process "https://dev.azure.com/synkronyx/"
  • Execute a PowerShell command to open the Azure DevOps PAT generation portal: Start-Process "https://dev.azure.com/synkronyx/_usersSettings/tokens"
  • Execute a PowerShell command to open the Cloudflare API Tokens portal: Start-Process "https://dash.cloudflare.com/profile/api-tokens"

2. Await User Action

  • Output a clear message to the console instructing the user to:
    1. Create the ADO Project named EventRouteOptimiser.
    2. Generate the ADO PAT (Full Access or Code/Work Items).
    3. Generate the Cloudflare API Token (Edit permissions for Workers & D1).
    4. Paste these into settings/.env.local.
  • Halt execution and await the user's confirmation in the chat before proceeding to step 3.

3. Validate Secrets

  • Once the user confirms, read settings/.env.local.
  • Verify that SKNX_ERO_ADO_PAT and CLOUDFLARE_API_TOKEN contain valid token strings (not empty, and not placeholder text like <INSERT_YOUR...).
  • If valid, confirm successful bootstrap.

4. Update System Builder

  • Read SYSTEM_BUILDER.md.
  • Add docs/21-external-dependencies-bootstrap.md to the Artefact Index.
  • Append to the end of Phase 0.