taskplane 0.0.1 → 0.1.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.
Files changed (38) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -20
  3. package/bin/taskplane.mjs +706 -0
  4. package/dashboard/public/app.js +900 -0
  5. package/dashboard/public/index.html +92 -0
  6. package/dashboard/public/style.css +924 -0
  7. package/dashboard/server.cjs +531 -0
  8. package/extensions/task-orchestrator.ts +28 -0
  9. package/extensions/task-runner.ts +1923 -0
  10. package/extensions/taskplane/abort.ts +466 -0
  11. package/extensions/taskplane/config.ts +102 -0
  12. package/extensions/taskplane/discovery.ts +988 -0
  13. package/extensions/taskplane/engine.ts +758 -0
  14. package/extensions/taskplane/execution.ts +1752 -0
  15. package/extensions/taskplane/extension.ts +577 -0
  16. package/extensions/taskplane/formatting.ts +718 -0
  17. package/extensions/taskplane/git.ts +38 -0
  18. package/extensions/taskplane/index.ts +22 -0
  19. package/extensions/taskplane/merge.ts +795 -0
  20. package/extensions/taskplane/messages.ts +134 -0
  21. package/extensions/taskplane/persistence.ts +1121 -0
  22. package/extensions/taskplane/resume.ts +1092 -0
  23. package/extensions/taskplane/sessions.ts +92 -0
  24. package/extensions/taskplane/types.ts +1514 -0
  25. package/extensions/taskplane/waves.ts +900 -0
  26. package/extensions/taskplane/worktree.ts +1624 -0
  27. package/package.json +48 -3
  28. package/skills/create-taskplane-task/SKILL.md +326 -0
  29. package/skills/create-taskplane-task/references/context-template.md +78 -0
  30. package/skills/create-taskplane-task/references/prompt-template.md +246 -0
  31. package/templates/agents/task-merger.md +256 -0
  32. package/templates/agents/task-reviewer.md +81 -0
  33. package/templates/agents/task-worker.md +140 -0
  34. package/templates/config/task-orchestrator.yaml +89 -0
  35. package/templates/config/task-runner.yaml +99 -0
  36. package/templates/tasks/CONTEXT.md +31 -0
  37. package/templates/tasks/EXAMPLE-001-hello-world/PROMPT.md +90 -0
  38. package/templates/tasks/EXAMPLE-001-hello-world/STATUS.md +73 -0
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Git command runner
3
+ * @module orch/git
4
+ */
5
+ import { execFileSync } from "child_process";
6
+
7
+
8
+ // ── Git Command Runner ───────────────────────────────────────────────
9
+
10
+ /**
11
+ * Run a git command synchronously with consistent error handling.
12
+ *
13
+ * @param args - Array of git subcommand arguments (e.g. ["worktree", "add", ...])
14
+ * @param cwd - Working directory to run the command in (defaults to process.cwd())
15
+ * @returns - { ok, stdout, stderr }
16
+ */
17
+ export function runGit(
18
+ args: string[],
19
+ cwd?: string,
20
+ ): { ok: boolean; stdout: string; stderr: string } {
21
+ try {
22
+ const stdout = execFileSync("git", args, {
23
+ encoding: "utf-8",
24
+ timeout: 30_000,
25
+ cwd: cwd || process.cwd(),
26
+ stdio: ["pipe", "pipe", "pipe"],
27
+ }).trim();
28
+ return { ok: true, stdout, stderr: "" };
29
+ } catch (err: unknown) {
30
+ const e = err as { stdout?: string; stderr?: string; message?: string };
31
+ return {
32
+ ok: false,
33
+ stdout: (e.stdout ?? "").toString().trim(),
34
+ stderr: (e.stderr ?? e.message ?? "unknown error").toString().trim(),
35
+ };
36
+ }
37
+ }
38
+
@@ -0,0 +1,22 @@
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 "./worktree.ts";
12
+ export * from "./discovery.ts";
13
+ export * from "./waves.ts";
14
+ export * from "./formatting.ts";
15
+ export * from "./execution.ts";
16
+ export * from "./merge.ts";
17
+ export * from "./messages.ts";
18
+ export * from "./sessions.ts";
19
+ export * from "./persistence.ts";
20
+ export * from "./engine.ts";
21
+ export * from "./resume.ts";
22
+ export * from "./abort.ts";