@songsid/agend 2.3.5-alpha.11 → 2.3.5-alpha.13
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/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/accounts-view.d.ts +3 -0
- package/dist/accounts-view.js +2 -2
- package/dist/accounts-view.js.map +1 -1
- package/dist/agent-workspace.d.ts +1 -2
- package/dist/agent-workspace.js +8 -29
- package/dist/agent-workspace.js.map +1 -1
- package/dist/auth-api.js +15 -29
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.js +16 -3
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex.d.ts +7 -14
- package/dist/backend/codex.js +25 -29
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +16 -0
- package/dist/backend/credential-profile.js +44 -0
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/grok-mcp.d.ts +5 -0
- package/dist/backend/grok-mcp.js +221 -0
- package/dist/backend/grok-mcp.js.map +1 -0
- package/dist/backend/grok.d.ts +0 -10
- package/dist/backend/grok.js +5 -82
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/muse.d.ts +3 -1
- package/dist/backend/muse.js +31 -1
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/types.d.ts +18 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/cli.js +18 -0
- package/dist/cli.js.map +1 -1
- package/dist/codex-pane-ownership.d.ts +13 -0
- package/dist/codex-pane-ownership.js +192 -0
- package/dist/codex-pane-ownership.js.map +1 -0
- package/dist/create-host-account.d.ts +17 -0
- package/dist/create-host-account.js +47 -0
- package/dist/create-host-account.js.map +1 -0
- package/dist/daemon.d.ts +25 -0
- package/dist/daemon.js +203 -16
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.js +7 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-manager.d.ts +40 -9
- package/dist/fleet-manager.js +198 -47
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +1 -1
- package/dist/general-knowledge/skills/kiro-engine-migration/SKILL.md +1 -1
- package/dist/hub/client.d.ts +1 -1
- package/dist/hub/client.js +11 -0
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +2 -2
- package/dist/hub/compose/member.js +11 -3
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/member/exposure-api.d.ts +2 -0
- package/dist/hub/member/exposure-api.js +4 -2
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/pairing-api.d.ts +2 -2
- package/dist/hub/member/pairing-api.js +2 -2
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/server.js +8 -0
- package/dist/hub/server.js.map +1 -1
- package/dist/hub-pairing-summary.d.ts +3 -1
- package/dist/hub-pairing-summary.js +6 -3
- package/dist/hub-pairing-summary.js.map +1 -1
- package/dist/instance-lifecycle.js +29 -1
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +13 -9
- package/dist/locale.js.map +1 -1
- package/dist/public-web-link.d.ts +5 -0
- package/dist/public-web-link.js +8 -0
- package/dist/public-web-link.js.map +1 -1
- package/dist/runtime-client-store.js +5 -0
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-pane-private.d.ts +2 -0
- package/dist/runtime-pane-private.js +25 -0
- package/dist/runtime-pane-private.js.map +1 -1
- package/dist/runtime-pane-private.ps1 +74 -7
- package/dist/selection-card.d.ts +4 -3
- package/dist/selection-card.js +2 -1
- package/dist/selection-card.js.map +1 -1
- package/dist/settings-api.js +5 -17
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.d.ts +2 -0
- package/dist/settings-change.js +74 -31
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +23 -0
- package/dist/settings-confirmation.js +13 -2
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +4 -0
- package/dist/settings-effect.js +14 -14
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +3 -1
- package/dist/settings-http-confirmation.js +12 -7
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-summary.d.ts +24 -0
- package/dist/settings-summary.js +42 -0
- package/dist/settings-summary.js.map +1 -0
- package/dist/signin-keepalive.d.ts +25 -1
- package/dist/signin-keepalive.js +44 -1
- package/dist/signin-keepalive.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +9 -1
- package/dist/transcript-delta-reader.js +37 -8
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/ui/accounts-view.js +9 -7
- package/dist/ui/agent-details-settings.js +253 -0
- package/dist/ui/agent-instructions-field.js +69 -0
- package/dist/ui/agent-page-strings.js +148 -0
- package/dist/ui/chat-quote.js +12 -17
- package/dist/ui/hub-client.js +1 -1
- package/dist/ui/hub-company-join-strings.js +1 -1
- package/dist/ui/hub-company-join.js +7 -0
- package/dist/ui/hub-strings.js +10 -6
- package/dist/ui/native-instance-settings.js +47 -14
- package/dist/ui/panel-chat.js +2 -1
- package/dist/ui/panel-details.js +38 -14
- package/dist/ui/panel-fleet.js +9 -3
- package/dist/ui/panel-settings.js +17 -8
- package/dist/ui/settings-access-overview.js +188 -0
- package/dist/ui/settings-access-strings.js +1 -1
- package/dist/ui/settings-confirm.js +5 -5
- package/dist/ui/settings-devices.js +5 -5
- package/dist/ui/settings-dialogs.js +208 -100
- package/dist/ui/settings-hub-company-join.js +69 -14
- package/dist/ui/settings-hub.js +13 -5
- package/dist/ui/settings-layout.js +1 -1
- package/dist/ui/settings-model.js +15 -0
- package/dist/ui/settings-strings.js +8 -8
- package/dist/ui/shared/access-overview.css +48 -0
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-shell.js +145 -4
- package/dist/ui/shared/app-store.js +2 -0
- package/dist/ui/shared/app.css +69 -7
- package/dist/ui/shared/chat-render.js +17 -5
- package/dist/ui/shared/device-roles.js +1 -1
- package/dist/ui/shared/instance-nav.js +5 -1
- package/dist/ui/shared/signin.js +130 -43
- package/dist/ui/shared/usage-dialog.js +27 -15
- package/dist/ui/shared/view-strings.js +2 -0
- package/dist/ui/shared/web-authorize.js +2 -2
- package/dist/ui/signin.html +19 -8
- package/dist/update-dispatch.d.ts +50 -0
- package/dist/update-dispatch.js +58 -2
- package/dist/update-dispatch.js.map +1 -1
- package/dist/usage/format-rich.js +1 -1
- package/dist/usage/format-rich.js.map +1 -1
- package/dist/usage/usage-api.d.ts +8 -2
- package/dist/usage/usage-api.js +12 -5
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/web-api.d.ts +5 -0
- package/dist/web-api.js +58 -0
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +2 -0
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-remote-access.d.ts +71 -3
- package/dist/web-remote-access.js +197 -6
- package/dist/web-remote-access.js.map +1 -1
- package/dist/web-session.d.ts +4 -2
- package/dist/web-session.js +5 -2
- package/dist/web-session.js.map +1 -1
- package/dist/workspace-file-policy.d.ts +2 -0
- package/dist/workspace-file-policy.js +31 -0
- package/dist/workspace-file-policy.js.map +1 -0
- package/dist/workspace-follow.js +2 -1
- package/dist/workspace-follow.js.map +1 -1
- package/package.json +2 -2
- package/templates/runtime-assets/runtime-pane-private.ps1 +74 -7
- package/dist/ui/shared/signin-authenticator.js +0 -60
- package/dist/ui/signin-authenticator.html +0 -60
package/dist/web-api.js
CHANGED
|
@@ -67,6 +67,7 @@ import { QUERY_MAX_CHARS, RESULT_MAX, SEARCH_SOURCES } from "./search/search-sto
|
|
|
67
67
|
import { xmsgShown } from "./search/search-docs.js";
|
|
68
68
|
import { WebSendDedupe } from "./web-send-dedupe.js";
|
|
69
69
|
import { handleWindowsCliRequest, nativeCliAuthorization } from "./windows-cli-api.js";
|
|
70
|
+
import { resolveCreateAccount } from "./create-host-account.js";
|
|
70
71
|
import { createNativeInstance, handleNativeInstanceRequest } from "./native-instance-api.js";
|
|
71
72
|
import { handleAgentRuntimeChange } from "./agent-runtime-api.js";
|
|
72
73
|
import { isWindowsInstance, isNativePaneInstance, isNativeExecInstance } from "./native-instance-registry.js";
|
|
@@ -4032,6 +4033,52 @@ export function handleWebRequest(req, res, url, ctx) {
|
|
|
4032
4033
|
});
|
|
4033
4034
|
return true;
|
|
4034
4035
|
}
|
|
4036
|
+
// S-120 (D2a): POST /ui/public-link/close — 「立即關閉公開連結」 in Settings → 存取與安全 → 總覽. An admin session on this
|
|
4037
|
+
// fleet's own listener only: never over the public link itself (the gateway does not route it; refused here too), never
|
|
4038
|
+
// a guest, a read-only session or the CLI's header token. It only closes — nothing here opens a link — the way the chat
|
|
4039
|
+
// menu's 確定關閉 does (its remembered owner forgotten, so auto_open never reopens a deliberate close). A web-only fleet's
|
|
4040
|
+
// outside link is the owner's switch on this computer (#3008): 409 outside_link, left open.
|
|
4041
|
+
if (method === "POST" && path === "/ui/public-link/close") {
|
|
4042
|
+
if (gatewayRequestContext(req)) {
|
|
4043
|
+
json(res, 403, { error: "public_link_close_not_here" });
|
|
4044
|
+
return true;
|
|
4045
|
+
}
|
|
4046
|
+
const act = ctx.closePublicLinkFromWeb?.bind(ctx);
|
|
4047
|
+
if (!act) {
|
|
4048
|
+
json(res, 404, { error: "not_found" });
|
|
4049
|
+
return true;
|
|
4050
|
+
}
|
|
4051
|
+
(async () => {
|
|
4052
|
+
try {
|
|
4053
|
+
await parseBody(req);
|
|
4054
|
+
}
|
|
4055
|
+
catch {
|
|
4056
|
+
json(res, 400, { error: "Invalid JSON" });
|
|
4057
|
+
return;
|
|
4058
|
+
}
|
|
4059
|
+
if (!permitWebContinuation(req, res, ctx))
|
|
4060
|
+
return;
|
|
4061
|
+
const verdict = evaluateWebRequest(req, url, ctx.webToken ?? null, ctx.webSessions, { touch: false });
|
|
4062
|
+
if (verdict.kind !== "allow") {
|
|
4063
|
+
json(res, 401, { error: WEB_TOKEN_INVALID_MESSAGE });
|
|
4064
|
+
return;
|
|
4065
|
+
}
|
|
4066
|
+
if (verdict.via !== "session" || verdict.session?.tier !== "admin") {
|
|
4067
|
+
json(res, 403, { error: "public_link_close_needs_an_admin_session" });
|
|
4068
|
+
return;
|
|
4069
|
+
}
|
|
4070
|
+
res.setHeader("Cache-Control", "no-store");
|
|
4071
|
+
const r = await act();
|
|
4072
|
+
json(res, r.status, r.body);
|
|
4073
|
+
})().catch(err => {
|
|
4074
|
+
ctx.logger.error({ err: err.message }, "Public link close failed");
|
|
4075
|
+
try {
|
|
4076
|
+
json(res, 500, { error: "public_link_close_failed" });
|
|
4077
|
+
}
|
|
4078
|
+
catch { /* already answered */ }
|
|
4079
|
+
});
|
|
4080
|
+
return true;
|
|
4081
|
+
}
|
|
4035
4082
|
if (method === "POST" && (path === "/ui/devices/lookup" || path === "/ui/devices/approve" || path === "/ui/devices/deny")) {
|
|
4036
4083
|
const act = ctx.webDeviceLoginAct?.bind(ctx);
|
|
4037
4084
|
if (!act) {
|
|
@@ -4556,6 +4603,17 @@ export function handleWebRequest(req, res, url, ctx) {
|
|
|
4556
4603
|
json(res, 400, { error: v.error });
|
|
4557
4604
|
return;
|
|
4558
4605
|
}
|
|
4606
|
+
// The account the form picked for this host's CLI: checked here, before anything is created, and written as the
|
|
4607
|
+
// agent's own backend_options.<cli>.credential_profile so its first start already runs under it.
|
|
4608
|
+
const account = resolveCreateAccount(ctx.dataDir, v.data, ctx.fleetConfig?.defaults?.backend);
|
|
4609
|
+
if (!account.ok) {
|
|
4610
|
+
const { ok: _ok, status, ...rest } = account;
|
|
4611
|
+
json(res, status, rest);
|
|
4612
|
+
return;
|
|
4613
|
+
}
|
|
4614
|
+
delete v.data.credentialProfile;
|
|
4615
|
+
if (account.backendOptions)
|
|
4616
|
+
v.data.backend_options = account.backendOptions;
|
|
4559
4617
|
let result = null;
|
|
4560
4618
|
let error;
|
|
4561
4619
|
const respond = (r, e) => { result = r; error = e; };
|