@calmo/task-runner 1.0.0 → 1.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 (41) hide show
  1. package/.gemini/commands/speckit.analyze.toml +188 -0
  2. package/.gemini/commands/speckit.checklist.toml +298 -0
  3. package/.gemini/commands/speckit.clarify.toml +185 -0
  4. package/.gemini/commands/speckit.constitution.toml +86 -0
  5. package/.gemini/commands/speckit.implement.toml +139 -0
  6. package/.gemini/commands/speckit.plan.toml +93 -0
  7. package/.gemini/commands/speckit.specify.toml +262 -0
  8. package/.gemini/commands/speckit.tasks.toml +141 -0
  9. package/.gemini/commands/speckit.taskstoissues.toml +34 -0
  10. package/.github/dependabot.yml +16 -0
  11. package/.github/workflows/ci.yml +43 -0
  12. package/.github/workflows/release.yml +46 -0
  13. package/.husky/commit-msg +1 -0
  14. package/.husky/pre-commit +1 -0
  15. package/.prettierignore +4 -0
  16. package/.releaserc.json +32 -0
  17. package/CHANGELOG.md +59 -0
  18. package/GEMINI.md +33 -0
  19. package/README.md +3 -1
  20. package/commitlint.config.js +3 -0
  21. package/coverage/TaskRunner.ts.html +685 -0
  22. package/coverage/base.css +224 -0
  23. package/coverage/block-navigation.js +87 -0
  24. package/coverage/coverage-final.json +2 -0
  25. package/coverage/favicon.png +0 -0
  26. package/coverage/index.html +116 -0
  27. package/coverage/prettify.css +1 -0
  28. package/coverage/prettify.js +2 -0
  29. package/coverage/sort-arrow-sprite.png +0 -0
  30. package/coverage/sorter.js +210 -0
  31. package/dist/TaskRunner.d.ts +47 -0
  32. package/dist/TaskRunner.js +53 -2
  33. package/dist/TaskRunner.js.map +1 -1
  34. package/package.json +24 -23
  35. package/pnpm-workspace.yaml +2 -0
  36. package/src/TaskResult.ts +15 -0
  37. package/src/TaskRunner.ts +200 -0
  38. package/src/TaskStatus.ts +4 -0
  39. package/src/TaskStep.ts +18 -0
  40. package/src/index.ts +4 -0
  41. package/tsconfig.test.json +8 -0
@@ -0,0 +1,18 @@
1
+ import { TaskResult } from "./TaskResult.js";
2
+
3
+ /**
4
+ * Represents a single, executable step within a workflow.
5
+ * @template TContext The shape of the shared context object.
6
+ */
7
+ export interface TaskStep<TContext> {
8
+ /** A unique identifier for this task. */
9
+ name: string;
10
+ /** An optional list of task names that must complete successfully before this step can run. */
11
+ dependencies?: string[];
12
+ /**
13
+ * The core logic of the task.
14
+ * @param context The shared context object, allowing for state to be passed between tasks.
15
+ * @returns A Promise that resolves to a TaskResult.
16
+ */
17
+ run(context: TContext): Promise<TaskResult>;
18
+ }
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ export { TaskRunner } from "./TaskRunner.js";
2
+ export type { TaskStep } from "./TaskStep.js";
3
+ export type { TaskResult } from "./TaskResult.js";
4
+ export type { TaskStatus } from "./TaskStatus.js";
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "noEmit": true,
5
+ "rootDir": "."
6
+ },
7
+ "include": ["src/**/*", "tests/**/*"]
8
+ }