next-issue 14.4.6 → 14.4.7

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,4 +1,4 @@
1
- import { cp, rm } from 'node:fs/promises';
1
+ import { cp, rename, rm } from 'node:fs/promises';
2
2
  import { homedir } from 'node:os';
3
3
  import { join } from 'node:path';
4
4
  import { createInterface } from 'node:readline/promises';
@@ -44,8 +44,17 @@ export async function installSkills(scope) {
44
44
  const written = [];
45
45
  for (const name of OWN_SKILLS) {
46
46
  const target = join(folder, name);
47
+ const staging = join(folder, `.${name}.new`);
48
+ await rm(staging, { recursive: true, force: true });
49
+ try {
50
+ await cp(join(SKILLS, name), staging, { recursive: true });
51
+ }
52
+ catch (error) {
53
+ await rm(staging, { recursive: true, force: true });
54
+ throw error;
55
+ }
47
56
  await rm(target, { recursive: true, force: true });
48
- await cp(join(SKILLS, name), target, { recursive: true });
57
+ await rename(staging, target);
49
58
  written.push(target);
50
59
  }
51
60
  return written;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "14.4.6",
3
+ "version": "14.4.7",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",