@songsid/agend 2.3.5-alpha.8 → 2.3.5-alpha.9
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 +6 -0
- package/dist/accounts-profiles.js +16 -0
- package/dist/accounts-profiles.js.map +1 -1
- package/dist/agent-cli-instructions.md +1 -1
- package/dist/agent-cli.js +5 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-whats-new.js +5 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/authority/company-join.d.ts +16 -0
- package/dist/authority/company-join.js +37 -0
- package/dist/authority/company-join.js.map +1 -0
- package/dist/authority/hub-initialization.d.ts +13 -0
- package/dist/authority/hub-initialization.js +30 -0
- package/dist/authority/hub-initialization.js.map +1 -0
- package/dist/backend/claude-code.d.ts +1 -0
- package/dist/backend/claude-code.js +13 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/types.d.ts +4 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +2 -2
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/claude-model-minimum.d.ts +7 -0
- package/dist/claude-model-minimum.js +16 -0
- package/dist/claude-model-minimum.js.map +1 -0
- package/dist/daemon.d.ts +43 -1
- package/dist/daemon.js +176 -27
- package/dist/daemon.js.map +1 -1
- package/dist/decision-list.d.ts +2 -0
- package/dist/decision-list.js +1 -1
- package/dist/decision-list.js.map +1 -1
- package/dist/fleet-manager.d.ts +50 -1
- package/dist/fleet-manager.js +306 -32
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +14 -3
- package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -1
- package/dist/hub/client.js +2 -0
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.js +1 -1
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +48 -1
- package/dist/hub/compose/server.js +30 -5
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/directory/directory.d.ts +2 -0
- package/dist/hub/directory/directory.js +49 -4
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/types.d.ts +2 -0
- package/dist/hub/directory/types.js.map +1 -1
- package/dist/hub/enrollment-budget.d.ts +6 -0
- package/dist/hub/enrollment-budget.js +24 -0
- package/dist/hub/enrollment-budget.js.map +1 -0
- package/dist/hub/group-policy/authorization.d.ts +5 -0
- package/dist/hub/group-policy/authorization.js +24 -1
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/http/compose.js +62 -8
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.d.ts +2 -0
- package/dist/hub/http/core.js +10 -1
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +3 -0
- package/dist/hub/http/schema.js +4 -0
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/init/browser-certificate.d.ts +6 -1
- package/dist/hub/init/browser-certificate.js +22 -1
- package/dist/hub/init/browser-certificate.js.map +1 -1
- package/dist/hub/init/initializer.d.ts +11 -1
- package/dist/hub/init/initializer.js +202 -83
- package/dist/hub/init/initializer.js.map +1 -1
- package/dist/hub/init/layout.js +1 -1
- package/dist/hub/init/layout.js.map +1 -1
- package/dist/hub/init/text.js +2 -2
- package/dist/hub/init/text.js.map +1 -1
- package/dist/hub/init/types.d.ts +32 -4
- package/dist/hub/init/types.js.map +1 -1
- package/dist/hub/init/web-audit-import.d.ts +12 -0
- package/dist/hub/init/web-audit-import.js +39 -0
- package/dist/hub/init/web-audit-import.js.map +1 -0
- package/dist/hub/init/web-audit.d.ts +30 -0
- package/dist/hub/init/web-audit.js +42 -0
- package/dist/hub/init/web-audit.js.map +1 -0
- package/dist/hub/init/web-error.d.ts +6 -0
- package/dist/hub/init/web-error.js +8 -0
- package/dist/hub/init/web-error.js.map +1 -0
- package/dist/hub/init/web-http.d.ts +9 -0
- package/dist/hub/init/web-http.js +103 -0
- package/dist/hub/init/web-http.js.map +1 -0
- package/dist/hub/init/web.d.ts +118 -0
- package/dist/hub/init/web.js +428 -0
- package/dist/hub/init/web.js.map +1 -0
- package/dist/hub/init/wizard.js +1 -3
- package/dist/hub/init/wizard.js.map +1 -1
- package/dist/hub/join/client.d.ts +35 -0
- package/dist/hub/join/client.js +112 -0
- package/dist/hub/join/client.js.map +1 -0
- package/dist/hub/join/descriptor.d.ts +45 -0
- package/dist/hub/join/descriptor.js +52 -0
- package/dist/hub/join/descriptor.js.map +1 -0
- package/dist/hub/join/fleet-authority.d.ts +2 -0
- package/dist/hub/join/fleet-authority.js +3 -0
- package/dist/hub/join/fleet-authority.js.map +1 -0
- package/dist/hub/join/http.d.ts +8 -0
- package/dist/hub/join/http.js +112 -0
- package/dist/hub/join/http.js.map +1 -0
- package/dist/hub/join/invitation.d.ts +28 -0
- package/dist/hub/join/invitation.js +28 -0
- package/dist/hub/join/invitation.js.map +1 -0
- package/dist/hub/join/local-journal.d.ts +84 -0
- package/dist/hub/join/local-journal.js +65 -0
- package/dist/hub/join/local-journal.js.map +1 -0
- package/dist/hub/join/local.d.ts +116 -0
- package/dist/hub/join/local.js +419 -0
- package/dist/hub/join/local.js.map +1 -0
- package/dist/hub/join/private.d.ts +3 -0
- package/dist/hub/join/private.js +46 -0
- package/dist/hub/join/private.js.map +1 -0
- package/dist/hub/join/protocol.d.ts +69 -0
- package/dist/hub/join/protocol.js +96 -0
- package/dist/hub/join/protocol.js.map +1 -0
- package/dist/hub/join/receipt.d.ts +42 -0
- package/dist/hub/join/receipt.js +75 -0
- package/dist/hub/join/receipt.js.map +1 -0
- package/dist/hub/join/service.d.ts +177 -0
- package/dist/hub/join/service.js +564 -0
- package/dist/hub/join/service.js.map +1 -0
- package/dist/hub/join/store.d.ts +97 -0
- package/dist/hub/join/store.js +87 -0
- package/dist/hub/join/store.js.map +1 -0
- package/dist/hub/join/trust.d.ts +13 -0
- package/dist/hub/join/trust.js +68 -0
- package/dist/hub/join/trust.js.map +1 -0
- package/dist/hub/member/pairing-api.js +6 -1
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/member/pairing-notices.js +6 -4
- package/dist/hub/member/pairing-notices.js.map +1 -1
- package/dist/hub/pairing-notices.d.ts +3 -3
- package/dist/hub/pairing-notices.js +13 -8
- package/dist/hub/pairing-notices.js.map +1 -1
- package/dist/hub/pairing.d.ts +6 -0
- package/dist/hub/pairing.js +6 -6
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/protocol.d.ts +29 -0
- package/dist/hub/protocol.js +3 -1
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/room-read-pacer.d.ts +14 -0
- package/dist/hub/room-read-pacer.js +51 -0
- package/dist/hub/room-read-pacer.js.map +1 -0
- package/dist/hub/rooms.d.ts +7 -1
- package/dist/hub/rooms.js +25 -13
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +4 -0
- package/dist/hub/runtime.js +2 -0
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +3 -0
- package/dist/hub/server.js +14 -0
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +48 -0
- package/dist/hub/session-directory-transition.js +118 -0
- package/dist/hub/session-directory-transition.js.map +1 -0
- package/dist/hub/session-epoch.d.ts +16 -0
- package/dist/hub/session-epoch.js +50 -0
- package/dist/hub/session-epoch.js.map +1 -0
- package/dist/hub/sessions.d.ts +13 -0
- package/dist/hub/sessions.js +36 -16
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-api.d.ts +50 -0
- package/dist/hub/settings-api.js +92 -0
- package/dist/hub/settings-api.js.map +1 -0
- package/dist/hub/settings-commit.d.ts +95 -0
- package/dist/hub/settings-commit.js +490 -0
- package/dist/hub/settings-commit.js.map +1 -0
- package/dist/hub/settings-directory-decision.d.ts +433 -0
- package/dist/hub/settings-directory-decision.js +236 -0
- package/dist/hub/settings-directory-decision.js.map +1 -0
- package/dist/hub/settings-directory-proof.d.ts +77 -0
- package/dist/hub/settings-directory-proof.js +303 -0
- package/dist/hub/settings-directory-proof.js.map +1 -0
- package/dist/hub/store.d.ts +2 -1
- package/dist/hub/store.js +2 -1
- package/dist/hub/store.js.map +1 -1
- package/dist/hub/types.d.ts +4 -2
- package/dist/hub-host-settings.d.ts +48 -0
- package/dist/hub-host-settings.js +85 -0
- package/dist/hub-host-settings.js.map +1 -0
- package/dist/instance-lifecycle.d.ts +3 -0
- package/dist/instance-lifecycle.js +4 -0
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +32 -14
- package/dist/locale.js.map +1 -1
- package/dist/outbound-schemas.d.ts +2 -0
- package/dist/outbound-schemas.js +4 -2
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +1 -1
- package/dist/profile-signins.d.ts +107 -0
- package/dist/profile-signins.js +249 -0
- package/dist/profile-signins.js.map +1 -0
- package/dist/scheduler/db.d.ts +10 -0
- package/dist/scheduler/db.js +38 -11
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/types.d.ts +6 -1
- package/dist/settings-api.d.ts +7 -0
- package/dist/settings-api.js +197 -2
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-confirmation.d.ts +1 -1
- package/dist/settings-confirmation.js +1 -1
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.js +58 -0
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +3 -0
- package/dist/settings-http-confirmation.js +8 -5
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-request-capability.d.ts +5 -0
- package/dist/settings-request-capability.js +6 -1
- package/dist/settings-request-capability.js.map +1 -1
- package/dist/structured-signin-transport.d.ts +20 -2
- package/dist/structured-signin-transport.js +57 -6
- package/dist/structured-signin-transport.js.map +1 -1
- package/dist/team-membership.d.ts +7 -0
- package/dist/team-membership.js +10 -0
- package/dist/team-membership.js.map +1 -0
- package/dist/tmux-manager.d.ts +1 -1
- package/dist/tmux-manager.js +4 -1
- package/dist/tmux-manager.js.map +1 -1
- package/dist/topic-commands.js +1 -1
- package/dist/topic-commands.js.map +1 -1
- package/dist/ui/backend-signin.js +51 -15
- package/dist/ui/hub-attachments.js +3 -3
- package/dist/ui/hub-chat-strings.js +2 -0
- package/dist/ui/hub-client.js +9 -3
- package/dist/ui/hub-company-join-strings.js +74 -0
- package/dist/ui/hub-company-join.js +119 -0
- package/dist/ui/hub-group-policy.js +7 -2
- package/dist/ui/hub-owner-strings.js +8 -8
- package/dist/ui/hub-quick-pairing.js +15 -8
- package/dist/ui/hub-quick-strings.js +3 -3
- package/dist/ui/hub-this-hub.js +112 -0
- package/dist/ui/hub-welcome.js +8 -5
- package/dist/ui/panel-hub.js +178 -26
- package/dist/ui/panel-needs.js +1 -1
- package/dist/ui/settings-hub-company-join.js +90 -0
- package/dist/ui/settings-hub-membership.js +2 -1
- package/dist/ui/settings-hub-preview.js +74 -0
- package/dist/ui/settings-hub-run.js +60 -0
- package/dist/ui/settings-hub-section.js +4 -2
- package/dist/ui/settings-registry.js +2 -0
- package/dist/ui/shared/app-i18n.js +1 -1
- package/dist/ui/shared/app-shell.js +21 -17
- package/dist/ui/shared/app.css +9 -8
- package/dist/ui/shared/chat-strings.js +13 -13
- package/dist/ui/shared/hub-chat.css +12 -0
- package/dist/ui/shared/hub-groups.css +2 -0
- package/dist/ui/shared/hub-owner.css +19 -1
- package/dist/ui/shared/hub.css +7 -1
- package/dist/ui/structured-signin.js +24 -6
- package/dist/update-dispatch.d.ts +32 -4
- package/dist/update-dispatch.js +146 -16
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +2 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/view-api.d.ts +2 -8
- package/dist/view-api.js +3 -9
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +2 -0
- package/dist/web-api.js +66 -9
- package/dist/web-api.js.map +1 -1
- package/package.json +1 -1
package/dist/web-api.js
CHANGED
|
@@ -1119,21 +1119,27 @@ function handleBrowserBackendSignIns(req, res, url, ctx) {
|
|
|
1119
1119
|
json(res, 404, { error: "not_found" });
|
|
1120
1120
|
return true;
|
|
1121
1121
|
}
|
|
1122
|
-
// #3190 Part 3c: `?machine=<id>&profile=<name>` addresses the same sign-in controls for a credential profile on a paired computer (machine-signins.ts).
|
|
1123
|
-
// is accepted in the query, and both are checked
|
|
1122
|
+
// #3190 Part 3c: `?machine=<id>&profile=<name>` addresses the same sign-in controls for a credential profile on a paired computer (machine-signins.ts). #3212:
|
|
1123
|
+
// `?backend=<cli>&profile=<name>` addresses them for a named account on THIS host (profile-signins.ts). Nothing else is accepted in the query, and both are checked
|
|
1124
|
+
// in full before anything else happens.
|
|
1124
1125
|
const keys = [...url.searchParams.keys()];
|
|
1125
1126
|
let target = null;
|
|
1127
|
+
let account = null;
|
|
1126
1128
|
if (keys.length) {
|
|
1127
|
-
const machine = url.searchParams.get("machine"), profile = url.searchParams.get("profile");
|
|
1128
|
-
|
|
1129
|
+
const machine = url.searchParams.get("machine"), backend = url.searchParams.get("backend"), profile = url.searchParams.get("profile");
|
|
1130
|
+
const shape = keys.length === 2 && new Set(keys).size === 2 && profile && validCredentialProfileName(profile);
|
|
1131
|
+
if (shape && machine && /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/.test(machine) && !backend)
|
|
1132
|
+
target = { machine, profile };
|
|
1133
|
+
else if (shape && backend === "claude-code" && !machine)
|
|
1134
|
+
account = { backend, profile };
|
|
1135
|
+
else {
|
|
1129
1136
|
json(res, 404, { error: "not_found" });
|
|
1130
1137
|
return true;
|
|
1131
1138
|
}
|
|
1132
|
-
target = { machine, profile };
|
|
1133
1139
|
}
|
|
1134
|
-
// Only the one that is asked for is looked up: the host's creates its checklist state, a computer's does not need it.
|
|
1135
|
-
const service = target ? undefined : ctx.browserBackendSignIns, machines = target ? ctx.machineSignIns : undefined;
|
|
1136
|
-
if (target ? !machines : !service) {
|
|
1140
|
+
// Only the one that is asked for is looked up: the host's creates its checklist state, a computer's or a named account's does not need it.
|
|
1141
|
+
const service = target || account ? undefined : ctx.browserBackendSignIns, machines = target ? ctx.machineSignIns : undefined, accounts = account ? ctx.profileSignIns : undefined;
|
|
1142
|
+
if (target ? !machines : account ? !accounts : !service) {
|
|
1137
1143
|
json(res, 404, { error: "sign_in_unavailable" });
|
|
1138
1144
|
return true;
|
|
1139
1145
|
}
|
|
@@ -1189,6 +1195,57 @@ function handleBrowserBackendSignIns(req, res, url, ctx) {
|
|
|
1189
1195
|
result = machines.snapshot(owner, target);
|
|
1190
1196
|
}
|
|
1191
1197
|
}
|
|
1198
|
+
else if (account && accounts) {
|
|
1199
|
+
if (reading)
|
|
1200
|
+
result = await accounts.refresh(owner, account);
|
|
1201
|
+
else {
|
|
1202
|
+
let bytes;
|
|
1203
|
+
try {
|
|
1204
|
+
bytes = await readBoundedWebBody(req, 8192);
|
|
1205
|
+
}
|
|
1206
|
+
catch {
|
|
1207
|
+
json(res, 413, { error: "sign_in_body_bound" });
|
|
1208
|
+
return;
|
|
1209
|
+
}
|
|
1210
|
+
if (!permitWebContinuation(req, res, ctx))
|
|
1211
|
+
return;
|
|
1212
|
+
if (who() !== owner) {
|
|
1213
|
+
json(res, 409, { error: "signin_session_expired" });
|
|
1214
|
+
return;
|
|
1215
|
+
}
|
|
1216
|
+
let body;
|
|
1217
|
+
try {
|
|
1218
|
+
body = JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(bytes));
|
|
1219
|
+
}
|
|
1220
|
+
catch {
|
|
1221
|
+
json(res, 400, { error: "sign_in_json" });
|
|
1222
|
+
return;
|
|
1223
|
+
}
|
|
1224
|
+
// The same controls as the default account's, for the one account in the address: start (its backend must be the address's), answer a prompt, cancel, read again.
|
|
1225
|
+
// No checklist here: no select, no skip.
|
|
1226
|
+
const parsed = z.discriminatedUnion("operation", [
|
|
1227
|
+
z.strictObject({ operation: z.literal("start"), backend: z.literal(account.backend), relogin: z.boolean().optional() }),
|
|
1228
|
+
z.strictObject({ operation: z.literal("input"), id: z.string().regex(/^[0-9a-f]{32}$/), revision: z.number().int().nonnegative(), action: z.discriminatedUnion("kind", [
|
|
1229
|
+
z.strictObject({ kind: z.literal("method"), choice: z.string().max(32) }),
|
|
1230
|
+
z.strictObject({ kind: z.enum(["code", "start_url", "region"]), value: z.string().max(4096) }),
|
|
1231
|
+
]) }),
|
|
1232
|
+
z.strictObject({ operation: z.literal("cancel"), id: z.string().regex(/^[0-9a-f]{32}$/).optional() }), z.strictObject({ operation: z.literal("refresh") }),
|
|
1233
|
+
]).safeParse(body);
|
|
1234
|
+
if (!parsed.success) {
|
|
1235
|
+
json(res, 400, { error: "invalid_signin_action" });
|
|
1236
|
+
return;
|
|
1237
|
+
}
|
|
1238
|
+
const action = parsed.data;
|
|
1239
|
+
if (action.operation === "start")
|
|
1240
|
+
result = await accounts.begin(owner, account, action.relogin === true);
|
|
1241
|
+
else if (action.operation === "input")
|
|
1242
|
+
result = await accounts.input(owner, account, action.id, action.revision, action.action);
|
|
1243
|
+
else if (action.operation === "cancel")
|
|
1244
|
+
result = await accounts.cancel(owner, account, action.id);
|
|
1245
|
+
else
|
|
1246
|
+
result = await accounts.refresh(owner, account, true);
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1192
1249
|
else if (!service) {
|
|
1193
1250
|
json(res, 404, { error: "sign_in_unavailable" });
|
|
1194
1251
|
return;
|
|
@@ -1255,7 +1312,7 @@ function handleBrowserBackendSignIns(req, res, url, ctx) {
|
|
|
1255
1312
|
json(res, 200, result);
|
|
1256
1313
|
})().catch(error => {
|
|
1257
1314
|
const code = error instanceof Error ? error.message : "";
|
|
1258
|
-
const safe = /^(?:signin_(?:session_expired|console_only|cleanup_failed|action_(?:stale|invalid|ended|busy))|invalid_signin_(?:action|checklist)|machine_(?:unknown|offline|unsupported|accounts_off|unreachable|profile_not_owned|busy)|invalid_machine_target)$/.test(code) ? code : "signin_failed";
|
|
1315
|
+
const safe = /^(?:signin_(?:session_expired|console_only|cleanup_failed|busy|profile_unknown|action_(?:stale|invalid|ended|busy))|invalid_signin_(?:action|checklist|target)|machine_(?:unknown|offline|unsupported|accounts_off|unreachable|profile_not_owned|busy)|invalid_machine_target)$/.test(code) ? code : "signin_failed";
|
|
1259
1316
|
if (!res.destroyed && !res.writableEnded)
|
|
1260
1317
|
json(res, safe === "signin_cleanup_failed" || safe === "signin_failed" ? 503 : 409, { error: safe });
|
|
1261
1318
|
});
|