next-issue 14.4.6 → 14.4.8

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/dist/cli.mjs CHANGED
@@ -60,7 +60,7 @@ async function main() {
60
60
  }
61
61
  function run(root, args, argv) {
62
62
  process.stderr.on('error', () => { });
63
- return startInWorker(root, args, argv.slice(1).filter((arg) => arg !== '--force'));
63
+ return startInWorker(root, args, argv.slice(1));
64
64
  }
65
65
  const STOPPED = {
66
66
  none: () => 'next-issue: no worker is running\n',
@@ -51,12 +51,15 @@ export function parseArgs(argv) {
51
51
  if (args.command !== undefined && args.command !== 'update' && args.scope !== undefined) {
52
52
  throw new Error(`${args.command} does not take --scope: it belongs to update`);
53
53
  }
54
- if (args.command === 'serve' && flag !== undefined) {
55
- throw new Error(`serve does not take ${flag}`);
56
- }
57
54
  if ((args.command === 'watch' || args.command === 'hunt') && args.on === undefined) {
58
55
  throw new Error(`${args.command} takes on or off`);
59
56
  }
57
+ if (args.command !== undefined && args.command !== 'init' && args.force) {
58
+ throw new Error(`${args.command} does not take --force: it belongs to init`);
59
+ }
60
+ if (args.command === 'serve' && flag !== undefined) {
61
+ throw new Error(`serve does not take ${flag}`);
62
+ }
60
63
  return args;
61
64
  }
62
65
  function onOffValue(name, value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "14.4.6",
3
+ "version": "14.4.8",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",