@songsid/agend 2.4.0-beta.30 → 2.4.0-beta.32
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/backend/antigravity.js +39 -0
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +1 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/daemon.d.ts +11 -1
- package/dist/daemon.js +121 -26
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-context.d.ts +2 -0
- package/dist/fleet-manager.d.ts +9 -0
- package/dist/fleet-manager.js +84 -9
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +21 -2
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +9 -4
- package/dist/general-knowledge/skills/hub/SKILL.md +6 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +2 -0
- package/dist/hub/admission.d.ts +2 -0
- package/dist/hub/admission.js +13 -0
- package/dist/hub/admission.js.map +1 -1
- package/dist/hub/client.d.ts +10 -0
- package/dist/hub/client.js +126 -4
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +13 -1
- package/dist/hub/compose/member.js +34 -5
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/identity.d.ts +2 -0
- package/dist/hub/identity.js +5 -2
- package/dist/hub/identity.js.map +1 -1
- package/dist/hub/member/room-ask.d.ts +1 -0
- package/dist/hub/member/room-ask.js +11 -4
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member-journal.d.ts +8 -0
- package/dist/hub/member-journal.js +41 -0
- package/dist/hub/member-journal.js.map +1 -1
- package/dist/hub/policy.d.ts +3 -1
- package/dist/hub/policy.js +3 -1
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +7 -0
- package/dist/hub/protocol.js +8 -1
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/representative.d.ts +6 -0
- package/dist/hub/representative.js +39 -5
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/server.js +6 -2
- package/dist/hub/server.js.map +1 -1
- package/dist/hub-reply-route.d.ts +36 -0
- package/dist/hub-reply-route.js +67 -0
- package/dist/hub-reply-route.js.map +1 -0
- package/dist/hub-report-target.d.ts +4 -0
- package/dist/locale.js +2 -2
- package/dist/locale.js.map +1 -1
- package/dist/outbound-handlers.d.ts +2 -0
- package/dist/outbound-handlers.js +22 -7
- package/dist/outbound-handlers.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/topic-commands.js +6 -4
- package/dist/topic-commands.js.map +1 -1
- package/dist/turn-reply-guard.d.ts +3 -1
- package/dist/turn-reply-guard.js +3 -2
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/ui/hub-chat-store.js +9 -6
- package/dist/ui/hub-chat-strings.js +4 -2
- package/dist/ui/hub-room-strings.js +2 -2
- package/dist/ui/hub-room-thread.js +9 -3
- package/dist/ui/panel-chat.js +18 -5
- package/dist/ui/panel-hub.js +2 -2
- package/dist/ui/report-columns.js +137 -0
- package/dist/ui/shared/app.css +28 -2
- package/package.json +1 -1
|
@@ -580,7 +580,7 @@ const listInstances = (ctx, rawArgs, respond, meta) => {
|
|
|
580
580
|
return;
|
|
581
581
|
}
|
|
582
582
|
const senderLabel = meta.senderSessionName ?? meta.instanceName;
|
|
583
|
-
const { tags: filterTags, name: filterName, backend: filterBackend, status: filterStatus } = v.data;
|
|
583
|
+
const { tags: filterTags, name: filterName, backend: filterBackend, status: filterStatus, credential_profile: filterProfile } = v.data;
|
|
584
584
|
let allInstances = Object.entries(ctx.fleetConfig?.instances ?? {})
|
|
585
585
|
.filter(([name]) => name !== meta.instanceName && name !== senderLabel)
|
|
586
586
|
.map(([name, config]) => {
|
|
@@ -597,6 +597,7 @@ const listInstances = (ctx, rawArgs, respond, meta) => {
|
|
|
597
597
|
display_name: config.display_name ?? null,
|
|
598
598
|
description: config.description ?? null,
|
|
599
599
|
backend,
|
|
600
|
+
credential_profile: ctx.credentialProfileLabel?.(name, backend) ?? null,
|
|
600
601
|
model: "default", // placeholder, resolved later if needed
|
|
601
602
|
kind: "fleet-topic",
|
|
602
603
|
tags: config.tags ?? [],
|
|
@@ -622,6 +623,7 @@ const listInstances = (ctx, rawArgs, respond, meta) => {
|
|
|
622
623
|
display_name: ch.displayName ?? `classic: ${ch.name}`,
|
|
623
624
|
description: ch.description ?? `ClassicBot channel (${ch.name})`,
|
|
624
625
|
backend,
|
|
626
|
+
credential_profile: ctx.credentialProfileLabel?.(ch.instanceName, backend) ?? null,
|
|
625
627
|
model: "default", // placeholder
|
|
626
628
|
kind: "classic",
|
|
627
629
|
tags: ["classic"],
|
|
@@ -644,6 +646,9 @@ const listInstances = (ctx, rawArgs, respond, meta) => {
|
|
|
644
646
|
if (filterStatus) {
|
|
645
647
|
allInstances = allInstances.filter(i => i.status === filterStatus);
|
|
646
648
|
}
|
|
649
|
+
if (filterProfile) {
|
|
650
|
+
allInstances = allInstances.filter(i => i.credential_profile === filterProfile);
|
|
651
|
+
}
|
|
647
652
|
const externalSessions = [...ctx.sessionRegistry.entries()]
|
|
648
653
|
.filter(([sessName]) => sessName !== senderLabel)
|
|
649
654
|
.map(([sessName, hostInstance]) => ({ name: sessName, type: "session", host: hostInstance }));
|
|
@@ -668,6 +673,7 @@ const listInstances = (ctx, rawArgs, respond, meta) => {
|
|
|
668
673
|
status: i.status,
|
|
669
674
|
...(i.display_name ? { display_name: i.display_name } : {}),
|
|
670
675
|
backend: i.backend,
|
|
676
|
+
credential_profile: i.credential_profile,
|
|
671
677
|
model: i.model,
|
|
672
678
|
kind: i.kind,
|
|
673
679
|
tags: i.tags,
|
|
@@ -684,12 +690,17 @@ const listInstances = (ctx, rawArgs, respond, meta) => {
|
|
|
684
690
|
respond(compactOutput);
|
|
685
691
|
return;
|
|
686
692
|
}
|
|
687
|
-
// Tier 3: Summary output (counts only, no per-instance model resolution)
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
const
|
|
693
|
+
// Tier 3: Summary output (counts only, no per-instance model resolution).
|
|
694
|
+
// Keyed by names people choose (a profile or tag called "constructor"), so the
|
|
695
|
+
// counters have no prototype to inherit from (M-3943).
|
|
696
|
+
const byBackend = Object.create(null);
|
|
697
|
+
const byStatus = Object.create(null);
|
|
698
|
+
const byTag = Object.create(null);
|
|
699
|
+
const byProfile = Object.create(null);
|
|
691
700
|
for (const inst of allInstances) {
|
|
692
701
|
byBackend[inst.backend] = (byBackend[inst.backend] ?? 0) + 1;
|
|
702
|
+
if (inst.credential_profile !== null)
|
|
703
|
+
byProfile[inst.credential_profile] = (byProfile[inst.credential_profile] ?? 0) + 1;
|
|
693
704
|
byStatus[inst.status] = (byStatus[inst.status] ?? 0) + 1;
|
|
694
705
|
for (const tag of inst.tags) {
|
|
695
706
|
byTag[tag] = (byTag[tag] ?? 0) + 1;
|
|
@@ -700,8 +711,9 @@ const listInstances = (ctx, rawArgs, respond, meta) => {
|
|
|
700
711
|
by_backend: byBackend,
|
|
701
712
|
by_status: byStatus,
|
|
702
713
|
by_tag: byTag,
|
|
714
|
+
by_profile: byProfile,
|
|
703
715
|
external_sessions: externalSessions.length,
|
|
704
|
-
_guidance: "Use list_instances({tags, backend, status, name}) to filter for a subset, or describe_instance(name) for a specific instance.",
|
|
716
|
+
_guidance: "Use list_instances({tags, backend, status, name, credential_profile}) to filter for a subset, or describe_instance(name) for a specific instance.",
|
|
705
717
|
});
|
|
706
718
|
};
|
|
707
719
|
const describeInstance = (ctx, rawArgs, respond) => {
|
|
@@ -734,6 +746,7 @@ const describeInstance = (ctx, rawArgs, respond) => {
|
|
|
734
746
|
: null,
|
|
735
747
|
topic_id: config.topic_id ?? null,
|
|
736
748
|
backend: config.backend ?? "claude-code",
|
|
749
|
+
credential_profile: ctx.credentialProfileLabel?.(targetName, config.backend ?? "claude-code") ?? null,
|
|
737
750
|
model: model?.model ?? config.model ?? "default",
|
|
738
751
|
model_source: model?.source ?? (config.model ? "instance" : "unresolved"),
|
|
739
752
|
last_activity: ctx.lastActivityMs(targetName) ? new Date(ctx.lastActivityMs(targetName)).toISOString() : null,
|
|
@@ -748,6 +761,7 @@ const describeInstance = (ctx, rawArgs, respond) => {
|
|
|
748
761
|
if (channelId) {
|
|
749
762
|
const channel = ctx.classicChannels.getAll().find(ch => ch.instanceName === targetName);
|
|
750
763
|
const model = ctx.resolveInstanceModel?.(targetName);
|
|
764
|
+
const classicBackend = ctx.classicChannels.getBackendByInstance?.(targetName, ctx.fleetConfig?.defaults?.backend) ?? ctx.fleetConfig?.defaults?.backend ?? "claude-code";
|
|
751
765
|
respond({
|
|
752
766
|
name: targetName,
|
|
753
767
|
...modelObservation,
|
|
@@ -760,7 +774,8 @@ const describeInstance = (ctx, rawArgs, respond) => {
|
|
|
760
774
|
...instancePresentation(ctx, targetName),
|
|
761
775
|
last_paused_at: null,
|
|
762
776
|
topic_id: channelId,
|
|
763
|
-
backend:
|
|
777
|
+
backend: classicBackend,
|
|
778
|
+
credential_profile: ctx.credentialProfileLabel?.(targetName, classicBackend) ?? null,
|
|
764
779
|
model: model?.model
|
|
765
780
|
?? ctx.classicChannels.getModel?.(channelId, channel?.adapterId, ctx.fleetConfig?.defaults?.model)
|
|
766
781
|
?? "default",
|