@songsid/agend 2.4.0-beta.15 → 2.4.0-beta.16
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/accounts-profiles.d.ts +1 -1
- package/dist/accounts-view.d.ts +3 -0
- package/dist/accounts-view.js.map +1 -1
- package/dist/auth-api.js +4 -0
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.d.ts +6 -1
- package/dist/backend/claude-code.js +63 -8
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/kiro.js +6 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/types.d.ts +2 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-command.d.ts +4 -2
- package/dist/backend-command.js +3 -0
- package/dist/backend-command.js.map +1 -1
- package/dist/browser-backend-signins.d.ts +1 -0
- package/dist/browser-backend-signins.js +3 -1
- package/dist/browser-backend-signins.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/classic-channel-manager.d.ts +1 -0
- package/dist/classic-channel-manager.js +4 -1
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/claude-credential-change.d.ts +22 -0
- package/dist/claude-credential-change.js +47 -0
- package/dist/claude-credential-change.js.map +1 -0
- package/dist/claude-credential-launch.d.ts +62 -0
- package/dist/claude-credential-launch.js +304 -0
- package/dist/claude-credential-launch.js.map +1 -0
- package/dist/claude-credential-runner.d.ts +1 -0
- package/dist/claude-credential-runner.js +56 -0
- package/dist/claude-credential-runner.js.map +1 -0
- package/dist/claude-credential-vault.d.ts +51 -0
- package/dist/claude-credential-vault.js +252 -0
- package/dist/claude-credential-vault.js.map +1 -0
- package/dist/claude-setup-token-transport.d.ts +9 -0
- package/dist/claude-setup-token-transport.js +82 -0
- package/dist/claude-setup-token-transport.js.map +1 -0
- package/dist/claude-setup-token.d.ts +51 -0
- package/dist/claude-setup-token.js +83 -0
- package/dist/claude-setup-token.js.map +1 -0
- package/dist/cli-audited.js +7 -6
- package/dist/cli-audited.js.map +1 -1
- package/dist/command-report.d.ts +11 -0
- package/dist/command-report.js +2 -0
- package/dist/command-report.js.map +1 -0
- package/dist/config-validator.js +9 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +4 -2
- package/dist/config.js.map +1 -1
- package/dist/daemon.d.ts +5 -0
- package/dist/daemon.js +59 -3
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-level-config.d.ts +1 -1
- package/dist/fleet-level-config.js +1 -0
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +39 -2
- package/dist/fleet-manager.js +383 -19
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +4 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +18 -5
- package/dist/host-monitoring-config.d.ts +14 -0
- package/dist/host-monitoring-config.js +31 -0
- package/dist/host-monitoring-config.js.map +1 -0
- package/dist/hub/group-policy/resources.d.ts +1 -1
- package/dist/instance-config-impact.js +1 -1
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instructions.js +1 -0
- package/dist/instructions.js.map +1 -1
- package/dist/locale.d.ts +2 -0
- package/dist/locale.js +13 -1
- package/dist/locale.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/profile-signins.d.ts +1 -0
- package/dist/profile-signins.js +3 -1
- package/dist/profile-signins.js.map +1 -1
- package/dist/public-web-gateway.js +2 -0
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +21 -2
- package/dist/public-web-link.js +22 -2
- package/dist/public-web-link.js.map +1 -1
- package/dist/settings-api.d.ts +12 -0
- package/dist/settings-api.js +146 -7
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +2 -0
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +13 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/topic-commands.d.ts +7 -1
- package/dist/topic-commands.js +98 -88
- package/dist/topic-commands.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/ui/accounts-view.js +12 -6
- package/dist/ui/backend-signin.js +3 -1
- package/dist/ui/chat-commands.js +2 -0
- package/dist/ui/chat-popout-transport.js +49 -19
- package/dist/ui/chat-popout.js +15 -1
- package/dist/ui/chat-store.js +1 -1
- package/dist/ui/claude-credentials.js +112 -0
- package/dist/ui/claude-setup-token.js +36 -0
- package/dist/ui/contact-auth-client.js +7 -2
- package/dist/ui/contact-auth-strings.js +45 -14
- package/dist/ui/contact-authorizations.js +47 -26
- package/dist/ui/contact-needs.js +4 -4
- package/dist/ui/fleet-canvas.js +3 -2
- package/dist/ui/fleet-office-card.js +414 -41
- package/dist/ui/fleet-office-dialogue.js +3 -3
- package/dist/ui/fleet-office-pack.d.ts +67 -1
- package/dist/ui/fleet-office-pack.js +412 -18
- package/dist/ui/fleet-office-play.js +262 -3
- package/dist/ui/fleet-office-skin.js +67 -20
- package/dist/ui/fleet-office-zones.js +19 -1
- package/dist/ui/fleet-office.js +393 -47
- package/dist/ui/office-share-page.js +5 -1
- package/dist/ui/panel-chat.js +47 -3
- package/dist/ui/panel-fleet.js +1 -1
- package/dist/ui/panel-settings.js +2 -1
- package/dist/ui/preview-popout.js +134 -0
- package/dist/ui/reply-file-preview.js +1 -1
- package/dist/ui/settings-host-monitoring.js +51 -0
- package/dist/ui/settings-shared.js +3 -2
- package/dist/ui/shared/app.css +211 -27
- package/dist/ui/shared/app.js +7 -1
- package/dist/ui/shared/chat-strings.js +8 -2
- package/dist/ui/shared/info-tip.js +64 -0
- package/dist/ui/shared/office-dialogue.css +12 -0
- package/dist/ui/shared/preview-panel.js +44 -18
- package/dist/ui/shared/preview-popout.css +11 -0
- package/dist/ui/shared/theme.js +11 -1
- package/dist/ui/shared/usage-dialog.js +9 -34
- package/dist/ui/shared/view-strings.js +2 -0
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +1 -1
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/providers.d.ts +1 -0
- package/dist/usage/providers.js +14 -1
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.js +5 -2
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/web-api.d.ts +4 -1
- package/dist/web-api.js +29 -9
- package/dist/web-api.js.map +1 -1
- package/dist/web-claude-credentials.d.ts +31 -0
- package/dist/web-claude-credentials.js +138 -0
- package/dist/web-claude-credentials.js.map +1 -0
- package/dist/web-commands.d.ts +5 -2
- package/dist/web-commands.js +4 -2
- package/dist/web-commands.js.map +1 -1
- package/dist/web-office-skins.d.ts +7 -2
- package/dist/web-office-skins.js +42 -16
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-session.d.ts +20 -1
- package/dist/web-session.js +27 -0
- package/dist/web-session.js.map +1 -1
- package/dist/web-terminal.d.ts +4 -0
- package/dist/web-terminal.js +16 -1
- package/dist/web-terminal.js.map +1 -1
- package/package.json +1 -1
package/dist/web-api.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { handleClaudeCredentials } from "./web-claude-credentials.js";
|
|
1
2
|
import { pipeline } from "node:stream/promises";
|
|
2
3
|
import { handleContactAuthorizationApi } from "./contact-auth-api.js";
|
|
3
4
|
import { buildAgentExport, parseAgentExport } from "./agent-export.js";
|
|
@@ -223,7 +224,13 @@ const streamContactProjection = new WeakMap();
|
|
|
223
224
|
function contactNeedsFor(req, url, ctx, base) {
|
|
224
225
|
const ordinary = base.filter(item => !item || typeof item !== "object" || item.type !== "contact");
|
|
225
226
|
const actor = ctx.contactActor?.(req, url);
|
|
226
|
-
|
|
227
|
+
if (actor && ctx.contactNeeds)
|
|
228
|
+
return [...ordinary, ...ctx.contactNeeds(actor)];
|
|
229
|
+
const observer = ctx.contactSuggestionActor?.(req, url);
|
|
230
|
+
// A session identity may see benign room suggestions, never pending approval tickets.
|
|
231
|
+
const suggestions = observer && ctx.contactNeeds ? ctx.contactNeeds(observer).filter(item => item && typeof item === "object"
|
|
232
|
+
&& item.reason === "contact_restricted_suggestion") : [];
|
|
233
|
+
return [...ordinary, ...suggestions];
|
|
227
234
|
}
|
|
228
235
|
/**
|
|
229
236
|
* The task board's rule over the public link: an instance kept out of sight (cross_instance_visibility: hidden) is not
|
|
@@ -1835,6 +1842,7 @@ function handleHostInstall(req, res, url, ctx, path, method) {
|
|
|
1835
1842
|
* or a read session (M-3278: the public link's admin session may) — refused before the body is read, and again after it.
|
|
1836
1843
|
*/
|
|
1837
1844
|
const ACCOUNT_STATUS = {
|
|
1845
|
+
credential_connected: 409,
|
|
1838
1846
|
backend: 400, name: 400, confirm: 400, exists: 409, case_clash: 409, unsafe_root: 409, in_use: 409, users_unknown: 409, signing_in: 409, missing: 404,
|
|
1839
1847
|
unsafe: 409, default_home: 409, failed: 500, unsupported: 400, still_signed_in: 409,
|
|
1840
1848
|
// #3190 Part 3c: a paired computer (the Runtime there decides; these are what the server can say before it asks, or what the computer answered).
|
|
@@ -4310,6 +4318,8 @@ export function handleWebRequest(req, res, url, ctx) {
|
|
|
4310
4318
|
// #3292: before the accounts prefix — its Add pattern (`POST /ui/accounts/<backend>`) would read "keep-alive" as a backend.
|
|
4311
4319
|
if (path === "/ui/accounts/keep-alive")
|
|
4312
4320
|
return handleAccountKeepAlive(req, res, url, ctx, method);
|
|
4321
|
+
if (handleClaudeCredentials(req, res, url, ctx))
|
|
4322
|
+
return true;
|
|
4313
4323
|
if (path.startsWith("/ui/accounts/"))
|
|
4314
4324
|
return handleAccountWrite(req, res, url, ctx, path, method);
|
|
4315
4325
|
// #1386: Acknowledge a "Needs you" delivery item — a session write (CSRF, checked by the gate) or the CLI's header
|
|
@@ -4655,17 +4665,27 @@ export function handleWebRequest(req, res, url, ctx) {
|
|
|
4655
4665
|
return;
|
|
4656
4666
|
}
|
|
4657
4667
|
if (id.startsWith("contact-suggest:")) {
|
|
4658
|
-
const actor = ctx.contactActor?.(req, url);
|
|
4659
|
-
if (!actor || !ctx.acknowledgeContactSuggestion) {
|
|
4660
|
-
json(res, 403, { error: "forbidden" });
|
|
4661
|
-
return;
|
|
4662
|
-
}
|
|
4663
4668
|
try {
|
|
4664
|
-
ctx.
|
|
4669
|
+
if (ctx.acknowledgeContactSuggestionFromWeb)
|
|
4670
|
+
ctx.acknowledgeContactSuggestionFromWeb(id.slice("contact-suggest:".length), req, url);
|
|
4671
|
+
else {
|
|
4672
|
+
const actor = ctx.contactActor?.(req, url);
|
|
4673
|
+
if (!actor || !ctx.acknowledgeContactSuggestion)
|
|
4674
|
+
throw Error("verification-required");
|
|
4675
|
+
ctx.acknowledgeContactSuggestion(id.slice("contact-suggest:".length), actor);
|
|
4676
|
+
}
|
|
4665
4677
|
json(res, 200, { acknowledged: true });
|
|
4666
4678
|
}
|
|
4667
|
-
catch {
|
|
4668
|
-
|
|
4679
|
+
catch (err) {
|
|
4680
|
+
const code = err instanceof Error ? err.message : "";
|
|
4681
|
+
if (code === "forbidden" || code === "verification-required")
|
|
4682
|
+
json(res, 403, { error: code, code });
|
|
4683
|
+
else {
|
|
4684
|
+
const raw = err && typeof err === "object" ? err.code : undefined;
|
|
4685
|
+
const cause = typeof raw === "string" && /^[A-Z][A-Z0-9_]{1,48}$/.test(raw) ? raw : "unknown";
|
|
4686
|
+
ctx.logger.error({ code: cause }, "Contact suggestion dismissal could not be saved");
|
|
4687
|
+
json(res, 503, { error: "unavailable", code: "unavailable" });
|
|
4688
|
+
}
|
|
4669
4689
|
}
|
|
4670
4690
|
return;
|
|
4671
4691
|
}
|