next-issue 14.4.0 → 14.4.2

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.
@@ -12,10 +12,8 @@ export const REVIEWING = {
12
12
  export const CODING = {
13
13
  disallowedTools: [],
14
14
  };
15
- export const OWN_PLUGIN = 'next-issue@next-issue';
16
15
  export const OWN_SKILLS = ['create-issue', 'answer-hand-over'];
17
16
  const OWN_SETTINGS = {
18
- enabledPlugins: { [OWN_PLUGIN]: false },
19
17
  skillOverrides: Object.fromEntries(OWN_SKILLS.map((name) => [name, 'off'])),
20
18
  };
21
19
  export async function runAgent(recorder, request) {
@@ -15,14 +15,14 @@ export function oneAtATime(root, work) {
15
15
  worktreeQueues.set(root, result.catch(() => undefined));
16
16
  return result;
17
17
  }
18
- export async function processStart(pid) {
18
+ export async function processStart(pid, zone = { TZ: 'UTC' }) {
19
19
  const stat = await readTextOrEmpty(`/proc/${pid}/stat`);
20
20
  if (stat !== '') {
21
21
  return stat.slice(stat.lastIndexOf(')') + 2).split(' ')[19];
22
22
  }
23
23
  try {
24
24
  const { stdout } = await promisify(execFile)('ps', ['-o', 'lstart=', '-p', String(pid)], {
25
- env: { ...process.env, LC_ALL: 'C' },
25
+ env: { ...process.env, LC_ALL: 'C', ...zone },
26
26
  });
27
27
  return stdout.trim() || undefined;
28
28
  }
@@ -40,7 +40,11 @@ async function holderOf(text) {
40
40
  if (started === '') {
41
41
  return isAlive(pid) ? pid : undefined;
42
42
  }
43
- return (await processStart(pid)) === started ? pid : undefined;
43
+ const now = await processStart(pid);
44
+ if (now === undefined) {
45
+ return isAlive(pid) ? pid : undefined;
46
+ }
47
+ return now === started || (await processStart(pid, {})) === started ? pid : undefined;
44
48
  }
45
49
  export async function lockHolder(lockPath) {
46
50
  return holderOf(await readTextOrEmpty(lockPath));
@@ -253,7 +253,14 @@ export async function startWorker(options) {
253
253
  reply(response, 405, refusal('the worker answers GET and POST only'));
254
254
  }
255
255
  else {
256
- const value = parseMessage(await readBody(request));
256
+ let body;
257
+ try {
258
+ body = await readBody(request);
259
+ }
260
+ catch {
261
+ return;
262
+ }
263
+ const value = parseMessage(body);
257
264
  if (value === undefined) {
258
265
  reply(response, 400, refusal('the request is not a next-issue message'));
259
266
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "14.4.0",
3
+ "version": "14.4.2",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",