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.
Files changed (71) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +215 -215
  3. package/bin/gitignore-patterns.mjs +79 -79
  4. package/bin/rpc-wrapper.mjs +1086 -1086
  5. package/bin/taskplane.mjs +3254 -3254
  6. package/dashboard/public/app.js +2573 -2573
  7. package/dashboard/public/index.html +139 -139
  8. package/dashboard/public/style.css +1882 -1882
  9. package/dashboard/public/taskplane-word-color.svg +18 -18
  10. package/dashboard/public/taskplane-word-white.svg +18 -18
  11. package/dashboard/server.cjs +1666 -1666
  12. package/extensions/reviewer-extension.ts +119 -119
  13. package/extensions/task-orchestrator.ts +28 -28
  14. package/extensions/taskplane/abort.ts +502 -502
  15. package/extensions/taskplane/agent-bridge-extension.ts +838 -765
  16. package/extensions/taskplane/agent-host.ts +833 -745
  17. package/extensions/taskplane/cleanup.ts +747 -747
  18. package/extensions/taskplane/config-loader.ts +1328 -1322
  19. package/extensions/taskplane/config-schema.ts +692 -682
  20. package/extensions/taskplane/config.ts +73 -73
  21. package/extensions/taskplane/context-window.ts +66 -66
  22. package/extensions/taskplane/diagnostic-reports.ts +463 -463
  23. package/extensions/taskplane/diagnostics.ts +385 -385
  24. package/extensions/taskplane/engine-worker-entry.mjs +34 -34
  25. package/extensions/taskplane/engine-worker.ts +381 -381
  26. package/extensions/taskplane/engine.ts +4539 -4527
  27. package/extensions/taskplane/execution.ts +2733 -2708
  28. package/extensions/taskplane/extension.ts +30 -9
  29. package/extensions/taskplane/formatting.ts +773 -773
  30. package/extensions/taskplane/git.ts +90 -90
  31. package/extensions/taskplane/index.ts +28 -28
  32. package/extensions/taskplane/lane-runner.ts +1383 -1360
  33. package/extensions/taskplane/mailbox.ts +689 -689
  34. package/extensions/taskplane/merge.ts +3135 -3135
  35. package/extensions/taskplane/messages.ts +985 -985
  36. package/extensions/taskplane/migrations.ts +278 -278
  37. package/extensions/taskplane/naming.ts +117 -117
  38. package/extensions/taskplane/path-resolver.ts +237 -237
  39. package/extensions/taskplane/persistence.ts +2087 -2087
  40. package/extensions/taskplane/process-registry.ts +416 -416
  41. package/extensions/taskplane/quality-gate.ts +1033 -1033
  42. package/extensions/taskplane/resume.ts +2879 -2878
  43. package/extensions/taskplane/sessions.ts +57 -57
  44. package/extensions/taskplane/settings-loader.ts +136 -136
  45. package/extensions/taskplane/settings-tui.ts +1867 -1867
  46. package/extensions/taskplane/sidecar-telemetry.ts +252 -252
  47. package/extensions/taskplane/supervisor-primer.md +1694 -1694
  48. package/extensions/taskplane/supervisor.ts +4341 -4341
  49. package/extensions/taskplane/task-executor-core.ts +550 -550
  50. package/extensions/taskplane/tmux-compat.ts +37 -37
  51. package/extensions/taskplane/types.ts +4297 -4278
  52. package/extensions/taskplane/verification.ts +542 -542
  53. package/extensions/taskplane/waves.ts +1548 -1548
  54. package/extensions/taskplane/workspace.ts +705 -705
  55. package/extensions/taskplane/worktree.ts +2604 -2505
  56. package/package.json +57 -57
  57. package/skills/create-taskplane-task/SKILL.md +465 -465
  58. package/skills/create-taskplane-task/references/prompt-template.md +285 -285
  59. package/templates/agents/local/supervisor.md +33 -33
  60. package/templates/agents/local/task-merger.md +27 -27
  61. package/templates/agents/local/task-reviewer.md +30 -30
  62. package/templates/agents/local/task-worker.md +34 -34
  63. package/templates/agents/supervisor-routing.md +92 -92
  64. package/templates/agents/supervisor.md +168 -168
  65. package/templates/agents/task-merger.md +214 -214
  66. package/templates/agents/task-reviewer.md +192 -192
  67. package/templates/agents/task-worker.md +505 -429
  68. package/templates/tasks/EXAMPLE-001-hello-world/PROMPT.md +98 -98
  69. package/templates/tasks/EXAMPLE-001-hello-world/STATUS.md +73 -73
  70. package/templates/tasks/EXAMPLE-002-parallel-smoke/PROMPT.md +97 -97
  71. 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";