@undefineds.co/xpod 0.3.69 → 0.3.71-rc.2
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/config/cloud.json +3 -28
- package/config/local.json +3 -0
- package/config/resolver.json +7 -0
- package/config/xpod.base.json +20 -0
- package/dist/agents/ClaudeExecutor.js +1 -1
- package/dist/agents/ClaudeExecutor.js.map +1 -1
- package/dist/agents/types.d.ts +5 -5
- package/dist/agents/types.js.map +1 -1
- package/dist/api/ai-gateway/AiGatewayService.d.ts +5 -16
- package/dist/api/ai-gateway/AiGatewayService.js +13 -35
- package/dist/api/ai-gateway/AiGatewayService.js.map +1 -1
- package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.d.ts +3 -2
- package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.js +37 -12
- package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.js.map +1 -1
- package/dist/api/ai-gateway/auth/GatewayPrincipal.d.ts +2 -16
- package/dist/api/ai-gateway/auth/GatewayPrincipal.js +3 -33
- package/dist/api/ai-gateway/auth/GatewayPrincipal.js.map +1 -1
- package/dist/api/ai-gateway/auth/InvocationTokenAuthenticator.d.ts +23 -0
- package/dist/api/ai-gateway/auth/InvocationTokenAuthenticator.js +81 -0
- package/dist/api/ai-gateway/auth/InvocationTokenAuthenticator.js.map +1 -0
- package/dist/api/ai-gateway/auth/InvocationTokenCodec.d.ts +7 -4
- package/dist/api/ai-gateway/auth/InvocationTokenCodec.js.map +1 -1
- package/dist/api/ai-gateway/connect/index.d.ts +7 -26
- package/dist/api/ai-gateway/connect/index.js +40 -67
- package/dist/api/ai-gateway/connect/index.js.map +1 -1
- package/dist/api/ai-gateway/credentials/PlaintextCredentialPayload.d.ts +17 -0
- package/dist/api/ai-gateway/credentials/PlaintextCredentialPayload.js +65 -0
- package/dist/api/ai-gateway/credentials/PlaintextCredentialPayload.js.map +1 -0
- package/dist/api/ai-gateway/pod/HostedPodDataAccess.d.ts +24 -0
- package/dist/api/ai-gateway/pod/HostedPodDataAccess.js +149 -0
- package/dist/api/ai-gateway/pod/HostedPodDataAccess.js.map +1 -0
- package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.d.ts +13 -5
- package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.js +16 -19
- package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.js.map +1 -1
- package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.d.ts +1 -1
- package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.js +0 -2
- package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.js.map +1 -1
- package/dist/api/auth/AuthContext.d.ts +1 -12
- package/dist/api/auth/AuthContext.js +0 -11
- package/dist/api/auth/AuthContext.js.map +1 -1
- package/dist/api/auth/ClientCredentialsAuthenticator.js +4 -11
- package/dist/api/auth/ClientCredentialsAuthenticator.js.map +1 -1
- package/dist/api/chatkit/default-agent.d.ts +2 -2
- package/dist/api/chatkit/default-agent.js +4 -4
- package/dist/api/chatkit/default-agent.js.map +1 -1
- package/dist/api/chatkit/runtime/AcpAgentRuntime.js +1 -1
- package/dist/api/chatkit/runtime/AcpAgentRuntime.js.map +1 -1
- package/dist/api/container/common.js +28 -69
- package/dist/api/container/common.js.map +1 -1
- package/dist/api/container/index.js +5 -6
- package/dist/api/container/index.js.map +1 -1
- package/dist/api/container/routes.js +2 -5
- package/dist/api/container/routes.js.map +1 -1
- package/dist/api/container/types.d.ts +8 -10
- package/dist/api/container/types.js.map +1 -1
- package/dist/api/handlers/AiClientConfigurationHandler.js +3 -3
- package/dist/api/handlers/AiClientConfigurationHandler.js.map +1 -1
- package/dist/api/handlers/AiGatewayHandler.js +2 -2
- package/dist/api/handlers/AiGatewayHandler.js.map +1 -1
- package/dist/api/handlers/AiGatewayManagementHandler.d.ts +2 -10
- package/dist/api/handlers/AiGatewayManagementHandler.js +4 -154
- package/dist/api/handlers/AiGatewayManagementHandler.js.map +1 -1
- package/dist/api/handlers/NetworkSettingsHandler.js +0 -3
- package/dist/api/handlers/NetworkSettingsHandler.js.map +1 -1
- package/dist/api/handlers/PodSettingsHandler.d.ts +5 -2
- package/dist/api/handlers/PodSettingsHandler.js +3 -3
- package/dist/api/handlers/PodSettingsHandler.js.map +1 -1
- package/dist/api/runs/AgentRuntimeTypes.d.ts +3 -3
- package/dist/api/runs/AgentRuntimeTypes.js +10 -10
- package/dist/api/runs/AgentRuntimeTypes.js.map +1 -1
- package/dist/api/runs/InngestRunExecutionBackend.d.ts +15 -9
- package/dist/api/runs/InngestRunExecutionBackend.js +25 -10
- package/dist/api/runs/InngestRunExecutionBackend.js.map +1 -1
- package/dist/api/runs/PiAgentRuntimeDriver.js +2 -2
- package/dist/api/runs/PiAgentRuntimeDriver.js.map +1 -1
- package/dist/api/runs/RunStateCenter.js +1 -1
- package/dist/api/runs/RunStateCenter.js.map +1 -1
- package/dist/api/service/AiClientConfigurationService.d.ts +2 -2
- package/dist/api/service/AiClientConfigurationService.js +11 -11
- package/dist/api/service/AiClientConfigurationService.js.map +1 -1
- package/dist/api/tasks/InngestTaskScheduler.d.ts +16 -10
- package/dist/api/tasks/InngestTaskScheduler.js +24 -12
- package/dist/api/tasks/InngestTaskScheduler.js.map +1 -1
- package/dist/cli/commands/start.js +7 -7
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/components/components.jsonld +1 -0
- package/dist/components/context.jsonld +42 -0
- package/dist/http/InternalPodDataHttpHandler.d.ts +32 -0
- package/dist/http/InternalPodDataHttpHandler.js +258 -0
- package/dist/http/InternalPodDataHttpHandler.js.map +1 -0
- package/dist/http/InternalPodDataHttpHandler.jsonld +201 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/main.js +13 -13
- package/dist/main.js.map +1 -1
- package/dist/runtime/GatewayAdminProxyAuth.d.ts +15 -1
- package/dist/runtime/GatewayAdminProxyAuth.js +57 -2
- package/dist/runtime/GatewayAdminProxyAuth.js.map +1 -1
- package/dist/runtime/bootstrap.js +3 -0
- package/dist/runtime/bootstrap.js.map +1 -1
- package/dist/runtime/css-process.d.ts +1 -1
- package/dist/runtime/css-process.js +4 -1
- package/dist/runtime/css-process.js.map +1 -1
- package/dist/runtime/runner/node/CommunitySolidServerCssRunner.d.ts +2 -0
- package/dist/runtime/runner/node/CommunitySolidServerCssRunner.js +50 -0
- package/dist/runtime/runner/node/CommunitySolidServerCssRunner.js.map +1 -1
- package/dist/storage/rdf/PostgresRdfEngine.js +2 -0
- package/dist/storage/rdf/PostgresRdfEngine.js.map +1 -1
- package/dist/storage/rdf/PostgresRdfVectorIndex.d.ts +1 -0
- package/dist/storage/rdf/PostgresRdfVectorIndex.js +1 -1
- package/dist/storage/rdf/PostgresRdfVectorIndex.js.map +1 -1
- package/dist/storage/rdf/PostgresRdfVectorIndex.jsonld +29 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiClientConfigurationSection.d.ts +5 -5
- package/node_modules/@undefineds.co/ai-connection/dist/AiClientConfigurationSection.js +7 -7
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMain.js +1 -1
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionPanel.d.ts +3 -1
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionPanel.js +74 -60
- package/node_modules/@undefineds.co/ai-connection/dist/ai-connection-client.d.ts +0 -21
- package/node_modules/@undefineds.co/ai-connection/dist/ai-connection-client.js +0 -41
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/base-adapter.d.ts +1 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/base-adapter.js +7 -2
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/codex.js +3 -3
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/index.cjs +15 -9
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/json-env-adapter.js +4 -4
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/pi.js +3 -3
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/types.d.ts +1 -1
- package/node_modules/@undefineds.co/ai-connection/dist/controller.d.ts +2 -1
- package/node_modules/@undefineds.co/ai-connection/dist/controller.js +1 -0
- package/node_modules/@undefineds.co/ai-connection/dist/service-access.js +0 -1
- package/node_modules/@undefineds.co/extension-sdk/dist/web.d.ts +22 -1
- package/package.json +3 -3
- package/static/app/assets/main.js +7 -7
- package/static/dashboard/assets/NetworkPage-CXjiUMR1.js +2 -0
- package/static/dashboard/assets/{PaneListHeader-57nvMwH6.js → PaneListHeader-BSipfl0W.js} +1 -1
- package/static/dashboard/assets/PodPage-Bd3Xhmp-.js +2 -0
- package/static/dashboard/assets/ServicesPage-CI3jWZGe.js +1 -0
- package/static/dashboard/assets/{card-B9Zjf_2p.js → card-z5BV5hTo.js} +1 -1
- package/static/dashboard/assets/{dashboard-8C6o666W.js → dashboard-CSrqAv2L.js} +2 -2
- package/static/dashboard/assets/{database-DPh9wDY9.js → database-Ct5ZPe6L.js} +1 -1
- package/static/dashboard/assets/{external-link-VbMQvVMz.js → external-link-B7wD1hkm.js} +1 -1
- package/static/dashboard/assets/index-tOBaUnM1.js +44 -0
- package/static/dashboard/assets/{refresh-cw-BxVxNxNr.js → refresh-cw-CFDZPaE8.js} +1 -1
- package/static/dashboard/assets/{services-status-context-DKmJ7ISr.js → services-status-context-DN1Icg4A.js} +1 -1
- package/static/dashboard/dashboard.html +1 -1
- package/static/settings/assets/ModelsPage-D87RrLB0.js +1 -0
- package/static/settings/assets/{PaneListHeader-Bgaze006.js → PaneListHeader-BtON8Z5Q.js} +1 -1
- package/static/settings/assets/PodPage-9LGuOloQ.js +2 -0
- package/static/settings/assets/ServicesPage-ZoT9-B_0.js +1 -0
- package/static/settings/assets/SettingsPage-Bj4lB3mq.js +41 -0
- package/static/settings/assets/{card-B_bXSIn-.js → card-CCGngjas.js} +1 -1
- package/static/settings/assets/{services-status-context-DiX-AbrP.js → services-status-context-CBfImxL_.js} +1 -1
- package/static/settings/assets/{settings-B30oMfZq.js → settings-yUyFIJxi.js} +2 -2
- package/static/settings/assets/{workspace-layout-Dv1Yn9Ci.js → workspace-layout-B0wJpPze.js} +1 -1
- package/static/settings/settings.html +1 -1
- package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.d.ts +0 -25
- package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.js +0 -91
- package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.js.map +0 -1
- package/dist/api/ai-gateway/auth/GatewayApiKey.d.ts +0 -28
- package/dist/api/ai-gateway/auth/GatewayApiKey.js +0 -162
- package/dist/api/ai-gateway/auth/GatewayApiKey.js.map +0 -1
- package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.d.ts +0 -56
- package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.js +0 -143
- package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.js.map +0 -1
- package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.d.ts +0 -26
- package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.js +0 -97
- package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.js.map +0 -1
- package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.d.ts +0 -54
- package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js +0 -152
- package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js.map +0 -1
- package/static/dashboard/assets/NetworkPage-Brt79fuQ.js +0 -2
- package/static/dashboard/assets/PodPage-CM6do1vB.js +0 -2
- package/static/dashboard/assets/ServicesPage-BUNxGJRz.js +0 -1
- package/static/dashboard/assets/index-RfiFckzb.js +0 -51
- package/static/settings/assets/ModelsPage-D_IH7AH3.js +0 -1
- package/static/settings/assets/PodPage-Cy1VNObw.js +0 -2
- package/static/settings/assets/ServicesPage-BsFaxVWC.js +0 -1
- package/static/settings/assets/SettingsPage-UafNWE_p.js +0 -48
|
@@ -22,21 +22,71 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
29
|
exports.communitySolidServerCssRunner = exports.CommunitySolidServerCssRunner = void 0;
|
|
30
|
+
exports.createPackageRootPreferredModuleState = createPackageRootPreferredModuleState;
|
|
31
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
32
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
33
|
+
const componentsjs_1 = require("componentsjs");
|
|
27
34
|
const ensureBunUndiciCompat_1 = require("../../compat/ensureBunUndiciCompat");
|
|
35
|
+
async function createPackageRootPreferredModuleState(packageRoot) {
|
|
36
|
+
const moduleState = await new componentsjs_1.ModuleStateBuilder().buildModuleState(require, packageRoot);
|
|
37
|
+
preferMainPackageComponents(moduleState);
|
|
38
|
+
return moduleState;
|
|
39
|
+
}
|
|
40
|
+
function preferMainPackageComponents(moduleState) {
|
|
41
|
+
const packageRoot = moduleState.mainModulePath;
|
|
42
|
+
const packageJson = moduleState.packageJsons[packageRoot];
|
|
43
|
+
const moduleIri = packageJson?.['lsd:module'];
|
|
44
|
+
const version = packageJson?.version;
|
|
45
|
+
if (typeof moduleIri !== 'string' || typeof version !== 'string') {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const major = Number.parseInt(version.split('.')[0], 10);
|
|
49
|
+
if (!Number.isFinite(major)) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const componentsPath = packageJson['lsd:components'];
|
|
53
|
+
if (typeof componentsPath === 'string') {
|
|
54
|
+
moduleState.componentModules[moduleIri] ??= {};
|
|
55
|
+
moduleState.componentModules[moduleIri][major] = node_path_1.default.posix.join(packageRoot, componentsPath);
|
|
56
|
+
}
|
|
57
|
+
const contexts = packageJson['lsd:contexts'];
|
|
58
|
+
if (isStringRecord(contexts)) {
|
|
59
|
+
for (const [contextIri, contextPath] of Object.entries(contexts)) {
|
|
60
|
+
moduleState.contexts[contextIri] = JSON.parse(node_fs_1.default.readFileSync(node_path_1.default.posix.join(packageRoot, contextPath), 'utf8'));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const importPaths = packageJson['lsd:importPaths'];
|
|
64
|
+
if (isStringRecord(importPaths)) {
|
|
65
|
+
for (const [importIri, importPath] of Object.entries(importPaths)) {
|
|
66
|
+
moduleState.importPaths[importIri] = node_path_1.default.posix.join(packageRoot, importPath);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function isStringRecord(value) {
|
|
71
|
+
return typeof value === 'object' &&
|
|
72
|
+
value !== null &&
|
|
73
|
+
!Array.isArray(value) &&
|
|
74
|
+
Object.values(value).every((entry) => typeof entry === 'string');
|
|
75
|
+
}
|
|
28
76
|
class CommunitySolidServerCssRunner {
|
|
29
77
|
constructor() {
|
|
30
78
|
this.name = 'community-solid-server';
|
|
31
79
|
}
|
|
32
80
|
async start(options) {
|
|
33
81
|
(0, ensureBunUndiciCompat_1.ensureBunUndiciCompat)(options.packageRoot);
|
|
82
|
+
const moduleState = await createPackageRootPreferredModuleState(options.packageRoot);
|
|
34
83
|
const { AppRunner } = await Promise.resolve().then(() => __importStar(require('@solid/community-server')));
|
|
35
84
|
const runner = new AppRunner();
|
|
36
85
|
const app = await runner.create({
|
|
37
86
|
config: options.configPath,
|
|
38
87
|
loaderProperties: {
|
|
39
88
|
mainModulePath: options.packageRoot,
|
|
89
|
+
moduleState,
|
|
40
90
|
logLevel: options.logLevel,
|
|
41
91
|
},
|
|
42
92
|
shorthand: options.shorthand,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunitySolidServerCssRunner.js","sourceRoot":"","sources":["../../../../src/runtime/runner/node/CommunitySolidServerCssRunner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CommunitySolidServerCssRunner.js","sourceRoot":"","sources":["../../../../src/runtime/runner/node/CommunitySolidServerCssRunner.ts"],"names":[],"mappings":"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","sourcesContent":["import path from 'node:path';\nimport fs from 'node:fs';\nimport type { App } from '@solid/community-server';\nimport { ModuleStateBuilder, type IModuleState } from 'componentsjs';\nimport { ensureBunUndiciCompat } from '../../compat/ensureBunUndiciCompat';\nimport type { CssRuntimeRunner, CssRuntimeRunnerStartOptions } from '../types';\n\nexport async function createPackageRootPreferredModuleState(packageRoot: string): Promise<IModuleState> {\n const moduleState = await new ModuleStateBuilder().buildModuleState(require, packageRoot);\n preferMainPackageComponents(moduleState);\n return moduleState;\n}\n\nfunction preferMainPackageComponents(moduleState: IModuleState): void {\n const packageRoot = moduleState.mainModulePath;\n const packageJson = moduleState.packageJsons[packageRoot];\n const moduleIri = packageJson?.['lsd:module'];\n const version = packageJson?.version;\n if (typeof moduleIri !== 'string' || typeof version !== 'string') {\n return;\n }\n\n const major = Number.parseInt(version.split('.')[0], 10);\n if (!Number.isFinite(major)) {\n return;\n }\n\n const componentsPath = packageJson['lsd:components'];\n if (typeof componentsPath === 'string') {\n moduleState.componentModules[moduleIri] ??= {};\n moduleState.componentModules[moduleIri][major] = path.posix.join(packageRoot, componentsPath);\n }\n\n const contexts = packageJson['lsd:contexts'];\n if (isStringRecord(contexts)) {\n for (const [contextIri, contextPath] of Object.entries(contexts)) {\n moduleState.contexts[contextIri] = JSON.parse(fs.readFileSync(path.posix.join(packageRoot, contextPath), 'utf8'));\n }\n }\n\n const importPaths = packageJson['lsd:importPaths'];\n if (isStringRecord(importPaths)) {\n for (const [importIri, importPath] of Object.entries(importPaths)) {\n moduleState.importPaths[importIri] = path.posix.join(packageRoot, importPath);\n }\n }\n}\n\nfunction isStringRecord(value: unknown): value is Record<string, string> {\n return typeof value === 'object' &&\n value !== null &&\n !Array.isArray(value) &&\n Object.values(value).every((entry) => typeof entry === 'string');\n}\n\nexport class CommunitySolidServerCssRunner implements CssRuntimeRunner {\n public readonly name = 'community-solid-server';\n\n public async start(options: CssRuntimeRunnerStartOptions): Promise<App> {\n ensureBunUndiciCompat(options.packageRoot);\n const moduleState = await createPackageRootPreferredModuleState(options.packageRoot);\n const { AppRunner } = await import('@solid/community-server');\n const runner = new AppRunner();\n const app = await runner.create({\n config: options.configPath,\n loaderProperties: {\n mainModulePath: options.packageRoot,\n moduleState,\n logLevel: options.logLevel as any,\n },\n shorthand: options.shorthand,\n });\n\n await app.start();\n return app;\n }\n}\n\nexport const communitySolidServerCssRunner = new CommunitySolidServerCssRunner();\n"]}
|
|
@@ -11834,6 +11834,8 @@ function isPostgresRdfVectorIndexOptions(input) {
|
|
|
11834
11834
|
|| typeof options.database === 'string'
|
|
11835
11835
|
|| typeof options.user === 'string'
|
|
11836
11836
|
|| typeof options.password === 'string'
|
|
11837
|
+
|| options.backend === 'pgvector'
|
|
11838
|
+
|| options.backend === 'component'
|
|
11837
11839
|
|| options.pool !== undefined
|
|
11838
11840
|
|| typeof options.autoOpen === 'boolean';
|
|
11839
11841
|
}
|