@songsid/agend 2.4.0-beta.22 → 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 +17 -1
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.d.ts +2 -0
- package/dist/auth-api.js +5 -2
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/web-authority.d.ts +17 -3
- package/dist/authority/web-authority.js +56 -3
- package/dist/authority/web-authority.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 +15 -7
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/classic-channel-manager.d.ts +1 -1
- package/dist/classic-channel-manager.js +2 -2
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/config-validator.js +6 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/contact-auth-api.js +3 -1
- package/dist/contact-auth-api.js.map +1 -1
- package/dist/contact-auth-service.js +1 -1
- package/dist/contact-auth-service.js.map +1 -1
- package/dist/contact-auth-store.d.ts +28 -2
- package/dist/contact-auth-store.js +72 -4
- package/dist/contact-auth-store.js.map +1 -1
- package/dist/contact-change-proposals.d.ts +18 -1
- package/dist/contact-change-proposals.js +38 -4
- package/dist/contact-change-proposals.js.map +1 -1
- package/dist/contact-state-view.d.ts +103 -0
- package/dist/contact-state-view.js +80 -0
- package/dist/contact-state-view.js.map +1 -0
- 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 +157 -15
- package/dist/fleet-manager.js +522 -78
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/admin/SKILL.md +52 -0
- package/dist/general-knowledge/skills/concepts/SKILL.md +31 -21
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +6 -0
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +6 -3
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +3 -3
- package/dist/general-knowledge/skills/hub/SKILL.md +6 -1
- 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 +75 -12
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +1 -1
- package/dist/general-role.d.ts +1 -1
- package/dist/general-role.js +1 -0
- package/dist/general-role.js.map +1 -1
- package/dist/hub/client.js +6 -1
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +2 -1
- package/dist/hub/compose/member.js +3 -2
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.js +2 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/http/compose.js +5 -0
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/protocol.d.ts +21 -0
- package/dist/hub/protocol.js +3 -0
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/question-close-model.d.ts +17 -0
- package/dist/hub/question-close-model.js +7 -0
- package/dist/hub/question-close-model.js.map +1 -0
- package/dist/hub/representative.d.ts +5 -0
- package/dist/hub/representative.js +51 -1
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/rooms/direct-view.js +1 -0
- package/dist/hub/rooms/direct-view.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +1 -1
- package/dist/hub/rooms.d.ts +3 -0
- package/dist/hub/rooms.js +27 -1
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/server.js +6 -1
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/types.d.ts +2 -2
- package/dist/human-delivery-receipts.d.ts +12 -2
- package/dist/human-delivery-receipts.js +19 -4
- package/dist/human-delivery-receipts.js.map +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/instructions.d.ts +1 -1
- package/dist/instructions.js +1 -1
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +110 -12
- 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 +16 -1
- package/dist/needs-you.js +7 -1
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +2 -2
- 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.d.ts +4 -0
- package/dist/outbound-handlers.js +69 -11
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +5 -1
- package/dist/outbound-schemas.js +10 -7
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +21 -0
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +2 -1
- package/dist/reply-buttons-controller.js +1 -1
- package/dist/reply-buttons-controller.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 +64 -1
- package/dist/tool-permissions.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/ui/accounts-keepalive.js +2 -1
- 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/chat-activity.js +2 -1
- package/dist/ui/chat-pins.js +2 -1
- package/dist/ui/claude-credentials.js +2 -1
- package/dist/ui/contact-auth-strings.js +28 -17
- package/dist/ui/contact-authorizations.js +6 -4
- package/dist/ui/contact-needs.js +6 -1
- package/dist/ui/contact-permissions.js +6 -4
- package/dist/ui/contact-tool-groups.js +1 -1
- package/dist/ui/contact-verify-need.js +46 -0
- package/dist/ui/fleet-cache.js +2 -1
- 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 +52 -14
- 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 +27 -10
- package/dist/ui/fleet-office.js +128 -40
- package/dist/ui/fleet-org.js +6 -1
- package/dist/ui/fleet-tab-icons.js +19 -0
- package/dist/ui/fleet-task-activity.js +11 -83
- 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 +14 -9
- package/dist/ui/fleet-tasks.js +42 -18
- package/dist/ui/fleet-usage.js +2 -1
- package/dist/ui/hub-admin-overview.js +2 -1
- package/dist/ui/hub-agent-intro.js +2 -1
- package/dist/ui/hub-assistant-admin.js +2 -1
- package/dist/ui/hub-directory-notices.js +2 -1
- package/dist/ui/hub-enrolment-code.js +2 -1
- package/dist/ui/hub-my-agents.js +2 -1
- package/dist/ui/hub-quick-pairing.js +2 -1
- package/dist/ui/hub-role-audit.js +2 -1
- package/dist/ui/hub-role-forms.js +3 -2
- package/dist/ui/hub-role-view.js +3 -2
- package/dist/ui/hub-roles.js +2 -1
- package/dist/ui/hub-room-agent-strings.js +2 -1
- package/dist/ui/hub-room-list.js +2 -1
- package/dist/ui/hub-room-owner-requests.js +2 -1
- package/dist/ui/hub-room-pins.js +2 -1
- package/dist/ui/hub-room-strings.js +2 -2
- package/dist/ui/hub-room-thread.js +1 -1
- package/dist/ui/log-row.js +4 -3
- package/dist/ui/office-share-dialog.js +2 -1
- package/dist/ui/office-share-page.js +2 -1
- package/dist/ui/page-share-dialog.js +3 -2
- package/dist/ui/panel-chat.js +2 -1
- package/dist/ui/panel-details.js +5 -2
- package/dist/ui/panel-fleet.js +10 -5
- package/dist/ui/panel-hub.js +2 -1
- package/dist/ui/panel-needs.js +34 -6
- package/dist/ui/panel-notices.js +2 -1
- package/dist/ui/panel-runtimes.js +2 -1
- package/dist/ui/panel-settings.js +15 -1
- package/dist/ui/panel-windows-cli.js +3 -2
- package/dist/ui/runtime-cli-install.js +2 -1
- package/dist/ui/settings-appearance.js +2 -1
- package/dist/ui/settings-guests.js +4 -3
- package/dist/ui/settings-hub-member-address.js +2 -1
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-hub-web-address.js +2 -1
- package/dist/ui/settings-hub.js +2 -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/settings-update.js +2 -1
- package/dist/ui/settings-web-authority.js +2 -1
- package/dist/ui/shared/agent-sheet.js +2 -1
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-needs.js +8 -1
- package/dist/ui/shared/app-session.js +4 -3
- package/dist/ui/shared/app-shell.js +6 -2
- package/dist/ui/shared/app.css +93 -11
- package/dist/ui/shared/chat-strings.js +4 -4
- package/dist/ui/shared/chat-time.js +7 -4
- package/dist/ui/shared/clock-text.js +57 -0
- package/dist/ui/shared/device-roles.js +6 -5
- package/dist/ui/shared/instance-nav.js +17 -22
- package/dist/ui/shared/task-board.css +64 -0
- package/dist/ui/shared/usage-dialog.js +2 -1
- package/dist/ui/shared/view-strings.js +0 -14
- package/dist/ui/shared/web-authorize.js +3 -2
- package/dist/ui/subagent-row.js +2 -1
- package/dist/web-api.d.ts +18 -2
- package/dist/web-api.js +159 -27
- package/dist/web-api.js.map +1 -1
- package/dist/web-login.d.ts +6 -1
- package/dist/web-login.js +8 -3
- package/dist/web-login.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-session-authorization.d.ts +3 -0
- package/dist/web-session-authorization.js +1 -1
- package/dist/web-session-authorization.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.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
type HubHeldCloseOutcome = import("./hub/question-close-model.js").HubHeldCloseOutcome;
|
|
1
2
|
import { type HostAlertSettings } from './host-monitoring-alert-settings.js';
|
|
2
3
|
import { type SetupTokenOwner, type SetupTokenRequest } from "./claude-setup-token.js";
|
|
3
4
|
import { type ClaudeCredentialKind, type ClaudeCredentialMetadata, type CredentialActor } from "./claude-credential-vault.js";
|
|
4
5
|
import { type ContactFileLease } from "./contact-auth-files.js";
|
|
5
|
-
import { type ContactOriginClear, type ContactPerson, type ContactPermissions, type ContactPermissionsWrite, type ContactTicketDecision } from "./contact-auth-types.js";
|
|
6
|
+
import { type ContactOriginClear, type ContactPerson, type ContactPermissions, type ContactPermissionsWrite, type ContactTicket, type ContactTicketDecision } from "./contact-auth-types.js";
|
|
6
7
|
import { type HubSharingController } from "./hub-sharing-notice.js";
|
|
7
8
|
import { type SettingsSummaryPresentation } from "./settings-summary.js";
|
|
8
9
|
import { AgentRuntimeChanges } from "./agent-runtime-change.js";
|
|
9
|
-
import { type HumanOrigin } from "./human-delivery-receipts.js";
|
|
10
|
+
import { type WebSessionIdentity, type HumanOrigin } from "./human-delivery-receipts.js";
|
|
10
11
|
import { SettingsConfirmationStore, type SettingsPendingView } from "./settings-confirmation.js";
|
|
11
12
|
import { type GeneralSwitchInput } from "./general-binding.js";
|
|
12
13
|
import { SettingsExecution } from "./settings-transaction.js";
|
|
@@ -1016,6 +1017,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1016
1017
|
private signInKeepAlive;
|
|
1017
1018
|
private hubExecutionAttention;
|
|
1018
1019
|
/** M-3632: the member's "Try again" for a held Hub question (null while no member runs). */
|
|
1020
|
+
private hubHeldClose;
|
|
1019
1021
|
private hubHeldRetry;
|
|
1020
1022
|
private missedOfflineStore;
|
|
1021
1023
|
private configHistory;
|
|
@@ -1451,7 +1453,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1451
1453
|
retryAfterMs?: number;
|
|
1452
1454
|
};
|
|
1453
1455
|
/**
|
|
1454
|
-
* alpha.2 (M-2300; #2973's agent requests,
|
|
1456
|
+
* alpha.2 (M-2300; #2973's agent requests, a colleague's §6): on a fleet with no chat connection there is no General to
|
|
1455
1457
|
* post an agent's Windows request in — it waited for `agend settings confirm` on the host. Its owner (decision
|
|
1456
1458
|
* 28c2d3a3: the `agend web --code` session on this computer, web-verified) now sees and decides it from the web's
|
|
1457
1459
|
* Needs you. The authority is asked from the request each time, and again at execution by the store (`current`):
|
|
@@ -1762,11 +1764,93 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1762
1764
|
writeContactPermissions(name: string, raw: ContactPermissionsWrite, actor: ContactPerson): ContactPermissions;
|
|
1763
1765
|
clearContactOrigin(name: string, raw: ContactOriginClear, actor: ContactPerson): ContactPermissions;
|
|
1764
1766
|
/** General can propose only. The platform callback supplies the human actor. */
|
|
1767
|
+
/** M-3693: what contact permissions hold now, for General (read-only; no write, no identity computed here). */
|
|
1768
|
+
contactState(agent?: string): {
|
|
1769
|
+
held: Record<string, unknown>[];
|
|
1770
|
+
held_truncated?: string | undefined;
|
|
1771
|
+
grants: {
|
|
1772
|
+
grant_id: string;
|
|
1773
|
+
target: string;
|
|
1774
|
+
revision: number;
|
|
1775
|
+
person: string;
|
|
1776
|
+
from: string;
|
|
1777
|
+
verbs: import("./contact-auth-types.js").ContactVerb[];
|
|
1778
|
+
expires_at: string;
|
|
1779
|
+
remaining_uses: number | null;
|
|
1780
|
+
current: boolean;
|
|
1781
|
+
}[];
|
|
1782
|
+
rooms: {
|
|
1783
|
+
room: string;
|
|
1784
|
+
mode: string;
|
|
1785
|
+
stored_as: "legacy" | "restricted";
|
|
1786
|
+
revision: number;
|
|
1787
|
+
}[];
|
|
1788
|
+
retained_origins: {
|
|
1789
|
+
agent: string;
|
|
1790
|
+
kind: "mixed" | "unknown";
|
|
1791
|
+
people: string[];
|
|
1792
|
+
chain: string[];
|
|
1793
|
+
}[];
|
|
1794
|
+
how_to: string[];
|
|
1795
|
+
};
|
|
1796
|
+
/** M-3716: the caller's OWN held requests (delivery_status { held_requests: true }); the caller is the authenticated agent. */
|
|
1797
|
+
ownContactRequests(agent: string): {
|
|
1798
|
+
requests: ({
|
|
1799
|
+
short_id: string;
|
|
1800
|
+
ticket_id: string;
|
|
1801
|
+
to: string;
|
|
1802
|
+
verb: import("./contact-auth-types.js").ContactVerb;
|
|
1803
|
+
state: string;
|
|
1804
|
+
asked_at: string;
|
|
1805
|
+
decided_at?: string | undefined;
|
|
1806
|
+
approved_by_rule: boolean;
|
|
1807
|
+
expires_at?: string | undefined;
|
|
1808
|
+
delivery_id?: string | undefined;
|
|
1809
|
+
next: string;
|
|
1810
|
+
} | {
|
|
1811
|
+
short_id: string;
|
|
1812
|
+
ticket_id: string;
|
|
1813
|
+
to: string;
|
|
1814
|
+
verb: import("./contact-auth-types.js").ContactVerb;
|
|
1815
|
+
state: string;
|
|
1816
|
+
asked_at: string;
|
|
1817
|
+
decided_at?: string | undefined;
|
|
1818
|
+
decided_by: string | undefined;
|
|
1819
|
+
expires_at?: string | undefined;
|
|
1820
|
+
delivery_id?: string | undefined;
|
|
1821
|
+
next: string;
|
|
1822
|
+
} | {
|
|
1823
|
+
short_id: string;
|
|
1824
|
+
ticket_id: string;
|
|
1825
|
+
to: string;
|
|
1826
|
+
verb: import("./contact-auth-types.js").ContactVerb;
|
|
1827
|
+
state: string;
|
|
1828
|
+
asked_at: string;
|
|
1829
|
+
decided_at?: string | undefined;
|
|
1830
|
+
expires_at?: string | undefined;
|
|
1831
|
+
delivery_id?: string | undefined;
|
|
1832
|
+
next: string;
|
|
1833
|
+
})[];
|
|
1834
|
+
note?: string | undefined;
|
|
1835
|
+
};
|
|
1765
1836
|
requestContactChange(requester: string, raw: unknown, callerCurrent: () => boolean): Promise<{
|
|
1766
1837
|
status: string;
|
|
1767
1838
|
}>;
|
|
1768
1839
|
private handleContactChangeCallback;
|
|
1769
|
-
|
|
1840
|
+
/**
|
|
1841
|
+
* M-3680 (the user, 11-25): a fleet agent's send held for approval reaches an administrator in General on the target's
|
|
1842
|
+
* Discord or Telegram, as a card with Approve once / Decline — until then a held request had no chat path (the live
|
|
1843
|
+
* Needs you message lists it without buttons). One card per request. Whoever clicks must be one who may decide it
|
|
1844
|
+
* (ContactAuthService.view(...).canDecide, read at the click); the decision is theirs, never the bot's. A request decided
|
|
1845
|
+
* anywhere else (the web, another card) retires its card. #4448 (R21079937): a ClassicBot room's request to a fleet agent
|
|
1846
|
+
* gets the same card, in the General of the target's connection; a room's request to anything else gets none.
|
|
1847
|
+
*/
|
|
1848
|
+
/** Requests whose card was posted or tried: forgotten when the request is decided, and at most HELD_CARDS_KEPT. */
|
|
1849
|
+
private heldTicketCards?;
|
|
1850
|
+
private syncHeldTicketCard;
|
|
1851
|
+
private postHeldTicketCard;
|
|
1852
|
+
private handleContactTicketCallback;
|
|
1853
|
+
contactAuthorization(id: string, actor: ContactPerson): ContactTicket;
|
|
1770
1854
|
contactAuthorizations(actor: ContactPerson, filter: {
|
|
1771
1855
|
agent?: string;
|
|
1772
1856
|
status?: string;
|
|
@@ -1774,11 +1858,19 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1774
1858
|
cursor?: string;
|
|
1775
1859
|
}): {
|
|
1776
1860
|
nextCursor: string | null;
|
|
1777
|
-
items:
|
|
1861
|
+
items: ContactTicket[];
|
|
1778
1862
|
};
|
|
1779
|
-
decideContactAuthorization(id: string, decision: ContactTicketDecision, actor: ContactPerson):
|
|
1863
|
+
decideContactAuthorization(id: string, decision: ContactTicketDecision, actor: ContactPerson): ContactTicket;
|
|
1780
1864
|
/** Status only: no human receipt, approval capability or original correlation is attached. */
|
|
1781
1865
|
private sweepContactAuthorizationOutcomes;
|
|
1866
|
+
/**
|
|
1867
|
+
* M-3710: how many contact requests wait, and since when — no ids, people or text. Needs you tells an admin session with
|
|
1868
|
+
* no verified person behind it (contactActor null) that they exist, so a request is never silently missing there.
|
|
1869
|
+
*/
|
|
1870
|
+
contactPendingCount(): {
|
|
1871
|
+
count: number;
|
|
1872
|
+
since: number;
|
|
1873
|
+
};
|
|
1782
1874
|
contactNeeds(actor: ContactPerson): WebNeedsItem[];
|
|
1783
1875
|
/**
|
|
1784
1876
|
* The chat's contact items. M-3381 (the user, beta.14): the restricted-mode suggestions are ONE low-key line per world —
|
|
@@ -2308,6 +2400,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2308
2400
|
adminGate(userId: string, ownerAdapterId?: string): "ok" | "disabled" | "denied";
|
|
2309
2401
|
/** Fleet admin is an explicit config allowlist entry, not merely an open/paired user. See adminGate. */
|
|
2310
2402
|
isFleetAdmin(userId: string, adapterId?: string): boolean;
|
|
2403
|
+
/**
|
|
2404
|
+
* Free mode at /start is the fleet-admin allowlist of the adapter that owns the room (adminGate).
|
|
2405
|
+
* A ClassicBot admin (`classicBot.yaml` admin_users) is not enough. A stub with no fleet and no worlds
|
|
2406
|
+
* is not an admin: the menu offers Restricted only.
|
|
2407
|
+
*/
|
|
2408
|
+
private canChooseFreeMode;
|
|
2311
2409
|
/** Whether this adapter has any fleet admin at all (an empty allowlist means the admin commands are off). */
|
|
2312
2410
|
hasFleetAdmins(adapterId?: string): boolean;
|
|
2313
2411
|
/**
|
|
@@ -2831,6 +2929,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2831
2929
|
}>;
|
|
2832
2930
|
audit: GuestAuditEntry[];
|
|
2833
2931
|
};
|
|
2932
|
+
/**
|
|
2933
|
+
* M-3734: each guest's agents now, as guestOverview lists them (#1920's derived access while no grants are saved) — the
|
|
2934
|
+
* scopes "Start from today's guests" on an agent's page is checked against, as it is admitted and as it applies.
|
|
2935
|
+
*/
|
|
2936
|
+
guestDerivedScopes(): Record<string, string[]>;
|
|
2834
2937
|
/** #2667: the ClassicBot rooms' instance names now — what a settings save's validation knows besides fleet.yaml's instances. */
|
|
2835
2938
|
classicRoomNames(): string[];
|
|
2836
2939
|
/**
|
|
@@ -4175,14 +4278,27 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4175
4278
|
private interactionWaitKey;
|
|
4176
4279
|
/** An instance's interaction observation, pause or wake changed (relayed by the lifecycle): recompute now, not at the tick. */
|
|
4177
4280
|
onAttentionChanged(name: string): void;
|
|
4281
|
+
/** M-3749: the credential profile a Claude config dir belongs to, for people and agents: its name, or "default". */
|
|
4282
|
+
private claudeProfileLabel;
|
|
4283
|
+
/**
|
|
4284
|
+
* M-3749: a launch found MCP servers the agent had under its previous profile and does not have now. Told to the agent
|
|
4285
|
+
* once per set (the outbox key), held until it is delivered; Needs you lists it from the daemon (instancesForNeeds).
|
|
4286
|
+
*/
|
|
4287
|
+
onMcpMissing(name: string, missing: import("./backend/claude-mcp-carry.js").McpMissing | null): void;
|
|
4288
|
+
/** M-3749: a person dismissed an agent's missing-MCP item (web or chat Acknowledge). false: nothing was outstanding. */
|
|
4289
|
+
acknowledgeMcpMissing(name: string): boolean;
|
|
4178
4290
|
/** The list for the web: every world's items, and those of instances with no world (#1386 §5.0). */
|
|
4179
4291
|
needsYouItems(): WebNeedsItem[];
|
|
4180
|
-
/** Enabled member composition supplies
|
|
4181
|
-
attachHubExecutionAttention(read: (() => import("./needs-you.js").HubExecutionAttentionInput[]) | null, retry?: ((id: string) => "queued" | "not-found" | "not-retryable") | null): void;
|
|
4292
|
+
/** Enabled member composition supplies held-work readers and explicit owner retry/close operations. */
|
|
4293
|
+
attachHubExecutionAttention(read: (() => import("./needs-you.js").HubExecutionAttentionInput[]) | null, retry?: ((id: string) => "queued" | "not-found" | "not-retryable") | null, close?: ((id: string) => Promise<HubHeldCloseOutcome>) | undefined): void;
|
|
4182
4294
|
/**
|
|
4183
4295
|
* M-3632: Needs you → "Try again" on held Hub work (`hub:hold:<row>`). The question goes back through the member's whole
|
|
4184
4296
|
* hand-off, including the Hub's begin lease; nothing is delivered without it.
|
|
4185
4297
|
*/
|
|
4298
|
+
closeHubHeld(itemId: string, actor: ContactPerson): Promise<{
|
|
4299
|
+
status: number;
|
|
4300
|
+
code: string;
|
|
4301
|
+
}>;
|
|
4186
4302
|
retryHubHeld(itemId: string): {
|
|
4187
4303
|
status: 200 | 404 | 409;
|
|
4188
4304
|
code: "queued" | "not-found" | "not-retryable";
|
|
@@ -4339,6 +4455,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4339
4455
|
name: string;
|
|
4340
4456
|
guest?: true;
|
|
4341
4457
|
authority?: HumanAuthority;
|
|
4458
|
+
identity?: WebSessionIdentity;
|
|
4342
4459
|
}): Promise<{
|
|
4343
4460
|
status: 200 | 400 | 403 | 409;
|
|
4344
4461
|
error?: string;
|
|
@@ -4381,6 +4498,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4381
4498
|
* #1939 S1: the design's §3 for one web request (authority/web-authority.ts), with this fleet's admins, policy and
|
|
4382
4499
|
* token; `instance` once the body has named it. Observe only: receipts record it, no agent acts on it yet.
|
|
4383
4500
|
*/
|
|
4501
|
+
/** A signed-in account is recognizable before verification; this supplies no action authority. */
|
|
4502
|
+
webSessionIdentity(session: SessionRecord): WebSessionIdentity | undefined;
|
|
4384
4503
|
webAuthority(input: {
|
|
4385
4504
|
session: SessionRecord | null;
|
|
4386
4505
|
gateway: boolean;
|
|
@@ -4404,6 +4523,14 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4404
4523
|
ok: false;
|
|
4405
4524
|
refusal: WebAuthorityRefusal;
|
|
4406
4525
|
};
|
|
4526
|
+
/** M-3651 (auth-api's /auth/session): until when this guest session is verified as its account now; null when it is not. */
|
|
4527
|
+
guestVerifiedUntil(req: IncomingMessage, session: SessionRecord): number | null;
|
|
4528
|
+
/**
|
|
4529
|
+
* M-3651: a guest session that signed in with a code AgEnD delivered privately to its own account — recorded as that
|
|
4530
|
+
* account's authorization of it, judged by evaluateGuestIdentity (the switch, the links, "Only this computer", the token):
|
|
4531
|
+
* its messages then carry `web-guest`, who it is and never more. Only at sign-in: a guest is never sent a Confirm card.
|
|
4532
|
+
*/
|
|
4533
|
+
private authorizeGuestSession;
|
|
4407
4534
|
/**
|
|
4408
4535
|
* M-3277 (decision 7933bf90; auth-api, at sign-in): an admin session that signed in with a code AgEnD delivered privately
|
|
4409
4536
|
* to its account (a DM, or Discord's ephemeral reply) starts verified — that code went to the very DM a Confirm card
|
|
@@ -4714,6 +4841,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4714
4841
|
publicLink: boolean;
|
|
4715
4842
|
person?: Pick<WebPersonView, "userId" | "name">;
|
|
4716
4843
|
authority?: HumanAuthority;
|
|
4844
|
+
identity?: WebSessionIdentity;
|
|
4717
4845
|
guest?: boolean;
|
|
4718
4846
|
}): Promise<WebCommandResult>;
|
|
4719
4847
|
/** Consume `/clear` Confirm/Cancel exactly once; only Confirm reaches IPC. */
|
|
@@ -5961,21 +6089,34 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
5961
6089
|
/** #2072: from the published snapshot (no `which` on the loop); not checked yet counts as installed (no false alarm). */
|
|
5962
6090
|
private isBackendInstalled;
|
|
5963
6091
|
private getMissingBackendWarning;
|
|
5964
|
-
/**
|
|
5965
|
-
private
|
|
5966
|
-
/**
|
|
6092
|
+
/** Discord buttons when the interaction can draw them; otherwise the adapter's own chooser. Never the backend select. */
|
|
6093
|
+
private classicModePoster;
|
|
6094
|
+
/** Where the finished start (and a hold notice) lands: the Discord interaction, or the Telegram menu message. */
|
|
6095
|
+
private classicStartComplete;
|
|
6096
|
+
/** Handle Discord's required static slash choice. The room waits for the mode menu. */
|
|
5967
6097
|
private handleClassicStartSlash;
|
|
5968
6098
|
private handleClassicStartSlashCore;
|
|
5969
|
-
/** Present platform-native backend choices
|
|
6099
|
+
/** Present platform-native backend choices. A choice opens the mode menu; a timeout or a failed menu creates nothing. */
|
|
5970
6100
|
private beginClassicBackendSelection;
|
|
5971
|
-
/**
|
|
6101
|
+
/** Drop a pending /start without creating a room. */
|
|
6102
|
+
private cancelClassicPending;
|
|
6103
|
+
/** Consume a backend click. Returns true for every classic-backend id, including a stale one. */
|
|
5972
6104
|
private handleClassicBackendSelection;
|
|
5973
|
-
/**
|
|
6105
|
+
/** The backend is chosen. Retire that menu and ask for the mode. Nothing is registered here. */
|
|
5974
6106
|
private finishClassicBackendSelection;
|
|
6107
|
+
/** After a backend is known (slash, `/start BACKEND`, or a backend click). The room waits for a mode click. */
|
|
6108
|
+
private beginClassicModeSelection;
|
|
6109
|
+
/** For a fleet admin, Free is first and labeled recommended. Restricted stays a button.
|
|
6110
|
+
* Anyone else sees only Restricted. Either way the room waits for a tap. */
|
|
6111
|
+
private openClassicModeMenu;
|
|
6112
|
+
/** Consume a mode click. A Free click from anyone else is ignored and the menu stays up. */
|
|
6113
|
+
private handleClassicModeSelection;
|
|
6114
|
+
/** Claim the mode choice and create the room. A second click or the timeout finds nothing. */
|
|
6115
|
+
private finishClassicModeSelection;
|
|
5975
6116
|
/** Start a classic channel instance with lightweight config */
|
|
5976
6117
|
private startClassicInstance;
|
|
5977
6118
|
/** Handle /start slash command — register classic channel */
|
|
5978
|
-
handleClassicStart(channelId: string, channelName: string, userId: string, guildId?: string, adapterId?: string, backend?: string): Promise<string>;
|
|
6119
|
+
handleClassicStart(channelId: string, channelName: string, userId: string, guildId?: string, adapterId?: string, backend?: string, restricted?: boolean): Promise<string>;
|
|
5979
6120
|
/** Handle /stop slash command — unregister classic channel */
|
|
5980
6121
|
handleClassicStop(channelId: string, adapterId?: string): Promise<string>;
|
|
5981
6122
|
/**
|
|
@@ -6412,3 +6553,4 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
6412
6553
|
}
|
|
6413
6554
|
/** alpha.2 (M-2300): the agent an applied Windows request created (its name, for the page's "Open chat"), or null. */
|
|
6414
6555
|
export declare function agentNameOf(view: SettingsPendingView): string | null;
|
|
6556
|
+
export {};
|