@undefineds.co/xpod 0.4.33 → 0.4.34
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/http/SubgraphSparqlHttpHandler.d.ts +32 -0
- package/dist/http/SubgraphSparqlHttpHandler.js +448 -1
- package/dist/http/SubgraphSparqlHttpHandler.jsonld +36 -0
- package/dist/storage/rdf/QleverSparqlEngine.d.ts +15 -0
- package/dist/storage/rdf/QleverSparqlEngine.js +40 -0
- package/dist/storage/rdf/QleverSparqlEngine.jsonld +8 -0
- package/dist/storage/rdf/RdfAccessScope.d.ts +12 -0
- package/dist/storage/rdf/RdfAccessScope.js +63 -3
- package/dist/storage/rdf/RdfQuerySparqlEngine.d.ts +7 -0
- package/dist/storage/rdf/RdfQuerySparqlEngine.js +30 -0
- package/dist/storage/rdf/RdfQuerySparqlEngine.jsonld +8 -0
- package/dist/storage/rdf/index.d.ts +1 -1
- package/dist/storage/rdf/index.js +6 -2
- package/dist/storage/sparql/SubgraphQueryEngine.d.ts +5 -0
- package/dist/storage/sparql/SubgraphQueryEngine.js +9 -0
- package/dist/storage/sparql/SubgraphQueryEngine.jsonld +16 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiBuiltinProvidersSection.d.ts +32 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiBuiltinProvidersSection.js +8 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiConnectionsPanel.js +35 -1
- package/node_modules/@undefineds.co/ai-connections/dist/AiGatewayKeysSection.d.ts +9 -1
- package/node_modules/@undefineds.co/ai-connections/dist/AiGatewayKeysSection.js +32 -6
- package/node_modules/@undefineds.co/ai-connections/dist/index.d.ts +1 -0
- package/node_modules/@undefineds.co/ai-connections/dist/index.js +1 -0
- package/node_modules/@undefineds.co/ai-connections/package.json +2 -2
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/contract/ai-connections-client.d.ts +1 -1
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/contract/client/normalize.d.ts +16 -1
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/contract/client/normalize.js +80 -2
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/contract/client/request.js +19 -1
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/contract/client/types.d.ts +31 -0
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/materials/build-provenance.json +4 -4
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/materials/index.json +15 -15
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/materials/javascript/provider-catalog/index.json +2 -2
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/materials/javascript/service-access-resources/index.json +2 -2
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/materials/source/package.json +1 -1
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/materials/source-inventory.json +11 -11
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/provider-catalog-inputs.json +1 -1
- package/node_modules/@undefineds.co/ai-connections-runtime/dist/service-access-resources-inputs.json +1 -1
- package/node_modules/@undefineds.co/ai-connections-runtime/package.json +1 -1
- package/node_modules/@undefineds.co/extension-host-contracts/dist/materials/build-provenance.json +1 -1
- package/node_modules/@undefineds.co/extension-host-contracts/dist/materials/index.json +3 -3
- package/node_modules/@undefineds.co/extension-host-contracts/dist/materials/source-inventory.json +1 -1
- package/node_modules/@undefineds.co/xpod-afs/dist/licenses/cli-producer-original-binding.json +1 -1
- package/node_modules/@undefineds.co/xpod-cli/dist/producer-materials/index.json +1 -1
- package/package.json +4 -4
- package/static/dashboard/assets/{AccountAuthBoundary-D2peXpst.js → AccountAuthBoundary-DXBGmvsI.js} +1 -1
- package/static/dashboard/assets/{DesktopOidcCallback-DXWArav6.js → DesktopOidcCallback-p24MYq1P.js} +1 -1
- package/static/dashboard/assets/{DevicePages-BULFk95K.js → DevicePages-DbvhTnse.js} +1 -1
- package/static/dashboard/assets/ModelsPage-UMDnRyLA.js +12 -0
- package/static/dashboard/assets/{PaneListHeader-BSfEbecP.js → PaneListHeader-DkEH0TT_.js} +1 -1
- package/static/dashboard/assets/{PodDeletionAuthorizationPanel-CH-Sx18g.js → PodDeletionAuthorizationPanel-CzrI8Pgw.js} +3 -3
- package/static/dashboard/assets/{PodPage-BMpejIra.js → PodPage-TaiWqMBx.js} +1 -1
- package/static/dashboard/assets/{SystemSettingsPage-H_Jj6WfF.js → SystemSettingsPage-D4gQjDt1.js} +1 -1
- package/static/dashboard/assets/{TasksPage-CTDxlQra.js → TasksPage-CmkiMYil.js} +1 -1
- package/static/dashboard/assets/{WebDesktopEntry-Ch7-0C9a.js → WebDesktopEntry-D9kEfhbz.js} +1 -1
- package/static/dashboard/assets/{XpodAiConnectionsPodStore-ggRE9fmE.js → XpodAiConnectionsPodStore-orY8vQFl.js} +2 -2
- package/static/dashboard/assets/{XpodShellApp-Bwf9UmeJ.js → XpodShellApp-DR65DMOb.js} +4 -4
- package/static/dashboard/assets/{account-session-CVzooxS2.js → account-session-BZ2ttIdq.js} +1 -1
- package/static/dashboard/assets/{button-DGh2QVt2.js → button-_rwfCMMH.js} +1 -1
- package/static/dashboard/assets/{collection-runtime-DwV_9rt2.js → collection-runtime-C74icLtf.js} +1 -1
- package/static/dashboard/assets/{createLucideIcon-yLhAxnfL.js → createLucideIcon-DrgScGhc.js} +1 -1
- package/static/dashboard/assets/{dashboard-xbXlitKr.js → dashboard--DWjqkYt.js} +2 -2
- package/static/dashboard/assets/{index-CMigfjqD.js → index-D6dB-UNq.js} +1 -1
- package/static/dashboard/assets/{index-BSiKqEdo.js → index-dx5sc4rE.js} +1 -1
- package/static/dashboard/assets/{label-CrDv_y1q.js → label-D02Jpvm9.js} +1 -1
- package/static/dashboard/assets/{list-BJM0nqti.js → list-DpFAisnq.js} +1 -1
- package/static/dashboard/assets/{nav-item-style-CQbGyYLb.js → nav-item-style-B1-0JkON.js} +1 -1
- package/static/dashboard/assets/{safe-continuation-ZTBQTFWB.js → safe-continuation-DUTIOFe5.js} +1 -1
- package/static/dashboard/assets/{section-header-CWHRWGXl.js → section-header-CtBnllbG.js} +1 -1
- package/static/dashboard/assets/{setting-row-qWtxYGK1.js → setting-row-D_JPuHAJ.js} +1 -1
- package/static/dashboard/assets/{xpod-remembered-login-DPMxurVN.js → xpod-remembered-login-CtmMI8xG.js} +3 -3
- package/static/dashboard/dashboard.html +1 -1
- package/static/settings/assets/{AccountAuthBoundary-4Ywjpb8o.js → AccountAuthBoundary-njIhHpLf.js} +1 -1
- package/static/settings/assets/{DesktopOidcCallback-CAmwMT_J.js → DesktopOidcCallback-BjjNwTxc.js} +1 -1
- package/static/settings/assets/{DevicePages-DvuHyfHo.js → DevicePages-FFJMu_zL.js} +1 -1
- package/static/settings/assets/ModelsPage-6567dZKQ.js +12 -0
- package/static/settings/assets/{PaneListHeader-CuFgIbhe.js → PaneListHeader-CuPah5aC.js} +1 -1
- package/static/settings/assets/{PodDeletionAuthorizationPanel-DdNgDHH5.js → PodDeletionAuthorizationPanel-aJCKasGz.js} +3 -3
- package/static/settings/assets/{PodPage-DnWCNGTO.js → PodPage-BA0DQ3AB.js} +1 -1
- package/static/settings/assets/{SystemSettingsPage-k9P_wQcl.js → SystemSettingsPage-BNPH4VWf.js} +1 -1
- package/static/settings/assets/{TasksPage-Dk7gUH3J.js → TasksPage-B5m82wjD.js} +1 -1
- package/static/settings/assets/{WebDesktopEntry-DJwPVVnU.js → WebDesktopEntry-DgwwIUhg.js} +1 -1
- package/static/settings/assets/{XpodAiConnectionsPodStore-BtJQiJsx.js → XpodAiConnectionsPodStore-BJm-rFPs.js} +2 -2
- package/static/settings/assets/{XpodShellApp-B47vEQJp.js → XpodShellApp-BwvekJJR.js} +4 -4
- package/static/settings/assets/{XpodThemeProvider-Ciuwo_yl.js → XpodThemeProvider-DyX0rUID.js} +2 -2
- package/static/settings/assets/{account-session-CMc10iEj.js → account-session-D6vibAra.js} +1 -1
- package/static/settings/assets/auth-callback-DXxmF0-p.js +1 -0
- package/static/settings/assets/{button-D1dGKY1f.js → button-CV4KJ59A.js} +1 -1
- package/static/settings/assets/{collection-runtime-hK37-47o.js → collection-runtime-CARp4Cii.js} +1 -1
- package/static/settings/assets/{createLucideIcon-nEiQH43b.js → createLucideIcon-BIwq0vQx.js} +1 -1
- package/static/settings/assets/{index-DNdvma6J.js → index-D-LgcKAb.js} +1 -1
- package/static/settings/assets/{label-C3EGk_2E.js → label-CFTl2bC_.js} +1 -1
- package/static/settings/assets/{list-BensBGZp.js → list-D2aO7Nu-.js} +1 -1
- package/static/settings/assets/{nav-item-style-BOKCPNz8.js → nav-item-style-BKpK5_1m.js} +1 -1
- package/static/settings/assets/{safe-continuation-BPwW6jdq.js → safe-continuation-DRRY_t4F.js} +1 -1
- package/static/settings/assets/{section-header-DOSj5RvJ.js → section-header-COECjyL5.js} +1 -1
- package/static/settings/assets/{setting-row-C9k4cGNM.js → setting-row-cGgL78vR.js} +1 -1
- package/static/settings/assets/{settings-DtP5C8hi.js → settings-Bvrm5N-k.js} +1 -1
- package/static/settings/assets/{xpod-remembered-login-DKFG-zi3.js → xpod-remembered-login-YAmn8ZiP.js} +3 -3
- package/static/settings/auth-callback.html +2 -2
- package/static/settings/settings.html +2 -2
- package/static/dashboard/assets/ModelsPage-xvsVzhGZ.js +0 -12
- package/static/settings/assets/ModelsPage-BDXqetwk.js +0 -12
- package/static/settings/assets/auth-callback-fcOBaX2w.js +0 -1
package/node_modules/@undefineds.co/ai-connections-runtime/dist/contract/client/normalize.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AiConnectAttempt, AiConnectionsCredential, AiConnectionsProvider, AiGatewayModel, AiGatewayCatalogModel, AiProviderAuthorizationMethodsSummary, AiProviderCredentialSummary, AiProviderSummary, CustomProviderModel, ProviderModelDiscovery } from './types.js';
|
|
1
|
+
import type { AiBuiltinProviderSummary, AiConnectAttempt, AiConnectionsCredential, AiConnectionsProvider, AiGatewayModel, AiGatewayCatalogModel, AiProviderAuthorizationMethodsSummary, AiProviderCredentialSummary, AiProviderSummary, CustomProviderModel, ProviderModelDiscovery } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Everything that turns untrusted API payloads, user input and failures into the
|
|
4
4
|
* shapes the rest of the app can rely on: proxy/pod URL normalising, error text,
|
|
@@ -42,6 +42,21 @@ export declare function parseCustomModelList(value: unknown): CustomProviderMode
|
|
|
42
42
|
export declare function parseGatewayModel(value: unknown): AiGatewayModel | undefined;
|
|
43
43
|
export declare function parseGatewayCatalogModel(value: unknown): AiGatewayCatalogModel | undefined;
|
|
44
44
|
export declare function parseProviderSummaries(values: unknown[]): AiProviderSummary[];
|
|
45
|
+
/**
|
|
46
|
+
* The deployment-owned providers the server declares about itself.
|
|
47
|
+
*
|
|
48
|
+
* This is the counterpart of `parseGatewayModel`'s Pod filter, not a widening of
|
|
49
|
+
* it: a row qualifies only when the server says `builtin: true` AND
|
|
50
|
+
* `readOnly: true`, and the id it carries is then trusted as a bare deployment
|
|
51
|
+
* id. Nothing here enters `AI_CONNECTIONS_PROVIDERS`, so a declared id cannot
|
|
52
|
+
* become a connectable provider, and a Pod row that merely names itself after
|
|
53
|
+
* one is still rejected by the Pod parsers above.
|
|
54
|
+
*
|
|
55
|
+
* The models are projected as catalog entries rather than `AiGatewayModel`s on
|
|
56
|
+
* purpose: their owner is a deployment id, which is not an `AiConnectionsProvider`,
|
|
57
|
+
* and mixing the two vocabularies is what made the row disappear.
|
|
58
|
+
*/
|
|
59
|
+
export declare function parseBuiltinProviderSummaries(values: unknown[]): AiBuiltinProviderSummary[];
|
|
45
60
|
export declare function parseAuthorizationMethodsSummary(value: unknown): AiProviderAuthorizationMethodsSummary | undefined;
|
|
46
61
|
export declare function parseProviderCredentialSummary(value: unknown): AiProviderCredentialSummary | undefined;
|
|
47
62
|
export declare function sanitizePublicObject(value: unknown): Record<string, unknown>;
|
package/node_modules/@undefineds.co/ai-connections-runtime/dist/contract/client/normalize.js
CHANGED
|
@@ -135,8 +135,9 @@ export function parseGatewayModel(value) {
|
|
|
135
135
|
?? providerValue(value.providerId)
|
|
136
136
|
?? providerValue(value.owned_by);
|
|
137
137
|
// Only WITHOUT such an owner is a platform-role id the Gateway's own routing
|
|
138
|
-
// entry
|
|
139
|
-
//
|
|
138
|
+
// entry, and only then must it stay out of the Pod model list. A row owned by
|
|
139
|
+
// a provider outside this list (a deployment built-in) is not a Pod model
|
|
140
|
+
// either; `parseBuiltinProviderSummaries` reads those from the declaration.
|
|
140
141
|
if (!explicitProvider && isPlatformModelId(value.id))
|
|
141
142
|
return undefined;
|
|
142
143
|
const provider = explicitProvider ?? providerFromModelId(value.id);
|
|
@@ -245,8 +246,20 @@ export function parseProviderSummaries(values) {
|
|
|
245
246
|
return [...grouped.values()];
|
|
246
247
|
}
|
|
247
248
|
function parseProviderSummary(value) {
|
|
249
|
+
// A row the server declares as a read-only directory entry is never a
|
|
250
|
+
// connectable personal connection, whatever id it happens to carry. This is
|
|
251
|
+
// the generic half of the invariant: the same declaration that makes
|
|
252
|
+
// `listBuiltinProviders` accept the row is what makes the mutable surface
|
|
253
|
+
// reject it, so an opaque deployment id that collides with a vocabulary id
|
|
254
|
+
// cannot smuggle itself in as an editable provider.
|
|
255
|
+
if (isDeclaredReadOnlyDirectoryRow(value))
|
|
256
|
+
return undefined;
|
|
248
257
|
return parseGroupedProviderSummary(value) ?? parseLegacyProviderSummary(value);
|
|
249
258
|
}
|
|
259
|
+
/** The declaration `builtin: true` + `readOnly: true`, or either half claiming it. */
|
|
260
|
+
function isDeclaredReadOnlyDirectoryRow(value) {
|
|
261
|
+
return isRecord(value) && (value.builtin === true || value.readOnly === true);
|
|
262
|
+
}
|
|
250
263
|
function parseLegacyProviderSummary(value) {
|
|
251
264
|
if (!isRecord(value)
|
|
252
265
|
|| typeof value.provider !== 'string'
|
|
@@ -288,6 +301,71 @@ function parseGroupedProviderSummary(value) {
|
|
|
288
301
|
status: value.status,
|
|
289
302
|
};
|
|
290
303
|
}
|
|
304
|
+
/**
|
|
305
|
+
* The deployment-owned providers the server declares about itself.
|
|
306
|
+
*
|
|
307
|
+
* This is the counterpart of `parseGatewayModel`'s Pod filter, not a widening of
|
|
308
|
+
* it: a row qualifies only when the server says `builtin: true` AND
|
|
309
|
+
* `readOnly: true`, and the id it carries is then trusted as a bare deployment
|
|
310
|
+
* id. Nothing here enters `AI_CONNECTIONS_PROVIDERS`, so a declared id cannot
|
|
311
|
+
* become a connectable provider, and a Pod row that merely names itself after
|
|
312
|
+
* one is still rejected by the Pod parsers above.
|
|
313
|
+
*
|
|
314
|
+
* The models are projected as catalog entries rather than `AiGatewayModel`s on
|
|
315
|
+
* purpose: their owner is a deployment id, which is not an `AiConnectionsProvider`,
|
|
316
|
+
* and mixing the two vocabularies is what made the row disappear.
|
|
317
|
+
*/
|
|
318
|
+
export function parseBuiltinProviderSummaries(values) {
|
|
319
|
+
const providers = [];
|
|
320
|
+
const seen = new Set();
|
|
321
|
+
for (const value of values) {
|
|
322
|
+
const provider = parseBuiltinProviderSummary(value);
|
|
323
|
+
if (!provider || seen.has(provider.id))
|
|
324
|
+
continue;
|
|
325
|
+
seen.add(provider.id);
|
|
326
|
+
providers.push(provider);
|
|
327
|
+
}
|
|
328
|
+
return providers;
|
|
329
|
+
}
|
|
330
|
+
function parseBuiltinProviderSummary(value) {
|
|
331
|
+
if (!isRecord(value)
|
|
332
|
+
|| value.builtin !== true
|
|
333
|
+
|| value.readOnly !== true
|
|
334
|
+
|| typeof value.id !== 'string'
|
|
335
|
+
|| !value.id.trim()
|
|
336
|
+
|| !isProviderSummaryStatus(value.status)) {
|
|
337
|
+
return undefined;
|
|
338
|
+
}
|
|
339
|
+
const id = value.id.trim();
|
|
340
|
+
// A declared directory is models only: credentials, offerings and write
|
|
341
|
+
// actions would contradict `readOnly`, so a row claiming them is malformed
|
|
342
|
+
// rather than partially accepted.
|
|
343
|
+
if (!Array.isArray(value.offerings) || !Array.isArray(value.credentials))
|
|
344
|
+
return undefined;
|
|
345
|
+
if (value.offerings.length > 0 || value.credentials.length > 0)
|
|
346
|
+
return undefined;
|
|
347
|
+
const models = arrayValue(value.selectedModels, (item) => parseBuiltinProviderModel(item, id));
|
|
348
|
+
return {
|
|
349
|
+
id,
|
|
350
|
+
name: stringValue(value.name) ?? id,
|
|
351
|
+
status: value.status,
|
|
352
|
+
models,
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
function parseBuiltinProviderModel(value, providerId) {
|
|
356
|
+
if (!isRecord(value) || typeof value.id !== 'string' || !value.id.trim())
|
|
357
|
+
return undefined;
|
|
358
|
+
const owner = stringValue(value.provider) ?? stringValue(value.providerId) ?? stringValue(value.owned_by);
|
|
359
|
+
// The declaration and the row must agree on who owns the model; a row naming
|
|
360
|
+
// another provider is that provider's entry, not this one's.
|
|
361
|
+
if (owner !== undefined && owner !== providerId)
|
|
362
|
+
return undefined;
|
|
363
|
+
return compactObject({
|
|
364
|
+
id: value.id.trim(),
|
|
365
|
+
displayName: stringValue(value.displayName) ?? stringValue(value.display_name) ?? stringValue(value.name),
|
|
366
|
+
provider: providerId,
|
|
367
|
+
});
|
|
368
|
+
}
|
|
291
369
|
function parseProviderOffering(value) {
|
|
292
370
|
if (!isRecord(value) || typeof value.id !== 'string' || !value.id)
|
|
293
371
|
return undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { apiKeyFingerprint } from './fingerprint.js';
|
|
2
|
-
import { AiConnectionsRequestError, assertProvider, compactObject, isDefined, isRecord, parseAuthorizationMethodsSummary, parseConnectAttempt, parseCredential, parseCustomModelList, parseGatewayModel, parseGatewayCatalogModel, parseModelDiscovery, parseProviderCredentialSummary, parseProviderSummaries, readJson, sanitizePublicObject, } from './normalize.js';
|
|
2
|
+
import { AiConnectionsRequestError, assertProvider, compactObject, isDefined, isRecord, parseAuthorizationMethodsSummary, parseBuiltinProviderSummaries, parseConnectAttempt, parseCredential, parseCustomModelList, parseGatewayModel, parseGatewayCatalogModel, parseModelDiscovery, parseProviderCredentialSummary, parseProviderSummaries, readJson, sanitizePublicObject, } from './normalize.js';
|
|
3
3
|
/**
|
|
4
4
|
* The HTTP client itself: one factory over the Pod base URL and an authenticated
|
|
5
5
|
* fetch, with every response normalised by `normalize.ts`.
|
|
@@ -108,6 +108,12 @@ export function createAiConnectionsClient({ webId, podBaseUrl, authenticatedFetc
|
|
|
108
108
|
// request Pod can never differ. Only this property is pinned; the rest of
|
|
109
109
|
// the client stays a normal, extensible object (decoration and spies work).
|
|
110
110
|
get podBaseUrl() { return podBinding; },
|
|
111
|
+
/**
|
|
112
|
+
* Key management exists only when the host assembled this client with the
|
|
113
|
+
* Account capability. Declaring it is what lets the page say "unsupported"
|
|
114
|
+
* instead of issuing a request it already knows must fail.
|
|
115
|
+
*/
|
|
116
|
+
gatewayKeyManagement: Boolean(clientCredentials),
|
|
111
117
|
getServiceAccess() {
|
|
112
118
|
return request('/api/applets/service-access/ai-connections', 'GET');
|
|
113
119
|
},
|
|
@@ -115,6 +121,18 @@ export function createAiConnectionsClient({ webId, podBaseUrl, authenticatedFetc
|
|
|
115
121
|
const payload = await request('/api/ai/providers', 'GET');
|
|
116
122
|
return Array.isArray(payload.data) ? parseProviderSummaries(payload.data) : [];
|
|
117
123
|
},
|
|
124
|
+
/**
|
|
125
|
+
* The deployment's own read-only directory from the same response.
|
|
126
|
+
*
|
|
127
|
+
* `listProviders` must keep answering strictly in the Pod vocabulary, so the
|
|
128
|
+
* declared rows are read here, where a deployment id is expected. The two
|
|
129
|
+
* lists are independent on purpose: whichever one fails or is empty, the
|
|
130
|
+
* other still describes what it owns.
|
|
131
|
+
*/
|
|
132
|
+
async listBuiltinProviders() {
|
|
133
|
+
const payload = await request('/api/ai/providers', 'GET');
|
|
134
|
+
return Array.isArray(payload.data) ? parseBuiltinProviderSummaries(payload.data) : [];
|
|
135
|
+
},
|
|
118
136
|
async listAuthorizationMethods() {
|
|
119
137
|
const response = await authenticatedFetch(`${apiBase}/api/ai/connections/authorization-methods`, {
|
|
120
138
|
method: 'GET',
|
|
@@ -130,6 +130,24 @@ export interface AiGatewayCatalogModel {
|
|
|
130
130
|
displayName?: string;
|
|
131
131
|
provider?: string;
|
|
132
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* A deployment-owned, read-only provider the server declares about itself.
|
|
135
|
+
*
|
|
136
|
+
* The row says it is not a Pod connection (`builtin: true` + `readOnly: true`)
|
|
137
|
+
* and carries the deployment's own provider id. That id is deliberately NOT
|
|
138
|
+
* part of `AI_CONNECTIONS_PROVIDERS`: that list names what a user may connect,
|
|
139
|
+
* while this directory names what the deployment already runs. Keeping them
|
|
140
|
+
* apart is what lets an arbitrary deployment id be listed without widening
|
|
141
|
+
* every write path to accept it.
|
|
142
|
+
*/
|
|
143
|
+
export interface AiBuiltinProviderSummary {
|
|
144
|
+
/** Deployment-owned id, whatever the deployment calls itself. */
|
|
145
|
+
id: string;
|
|
146
|
+
name: string;
|
|
147
|
+
status: AiProviderSummary['status'];
|
|
148
|
+
/** Models the deployment declares for this provider, under the same owner id. */
|
|
149
|
+
models: AiGatewayCatalogModel[];
|
|
150
|
+
}
|
|
133
151
|
/**
|
|
134
152
|
* What the provider's own model list said a model is.
|
|
135
153
|
*
|
|
@@ -306,6 +324,13 @@ export interface AiConnectionsClient {
|
|
|
306
324
|
readonly podBaseUrl: string;
|
|
307
325
|
getServiceAccess(): Promise<unknown>;
|
|
308
326
|
listProviders(): Promise<AiProviderSummary[]>;
|
|
327
|
+
/**
|
|
328
|
+
* Deployment-owned read-only providers declared by the server itself
|
|
329
|
+
* (`builtin: true` + `readOnly: true`), independent of the Pod provider
|
|
330
|
+
* catalogue. This is the only surface that carries those ids, which is why
|
|
331
|
+
* the credential and connect calls below never accept them.
|
|
332
|
+
*/
|
|
333
|
+
listBuiltinProviders?(): Promise<AiBuiltinProviderSummary[]>;
|
|
309
334
|
listAuthorizationMethods?(): Promise<AiProviderAuthorizationMethodsSummary[]>;
|
|
310
335
|
listModels(): Promise<AiGatewayModel[]>;
|
|
311
336
|
/** Active Gateway routing projection, independent of a host's Pod catalog. */
|
|
@@ -320,7 +345,13 @@ export interface AiConnectionsClient {
|
|
|
320
345
|
* There is deliberately no enable/disable call - the Account has no such
|
|
321
346
|
* capability - and no reveal call: the `sk-` wrapper exists only in the create
|
|
322
347
|
* response and in `plaintexts` for the session that issued it.
|
|
348
|
+
*
|
|
349
|
+
* `gatewayKeyManagement` declares whether this client was assembled with that
|
|
350
|
+
* capability. A client that says `false` will fail every one of these calls,
|
|
351
|
+
* so a surface must present the operation as unsupported instead of probing
|
|
352
|
+
* it.
|
|
323
353
|
*/
|
|
354
|
+
readonly gatewayKeyManagement?: boolean;
|
|
324
355
|
listGatewayKeys(): Promise<GatewayKeyRecord[]>;
|
|
325
356
|
createGatewayKey(input: {
|
|
326
357
|
name: string;
|
package/node_modules/@undefineds.co/ai-connections-runtime/dist/materials/build-provenance.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"sourceAuthority": {
|
|
4
|
-
"sourceCommit": "
|
|
4
|
+
"sourceCommit": "1147fecfec4aea4b75cacbe779713f09e92dafac",
|
|
5
5
|
"tracked": true,
|
|
6
6
|
"dirty": false,
|
|
7
|
-
"snapshotSHA256": "
|
|
7
|
+
"snapshotSHA256": "ae0a4e3f57abd69441e473bce58221eba61e0c1cdab02a1352cd8651687ef6d7",
|
|
8
8
|
"missingTrackedSourceCount": 0,
|
|
9
9
|
"scope": "canonical package source and actual shared material collector"
|
|
10
10
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"payload": "dist/contract/provider-catalog.cjs",
|
|
29
29
|
"payloadSHA256": "4f6a8c98146fbd94519058274d0e49e9c0c840a1f1ee4236cc82540c4a0d0064",
|
|
30
30
|
"metafile": "dist/provider-catalog-inputs.json",
|
|
31
|
-
"metafileSHA256": "
|
|
31
|
+
"metafileSHA256": "ad5077988c891c3f922190711e3777306f2a64ac1554c2b9cebc30a07a0a7855",
|
|
32
32
|
"generatedProfile": "index"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"payload": "dist/service-access-resources.cjs",
|
|
37
37
|
"payloadSHA256": "0803a6cb7e4a7530fce8bae62cae7827775246799464607ab9507a7bb920aaa6",
|
|
38
38
|
"metafile": "dist/service-access-resources-inputs.json",
|
|
39
|
-
"metafileSHA256": "
|
|
39
|
+
"metafileSHA256": "aace3a1717592c0a1e372062460c5bf91cc8b2507ba525141fec1a22a99e761a",
|
|
40
40
|
"generatedProfile": "index"
|
|
41
41
|
}
|
|
42
42
|
]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"sourceAuthority": {
|
|
4
|
-
"sourceCommit": "
|
|
4
|
+
"sourceCommit": "1147fecfec4aea4b75cacbe779713f09e92dafac",
|
|
5
5
|
"tracked": true,
|
|
6
6
|
"dirty": false,
|
|
7
|
-
"snapshotSHA256": "
|
|
7
|
+
"snapshotSHA256": "ae0a4e3f57abd69441e473bce58221eba61e0c1cdab02a1352cd8651687ef6d7",
|
|
8
8
|
"missingTrackedSourceCount": 0,
|
|
9
9
|
"scope": "canonical package source and actual shared material collector"
|
|
10
10
|
},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{
|
|
13
13
|
"path": "build-provenance.json",
|
|
14
14
|
"bytes": 1727,
|
|
15
|
-
"sha256": "
|
|
15
|
+
"sha256": "c5dc8b39510cdb7532e69049384414679783ec075525227383a39b199ae76652"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"path": "generated/provider-catalog/index.json",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
{
|
|
128
128
|
"path": "javascript/provider-catalog/index.json",
|
|
129
129
|
"bytes": 14922,
|
|
130
|
-
"sha256": "
|
|
130
|
+
"sha256": "d46e2b545aeba8b16828068b14771eb463da77f1fb4c804a81ac8021b2353ed0"
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"path": "javascript/provider-catalog/objects/02644972b775ee7bc4ed4b088808a3ea34ac6922ec52f897b7ea76b9f0ed92c4.txt",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
{
|
|
168
168
|
"path": "javascript/service-access-resources/index.json",
|
|
169
169
|
"bytes": 15148,
|
|
170
|
-
"sha256": "
|
|
170
|
+
"sha256": "c6ed55ff5c970e90f9f8d7b260af14e4a47d0e8a30e78c9d596e0de116614908"
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"path": "javascript/service-access-resources/objects/02644972b775ee7bc4ed4b088808a3ea34ac6922ec52f897b7ea76b9f0ed92c4.txt",
|
|
@@ -222,12 +222,12 @@
|
|
|
222
222
|
{
|
|
223
223
|
"path": "source/package.json",
|
|
224
224
|
"bytes": 3404,
|
|
225
|
-
"sha256": "
|
|
225
|
+
"sha256": "d6af8eecb871be684616ddf691d0d0b38a4be66c741748afa9445d94a0f1b86a"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"path": "source/src/contract/ai-connections-client.ts",
|
|
229
|
-
"bytes":
|
|
230
|
-
"sha256": "
|
|
229
|
+
"bytes": 2431,
|
|
230
|
+
"sha256": "617044bb2c8d081b9b1169202c4c51f0b5b8c14af097aa6a7626b3dc350fbe43"
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"path": "source/src/contract/client/fingerprint.ts",
|
|
@@ -241,18 +241,18 @@
|
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"path": "source/src/contract/client/normalize.ts",
|
|
244
|
-
"bytes":
|
|
245
|
-
"sha256": "
|
|
244
|
+
"bytes": 33775,
|
|
245
|
+
"sha256": "407ce39c16a58f488e03f36ce4cfc10334b334da84d4870cf068a6e132a35c96"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"path": "source/src/contract/client/request.ts",
|
|
249
|
-
"bytes":
|
|
250
|
-
"sha256": "
|
|
249
|
+
"bytes": 17087,
|
|
250
|
+
"sha256": "779d5a03303b0496ce520663d1b1cc285b3bb4e26c735f9efeaed5f2c23785f8"
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"path": "source/src/contract/client/types.ts",
|
|
254
|
-
"bytes":
|
|
255
|
-
"sha256": "
|
|
254
|
+
"bytes": 16932,
|
|
255
|
+
"sha256": "82b1f6079bc14041f992191349eea48b3c30e17754da42687677a9a9b39ab1e4"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
"path": "source/src/contract/client-config/base-adapter.ts",
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
{
|
|
323
323
|
"path": "source-inventory.json",
|
|
324
324
|
"bytes": 4713,
|
|
325
|
-
"sha256": "
|
|
325
|
+
"sha256": "cd34d7ed0c52ec52de04129be5e390eada5cb5bf3bacba78e804b96c3eb1e06a"
|
|
326
326
|
}
|
|
327
327
|
]
|
|
328
328
|
}
|
|
@@ -299,8 +299,8 @@
|
|
|
299
299
|
"inputs": [
|
|
300
300
|
{
|
|
301
301
|
"path": "src/contract/client/types.ts",
|
|
302
|
-
"sha256": "
|
|
303
|
-
"bytes":
|
|
302
|
+
"sha256": "82b1f6079bc14041f992191349eea48b3c30e17754da42687677a9a9b39ab1e4",
|
|
303
|
+
"bytes": 16932,
|
|
304
304
|
"bytesInOutput": 134
|
|
305
305
|
},
|
|
306
306
|
{
|
|
@@ -299,8 +299,8 @@
|
|
|
299
299
|
"inputs": [
|
|
300
300
|
{
|
|
301
301
|
"path": "src/contract/client/types.ts",
|
|
302
|
-
"sha256": "
|
|
303
|
-
"bytes":
|
|
302
|
+
"sha256": "82b1f6079bc14041f992191349eea48b3c30e17754da42687677a9a9b39ab1e4",
|
|
303
|
+
"bytes": 16932,
|
|
304
304
|
"bytesInOutput": 134
|
|
305
305
|
},
|
|
306
306
|
{
|
package/node_modules/@undefineds.co/ai-connections-runtime/dist/materials/source-inventory.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"sourceAuthority": {
|
|
4
|
-
"sourceCommit": "
|
|
4
|
+
"sourceCommit": "1147fecfec4aea4b75cacbe779713f09e92dafac",
|
|
5
5
|
"tracked": true,
|
|
6
6
|
"dirty": false,
|
|
7
|
-
"snapshotSHA256": "
|
|
7
|
+
"snapshotSHA256": "ae0a4e3f57abd69441e473bce58221eba61e0c1cdab02a1352cd8651687ef6d7",
|
|
8
8
|
"missingTrackedSourceCount": 0,
|
|
9
9
|
"scope": "canonical package source and actual shared material collector"
|
|
10
10
|
},
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
{
|
|
25
25
|
"path": "package.json",
|
|
26
26
|
"bytes": 3404,
|
|
27
|
-
"sha256": "
|
|
27
|
+
"sha256": "d6af8eecb871be684616ddf691d0d0b38a4be66c741748afa9445d94a0f1b86a",
|
|
28
28
|
"tracked": true
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"path": "src/contract/ai-connections-client.ts",
|
|
32
|
-
"bytes":
|
|
33
|
-
"sha256": "
|
|
32
|
+
"bytes": 2431,
|
|
33
|
+
"sha256": "617044bb2c8d081b9b1169202c4c51f0b5b8c14af097aa6a7626b3dc350fbe43",
|
|
34
34
|
"tracked": true
|
|
35
35
|
},
|
|
36
36
|
{
|
|
@@ -89,20 +89,20 @@
|
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"path": "src/contract/client/normalize.ts",
|
|
92
|
-
"bytes":
|
|
93
|
-
"sha256": "
|
|
92
|
+
"bytes": 33775,
|
|
93
|
+
"sha256": "407ce39c16a58f488e03f36ce4cfc10334b334da84d4870cf068a6e132a35c96",
|
|
94
94
|
"tracked": true
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"path": "src/contract/client/request.ts",
|
|
98
|
-
"bytes":
|
|
99
|
-
"sha256": "
|
|
98
|
+
"bytes": 17087,
|
|
99
|
+
"sha256": "779d5a03303b0496ce520663d1b1cc285b3bb4e26c735f9efeaed5f2c23785f8",
|
|
100
100
|
"tracked": true
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"path": "src/contract/client/types.ts",
|
|
104
|
-
"bytes":
|
|
105
|
-
"sha256": "
|
|
104
|
+
"bytes": 16932,
|
|
105
|
+
"sha256": "82b1f6079bc14041f992191349eea48b3c30e17754da42687677a9a9b39ab1e4",
|
|
106
106
|
"tracked": true
|
|
107
107
|
},
|
|
108
108
|
{
|
package/node_modules/@undefineds.co/extension-host-contracts/dist/materials/build-provenance.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"sourceAuthority": {
|
|
4
|
-
"sourceCommit": "
|
|
4
|
+
"sourceCommit": "1147fecfec4aea4b75cacbe779713f09e92dafac",
|
|
5
5
|
"tracked": true,
|
|
6
6
|
"dirty": false,
|
|
7
7
|
"snapshotSHA256": "c3b65827fdfc0e13c743cd5129b9db7626ec2419e12b06d8478d97fc859e851a",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"sourceAuthority": {
|
|
4
|
-
"sourceCommit": "
|
|
4
|
+
"sourceCommit": "1147fecfec4aea4b75cacbe779713f09e92dafac",
|
|
5
5
|
"tracked": true,
|
|
6
6
|
"dirty": false,
|
|
7
7
|
"snapshotSHA256": "c3b65827fdfc0e13c743cd5129b9db7626ec2419e12b06d8478d97fc859e851a",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{
|
|
13
13
|
"path": "build-provenance.json",
|
|
14
14
|
"bytes": 398,
|
|
15
|
-
"sha256": "
|
|
15
|
+
"sha256": "975c0ea75bac328e15e68de1d0d23bb84e839d7b4e52e159adf18220a261b74f"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"path": "source/LICENSE",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
{
|
|
53
53
|
"path": "source-inventory.json",
|
|
54
54
|
"bytes": 1585,
|
|
55
|
-
"sha256": "
|
|
55
|
+
"sha256": "f0874dc2094e5e9dabbff84e43f5d360ad8f80d2e4175daed3e452778d9a0138"
|
|
56
56
|
}
|
|
57
57
|
]
|
|
58
58
|
}
|
package/node_modules/@undefineds.co/extension-host-contracts/dist/materials/source-inventory.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"sourceAuthority": {
|
|
4
|
-
"sourceCommit": "
|
|
4
|
+
"sourceCommit": "1147fecfec4aea4b75cacbe779713f09e92dafac",
|
|
5
5
|
"tracked": true,
|
|
6
6
|
"dirty": false,
|
|
7
7
|
"snapshotSHA256": "c3b65827fdfc0e13c743cd5129b9db7626ec2419e12b06d8478d97fc859e851a",
|
package/node_modules/@undefineds.co/xpod-afs/dist/licenses/cli-producer-original-binding.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"version": "0.1.0-preview.2",
|
|
6
6
|
"bunVersion": "1.4.2"
|
|
7
7
|
},
|
|
8
|
-
"indexSHA256": "
|
|
8
|
+
"indexSHA256": "413035e811b257cb82a0f86d46c50320010f00f114ebed7c611ea6909640ef07",
|
|
9
9
|
"outputPayloads": {
|
|
10
10
|
"esmSHA256": "7f610395a47a79acd1bb2181a71a16e887272fa4e5522fa095db78625f3c8eb0"
|
|
11
11
|
}
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
}
|
|
160
160
|
],
|
|
161
161
|
"sourceAuthority": {
|
|
162
|
-
"sourceCommit": "
|
|
162
|
+
"sourceCommit": "1147fecfec4aea4b75cacbe779713f09e92dafac",
|
|
163
163
|
"dirty": false,
|
|
164
164
|
"snapshotSHA256": "a198c5f28999d0c763c3bb5d166823a5a5eb0eff8e7e4557b7b8d299200198a9",
|
|
165
165
|
"scope": "CLI source plus explicitly mapped canonical host and runtime-client source; no claim of release acceptance or external dependency closure."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@undefineds.co/xpod",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.34",
|
|
4
4
|
"description": "Xpod is an extended Community Solid Server, offering rich-feature, production-level Solid Pod and identity management.",
|
|
5
5
|
"repository": "https://github.com/undefinedsco/xpod",
|
|
6
6
|
"author": "developer@undefineds.co",
|
|
@@ -388,11 +388,11 @@
|
|
|
388
388
|
}
|
|
389
389
|
},
|
|
390
390
|
"optionalDependencies": {
|
|
391
|
-
"@undefineds.co/xpod-darwin-arm64": "0.4.
|
|
391
|
+
"@undefineds.co/xpod-darwin-arm64": "0.4.34",
|
|
392
392
|
"@undefineds.co/drizzle-solid": "0.3.26",
|
|
393
393
|
"@undefineds.co/extensions": "0.1.0",
|
|
394
|
-
"@undefineds.co/ai-connections": "0.1.
|
|
395
|
-
"@undefineds.co/ai-connections-runtime": "0.1.
|
|
394
|
+
"@undefineds.co/ai-connections": "0.1.7",
|
|
395
|
+
"@undefineds.co/ai-connections-runtime": "0.1.6",
|
|
396
396
|
"@undefineds.co/extension-host-contracts": "0.1.0",
|
|
397
397
|
"@undefineds.co/extension-sdk": "0.1.6",
|
|
398
398
|
"@undefineds.co/pod-collections": "0.1.6",
|
package/static/dashboard/assets/{AccountAuthBoundary-D2peXpst.js → AccountAuthBoundary-DXBGmvsI.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as m,j as e}from"./dashboard-xbXlitKr.js";import{B as b,c as F}from"./button-DGh2QVt2.js";import{a as J,c as k,u as O,r as Z,e as K,d as Q}from"./account-session-CVzooxS2.js";import{U as ee,V as B,G as te,W as se,Y as ae,Z as re,I as ne,_ as oe,$ as M,a0 as ie,X as ce,a1 as de}from"./xpod-remembered-login-DPMxurVN.js";import{C as le,b as ue,d as me,e as fe,I as V,f as pe,x as he,g as xe,h as ge,i as we,j as je,s as ve}from"./PodDeletionAuthorizationPanel-CH-Sx18g.js";import{L as W}from"./label-CrDv_y1q.js";import"./createLucideIcon-yLhAxnfL.js";import"@comunica/query-sparql-solid";function be({frame:s,children:t}){return s==="bare"?e.jsx("div",{"data-account-credentials-frame":"bare",className:"w-full text-card-foreground",children:t}):e.jsx(pe,{"data-account-credentials-frame":"card",className:"w-full border-border bg-card text-card-foreground",children:t})}function $(s,t,a,r,n){r({...s,[t]:a}),n?.(t,a)}function z({id:s,message:t}){return t?e.jsxs("p",{id:s,role:"alert","aria-live":"polite",className:"flex items-center gap-1.5 text-sm text-destructive",children:[e.jsx(te,{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),t]}):null}function ye({id:s,label:t,error:a,children:r}){return e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{"data-floating-field":"true",className:"relative",children:[r,e.jsx(W,{htmlFor:s,className:"pointer-events-none absolute left-3 top-0 z-[1] -translate-y-1/2 bg-card px-1 text-xs leading-none text-muted-foreground transition-[color,font-size,top,transform] duration-150 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:-translate-y-1/2 peer-focus:text-xs peer-focus:text-ring peer-disabled:opacity-50 peer-aria-[invalid=true]:text-destructive",children:t})]}),e.jsx(z,{id:`${s}-error`,message:a})]})}function Ae({id:s,label:t,error:a,children:r}){return e.jsxs("div",{className:"space-y-2",children:[e.jsx(W,{htmlFor:s,children:t}),r,e.jsx(z,{id:`${s}-error`,message:a})]})}function U({id:s,label:t,error:a,floating:r,children:n}){const o=r?ye:Ae;return e.jsx(o,{id:s,label:t,error:a,children:n})}function Ce({mode:s,values:t,onChange:a,onSubmit:r,onFieldChange:n,onModeChange:o,rememberAccount:l=!0,onRememberAccountChange:h,pending:u=!1,errors:c,copy:i,frame:p="card",showHeader:I=!0,presentation:R="standard"}){const[y,A]=m.useState(!1),[C,T]=m.useState(!1),N=m.useId(),v=m.useId(),x=m.useId(),w=m.useId(),f=s==="register",S=f&&t.password.length>0&&t.confirmation!==void 0&&t.password!==t.confirmation,j=S&&(y||C)?i.mismatchError:void 0,X=f?i.registerAction:i.loginAction,d=R==="compact",E=d?"peer h-11 rounded-xl px-3 pb-2 pt-4":void 0,Y=g=>{if(g?.preventDefault(),!u){if(f&&S){A(!0);return}A(!1),r(t)}},q=e.jsxs(e.Fragment,{children:[I?e.jsxs(le,{children:[e.jsx(ue,{children:f?i.registerTitle:i.loginTitle}),e.jsx(me,{children:i.productName})]}):null,e.jsx(fe,{className:F(p==="bare"?"p-0":I?void 0:"pt-6"),children:e.jsxs("form",{onSubmit:Y,className:d?"space-y-3":"space-y-4",children:[e.jsx(U,{floating:d,id:N,label:i.emailLabel,error:c?.email,children:e.jsx(ee,{id:N,name:"email",autoComplete:"email",placeholder:d?" ":i.emailPlaceholder,title:i.emailPlaceholder,value:t.email??"",disabled:u,"aria-invalid":c?.email?!0:void 0,"aria-describedby":c?.email?`${N}-error`:void 0,className:E,onChange:g=>$(t,"email",g.currentTarget.value,a,n)})}),e.jsx(U,{floating:d,id:v,label:i.passwordLabel,error:c?.password,children:e.jsx(V,{id:v,name:"password",type:"password",autoComplete:f?"new-password":"current-password",placeholder:d?" ":i.passwordPlaceholder,title:i.passwordPlaceholder,value:t.password,disabled:u,"aria-invalid":c?.password?!0:void 0,"aria-describedby":c?.password?`${v}-error`:void 0,className:E,onChange:g=>$(t,"password",g.currentTarget.value,a,n)})}),f?e.jsx(U,{floating:d,id:x,label:i.confirmationLabel,error:j??c?.confirmation,children:e.jsx(V,{id:x,name:"confirmation",type:"password",autoComplete:"new-password",placeholder:d?" ":i.confirmationPlaceholder,title:i.confirmationPlaceholder,value:t.confirmation??"",onBlur:()=>T(!0),disabled:u,"aria-invalid":j||c?.confirmation?!0:void 0,"aria-describedby":j||c?.confirmation?`${x}-error`:void 0,className:E,onChange:g=>{A(!1),$(t,"confirmation",g.currentTarget.value,a,n)}})}):null,!f&&h?e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx("input",{type:"checkbox",name:"remember",checked:l,disabled:u,onChange:g=>h(g.currentTarget.checked)}),"记住账号"]}):null,e.jsx(z,{id:w,message:c?.form}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(b,{type:"submit",className:F("w-full",d&&"h-10 rounded-xl"),disabled:u,children:[u?e.jsx(B,{"aria-hidden":"true",className:"mr-2 h-4 w-4 animate-spin"}):null,X]}),o?e.jsx(b,{type:"button",variant:"ghost",className:F("w-full",d&&"h-9 rounded-lg text-xs"),disabled:u,onClick:()=>o(f?"login":"register"),children:f?i.switchToLogin:i.switchToRegister}):null]})]})})]});return e.jsx(be,{frame:p,children:q})}function Ne(){const[s,t]=m.useState(!1),[a,r]=m.useState(!1),n=m.useRef(!1);if(!window.xpodDesktop?.cancelLogin)return null;const o=async()=>{const l=window.xpodDesktop;if(!(n.current||!l?.cancelLogin)){n.current=!0,t(!0),r(!1);try{await l.cancelLogin()}catch{r(!0)}finally{n.current=!1,t(!1)}}};return e.jsxs("div",{className:"space-y-2",children:[a&&e.jsx("p",{role:"alert",className:"text-sm text-destructive",children:"返回应用未完成,请重试。"}),e.jsx(b,{type:"button",variant:"ghost",className:"w-full",disabled:s,"aria-busy":s,onClick:()=>{o()},children:s?"正在返回…":"返回应用"})]})}function Se(s,t){const a=_(s,t),[r,n]=m.useState();a&&r&&r.issuer===void 0&&n({issuer:a,value:r.value});const o=a?se(a):void 0;return[r&&(r.issuer===a||r.issuer===void 0)?r.value:o??!1,u=>n({issuer:a,value:u})]}function _(s,t){const a=t?void 0:J(s);return a?new URL(a).origin:void 0}function Ee(s,t,a){const r=_(s,t),n=c=>ae(void 0,c)??"",[o,l]=m.useState(()=>({issuer:r,values:{email:a??(r?n(r):""),password:"",confirmation:""},emailEdited:!1}));let h=o;if(r&&o.issuer!==r){const c=o.issuer===void 0;h={issuer:r,values:c?{...o.values,email:o.emailEdited?o.values.email:a??n(r)}:{email:n(r),password:"",confirmation:""},emailEdited:c&&o.emailEdited},l(h)}const u=c=>{l(i=>{const p=typeof c=="function"?c(i.values):c;return{...i,values:p,emailEdited:i.emailEdited||p.email!==i.values.email}})};return[h.values,u,r]}class Ie extends Error{code;constructor(t,a){super(t),this.name="RegistrationError",this.code=a}}async function Re(s){const t=await s.json().catch(()=>{});return t?.message||t?.error}async function Le(s){const a=await(s.fetchImpl??fetch)(k(s.loginUrl),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:s.email,password:s.password,...s.remember===void 0?{}:{remember:s.remember}})});if(!a.ok){const o=await Re(a);throw s.duplicateEmailRecovery?new Ie(he.emailAlreadyRegisteredPasswordMismatch,"EMAIL_ALREADY_REGISTERED"):new Error(o||"Auto-login failed")}const r=await a.json().catch(()=>({})),n=typeof r.authorization=="string"?r.authorization:"";if(!n)throw new Error("Account token not returned after login");return{accountToken:n}}class D extends Error{status;invalidOidcInteraction;constructor(t,a=!1){super(`Password login failed with status ${t}`),this.name="PasswordLoginStatusError",this.status=t,this.invalidOidcInteraction=a}}function H({surface:s,onAuthenticated:t,initialEmail:a}){const{controls:r,idpIndex:n,refetchControls:o,isInitializing:l}=O(),[h,u,c]=Ee(n,l,a),[i,p]=m.useState(),[I,R]=m.useState(!1),[y,A]=Se(n,l),C=m.useRef(!1),T=async x=>{if(!(C.current||l)){C.current=!0,R(!0),p(void 0);try{const w=await Z(r?.password?.login,fetch,n)??k("/.account/login/password/"),f=await Le({email:x.email?.trim()??"",password:x.password,loginUrl:w,remember:y,fetchImpl:async(j,X)=>{const d=await fetch(typeof j=="string"||j instanceof URL?k(j):j,X);if(!d.ok){const E=d.status===400?await d.clone().json().catch(()=>{}):void 0;throw new D(d.status,we(E,d.status))}return d}});K(f.accountToken),oe(x.email?.trim()??"",void 0,n,y);const S=await o();if(S?.status!=="authenticated"){S?.status==="anonymous"&&Q(),p("登录失败,请重试。");return}await t?.()}catch(w){p(w instanceof D&&w.invalidOidcInteraction?je.message:ve(w instanceof D?w.status:500))}finally{C.current=!1,R(!1)}}},N=x=>{u(x),i&&p(void 0)},v={surface:"page",surfaceTitle:"登录 Xpod",copy:xe,registerHref:s==="embedded"?void 0:P("register"),forgotHref:s==="embedded"?void 0:P("forgot"),mode:"login",values:h,onChange:N,onSubmit:T,pending:I,rememberAccount:y,onRememberAccountChange:A,errors:i?{form:i}:void 0};return s==="embedded"?e.jsx(Ce,{...v,presentation:"compact",frame:"bare",showHeader:!1}):e.jsx(re,{...v},c??"bootstrap")}function P(s){let t="";try{const a=ne(`${window.location.pathname}${window.location.search}`);a&&(t=`?${new URLSearchParams({returnTo:a})}`)}catch{}return k(`/.account/login/password/${s}/${t}`)}function ke(){return e.jsxs("div",{className:"flex items-center justify-center gap-3 text-xs text-muted-foreground",children:[e.jsx(b,{asChild:!0,variant:"ghost",className:"h-auto px-2 py-1 text-xs font-normal text-muted-foreground hover:text-foreground",children:e.jsx("a",{href:P("register"),children:"创建账号"})}),e.jsx("span",{"aria-hidden":"true",className:"text-border",children:"·"}),e.jsx(b,{asChild:!0,variant:"ghost",className:"h-auto px-2 py-1 text-xs font-normal text-muted-foreground hover:text-foreground",children:e.jsx("a",{href:P("forgot"),children:ge.forgotPassword})})]})}function ze({children:s}){return M().state.status==="authenticated"?e.jsx(e.Fragment,{children:s}):e.jsx(G,{children:s})}function Ve({children:s}){const t=M(),a=O();return t.state.status==="authenticated"||a.accountState.status==="authenticated"||!Pe()?e.jsx(e.Fragment,{children:s}):e.jsx(G,{})}function Pe(){return typeof window>"u"?!1:new URLSearchParams(window.location.search).get("account")==="open"}function G({children:s,accountState:t,retry:a,surface:r="page"}){const n=O(),o=t??n.accountState,l=a??n.retry;return o.status==="authenticated"?e.jsx(e.Fragment,{children:s}):o.status==="submitting"?e.jsx(L,{surface:r,children:e.jsxs("div",{role:"status","aria-live":"polite",className:"flex items-center justify-center gap-2 p-6 text-sm text-muted-foreground",children:[e.jsx(B,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"正在登录…"]})}):o.status==="initializing"?e.jsx(L,{surface:r,children:e.jsxs("div",{role:"status","aria-live":"polite",className:"flex items-center justify-center gap-2 p-6 text-sm text-muted-foreground",children:[e.jsx(B,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"正在加载账号"]})}):o.status==="error"?e.jsx(L,{surface:r,children:e.jsxs("div",{className:"space-y-4 p-6",children:[e.jsx("p",{role:"alert",className:"text-sm text-destructive",children:o.message}),e.jsx(b,{className:"w-full",type:"button",onClick:()=>{l()},children:"重试"}),e.jsx(Ne,{})]})}):r==="embedded"?e.jsxs(L,{surface:r,children:[e.jsx(H,{surface:"embedded"}),e.jsx("div",{className:"mt-6 space-y-3 border-t pt-5",children:e.jsx(ke,{})})]}):e.jsx(H,{surface:"page"})}function L({children:s,surface:t}){return t==="embedded"?e.jsx(ie,{title:"登录 Xpod",presentation:"compact",serviceIcon:e.jsx(ce,{}),children:s}):e.jsx(de,{title:"登录 Xpod",presentation:"compact",children:s})}export{G as AccountAuthBoundary,ze as AccountWorkspaceBoundary,Ve as LocalServiceSurfaceBoundary};
|
|
1
|
+
import{r as m,j as e}from"./dashboard--DWjqkYt.js";import{B as b,c as F}from"./button-_rwfCMMH.js";import{a as J,c as k,u as O,r as Z,e as K,d as Q}from"./account-session-BZ2ttIdq.js";import{U as ee,V as B,G as te,W as se,Y as ae,Z as re,I as ne,_ as oe,$ as M,a0 as ie,X as ce,a1 as de}from"./xpod-remembered-login-CtmMI8xG.js";import{C as le,b as ue,d as me,e as fe,I as V,f as pe,x as he,g as xe,h as ge,i as we,j as je,s as ve}from"./PodDeletionAuthorizationPanel-CzrI8Pgw.js";import{L as W}from"./label-D02Jpvm9.js";import"./createLucideIcon-DrgScGhc.js";import"@comunica/query-sparql-solid";function be({frame:s,children:t}){return s==="bare"?e.jsx("div",{"data-account-credentials-frame":"bare",className:"w-full text-card-foreground",children:t}):e.jsx(pe,{"data-account-credentials-frame":"card",className:"w-full border-border bg-card text-card-foreground",children:t})}function $(s,t,a,r,n){r({...s,[t]:a}),n?.(t,a)}function z({id:s,message:t}){return t?e.jsxs("p",{id:s,role:"alert","aria-live":"polite",className:"flex items-center gap-1.5 text-sm text-destructive",children:[e.jsx(te,{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),t]}):null}function ye({id:s,label:t,error:a,children:r}){return e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{"data-floating-field":"true",className:"relative",children:[r,e.jsx(W,{htmlFor:s,className:"pointer-events-none absolute left-3 top-0 z-[1] -translate-y-1/2 bg-card px-1 text-xs leading-none text-muted-foreground transition-[color,font-size,top,transform] duration-150 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:-translate-y-1/2 peer-focus:text-xs peer-focus:text-ring peer-disabled:opacity-50 peer-aria-[invalid=true]:text-destructive",children:t})]}),e.jsx(z,{id:`${s}-error`,message:a})]})}function Ae({id:s,label:t,error:a,children:r}){return e.jsxs("div",{className:"space-y-2",children:[e.jsx(W,{htmlFor:s,children:t}),r,e.jsx(z,{id:`${s}-error`,message:a})]})}function U({id:s,label:t,error:a,floating:r,children:n}){const o=r?ye:Ae;return e.jsx(o,{id:s,label:t,error:a,children:n})}function Ce({mode:s,values:t,onChange:a,onSubmit:r,onFieldChange:n,onModeChange:o,rememberAccount:l=!0,onRememberAccountChange:h,pending:u=!1,errors:c,copy:i,frame:p="card",showHeader:I=!0,presentation:R="standard"}){const[y,A]=m.useState(!1),[C,T]=m.useState(!1),N=m.useId(),v=m.useId(),x=m.useId(),w=m.useId(),f=s==="register",S=f&&t.password.length>0&&t.confirmation!==void 0&&t.password!==t.confirmation,j=S&&(y||C)?i.mismatchError:void 0,X=f?i.registerAction:i.loginAction,d=R==="compact",E=d?"peer h-11 rounded-xl px-3 pb-2 pt-4":void 0,Y=g=>{if(g?.preventDefault(),!u){if(f&&S){A(!0);return}A(!1),r(t)}},q=e.jsxs(e.Fragment,{children:[I?e.jsxs(le,{children:[e.jsx(ue,{children:f?i.registerTitle:i.loginTitle}),e.jsx(me,{children:i.productName})]}):null,e.jsx(fe,{className:F(p==="bare"?"p-0":I?void 0:"pt-6"),children:e.jsxs("form",{onSubmit:Y,className:d?"space-y-3":"space-y-4",children:[e.jsx(U,{floating:d,id:N,label:i.emailLabel,error:c?.email,children:e.jsx(ee,{id:N,name:"email",autoComplete:"email",placeholder:d?" ":i.emailPlaceholder,title:i.emailPlaceholder,value:t.email??"",disabled:u,"aria-invalid":c?.email?!0:void 0,"aria-describedby":c?.email?`${N}-error`:void 0,className:E,onChange:g=>$(t,"email",g.currentTarget.value,a,n)})}),e.jsx(U,{floating:d,id:v,label:i.passwordLabel,error:c?.password,children:e.jsx(V,{id:v,name:"password",type:"password",autoComplete:f?"new-password":"current-password",placeholder:d?" ":i.passwordPlaceholder,title:i.passwordPlaceholder,value:t.password,disabled:u,"aria-invalid":c?.password?!0:void 0,"aria-describedby":c?.password?`${v}-error`:void 0,className:E,onChange:g=>$(t,"password",g.currentTarget.value,a,n)})}),f?e.jsx(U,{floating:d,id:x,label:i.confirmationLabel,error:j??c?.confirmation,children:e.jsx(V,{id:x,name:"confirmation",type:"password",autoComplete:"new-password",placeholder:d?" ":i.confirmationPlaceholder,title:i.confirmationPlaceholder,value:t.confirmation??"",onBlur:()=>T(!0),disabled:u,"aria-invalid":j||c?.confirmation?!0:void 0,"aria-describedby":j||c?.confirmation?`${x}-error`:void 0,className:E,onChange:g=>{A(!1),$(t,"confirmation",g.currentTarget.value,a,n)}})}):null,!f&&h?e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx("input",{type:"checkbox",name:"remember",checked:l,disabled:u,onChange:g=>h(g.currentTarget.checked)}),"记住账号"]}):null,e.jsx(z,{id:w,message:c?.form}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(b,{type:"submit",className:F("w-full",d&&"h-10 rounded-xl"),disabled:u,children:[u?e.jsx(B,{"aria-hidden":"true",className:"mr-2 h-4 w-4 animate-spin"}):null,X]}),o?e.jsx(b,{type:"button",variant:"ghost",className:F("w-full",d&&"h-9 rounded-lg text-xs"),disabled:u,onClick:()=>o(f?"login":"register"),children:f?i.switchToLogin:i.switchToRegister}):null]})]})})]});return e.jsx(be,{frame:p,children:q})}function Ne(){const[s,t]=m.useState(!1),[a,r]=m.useState(!1),n=m.useRef(!1);if(!window.xpodDesktop?.cancelLogin)return null;const o=async()=>{const l=window.xpodDesktop;if(!(n.current||!l?.cancelLogin)){n.current=!0,t(!0),r(!1);try{await l.cancelLogin()}catch{r(!0)}finally{n.current=!1,t(!1)}}};return e.jsxs("div",{className:"space-y-2",children:[a&&e.jsx("p",{role:"alert",className:"text-sm text-destructive",children:"返回应用未完成,请重试。"}),e.jsx(b,{type:"button",variant:"ghost",className:"w-full",disabled:s,"aria-busy":s,onClick:()=>{o()},children:s?"正在返回…":"返回应用"})]})}function Se(s,t){const a=_(s,t),[r,n]=m.useState();a&&r&&r.issuer===void 0&&n({issuer:a,value:r.value});const o=a?se(a):void 0;return[r&&(r.issuer===a||r.issuer===void 0)?r.value:o??!1,u=>n({issuer:a,value:u})]}function _(s,t){const a=t?void 0:J(s);return a?new URL(a).origin:void 0}function Ee(s,t,a){const r=_(s,t),n=c=>ae(void 0,c)??"",[o,l]=m.useState(()=>({issuer:r,values:{email:a??(r?n(r):""),password:"",confirmation:""},emailEdited:!1}));let h=o;if(r&&o.issuer!==r){const c=o.issuer===void 0;h={issuer:r,values:c?{...o.values,email:o.emailEdited?o.values.email:a??n(r)}:{email:n(r),password:"",confirmation:""},emailEdited:c&&o.emailEdited},l(h)}const u=c=>{l(i=>{const p=typeof c=="function"?c(i.values):c;return{...i,values:p,emailEdited:i.emailEdited||p.email!==i.values.email}})};return[h.values,u,r]}class Ie extends Error{code;constructor(t,a){super(t),this.name="RegistrationError",this.code=a}}async function Re(s){const t=await s.json().catch(()=>{});return t?.message||t?.error}async function Le(s){const a=await(s.fetchImpl??fetch)(k(s.loginUrl),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:s.email,password:s.password,...s.remember===void 0?{}:{remember:s.remember}})});if(!a.ok){const o=await Re(a);throw s.duplicateEmailRecovery?new Ie(he.emailAlreadyRegisteredPasswordMismatch,"EMAIL_ALREADY_REGISTERED"):new Error(o||"Auto-login failed")}const r=await a.json().catch(()=>({})),n=typeof r.authorization=="string"?r.authorization:"";if(!n)throw new Error("Account token not returned after login");return{accountToken:n}}class D extends Error{status;invalidOidcInteraction;constructor(t,a=!1){super(`Password login failed with status ${t}`),this.name="PasswordLoginStatusError",this.status=t,this.invalidOidcInteraction=a}}function H({surface:s,onAuthenticated:t,initialEmail:a}){const{controls:r,idpIndex:n,refetchControls:o,isInitializing:l}=O(),[h,u,c]=Ee(n,l,a),[i,p]=m.useState(),[I,R]=m.useState(!1),[y,A]=Se(n,l),C=m.useRef(!1),T=async x=>{if(!(C.current||l)){C.current=!0,R(!0),p(void 0);try{const w=await Z(r?.password?.login,fetch,n)??k("/.account/login/password/"),f=await Le({email:x.email?.trim()??"",password:x.password,loginUrl:w,remember:y,fetchImpl:async(j,X)=>{const d=await fetch(typeof j=="string"||j instanceof URL?k(j):j,X);if(!d.ok){const E=d.status===400?await d.clone().json().catch(()=>{}):void 0;throw new D(d.status,we(E,d.status))}return d}});K(f.accountToken),oe(x.email?.trim()??"",void 0,n,y);const S=await o();if(S?.status!=="authenticated"){S?.status==="anonymous"&&Q(),p("登录失败,请重试。");return}await t?.()}catch(w){p(w instanceof D&&w.invalidOidcInteraction?je.message:ve(w instanceof D?w.status:500))}finally{C.current=!1,R(!1)}}},N=x=>{u(x),i&&p(void 0)},v={surface:"page",surfaceTitle:"登录 Xpod",copy:xe,registerHref:s==="embedded"?void 0:P("register"),forgotHref:s==="embedded"?void 0:P("forgot"),mode:"login",values:h,onChange:N,onSubmit:T,pending:I,rememberAccount:y,onRememberAccountChange:A,errors:i?{form:i}:void 0};return s==="embedded"?e.jsx(Ce,{...v,presentation:"compact",frame:"bare",showHeader:!1}):e.jsx(re,{...v},c??"bootstrap")}function P(s){let t="";try{const a=ne(`${window.location.pathname}${window.location.search}`);a&&(t=`?${new URLSearchParams({returnTo:a})}`)}catch{}return k(`/.account/login/password/${s}/${t}`)}function ke(){return e.jsxs("div",{className:"flex items-center justify-center gap-3 text-xs text-muted-foreground",children:[e.jsx(b,{asChild:!0,variant:"ghost",className:"h-auto px-2 py-1 text-xs font-normal text-muted-foreground hover:text-foreground",children:e.jsx("a",{href:P("register"),children:"创建账号"})}),e.jsx("span",{"aria-hidden":"true",className:"text-border",children:"·"}),e.jsx(b,{asChild:!0,variant:"ghost",className:"h-auto px-2 py-1 text-xs font-normal text-muted-foreground hover:text-foreground",children:e.jsx("a",{href:P("forgot"),children:ge.forgotPassword})})]})}function ze({children:s}){return M().state.status==="authenticated"?e.jsx(e.Fragment,{children:s}):e.jsx(G,{children:s})}function Ve({children:s}){const t=M(),a=O();return t.state.status==="authenticated"||a.accountState.status==="authenticated"||!Pe()?e.jsx(e.Fragment,{children:s}):e.jsx(G,{})}function Pe(){return typeof window>"u"?!1:new URLSearchParams(window.location.search).get("account")==="open"}function G({children:s,accountState:t,retry:a,surface:r="page"}){const n=O(),o=t??n.accountState,l=a??n.retry;return o.status==="authenticated"?e.jsx(e.Fragment,{children:s}):o.status==="submitting"?e.jsx(L,{surface:r,children:e.jsxs("div",{role:"status","aria-live":"polite",className:"flex items-center justify-center gap-2 p-6 text-sm text-muted-foreground",children:[e.jsx(B,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"正在登录…"]})}):o.status==="initializing"?e.jsx(L,{surface:r,children:e.jsxs("div",{role:"status","aria-live":"polite",className:"flex items-center justify-center gap-2 p-6 text-sm text-muted-foreground",children:[e.jsx(B,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"正在加载账号"]})}):o.status==="error"?e.jsx(L,{surface:r,children:e.jsxs("div",{className:"space-y-4 p-6",children:[e.jsx("p",{role:"alert",className:"text-sm text-destructive",children:o.message}),e.jsx(b,{className:"w-full",type:"button",onClick:()=>{l()},children:"重试"}),e.jsx(Ne,{})]})}):r==="embedded"?e.jsxs(L,{surface:r,children:[e.jsx(H,{surface:"embedded"}),e.jsx("div",{className:"mt-6 space-y-3 border-t pt-5",children:e.jsx(ke,{})})]}):e.jsx(H,{surface:"page"})}function L({children:s,surface:t}){return t==="embedded"?e.jsx(ie,{title:"登录 Xpod",presentation:"compact",serviceIcon:e.jsx(ce,{}),children:s}):e.jsx(de,{title:"登录 Xpod",presentation:"compact",children:s})}export{G as AccountAuthBoundary,ze as AccountWorkspaceBoundary,Ve as LocalServiceSurfaceBoundary};
|