@gw-tools/gw 0.59.2 → 0.60.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.
- package/README.md +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -196,8 +196,6 @@ The `install.sh` script links the planner + executor agent definitions and the a
|
|
|
196
196
|
- Run tests and iterate until passing
|
|
197
197
|
- Create draft PRs with full context
|
|
198
198
|
|
|
199
|
-
📦 **Building custom agents?** See [@gw-tools/autonomous-workflow-agent](https://www.npmjs.com/package/@gw-tools/autonomous-workflow-agent) for SDK integration.
|
|
200
|
-
|
|
201
199
|
📊 **Visualize progress in VS Code:** Install the [Agent Tasks extension](https://marketplace.visualstudio.com/items?itemName=mthines.agent-tasks) to see `plan.md`, `task.md`, and `walkthrough.md` artifacts live in the sidebar.
|
|
202
200
|
|
|
203
201
|
## Initial Setup: Secrets in the Default Branch
|
|
@@ -438,8 +436,12 @@ When creating a new worktree without specifying an existing branch, `gw checkout
|
|
|
438
436
|
|
|
439
437
|
3. **New branches**: If the branch doesn't exist anywhere, it's created from the source branch (defaultBranch or `--from` branch) after fetching the latest from remote.
|
|
440
438
|
|
|
439
|
+
**Remote Probe (catching teammates' pushes):**
|
|
440
|
+
When the requested branch isn't local, `gw checkout` queries the remote (`git ls-remote origin refs/heads/<branch>`) before deciding it's a brand-new branch. This catches branches a teammate just pushed that you haven't fetched yet — without it, `gw` would silently create a new branch with the same name from the default branch and you'd diverge. The probe uses a 3-second timeout and is silent on miss. Use `--no-fetch` to skip it (offline mode). The probe is also skipped automatically when you pass `-b`/`-B` or `--from`, since those signal you want a brand-new branch.
|
|
441
|
+
|
|
441
442
|
**Network Behavior:**
|
|
442
443
|
|
|
444
|
+
- **Branch not local**: Probes remote with `git ls-remote` (3s timeout, skipped with `--no-fetch`)
|
|
443
445
|
- **New branches without `--from`**: Fetches defaultBranch from remote, falls back to local if fetch fails (offline support)
|
|
444
446
|
- **New branches with `--from`**: Requires successful remote fetch, exits on failure (ensures fresh code)
|
|
445
447
|
- **Local branches**: Used directly without network access
|
|
@@ -471,6 +473,7 @@ If you try to add a worktree that already exists, the command will prompt you to
|
|
|
471
473
|
#### Options
|
|
472
474
|
|
|
473
475
|
- `--no-cd`: Don't navigate to the new worktree after creation
|
|
476
|
+
- `--no-fetch`: Skip the remote probe (offline mode); don't query origin for branches that aren't yet local
|
|
474
477
|
- `--from <branch>`: Create new branch from specified branch instead of `defaultBranch`
|
|
475
478
|
- `--from-staged`: Copy staged files from current worktree to new worktree (see [Staged Files](#staged-files))
|
|
476
479
|
|
|
@@ -1717,8 +1720,8 @@ nx run gw-tool:check
|
|
|
1717
1720
|
# Lint
|
|
1718
1721
|
nx run gw-tool:lint
|
|
1719
1722
|
|
|
1720
|
-
# Format code
|
|
1721
|
-
nx
|
|
1723
|
+
# Format code (Prettier; do NOT use `deno fmt`)
|
|
1724
|
+
nx format:write
|
|
1722
1725
|
|
|
1723
1726
|
# Compile to binary (current platform only)
|
|
1724
1727
|
nx run gw-tool:compile
|