@erclx/aitk 3.33.0 → 3.33.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aitk",
3
3
  "description": "Automated governance, versioning, and discovery tools for Claude Code.",
4
- "version": "3.33.0",
4
+ "version": "3.33.1",
5
5
  "author": {
6
6
  "name": "Eric Le",
7
7
  "url": "https://github.com/erclx"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@erclx/aitk",
3
3
  "type": "module",
4
- "version": "3.33.0",
4
+ "version": "3.33.1",
5
5
  "description": "Infrastructure and quality tooling for developer workflows",
6
6
  "license": "MIT",
7
7
  "bin": {
package/src/github.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { execa } from 'execa'
2
+ import { gitEnv } from '@/git-env'
2
3
  import { PROJECT_ROOT } from '@/project-root'
3
4
  import { buildIssueArgs, type CreateIssueOptions } from '@/github-format'
4
5
 
@@ -9,9 +10,12 @@ export async function createGithubIssue(
9
10
  ): Promise<string | null> {
10
11
  if (Bun.which('gh') === null) return null
11
12
  try {
13
+ // See src/worktrees/reclaim.ts for why gh needs the stripped environment.
12
14
  const result = await execa('gh', buildIssueArgs(opts), {
13
15
  cwd: PROJECT_ROOT,
14
16
  timeout: GH_TIMEOUT_MS,
17
+ env: gitEnv(),
18
+ extendEnv: false,
15
19
  })
16
20
  return result.stdout.trim() || null
17
21
  } catch {
package/src/sync/git.ts CHANGED
@@ -164,7 +164,13 @@ export function createPullRequestOpener(target: string): PullRequestOpener {
164
164
  const result = await execa(
165
165
  'gh',
166
166
  ['pr', 'create', '--title', title, '--body-file', '-'],
167
- { cwd: target, input: body, reject: false },
167
+ {
168
+ cwd: target,
169
+ input: body,
170
+ reject: false,
171
+ env: gitEnv(),
172
+ extendEnv: false,
173
+ },
168
174
  )
169
175
 
170
176
  if (result.exitCode !== 0) {