@kolisachint/hoocode-agent 0.3.1 → 0.4.2

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 (63) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cli/args.d.ts +1 -0
  3. package/dist/cli/args.d.ts.map +1 -1
  4. package/dist/cli/args.js +5 -0
  5. package/dist/cli/args.js.map +1 -1
  6. package/dist/core/extensions/loader.d.ts.map +1 -1
  7. package/dist/core/extensions/loader.js +9 -1
  8. package/dist/core/extensions/loader.js.map +1 -1
  9. package/dist/core/resource-loader.d.ts.map +1 -1
  10. package/dist/core/resource-loader.js +12 -2
  11. package/dist/core/resource-loader.js.map +1 -1
  12. package/dist/core/settings-manager.d.ts +3 -0
  13. package/dist/core/settings-manager.d.ts.map +1 -1
  14. package/dist/core/settings-manager.js +8 -0
  15. package/dist/core/settings-manager.js.map +1 -1
  16. package/dist/core/subagent.d.ts +46 -0
  17. package/dist/core/subagent.d.ts.map +1 -0
  18. package/dist/core/subagent.js +139 -0
  19. package/dist/core/subagent.js.map +1 -0
  20. package/dist/core/task-store.d.ts +37 -0
  21. package/dist/core/task-store.d.ts.map +1 -0
  22. package/dist/core/task-store.js +57 -0
  23. package/dist/core/task-store.js.map +1 -0
  24. package/dist/core/tools/subagent.d.ts +18 -0
  25. package/dist/core/tools/subagent.d.ts.map +1 -0
  26. package/dist/core/tools/subagent.js +99 -0
  27. package/dist/core/tools/subagent.js.map +1 -0
  28. package/dist/init-templates.generated.d.ts +1 -0
  29. package/dist/init-templates.generated.d.ts.map +1 -1
  30. package/dist/init-templates.generated.js +12 -5
  31. package/dist/init-templates.generated.js.map +1 -1
  32. package/dist/main.d.ts.map +1 -1
  33. package/dist/main.js +6 -0
  34. package/dist/main.js.map +1 -1
  35. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  36. package/dist/modes/interactive/components/footer.js +41 -0
  37. package/dist/modes/interactive/components/footer.js.map +1 -1
  38. package/dist/modes/interactive/interactive-mode.d.ts +1 -0
  39. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  40. package/dist/modes/interactive/interactive-mode.js +8 -0
  41. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  42. package/examples/README.md +1 -1
  43. package/examples/extensions/README.md +0 -1
  44. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  45. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  46. package/examples/extensions/sandbox/package.json +1 -1
  47. package/examples/extensions/with-deps/package.json +1 -1
  48. package/package.json +6 -5
  49. package/templates/subagent/edit.md +17 -0
  50. package/templates/subagent/explore.md +16 -0
  51. package/templates/subagent/fix.md +17 -0
  52. package/templates/subagent/review.md +16 -0
  53. package/templates/subagent/test.md +15 -0
  54. package/examples/extensions/subagent/README.md +0 -172
  55. package/examples/extensions/subagent/agents/planner.md +0 -37
  56. package/examples/extensions/subagent/agents/reviewer.md +0 -35
  57. package/examples/extensions/subagent/agents/scout.md +0 -50
  58. package/examples/extensions/subagent/agents/worker.md +0 -24
  59. package/examples/extensions/subagent/agents.ts +0 -126
  60. package/examples/extensions/subagent/index.ts +0 -987
  61. package/examples/extensions/subagent/prompts/implement-and-review.md +0 -10
  62. package/examples/extensions/subagent/prompts/implement.md +0 -10
  63. package/examples/extensions/subagent/prompts/scout-and-plan.md +0 -9
@@ -21,6 +21,7 @@ import { BUILT_IN_PROVIDER_DISPLAY_NAMES } from "../../core/provider-display-nam
21
21
  import { formatMissingSessionCwdPrompt, MissingSessionCwdError } from "../../core/session-cwd.js";
22
22
  import { SessionManager } from "../../core/session-manager.js";
23
23
  import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
24
+ import { taskStore } from "../../core/task-store.js";
24
25
  import { getChangelogPath, getNewEntries, parseChangelog } from "../../utils/changelog.js";
25
26
  import { copyToClipboard } from "../../utils/clipboard.js";
26
27
  import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
@@ -150,6 +151,8 @@ export class InteractiveMode {
150
151
  skillCommands = new Map();
151
152
  // Agent subscription unsubscribe function
152
153
  unsubscribe;
154
+ // Task store subscription unsubscribe function (footer task list)
155
+ taskStoreUnsubscribe;
153
156
  signalCleanupHandlers = [];
154
157
  // Track if editor is in bash mode (text starts with !)
155
158
  isBashMode = false;
@@ -462,6 +465,10 @@ export class InteractiveMode {
462
465
  this.footerDataProvider.onBranchChange(() => {
463
466
  this.ui.requestRender();
464
467
  });
468
+ // Re-render the footer when the task list changes (e.g. subagent tasks).
469
+ this.taskStoreUnsubscribe = taskStore.subscribe(() => {
470
+ this.ui.requestRender();
471
+ });
465
472
  // Initialize available provider count for footer display
466
473
  await this.updateAvailableProviderCount();
467
474
  }
@@ -2652,6 +2659,7 @@ export class InteractiveMode {
2652
2659
  // Drain any in-flight Kitty key release events before stopping.
2653
2660
  // This prevents escape sequences from leaking to the parent shell over slow SSH.
2654
2661
  await this.ui.terminal.drainInput(1000);
2662
+ this.taskStoreUnsubscribe?.();
2655
2663
  this.stop();
2656
2664
  await this.runtimeHost.dispose();
2657
2665
  process.exit(0);