taskplane 0.28.4 → 0.28.6
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/LICENSE +21 -21
- package/README.md +215 -215
- package/bin/gitignore-patterns.mjs +79 -79
- package/bin/rpc-wrapper.mjs +1086 -1086
- package/bin/taskplane.mjs +3254 -3254
- package/dashboard/public/app.js +2573 -2573
- package/dashboard/public/index.html +139 -139
- package/dashboard/public/style.css +1882 -1882
- package/dashboard/public/taskplane-word-color.svg +18 -18
- package/dashboard/public/taskplane-word-white.svg +18 -18
- package/dashboard/server.cjs +1666 -1666
- package/extensions/reviewer-extension.ts +119 -119
- package/extensions/task-orchestrator.ts +28 -28
- package/extensions/taskplane/abort.ts +502 -502
- package/extensions/taskplane/agent-bridge-extension.ts +838 -765
- package/extensions/taskplane/agent-host.ts +833 -745
- package/extensions/taskplane/cleanup.ts +747 -747
- package/extensions/taskplane/config-loader.ts +1328 -1322
- package/extensions/taskplane/config-schema.ts +692 -682
- package/extensions/taskplane/config.ts +73 -73
- package/extensions/taskplane/context-window.ts +66 -66
- package/extensions/taskplane/diagnostic-reports.ts +463 -463
- package/extensions/taskplane/diagnostics.ts +385 -385
- package/extensions/taskplane/engine-worker-entry.mjs +34 -34
- package/extensions/taskplane/engine-worker.ts +381 -381
- package/extensions/taskplane/engine.ts +4539 -4527
- package/extensions/taskplane/execution.ts +2733 -2708
- package/extensions/taskplane/extension.ts +30 -9
- package/extensions/taskplane/formatting.ts +773 -773
- package/extensions/taskplane/git.ts +90 -90
- package/extensions/taskplane/index.ts +28 -28
- package/extensions/taskplane/lane-runner.ts +1383 -1360
- package/extensions/taskplane/mailbox.ts +689 -689
- package/extensions/taskplane/merge.ts +3135 -3135
- package/extensions/taskplane/messages.ts +985 -985
- package/extensions/taskplane/migrations.ts +278 -278
- package/extensions/taskplane/naming.ts +117 -117
- package/extensions/taskplane/path-resolver.ts +237 -237
- package/extensions/taskplane/persistence.ts +2087 -2087
- package/extensions/taskplane/process-registry.ts +416 -416
- package/extensions/taskplane/quality-gate.ts +1033 -1033
- package/extensions/taskplane/resume.ts +2879 -2878
- package/extensions/taskplane/sessions.ts +57 -57
- package/extensions/taskplane/settings-loader.ts +136 -136
- package/extensions/taskplane/settings-tui.ts +1867 -1867
- package/extensions/taskplane/sidecar-telemetry.ts +252 -252
- package/extensions/taskplane/supervisor-primer.md +1694 -1694
- package/extensions/taskplane/supervisor.ts +4341 -4341
- package/extensions/taskplane/task-executor-core.ts +550 -550
- package/extensions/taskplane/tmux-compat.ts +37 -37
- package/extensions/taskplane/types.ts +4297 -4278
- package/extensions/taskplane/verification.ts +542 -542
- package/extensions/taskplane/waves.ts +1548 -1548
- package/extensions/taskplane/workspace.ts +705 -705
- package/extensions/taskplane/worktree.ts +2604 -2505
- package/package.json +57 -57
- package/skills/create-taskplane-task/SKILL.md +465 -465
- package/skills/create-taskplane-task/references/prompt-template.md +285 -285
- package/templates/agents/local/supervisor.md +33 -33
- package/templates/agents/local/task-merger.md +27 -27
- package/templates/agents/local/task-reviewer.md +30 -30
- package/templates/agents/local/task-worker.md +34 -34
- package/templates/agents/supervisor-routing.md +92 -92
- package/templates/agents/supervisor.md +168 -168
- package/templates/agents/task-merger.md +214 -214
- package/templates/agents/task-reviewer.md +192 -192
- package/templates/agents/task-worker.md +505 -429
- package/templates/tasks/EXAMPLE-001-hello-world/PROMPT.md +98 -98
- package/templates/tasks/EXAMPLE-001-hello-world/STATUS.md +73 -73
- package/templates/tasks/EXAMPLE-002-parallel-smoke/PROMPT.md +97 -97
- package/templates/tasks/EXAMPLE-002-parallel-smoke/STATUS.md +73 -73
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Git command runner
|
|
3
|
-
* @module orch/git
|
|
4
|
-
*/
|
|
5
|
-
import { execFileSync } from "child_process";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// ── Branch Helpers ───────────────────────────────────────────────────
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Get the current branch name (the branch checked out in the given directory).
|
|
12
|
-
*
|
|
13
|
-
* Uses `git rev-parse --abbrev-ref HEAD`. Returns the branch name or null
|
|
14
|
-
* if HEAD is detached or git fails.
|
|
15
|
-
*
|
|
16
|
-
* @param cwd - Working directory (defaults to process.cwd())
|
|
17
|
-
*/
|
|
18
|
-
export function getCurrentBranch(cwd?: string): string | null {
|
|
19
|
-
const result = runGit(["rev-parse", "--abbrev-ref", "HEAD"], cwd);
|
|
20
|
-
if (!result.ok || !result.stdout.trim() || result.stdout.trim() === "HEAD") {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
return result.stdout.trim();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// ── Git Command Runner ───────────────────────────────────────────────
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Run a git command synchronously with consistent error handling.
|
|
30
|
-
*
|
|
31
|
-
* @param args - Array of git subcommand arguments (e.g. ["worktree", "add", ...])
|
|
32
|
-
* @param cwd - Working directory to run the command in (defaults to process.cwd())
|
|
33
|
-
* @returns - { ok, stdout, stderr }
|
|
34
|
-
*/
|
|
35
|
-
export function runGit(
|
|
36
|
-
args: string[],
|
|
37
|
-
cwd?: string,
|
|
38
|
-
): { ok: boolean; stdout: string; stderr: string } {
|
|
39
|
-
try {
|
|
40
|
-
const stdout = execFileSync("git", args, {
|
|
41
|
-
encoding: "utf-8",
|
|
42
|
-
timeout: 30_000,
|
|
43
|
-
cwd: cwd || process.cwd(),
|
|
44
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
45
|
-
}).trim();
|
|
46
|
-
return { ok: true, stdout, stderr: "" };
|
|
47
|
-
} catch (err: unknown) {
|
|
48
|
-
const e = err as { stdout?: string; stderr?: string; message?: string };
|
|
49
|
-
return {
|
|
50
|
-
ok: false,
|
|
51
|
-
stdout: (e.stdout ?? "").toString().trim(),
|
|
52
|
-
stderr: (e.stderr ?? e.message ?? "unknown error").toString().trim(),
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Run a git command with custom environment variables.
|
|
59
|
-
*
|
|
60
|
-
* Used by TP-169 to create commits on the orch branch without
|
|
61
|
-
* modifying HEAD, via GIT_INDEX_FILE for alternate index manipulation.
|
|
62
|
-
*
|
|
63
|
-
* @param args - Git command arguments
|
|
64
|
-
* @param cwd - Working directory
|
|
65
|
-
* @param env - Additional environment variables to set
|
|
66
|
-
*/
|
|
67
|
-
export function runGitWithEnv(
|
|
68
|
-
args: string[],
|
|
69
|
-
cwd: string,
|
|
70
|
-
env: Record<string, string>,
|
|
71
|
-
): { ok: boolean; stdout: string; stderr: string } {
|
|
72
|
-
try {
|
|
73
|
-
const stdout = execFileSync("git", args, {
|
|
74
|
-
encoding: "utf-8",
|
|
75
|
-
timeout: 30_000,
|
|
76
|
-
cwd,
|
|
77
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
78
|
-
env: { ...process.env, ...env },
|
|
79
|
-
}).trim();
|
|
80
|
-
return { ok: true, stdout, stderr: "" };
|
|
81
|
-
} catch (err: unknown) {
|
|
82
|
-
const e = err as { stdout?: string; stderr?: string; message?: string };
|
|
83
|
-
return {
|
|
84
|
-
ok: false,
|
|
85
|
-
stdout: (e.stdout ?? "").toString().trim(),
|
|
86
|
-
stderr: (e.stderr ?? e.message ?? "unknown error").toString().trim(),
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Git command runner
|
|
3
|
+
* @module orch/git
|
|
4
|
+
*/
|
|
5
|
+
import { execFileSync } from "child_process";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// ── Branch Helpers ───────────────────────────────────────────────────
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Get the current branch name (the branch checked out in the given directory).
|
|
12
|
+
*
|
|
13
|
+
* Uses `git rev-parse --abbrev-ref HEAD`. Returns the branch name or null
|
|
14
|
+
* if HEAD is detached or git fails.
|
|
15
|
+
*
|
|
16
|
+
* @param cwd - Working directory (defaults to process.cwd())
|
|
17
|
+
*/
|
|
18
|
+
export function getCurrentBranch(cwd?: string): string | null {
|
|
19
|
+
const result = runGit(["rev-parse", "--abbrev-ref", "HEAD"], cwd);
|
|
20
|
+
if (!result.ok || !result.stdout.trim() || result.stdout.trim() === "HEAD") {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return result.stdout.trim();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// ── Git Command Runner ───────────────────────────────────────────────
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Run a git command synchronously with consistent error handling.
|
|
30
|
+
*
|
|
31
|
+
* @param args - Array of git subcommand arguments (e.g. ["worktree", "add", ...])
|
|
32
|
+
* @param cwd - Working directory to run the command in (defaults to process.cwd())
|
|
33
|
+
* @returns - { ok, stdout, stderr }
|
|
34
|
+
*/
|
|
35
|
+
export function runGit(
|
|
36
|
+
args: string[],
|
|
37
|
+
cwd?: string,
|
|
38
|
+
): { ok: boolean; stdout: string; stderr: string } {
|
|
39
|
+
try {
|
|
40
|
+
const stdout = execFileSync("git", args, {
|
|
41
|
+
encoding: "utf-8",
|
|
42
|
+
timeout: 30_000,
|
|
43
|
+
cwd: cwd || process.cwd(),
|
|
44
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
45
|
+
}).trim();
|
|
46
|
+
return { ok: true, stdout, stderr: "" };
|
|
47
|
+
} catch (err: unknown) {
|
|
48
|
+
const e = err as { stdout?: string; stderr?: string; message?: string };
|
|
49
|
+
return {
|
|
50
|
+
ok: false,
|
|
51
|
+
stdout: (e.stdout ?? "").toString().trim(),
|
|
52
|
+
stderr: (e.stderr ?? e.message ?? "unknown error").toString().trim(),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Run a git command with custom environment variables.
|
|
59
|
+
*
|
|
60
|
+
* Used by TP-169 to create commits on the orch branch without
|
|
61
|
+
* modifying HEAD, via GIT_INDEX_FILE for alternate index manipulation.
|
|
62
|
+
*
|
|
63
|
+
* @param args - Git command arguments
|
|
64
|
+
* @param cwd - Working directory
|
|
65
|
+
* @param env - Additional environment variables to set
|
|
66
|
+
*/
|
|
67
|
+
export function runGitWithEnv(
|
|
68
|
+
args: string[],
|
|
69
|
+
cwd: string,
|
|
70
|
+
env: Record<string, string>,
|
|
71
|
+
): { ok: boolean; stdout: string; stderr: string } {
|
|
72
|
+
try {
|
|
73
|
+
const stdout = execFileSync("git", args, {
|
|
74
|
+
encoding: "utf-8",
|
|
75
|
+
timeout: 30_000,
|
|
76
|
+
cwd,
|
|
77
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
78
|
+
env: { ...process.env, ...env },
|
|
79
|
+
}).trim();
|
|
80
|
+
return { ok: true, stdout, stderr: "" };
|
|
81
|
+
} catch (err: unknown) {
|
|
82
|
+
const e = err as { stdout?: string; stderr?: string; message?: string };
|
|
83
|
+
return {
|
|
84
|
+
ok: false,
|
|
85
|
+
stdout: (e.stdout ?? "").toString().trim(),
|
|
86
|
+
stderr: (e.stderr ?? e.message ?? "unknown error").toString().trim(),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task Orchestrator — barrel re-export
|
|
3
|
-
*
|
|
4
|
-
* Provides a single import point for all orchestrator modules.
|
|
5
|
-
* Usage: import { executeOrchBatch, ... } from "./taskplane/index.ts";
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export * from "./types.ts";
|
|
9
|
-
export * from "./config.ts";
|
|
10
|
-
export * from "./git.ts";
|
|
11
|
-
export * from "./naming.ts";
|
|
12
|
-
export * from "./worktree.ts";
|
|
13
|
-
export * from "./discovery.ts";
|
|
14
|
-
export * from "./waves.ts";
|
|
15
|
-
export * from "./formatting.ts";
|
|
16
|
-
export * from "./execution.ts";
|
|
17
|
-
export * from "./merge.ts";
|
|
18
|
-
export * from "./messages.ts";
|
|
19
|
-
export * from "./sessions.ts";
|
|
20
|
-
export * from "./persistence.ts";
|
|
21
|
-
export * from "./engine.ts";
|
|
22
|
-
export * from "./resume.ts";
|
|
23
|
-
export * from "./abort.ts";
|
|
24
|
-
export * from "./workspace.ts";
|
|
25
|
-
export * from "./diagnostics.ts";
|
|
26
|
-
export * from "./supervisor.ts";
|
|
27
|
-
export * from "./migrations.ts";
|
|
28
|
-
export * from "./cleanup.ts";
|
|
1
|
+
/**
|
|
2
|
+
* Task Orchestrator — barrel re-export
|
|
3
|
+
*
|
|
4
|
+
* Provides a single import point for all orchestrator modules.
|
|
5
|
+
* Usage: import { executeOrchBatch, ... } from "./taskplane/index.ts";
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export * from "./types.ts";
|
|
9
|
+
export * from "./config.ts";
|
|
10
|
+
export * from "./git.ts";
|
|
11
|
+
export * from "./naming.ts";
|
|
12
|
+
export * from "./worktree.ts";
|
|
13
|
+
export * from "./discovery.ts";
|
|
14
|
+
export * from "./waves.ts";
|
|
15
|
+
export * from "./formatting.ts";
|
|
16
|
+
export * from "./execution.ts";
|
|
17
|
+
export * from "./merge.ts";
|
|
18
|
+
export * from "./messages.ts";
|
|
19
|
+
export * from "./sessions.ts";
|
|
20
|
+
export * from "./persistence.ts";
|
|
21
|
+
export * from "./engine.ts";
|
|
22
|
+
export * from "./resume.ts";
|
|
23
|
+
export * from "./abort.ts";
|
|
24
|
+
export * from "./workspace.ts";
|
|
25
|
+
export * from "./diagnostics.ts";
|
|
26
|
+
export * from "./supervisor.ts";
|
|
27
|
+
export * from "./migrations.ts";
|
|
28
|
+
export * from "./cleanup.ts";
|