@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.
- package/dist/channel/adapters/discord.js +7 -0
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/mcp-server.js +6 -20
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.js +1 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/config-validator.js +3 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +50 -0
- package/dist/daemon.js +173 -34
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +60 -1
- package/dist/fleet-manager.js +416 -195
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/backend-providers/SKILL.md +114 -0
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +3 -1
- package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +52 -0
- package/dist/general-knowledge/skills/development-workflow/SKILL.md +28 -0
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +1 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +1 -0
- package/dist/general-knowledge/skills/fleet-restart/SKILL.md +1 -0
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +1 -0
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +1 -0
- package/dist/general-knowledge/skills/multi-channel/SKILL.md +1 -0
- package/dist/general-knowledge/skills/scheduling/SKILL.md +1 -0
- package/dist/general-knowledge/skills/session-management/SKILL.md +1 -0
- package/dist/general-knowledge/skills/tui-effort/SKILL.md +1 -0
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +30 -0
- package/dist/instance-lifecycle.d.ts +2 -0
- package/dist/instance-lifecycle.js +1 -0
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +12 -0
- package/dist/instructions.js +33 -0
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +10 -0
- package/dist/locale.js.map +1 -1
- package/dist/outbound-schemas.d.ts +1 -0
- package/dist/outbound-schemas.js +1 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/tool-progress.d.ts +40 -0
- package/dist/tool-progress.js +289 -0
- package/dist/tool-progress.js.map +1 -0
- package/dist/topic-commands.d.ts +15 -0
- package/dist/topic-commands.js +56 -0
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-monitor.d.ts +15 -2
- package/dist/transcript-monitor.js +63 -17
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-sources.d.ts +106 -0
- package/dist/transcript-sources.js +428 -0
- package/dist/transcript-sources.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/workflow-templates/default.md +2 -1
- package/package.json +1 -1
package/dist/fleet-manager.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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 */
|