taskplane 0.29.2 → 0.30.0
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.
- package/bin/gitignore-patterns.mjs +11 -8
- package/bin/rpc-wrapper.mjs +410 -357
- package/bin/taskplane.mjs +533 -250
- package/extensions/reviewer-extension.ts +17 -11
- package/extensions/taskplane/abort.ts +50 -18
- package/extensions/taskplane/agent-bridge-extension.ts +232 -105
- package/extensions/taskplane/agent-host.ts +224 -97
- package/extensions/taskplane/cleanup.ts +71 -42
- package/extensions/taskplane/config-loader.ts +142 -58
- package/extensions/taskplane/config-schema.ts +6 -13
- package/extensions/taskplane/config.ts +10 -2
- package/extensions/taskplane/diagnostic-reports.ts +59 -47
- package/extensions/taskplane/diagnostics.ts +13 -13
- package/extensions/taskplane/discovery.ts +35 -61
- package/extensions/taskplane/engine-worker.ts +53 -46
- package/extensions/taskplane/engine.ts +1760 -602
- package/extensions/taskplane/execution.ts +426 -206
- package/extensions/taskplane/extension.ts +1073 -598
- package/extensions/taskplane/formatting.ts +136 -124
- package/extensions/taskplane/git.ts +0 -2
- package/extensions/taskplane/lane-runner.ts +542 -311
- package/extensions/taskplane/mailbox.ts +57 -49
- package/extensions/taskplane/merge.ts +662 -383
- package/extensions/taskplane/messages.ts +109 -51
- package/extensions/taskplane/migrations.ts +1 -1
- package/extensions/taskplane/path-resolver.ts +8 -9
- package/extensions/taskplane/persistence.ts +425 -262
- package/extensions/taskplane/process-registry.ts +36 -7
- package/extensions/taskplane/quality-gate.ts +107 -55
- package/extensions/taskplane/resume.ts +774 -267
- package/extensions/taskplane/sessions.ts +1 -1
- package/extensions/taskplane/settings-tui.ts +505 -164
- package/extensions/taskplane/sidecar-telemetry.ts +25 -10
- package/extensions/taskplane/supervisor.ts +477 -270
- package/extensions/taskplane/task-executor-core.ts +178 -53
- package/extensions/taskplane/types.ts +186 -108
- package/extensions/taskplane/verification.ts +27 -22
- package/extensions/taskplane/waves.ts +59 -43
- package/extensions/taskplane/workspace.ts +14 -12
- package/extensions/taskplane/worktree.ts +218 -196
- package/package.json +14 -2
|
@@ -58,10 +58,7 @@ export type WorkerToMainMessage =
|
|
|
58
58
|
/**
|
|
59
59
|
* Messages sent FROM the main thread TO the worker.
|
|
60
60
|
*/
|
|
61
|
-
export type WorkerInMessage =
|
|
62
|
-
| { type: "pause" }
|
|
63
|
-
| { type: "resume" }
|
|
64
|
-
| { type: "abort" };
|
|
61
|
+
export type WorkerInMessage = { type: "pause" } | { type: "resume" } | { type: "abort" };
|
|
65
62
|
|
|
66
63
|
/**
|
|
67
64
|
* Serializable form of OrchBatchRuntimeState fields synced to main thread.
|
|
@@ -236,12 +233,14 @@ if (process.env.TASKPLANE_ENGINE_FORK === "1" && typeof process.send === "functi
|
|
|
236
233
|
};
|
|
237
234
|
|
|
238
235
|
try {
|
|
239
|
-
(
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
236
|
+
(
|
|
237
|
+
process.send as (
|
|
238
|
+
message: WorkerToMainMessage,
|
|
239
|
+
sendHandle?: unknown,
|
|
240
|
+
options?: unknown,
|
|
241
|
+
callback?: (error: Error | null) => void,
|
|
242
|
+
) => boolean
|
|
243
|
+
)(msg, undefined, undefined, () => done());
|
|
245
244
|
setTimeout(done, 75).unref();
|
|
246
245
|
} catch {
|
|
247
246
|
done();
|
|
@@ -279,7 +278,9 @@ if (process.env.TASKPLANE_ENGINE_FORK === "1" && typeof process.send === "functi
|
|
|
279
278
|
};
|
|
280
279
|
|
|
281
280
|
process.once("uncaughtException", (err: unknown) => reportFatalAndExit("uncaughtException", err));
|
|
282
|
-
process.once("unhandledRejection", (reason: unknown) =>
|
|
281
|
+
process.once("unhandledRejection", (reason: unknown) =>
|
|
282
|
+
reportFatalAndExit("unhandledRejection", reason),
|
|
283
|
+
);
|
|
283
284
|
|
|
284
285
|
// Dynamic imports — only loaded in engine context to avoid circular
|
|
285
286
|
// dependencies when this module is imported from extension.ts
|
|
@@ -349,40 +350,41 @@ if (process.env.TASKPLANE_ENGINE_FORK === "1" && typeof process.send === "functi
|
|
|
349
350
|
};
|
|
350
351
|
|
|
351
352
|
// ── Execute engine ───────────────────────────────────────────
|
|
352
|
-
const enginePromise =
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
353
|
+
const enginePromise =
|
|
354
|
+
data.mode === "resume"
|
|
355
|
+
? resumeOrchBatch(
|
|
356
|
+
data.orchConfig,
|
|
357
|
+
data.runnerConfig,
|
|
358
|
+
data.cwd,
|
|
359
|
+
batchState,
|
|
360
|
+
onNotify,
|
|
361
|
+
onMonitorUpdate,
|
|
362
|
+
wsConfig,
|
|
363
|
+
data.workspaceRoot,
|
|
364
|
+
data.agentRoot,
|
|
365
|
+
data.force ?? false,
|
|
366
|
+
onSupervisorAlert,
|
|
367
|
+
data.supervisorAutonomy ?? "autonomous",
|
|
368
|
+
onLaneTerminated,
|
|
369
|
+
onLaneRespawned,
|
|
370
|
+
)
|
|
371
|
+
: executeOrchBatch(
|
|
372
|
+
data.args ?? "",
|
|
373
|
+
data.orchConfig,
|
|
374
|
+
data.runnerConfig,
|
|
375
|
+
data.cwd,
|
|
376
|
+
batchState,
|
|
377
|
+
onNotify,
|
|
378
|
+
onMonitorUpdate,
|
|
379
|
+
wsConfig,
|
|
380
|
+
data.workspaceRoot,
|
|
381
|
+
data.agentRoot,
|
|
382
|
+
onEngineEvent,
|
|
383
|
+
onSupervisorAlert,
|
|
384
|
+
data.supervisorAutonomy ?? "autonomous",
|
|
385
|
+
onLaneTerminated,
|
|
386
|
+
onLaneRespawned,
|
|
387
|
+
);
|
|
386
388
|
|
|
387
389
|
enginePromise
|
|
388
390
|
.then(() => {
|
|
@@ -401,7 +403,12 @@ if (process.env.TASKPLANE_ENGINE_FORK === "1" && typeof process.send === "functi
|
|
|
401
403
|
batchState.errors.push(`Unhandled engine error: ${normalized.message}`);
|
|
402
404
|
}
|
|
403
405
|
send({ type: "state-sync", state: serializeBatchState(batchState) });
|
|
404
|
-
send({
|
|
406
|
+
send({
|
|
407
|
+
type: "error",
|
|
408
|
+
source: "enginePromise",
|
|
409
|
+
message: normalized.message,
|
|
410
|
+
stack: normalized.stack,
|
|
411
|
+
});
|
|
405
412
|
process.disconnect?.();
|
|
406
413
|
});
|
|
407
414
|
});
|