@songsid/agend 2.4.0-beta.23 → 2.4.0-beta.24
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/agent-cli-instructions.md +4 -3
- package/dist/agent-cli.js +32 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-file-read.js +2 -2
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-whats-new.js +11 -1
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/backend/claude-code.d.ts +15 -0
- package/dist/backend/claude-code.js +8 -3
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/claude-mcp-carry.d.ts +63 -0
- package/dist/backend/claude-mcp-carry.js +242 -0
- package/dist/backend/claude-mcp-carry.js.map +1 -0
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +7 -6
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/config-validator.js +6 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +11 -0
- package/dist/daemon.js +66 -15
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +8 -0
- package/dist/dashboard-permissions.js +8 -0
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/delivery-outbox.d.ts +15 -1
- package/dist/delivery-outbox.js +60 -2
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-manager.d.ts +14 -0
- package/dist/fleet-manager.js +67 -0
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +22 -9
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +6 -0
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +3 -3
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +1 -1
- package/dist/general-knowledge/skills/task-board/SKILL.md +17 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +21 -3
- package/dist/hub/group-policy/resources.d.ts +1 -1
- package/dist/instance-lifecycle.d.ts +2 -0
- package/dist/instance-lifecycle.js +29 -1
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +10 -0
- package/dist/locale.js.map +1 -1
- package/dist/needs-you-hub.d.ts +3 -0
- package/dist/needs-you-hub.js +31 -5
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +14 -1
- package/dist/needs-you.js +5 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/office-share.js +2 -1
- package/dist/office-share.js.map +1 -1
- package/dist/outbound-handlers.js +29 -6
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +3 -0
- package/dist/outbound-schemas.js +7 -5
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +3 -0
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/request-context-compatibility.d.ts +20 -0
- package/dist/request-context-compatibility.js +74 -0
- package/dist/request-context-compatibility.js.map +1 -0
- package/dist/request-context-protocol.d.ts +137 -0
- package/dist/request-context-protocol.js +38 -0
- package/dist/request-context-protocol.js.map +1 -0
- package/dist/request-context-store.d.ts +25 -0
- package/dist/request-context-store.js +137 -0
- package/dist/request-context-store.js.map +1 -0
- package/dist/scheduler/db.js +26 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-text.d.ts +2 -0
- package/dist/scheduler/task-board-text.js +12 -0
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +102 -2
- package/dist/scheduler/task-board.js +242 -24
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/scheduler/task-files.d.ts +80 -0
- package/dist/scheduler/task-files.js +357 -0
- package/dist/scheduler/task-files.js.map +1 -0
- package/dist/settings-api.d.ts +2 -0
- package/dist/settings-api.js +6 -1
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +1 -0
- package/dist/settings-baseline.js +1 -1
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-effect.d.ts +2 -0
- package/dist/settings-effect.js +5 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/task-attach-client.d.ts +43 -0
- package/dist/task-attach-client.js +125 -0
- package/dist/task-attach-client.js.map +1 -0
- package/dist/task-board-tool.d.ts +12 -0
- package/dist/task-board-tool.js +107 -6
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-file-limits.d.ts +15 -0
- package/dist/task-file-limits.js +21 -0
- package/dist/task-file-limits.js.map +1 -0
- package/dist/tool-permissions.d.ts +32 -0
- package/dist/tool-permissions.js +63 -0
- package/dist/tool-permissions.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/ui/agent-details-settings.js +7 -5
- package/dist/ui/agent-who-can-use-strings.js +125 -0
- package/dist/ui/agent-who-can-use.js +238 -0
- package/dist/ui/fleet-office-card.js +23 -5
- package/dist/ui/fleet-office-editor.js +5 -5
- package/dist/ui/fleet-office-pack.d.ts +10 -0
- package/dist/ui/fleet-office-pack.js +65 -2
- package/dist/ui/fleet-office-skin.js +42 -8
- package/dist/ui/fleet-office-store.js +33 -2
- package/dist/ui/fleet-office-vehicles.js +130 -0
- package/dist/ui/fleet-office-zones.js +5 -1
- package/dist/ui/fleet-office.js +112 -31
- package/dist/ui/fleet-task-activity.js +9 -82
- package/dist/ui/fleet-task-archive.js +111 -0
- package/dist/ui/fleet-task-card.js +6 -4
- package/dist/ui/fleet-task-common.js +2 -2
- package/dist/ui/fleet-task-edit.js +8 -1
- package/dist/ui/fleet-task-files.js +196 -0
- package/dist/ui/fleet-task-md.js +98 -0
- package/dist/ui/fleet-task-menu.js +1 -1
- package/dist/ui/fleet-task-stats.js +2 -2
- package/dist/ui/fleet-task-view.js +12 -8
- package/dist/ui/fleet-tasks.js +42 -18
- package/dist/ui/panel-details.js +3 -1
- package/dist/ui/panel-needs.js +3 -3
- package/dist/ui/panel-settings.js +15 -1
- package/dist/ui/settings-registry.js +1 -0
- package/dist/ui/settings-shared-strings.js +9 -0
- package/dist/ui/settings-shared.js +6 -1
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-needs.js +8 -1
- package/dist/ui/shared/app.css +55 -3
- package/dist/ui/shared/chat-strings.js +4 -4
- package/dist/ui/shared/task-board.css +64 -0
- package/dist/web-api.d.ts +3 -0
- package/dist/web-api.js +97 -14
- package/dist/web-api.js.map +1 -1
- package/dist/web-office-acts.d.ts +16 -0
- package/dist/web-office-acts.js +27 -9
- package/dist/web-office-acts.js.map +1 -1
- package/dist/web-office-pack-read.js +1 -1
- package/dist/web-office-pack-read.js.map +1 -1
- package/dist/web-office-skins.d.ts +5 -3
- package/dist/web-office-skins.js +20 -16
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-settings-patch.d.ts +27 -0
- package/dist/web-settings-patch.js +67 -0
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/workflow-templates/default.md +1 -0
- package/package.json +1 -1
package/dist/fleet-manager.js
CHANGED
|
@@ -422,6 +422,7 @@ import { APPLY_FLEET_TARGET, ApplyJobStore, viewOf, } from "./apply-job.js";
|
|
|
422
422
|
import { kiroHome } from "./backend/kiro-kas-store.js";
|
|
423
423
|
import { CHAT_PROFILE_LOGIN_BACKENDS, claudeStoreEnded, credentialHomeSpec, credentialProfileHome, credentialProfileLaunch, credentialProfileLogin, credentialProfileLoginCommand, credentialProfileStoreHome, credentialSwitchCarriesConversation, credentialSwitchStartsFresh, instanceCredentialProfile, listConfiguredProfiles, resolveCredentialProfile } from "./backend/credential-profile.js";
|
|
424
424
|
import { carryClaudeConversation } from "./backend/claude-carry.js";
|
|
425
|
+
import { carryClaudeMcpServers, claudeJsonFor, dismissClaudeMcpMissing, recordClaudeMcpBeforeSwitch } from "./backend/claude-mcp-carry.js";
|
|
425
426
|
import { classicProfile, mergeBackendOptions, profileKey, profileName, profileOf, readClassicBindings, readClassicBindingsStrict } from "./classic-bindings.js";
|
|
426
427
|
import { ACCOUNT_CLIS, PROFILE_CLIS, accountUsage, buildAccountsView, profilesOnDisk } from "./accounts-view.js";
|
|
427
428
|
import { accountFolderExists, addAccountProfile, removeAccountProfile } from "./accounts-profiles.js";
|
|
@@ -4590,6 +4591,7 @@ export class FleetManager {
|
|
|
4590
4591
|
generalLocation: input => this.previewGeneralLocation(input),
|
|
4591
4592
|
hubMembership: raw => hubMembershipSettings(raw),
|
|
4592
4593
|
hubPageSharing: raw => hubPageSharingSettings(raw),
|
|
4594
|
+
guestDerivedScopes: () => this.guestDerivedScopes(),
|
|
4593
4595
|
hostMonitoringAvailable: () => this.hostMonitoringAvailable(),
|
|
4594
4596
|
hubPilotTrust: raw => hubPilotTrustSettings(raw, RUNNING_AGEND_VERSION),
|
|
4595
4597
|
// S3c (S-55): a Hub exposure publish's confirmation summary, while a member composition is attached.
|
|
@@ -11726,6 +11728,25 @@ export class FleetManager {
|
|
|
11726
11728
|
this.writeFreshStartMarker(name);
|
|
11727
11729
|
return null;
|
|
11728
11730
|
}
|
|
11731
|
+
// M-3749: the agent's own MCP servers (user scope, and local scope for its folder) go along too, merged — whatever
|
|
11732
|
+
// becomes of the conversation. A failure is logged; the next launch's check tells the agent what it lacks.
|
|
11733
|
+
if (sw.backend === "claude-code") {
|
|
11734
|
+
const profileDir = (profile) => profile ? credentialProfileHome(this.dataDir, sw.backend, profile) : null;
|
|
11735
|
+
try {
|
|
11736
|
+
// What it has in the profile it leaves now (added this session too), so the next launch can say what is missing.
|
|
11737
|
+
recordClaudeMcpBeforeSwitch({ instanceDir: this.getInstanceDir(name), configDir: claudeConfigDirFor(profileDir(sw.from)),
|
|
11738
|
+
jsonPath: claudeJsonFor(profileDir(sw.from)), workingDirectory: sw.workingDirectory ?? "" });
|
|
11739
|
+
const mcp = carryClaudeMcpServers({ fromProfileDir: profileDir(sw.from), toProfileDir: profileDir(sw.to), workingDirectory: sw.workingDirectory ?? "" });
|
|
11740
|
+
const where = { name, from: sw.from ?? "default", to: sw.to ?? "default" };
|
|
11741
|
+
if (!mcp.carried)
|
|
11742
|
+
this.logger.warn({ ...where, reason: mcp.reason }, "MCP servers not carried to the new credential profile");
|
|
11743
|
+
else if (mcp.user.length || mcp.local.length || mcp.keptTarget.length)
|
|
11744
|
+
this.logger.info({ ...where, user: mcp.user, local: mcp.local, keptTarget: mcp.keptTarget }, "MCP servers carried to the new credential profile");
|
|
11745
|
+
}
|
|
11746
|
+
catch (err) {
|
|
11747
|
+
this.logger.warn({ name, err: err.message }, "MCP servers not carried to the new credential profile");
|
|
11748
|
+
}
|
|
11749
|
+
}
|
|
11729
11750
|
let sessionId = null;
|
|
11730
11751
|
try {
|
|
11731
11752
|
sessionId = readFileSync(join(this.getInstanceDir(name), "session-id"), "utf-8");
|
|
@@ -12558,6 +12579,17 @@ export class FleetManager {
|
|
|
12558
12579
|
return { enabled: cfg?.enabled === true, chat: cfg?.chat !== false, explicit: cfg?.grants !== undefined, instances: Object.keys(this.fleetConfig?.instances ?? {}).sort(), rooms, connections, guests,
|
|
12559
12580
|
audit: this.guestAudit() };
|
|
12560
12581
|
}
|
|
12582
|
+
/**
|
|
12583
|
+
* M-3734: each guest's agents now, as guestOverview lists them (#1920's derived access while no grants are saved) — the
|
|
12584
|
+
* scopes "Start from today's guests" on an agent's page is checked against, as it is admitted and as it applies.
|
|
12585
|
+
*/
|
|
12586
|
+
guestDerivedScopes() {
|
|
12587
|
+
const out = Object.create(null);
|
|
12588
|
+
for (const g of this.guestOverview().guests)
|
|
12589
|
+
if (g.scope.length)
|
|
12590
|
+
out[`${g.adapterId}:${g.userId}`] = [...g.scope];
|
|
12591
|
+
return out;
|
|
12592
|
+
}
|
|
12561
12593
|
/** #2667: the ClassicBot rooms' instance names now — what a settings save's validation knows besides fleet.yaml's instances. */
|
|
12562
12594
|
classicRoomNames() {
|
|
12563
12595
|
return (this.classicChannels?.getAll() ?? []).map((r) => r.instanceName);
|
|
@@ -21209,6 +21241,39 @@ export class FleetManager {
|
|
|
21209
21241
|
this.needsPauseCache.delete(name);
|
|
21210
21242
|
this.needsYou?.poke();
|
|
21211
21243
|
}
|
|
21244
|
+
/** M-3749: the credential profile a Claude config dir belongs to, for people and agents: its name, or "default". */
|
|
21245
|
+
claudeProfileLabel(configDir) {
|
|
21246
|
+
const dir = resolvePath(configDir);
|
|
21247
|
+
return dirname(dir) === resolvePath(dirname(credentialProfileHome(this.dataDir, "claude-code", "x"))) ? basename(dir) : "default";
|
|
21248
|
+
}
|
|
21249
|
+
/**
|
|
21250
|
+
* M-3749: a launch found MCP servers the agent had under its previous profile and does not have now. Told to the agent
|
|
21251
|
+
* once per set (the outbox key), held until it is delivered; Needs you lists it from the daemon (instancesForNeeds).
|
|
21252
|
+
*/
|
|
21253
|
+
onMcpMissing(name, missing) {
|
|
21254
|
+
if (!missing?.names.length)
|
|
21255
|
+
return;
|
|
21256
|
+
try {
|
|
21257
|
+
this.ensureDeliveryOutbox();
|
|
21258
|
+
const outbox = this.deliveryOutbox;
|
|
21259
|
+
if (!outbox)
|
|
21260
|
+
return;
|
|
21261
|
+
const digest = createHash("sha256").update(`${missing.fromConfigDir}\u0000${missing.toConfigDir}\u0000${missing.names.join(",")}`).digest("hex").slice(0, 16);
|
|
21262
|
+
const text = t("inst.mcp_missing", this.claudeProfileLabel(missing.fromConfigDir), this.claudeProfileLabel(missing.toConfigDir), missing.names.join(t("needs.mcp_missing_sep")));
|
|
21263
|
+
outbox.admitSystemNotice(name, `mcp-missing:${name}:${digest}`, text, new Date(missing.since));
|
|
21264
|
+
}
|
|
21265
|
+
catch (err) {
|
|
21266
|
+
this.logger.warn({ err, name }, "Could not queue the MCP-missing notice");
|
|
21267
|
+
}
|
|
21268
|
+
}
|
|
21269
|
+
/** M-3749: a person dismissed an agent's missing-MCP item (web or chat Acknowledge). false: nothing was outstanding. */
|
|
21270
|
+
acknowledgeMcpMissing(name) {
|
|
21271
|
+
const daemon = this.daemons.get(name);
|
|
21272
|
+
if (daemon?.dismissMcpMissing)
|
|
21273
|
+
return daemon.dismissMcpMissing();
|
|
21274
|
+
dismissClaudeMcpMissing(this.getInstanceDir(name));
|
|
21275
|
+
return false;
|
|
21276
|
+
}
|
|
21212
21277
|
/** The list for the web: every world's items, and those of instances with no world (#1386 §5.0). */
|
|
21213
21278
|
needsYouItems() {
|
|
21214
21279
|
return this.needsYou?.webItems() ?? [];
|
|
@@ -21493,6 +21558,7 @@ export class FleetManager {
|
|
|
21493
21558
|
signIn: pauseReason === "auth" ? this.signInFor(name) : null,
|
|
21494
21559
|
modelSwitch: this.modelObservationForInstance(name)?.active ?? null,
|
|
21495
21560
|
usageHold: this.daemons.get(name)?.usageHold?.() ?? null,
|
|
21561
|
+
mcpMissing: (() => { const m = this.daemons.get(name)?.mcpMissing?.(); return m ? { names: m.names, from: this.claudeProfileLabel(m.fromConfigDir), to: this.claudeProfileLabel(m.toConfigDir), since: m.since } : null; })(),
|
|
21496
21562
|
nativeDeliveryHold: this.daemons.get(name)?.nativeDeliveryHold?.() ?? null,
|
|
21497
21563
|
generalLocation: this.generalLocationAttention(name),
|
|
21498
21564
|
paneRecovery: (() => {
|
|
@@ -21588,6 +21654,7 @@ export class FleetManager {
|
|
|
21588
21654
|
id: m.id, instance: m.instance, owner: m.adapterId, username: m.username, place: m.place, preview: m.preview, since: m.since,
|
|
21589
21655
|
})),
|
|
21590
21656
|
acknowledgeMissed: (id, by) => this.missedOfflineStore?.acknowledge(id, by) ?? false,
|
|
21657
|
+
acknowledgeMcpMissing: instance => this.acknowledgeMcpMissing(instance),
|
|
21591
21658
|
tasks: () => this.needsYouTaskItems(),
|
|
21592
21659
|
backendSignIns: () => this.needsYouBackendSignIns(),
|
|
21593
21660
|
signInKeepAlive: () => this.keepAliveAttention(),
|