sase-github 0.2.0__tar.gz → 0.2.1__tar.gz

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.
Files changed (40) hide show
  1. sase_github-0.2.1/.release-please-manifest.json +3 -0
  2. {sase_github-0.2.0 → sase_github-0.2.1}/CHANGELOG.md +7 -0
  3. {sase_github-0.2.0 → sase_github-0.2.1}/PKG-INFO +1 -1
  4. {sase_github-0.2.0 → sase_github-0.2.1}/pyproject.toml +1 -1
  5. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/scripts/new_pr_desc_get_context.py +30 -2
  6. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/xprompts/gh.yml +3 -1
  7. sase_github-0.2.0/.release-please-manifest.json +0 -3
  8. {sase_github-0.2.0 → sase_github-0.2.1}/.github/workflows/ci.yml +0 -0
  9. {sase_github-0.2.0 → sase_github-0.2.1}/.github/workflows/pr-title.yml +0 -0
  10. {sase_github-0.2.0 → sase_github-0.2.1}/.github/workflows/publish.yml +0 -0
  11. {sase_github-0.2.0 → sase_github-0.2.1}/.sase_beads/beads.db +0 -0
  12. {sase_github-0.2.0 → sase_github-0.2.1}/.sase_beads/config.json +0 -0
  13. {sase_github-0.2.0 → sase_github-0.2.1}/.sase_beads/issues.jsonl +0 -0
  14. {sase_github-0.2.0 → sase_github-0.2.1}/CLAUDE.md +0 -0
  15. {sase_github-0.2.0 → sase_github-0.2.1}/Justfile +0 -0
  16. {sase_github-0.2.0 → sase_github-0.2.1}/LICENSE +0 -0
  17. {sase_github-0.2.0 → sase_github-0.2.1}/README.md +0 -0
  18. {sase_github-0.2.0 → sase_github-0.2.1}/docs/architecture.md +0 -0
  19. {sase_github-0.2.0 → sase_github-0.2.1}/docs/configuration.md +0 -0
  20. {sase_github-0.2.0 → sase_github-0.2.1}/docs/xprompts.md +0 -0
  21. {sase_github-0.2.0 → sase_github-0.2.1}/release-please-config.json +0 -0
  22. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/__init__.py +0 -0
  23. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/config.py +0 -0
  24. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/default_config.yml +0 -0
  25. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/errors.py +0 -0
  26. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/plugin.py +0 -0
  27. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/scripts/__init__.py +0 -0
  28. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/scripts/gh_setup.py +0 -0
  29. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/workspace_plugin.py +0 -0
  30. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/xprompts/new_pr_desc.yml +0 -0
  31. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/xprompts/pr_diff.yml +0 -0
  32. {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/xprompts/prdd.yml +0 -0
  33. {sase_github-0.2.0 → sase_github-0.2.1}/tests/__init__.py +0 -0
  34. {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_ci_install_contract.py +0 -0
  35. {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_config.py +0 -0
  36. {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_github_issues.py +0 -0
  37. {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_github_plugin.py +0 -0
  38. {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_submit_with_recorded_pr.py +0 -0
  39. {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_workspace_plugin.py +0 -0
  40. {sase_github-0.2.0 → sase_github-0.2.1}/uv.lock +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.2.1"
3
+ }
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.1](https://github.com/sase-org/sase-github/compare/v0.2.0...v0.2.1) (2026-07-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * write handoff diff files under the managed temp root (sase-96.8.5) ([dd5deed](https://github.com/sase-org/sase-github/commit/dd5deedd25aeaccbb984b647c3abf60ea1d5afdc))
9
+
3
10
  ## [0.2.0](https://github.com/sase-org/sase-github/compare/v0.1.7...v0.2.0) (2026-07-16)
4
11
 
5
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sase-github
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: GitHub VCS plugin for sase
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "sase-github"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "GitHub VCS plugin for sase"
9
9
  requires-python = ">=3.12"
10
10
  license = "MIT"
@@ -1,11 +1,33 @@
1
1
  """Get context step for the #new_pr_desc xprompt workflow."""
2
2
 
3
+ import os
3
4
  import subprocess
4
5
  import tempfile
6
+ from pathlib import Path
5
7
 
6
8
  from sase.ace.changespec import find_all_changespecs
7
9
  from sase.workspace_provider.utils import get_default_branch, parse_workspace_dir
8
10
 
11
+ try:
12
+ from sase.core.paths import ( # type: ignore[attr-defined]
13
+ get_sase_managed_tmpdir,
14
+ )
15
+ except ImportError: # sase < 0.11.2 does not ship the helper yet
16
+
17
+ def get_sase_managed_tmpdir(*parts: str) -> str:
18
+ """Fall back to the same managed root the sase helper resolves."""
19
+ sase_tmpdir = os.environ.get("SASE_TMPDIR")
20
+ if sase_tmpdir:
21
+ root = Path(sase_tmpdir).expanduser()
22
+ else:
23
+ sase_home = os.environ.get("SASE_HOME")
24
+ home = Path(sase_home).expanduser() if sase_home else Path.home() / ".sase"
25
+ root = home / "tmp"
26
+ for part in parts:
27
+ root /= part
28
+ root.mkdir(parents=True, exist_ok=True)
29
+ return str(root)
30
+
9
31
 
10
32
  def main(*, name: str) -> None:
11
33
  """Find changespec, get diff and commit info for PR description generation.
@@ -71,9 +93,15 @@ def main(*, name: str) -> None:
71
93
  except Exception:
72
94
  commits = ""
73
95
 
74
- # Save diff to temp file for the prompt
96
+ # Save diff to a managed temp file for the prompt. The downstream workflow
97
+ # interpolates this path, so it outlives this process and is reclaimed by
98
+ # the managed temp-root reaper rather than deleted here.
75
99
  diff_file = tempfile.NamedTemporaryFile(
76
- mode="w", suffix=".diff", prefix="pr_desc_", delete=False
100
+ mode="w",
101
+ suffix=".diff",
102
+ prefix="pr_desc_",
103
+ dir=get_sase_managed_tmpdir("gh-diffs"),
104
+ delete=False,
77
105
  )
78
106
  diff_file.write(diff)
79
107
  diff_file.close()
@@ -138,7 +138,9 @@ steps:
138
138
  exit 0
139
139
  fi
140
140
  head_now=$(git rev-parse HEAD)
141
- diff_file=$(mktemp /tmp/sase-gh-XXXXXX.diff)
141
+ diff_dir="${SASE_TMPDIR:-${SASE_HOME:-$HOME/.sase}/tmp}/gh-diffs"
142
+ mkdir -p "$diff_dir"
143
+ diff_file=$(mktemp "$diff_dir/sase-gh-XXXXXX.diff")
142
144
  if [ "$head_now" != "$head_before" ]; then
143
145
  # Commits were made — show only the last commit's diff
144
146
  git diff HEAD~1 HEAD > "$diff_file" 2>/dev/null
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.2.0"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes