autopilot-code 0.10.0 → 1.0.0

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 CHANGED
@@ -35,7 +35,9 @@ Autopilot supports multiple agent types:
35
35
  }
36
36
  ```
37
37
 
38
- ### Enabling the New Runner
38
+ ### Runner Configuration
39
+
40
+ **IMPORTANT**: The new Python runner is now the default. The legacy bash script is deprecated and will be removed in a future version.
39
41
 
40
42
  The new runner provides enhanced progress tracking and session continuity:
41
43
 
@@ -46,6 +48,13 @@ The new runner provides enhanced progress tracking and session continuity:
46
48
  }
47
49
  ```
48
50
 
51
+ **Deprecation Timeline**:
52
+ - **Current release**: New runner is default, deprecation warnings added
53
+ - **+1 minor release**: More prominent warnings for legacy runner
54
+ - **+1 major release**: Bash script will be removed entirely
55
+
56
+ If you see a deprecation warning, it means you're using the legacy bash runner. To migrate, remove `"useNewRunner": false` from your config (or set to `true`).
57
+
49
58
  ### Understanding Step Labels
50
59
 
51
60
  When using the new runner, issues progress through these labels:
@@ -95,7 +104,7 @@ Example:
95
104
  Notes:
96
105
  - `repo` must be the GitHub `owner/name`.
97
106
  - `agent` (optional, default `"opencode"`): set to `"opencode"` or `"claude"` to choose which coding agent to use.
98
- - `useNewRunner` (optional, default `false`): enable the new runner with step labels and session continuity.
107
+ - `useNewRunner` (optional, default `true`): enable the new runner with step labels and session continuity. The legacy bash runner is deprecated and will be removed in a future version.
99
108
  - `autoMerge` (optional, default `true`): if `true`, autopilot will automatically merge PRs after checks pass.
100
109
  - `mergeMethod` (optional, default `"squash"`): merge strategy to use. Options: `"squash"`, `"merge"`, or `"rebase"`.
101
110
  - `allowedMergeUsers` (required when `autoMerge=true`): list of GitHub usernames allowed to auto-merge. The runner verifies the authenticated GitHub user is in this list before merging.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autopilot-code",
3
- "version": "0.10.0",
3
+ "version": "1.0.0",
4
4
  "private": false,
5
5
  "description": "Repo-issue–driven autopilot runner",
6
6
  "license": "MIT",
@@ -765,6 +765,16 @@ def run_issue(cfg: RepoConfig, issue_number: int) -> bool:
765
765
  Uses either the new Python runner or legacy bash script
766
766
  based on configuration.
767
767
  """
768
+ use_new_runner = cfg.config.get("useNewRunner", True)
769
+
770
+ if not use_new_runner:
771
+ import logging
772
+ logger = logging.getLogger(__name__)
773
+ logger.warning(
774
+ "Legacy bash runner is deprecated and will be removed in a future version. "
775
+ "Please migrate to new runner by removing 'useNewRunner: false' from config."
776
+ )
777
+
768
778
  if cfg.use_new_runner:
769
779
  return run_issue_new(cfg, issue_number)
770
780
  else:
@@ -1,4 +1,15 @@
1
1
  #!/usr/bin/env bash
2
+ # =============================================================================
3
+ # DEPRECATED: This script is deprecated and will be removed in a future version.
4
+ #
5
+ # The functionality has been replaced by Python IssueRunner module at:
6
+ # scripts/issue_runner/
7
+ #
8
+ # To use the new runner, ensure "useNewRunner" is not set to false in your
9
+ # autopilot.json config (it defaults to true).
10
+ #
11
+ # This script is maintained only for backward compatibility.
12
+ # =============================================================================
2
13
  set -euo pipefail
3
14
 
4
15
  REPO_DIR="$1"
@@ -2,7 +2,7 @@
2
2
  "enabled": true,
3
3
  "repo": "owner/repo",
4
4
  "agent": "opencode",
5
- "useNewRunner": false,
5
+ "useNewRunner": true,
6
6
  "autoMerge": true,
7
7
  "mergeMethod": "squash",
8
8
  "allowedMergeUsers": [],