@songsid/agend 2.1.4-beta.7 → 2.1.4-beta.9

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 (54) hide show
  1. package/dist/channel/adapters/discord.js +7 -0
  2. package/dist/channel/adapters/discord.js.map +1 -1
  3. package/dist/channel/mcp-server.js +6 -20
  4. package/dist/channel/mcp-server.js.map +1 -1
  5. package/dist/channel/mcp-tools.js +1 -1
  6. package/dist/channel/mcp-tools.js.map +1 -1
  7. package/dist/config-validator.js +3 -0
  8. package/dist/config-validator.js.map +1 -1
  9. package/dist/daemon.d.ts +50 -0
  10. package/dist/daemon.js +173 -34
  11. package/dist/daemon.js.map +1 -1
  12. package/dist/fleet-manager.d.ts +60 -1
  13. package/dist/fleet-manager.js +416 -195
  14. package/dist/fleet-manager.js.map +1 -1
  15. package/dist/general-knowledge/skills/backend-providers/SKILL.md +114 -0
  16. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +3 -1
  17. package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +52 -0
  18. package/dist/general-knowledge/skills/development-workflow/SKILL.md +28 -0
  19. package/dist/general-knowledge/skills/fleet-config/SKILL.md +1 -0
  20. package/dist/general-knowledge/skills/fleet-health/SKILL.md +1 -0
  21. package/dist/general-knowledge/skills/fleet-restart/SKILL.md +1 -0
  22. package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +1 -0
  23. package/dist/general-knowledge/skills/model-discovery/SKILL.md +1 -0
  24. package/dist/general-knowledge/skills/multi-channel/SKILL.md +1 -0
  25. package/dist/general-knowledge/skills/scheduling/SKILL.md +1 -0
  26. package/dist/general-knowledge/skills/session-management/SKILL.md +1 -0
  27. package/dist/general-knowledge/skills/tui-effort/SKILL.md +1 -0
  28. package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +30 -0
  29. package/dist/instance-lifecycle.d.ts +2 -0
  30. package/dist/instance-lifecycle.js +1 -0
  31. package/dist/instance-lifecycle.js.map +1 -1
  32. package/dist/instructions.d.ts +12 -0
  33. package/dist/instructions.js +33 -0
  34. package/dist/instructions.js.map +1 -1
  35. package/dist/locale.js +10 -0
  36. package/dist/locale.js.map +1 -1
  37. package/dist/outbound-schemas.d.ts +1 -0
  38. package/dist/outbound-schemas.js +1 -0
  39. package/dist/outbound-schemas.js.map +1 -1
  40. package/dist/tool-progress.d.ts +40 -0
  41. package/dist/tool-progress.js +289 -0
  42. package/dist/tool-progress.js.map +1 -0
  43. package/dist/topic-commands.d.ts +15 -0
  44. package/dist/topic-commands.js +56 -0
  45. package/dist/topic-commands.js.map +1 -1
  46. package/dist/transcript-monitor.d.ts +15 -2
  47. package/dist/transcript-monitor.js +63 -17
  48. package/dist/transcript-monitor.js.map +1 -1
  49. package/dist/transcript-sources.d.ts +106 -0
  50. package/dist/transcript-sources.js +428 -0
  51. package/dist/transcript-sources.js.map +1 -0
  52. package/dist/types.d.ts +6 -0
  53. package/dist/workflow-templates/default.md +2 -1
  54. package/package.json +1 -1
@@ -106,6 +106,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
106
106
  readonly replyDeduper: ReplyDeduper;
107
107
  /** instanceName → what it is doing right now, when the backend can tell us. */
108
108
  private instanceActivity;
109
+ /** instanceName → this turn's tool list (multi-line), for the bubble. */
110
+ private instanceProgress;
109
111
  /** instanceName → tail of deliveries waiting for its IPC to come back. */
110
112
  private ipcWaitTails;
111
113
  /** instanceName → restart currently executing; concurrent callers join it. */
@@ -644,6 +646,26 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
644
646
  * never used to decide anything — purely what the user is shown.
645
647
  */
646
648
  private cacheInstanceActivity;
649
+ /**
650
+ * Cache the turn's tool-progress list and push it into the instance's live
651
+ * bubble, coalesced so a burst of tool events cannot flood the Bot API
652
+ * (Telegram's flood limit is per-chat across ALL forum topics, so edits are
653
+ * rate-limited per bubble AND ride behind the daemon-side 3s coalescer).
654
+ */
655
+ private cacheInstanceProgress;
656
+ /** At most one progress-driven edit per bubble per TOOL_PROGRESS_EDIT_MIN_MS. */
657
+ private scheduleProgressEdit;
658
+ /**
659
+ * The ONE composer for the bubble text. Both writers — the elapsed-time
660
+ * ticker and the tool-progress push — go through here; two independent
661
+ * renderers editing the same message is how the progress list used to get
662
+ * wiped by the next elapsed tick (#528 trap 2).
663
+ */
664
+ private composeBubbleText;
665
+ /** Pure composition of header + tool list, exposed for tests. */
666
+ static bubbleText(elapsedMs: number, activity: string | undefined, minElapsedMs: number, progress: string | undefined): string;
667
+ /** Recompose and edit the bubble in place; skips when nothing changed. */
668
+ private refreshBubble;
647
669
  /**
648
670
  * Refresh the button's text in place while the instance keeps working.
649
671
  *
@@ -728,8 +750,45 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
728
750
  private static GENERAL_INSTRUCTIONS;
729
751
  /** Ensure the general instance has its project instructions file + knowledge */
730
752
  private ensureGeneralInstructions;
731
- /** Copy general-knowledge steering + skills to the general instance's workspace */
753
+ /** Resolve the workspace path a backend actually uses before publishing knowledge. */
754
+ private resolveKnowledgeWorkDir;
755
+ /**
756
+ * Where each backend natively loads on-demand skills from, relative to the
757
+ * workspace. Backends without a native skill mechanism (opencode, grok,
758
+ * antigravity, gemini-cli) are deliberately absent: dropping files a CLI
759
+ * never reads is clutter, not capability. Unknown directories are ignored
760
+ * by older CLI versions, so publishing is fail-open across upgrades.
761
+ */
762
+ private static SKILLS_DIR_SEGMENTS;
763
+ /** Copy general-knowledge steering + all role-eligible skills to General. */
732
764
  private syncGeneralKnowledge;
765
+ /** Publish only the bundled skills eligible for an instance role. */
766
+ private syncRoleSkills;
767
+ /**
768
+ * Steering (always-on rules like core-rules.md). Kiro loads a native
769
+ * steering directory; every other backend gets the content embedded into
770
+ * its instructions file (CLAUDE.md / AGENTS.md / …) inside a managed marker
771
+ * block — the previous behavior dropped bare .md files in the workspace
772
+ * root, which no CLI ever read. The block is replaced in place on every
773
+ * sync, so rule updates reach EXISTING workspaces; everything the user
774
+ * wrote outside the markers is preserved byte-for-byte.
775
+ */
776
+ private syncGeneralSteering;
777
+ private static STEERING_BLOCK_BEGIN;
778
+ private static STEERING_BLOCK_END;
779
+ /**
780
+ * Publish AgEnD's bundled skills into a CLI's native skills directory,
781
+ * owning ONLY what we published. A manifest records which skill names AgEnD
782
+ * wrote; a bundled rename/removal deletes the stale managed copy, while a
783
+ * skill the user created by hand is never listed and therefore never
784
+ * touched — even if a future bundle happens to reuse its name (the sync
785
+ * then skips it and logs, rather than overwrite the user's work). The sole
786
+ * migration exception is the pre-manifest Kiro General layout explicitly
787
+ * selected by adoptLegacyUnmanaged.
788
+ */
789
+ private syncManagedSkills;
790
+ /** Read AgEnD's roles extension from SKILL.md YAML frontmatter. */
791
+ private readManagedSkillRoles;
733
792
  /** Fetch forum topic icon stickers and pick emoji IDs for each state */
734
793
  private resolveTopicIcons;
735
794
  /** Set topic icon based on instance state */