@nextclaw/server 0.12.13-beta.0 → 0.12.13-beta.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/dist/index.d.ts +7 -2
- package/dist/index.js +8 -5
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -192,6 +192,7 @@ type MarketplaceMcpInstallRequest = {
|
|
|
192
192
|
inputs?: Record<string, string>;
|
|
193
193
|
template?: MarketplaceMcpInstallSpec;
|
|
194
194
|
};
|
|
195
|
+
type MarketplaceInstallRequest = MarketplacePluginInstallRequest | MarketplaceSkillInstallRequest | MarketplaceMcpInstallRequest;
|
|
195
196
|
type MarketplacePluginInstallResult = {
|
|
196
197
|
type: "plugin";
|
|
197
198
|
spec: string;
|
|
@@ -211,9 +212,11 @@ type MarketplaceMcpInstallResult = {
|
|
|
211
212
|
message: string;
|
|
212
213
|
output?: string;
|
|
213
214
|
};
|
|
215
|
+
type MarketplaceInstallResult = MarketplacePluginInstallResult | MarketplaceSkillInstallResult | MarketplaceMcpInstallResult;
|
|
214
216
|
type MarketplacePluginManageAction = "enable" | "disable" | "uninstall";
|
|
215
217
|
type MarketplaceSkillManageAction = "uninstall";
|
|
216
218
|
type MarketplaceMcpManageAction = "enable" | "disable" | "remove";
|
|
219
|
+
type MarketplaceManageAction = MarketplacePluginManageAction | MarketplaceSkillManageAction | MarketplaceMcpManageAction;
|
|
217
220
|
type MarketplacePluginManageRequest = {
|
|
218
221
|
type?: "plugin";
|
|
219
222
|
action: MarketplacePluginManageAction;
|
|
@@ -232,6 +235,7 @@ type MarketplaceMcpManageRequest = {
|
|
|
232
235
|
id?: string;
|
|
233
236
|
spec?: string;
|
|
234
237
|
};
|
|
238
|
+
type MarketplaceManageRequest = MarketplacePluginManageRequest | MarketplaceSkillManageRequest | MarketplaceMcpManageRequest;
|
|
235
239
|
type MarketplacePluginManageResult = {
|
|
236
240
|
type: "plugin";
|
|
237
241
|
action: MarketplacePluginManageAction;
|
|
@@ -253,6 +257,7 @@ type MarketplaceMcpManageResult = {
|
|
|
253
257
|
message: string;
|
|
254
258
|
output?: string;
|
|
255
259
|
};
|
|
260
|
+
type MarketplaceManageResult = MarketplacePluginManageResult | MarketplaceSkillManageResult | MarketplaceMcpManageResult;
|
|
256
261
|
type MarketplaceMcpDoctorResult = {
|
|
257
262
|
name: string;
|
|
258
263
|
enabled: boolean;
|
|
@@ -1335,7 +1340,7 @@ type UiServerStartOptions = UiServerOptions & {
|
|
|
1335
1340
|
applyLiveConfigReload?: () => Promise<void>;
|
|
1336
1341
|
runtimeUpdate?: UiRuntimeUpdateHost;
|
|
1337
1342
|
};
|
|
1338
|
-
declare function startUiServer(options: UiServerStartOptions): UiServerHandle
|
|
1343
|
+
declare function startUiServer(options: UiServerStartOptions): Promise<UiServerHandle>;
|
|
1339
1344
|
//#endregion
|
|
1340
1345
|
//#region src/ui/router.d.ts
|
|
1341
1346
|
declare function createUiRouter(options: UiRouterOptions): Hono;
|
|
@@ -1399,4 +1404,4 @@ declare function getUiBridgeSecretPath(): string;
|
|
|
1399
1404
|
declare function readUiBridgeSecret(): string | null;
|
|
1400
1405
|
declare function ensureUiBridgeSecret(): string;
|
|
1401
1406
|
//#endregion
|
|
1402
|
-
export { AgentBindingView, AgentCreateRequest, AgentDeleteResult, AgentProfileView, AgentUpdateRequest, ApiError, ApiResponse, AppMetaView, AuthEnabledUpdateRequest, AuthLoginRequest, AuthPasswordUpdateRequest, AuthSetupRequest, AuthStatusView, BindingPeerView, BochaFreshnessValue, BootstrapPhase, BootstrapRemoteState, BootstrapStageState, BootstrapStatusView, ChannelAuthPollRequest, ChannelAuthPollResult, ChannelAuthStartRequest, ChannelAuthStartResult, ChannelSpecView, type ChatSessionTypeCtaView, type ChatSessionTypeOptionView, type ChatSessionTypesView, ConfigActionExecuteRequest, ConfigActionExecuteResult, ConfigActionManifest, ConfigActionType, ConfigMetaView, ConfigSchemaResponse, ConfigUiHint, ConfigUiHints, ConfigView, CronActionResult, CronCreateRequest, CronCreateResult, CronEnableRequest, CronJobStateView, CronJobView, CronListView, CronPayloadView, CronRunRequest, CronScheduleView, DEFAULT_SESSION_TYPE, MarketplaceApiConfig, MarketplaceInstallKind, MarketplaceInstallSkillParams, MarketplaceInstallSpec, MarketplaceInstalledRecord, MarketplaceInstalledView, MarketplaceInstaller, MarketplaceItemSummary, MarketplaceItemType, MarketplaceItemView, MarketplaceListView, MarketplaceLocalizedTextMap, MarketplaceMcpContentView, MarketplaceMcpDoctorResult, MarketplaceMcpInstallKind, MarketplaceMcpInstallRequest, MarketplaceMcpInstallResult, MarketplaceMcpInstallSpec, MarketplaceMcpManageAction, MarketplaceMcpManageRequest, MarketplaceMcpManageResult, MarketplaceMcpTemplateInput, MarketplacePluginContentView, MarketplacePluginInstallKind, MarketplacePluginInstallRequest, MarketplacePluginInstallResult, MarketplacePluginManageAction, MarketplacePluginManageRequest, MarketplacePluginManageResult, MarketplaceRecommendationView, MarketplaceSkillContentView, MarketplaceSkillInstallKind, MarketplaceSkillInstallRequest, MarketplaceSkillInstallResult, MarketplaceSkillManageAction, MarketplaceSkillManageRequest, MarketplaceSkillManageResult, MarketplaceSort, NcpSessionSkillsView, ProviderAuthImportResult, ProviderAuthPollRequest, ProviderAuthPollResult, ProviderAuthStartRequest, ProviderAuthStartResult, ProviderConfigUpdate, ProviderConfigView, ProviderConnectionTestRequest, ProviderConnectionTestResult, ProviderCreateRequest, ProviderCreateResult, ProviderDeleteResult, ProviderSpecView, RemoteAccessView, RemoteAccountProfileUpdateRequest, RemoteAccountView, RemoteBrowserAuthPollRequest, RemoteBrowserAuthPollResult, RemoteBrowserAuthStartRequest, RemoteBrowserAuthStartResult, RemoteDoctorCheckView, RemoteDoctorView, RemoteLoginRequest, RemoteRuntimeView, RemoteServiceAction, RemoteServiceActionResult, RemoteServiceView, RemoteSettingsUpdateRequest, RemoteSettingsView, RuntimeActionCapability, RuntimeActionImpact, RuntimeConfigUpdate, RuntimeControlAction, RuntimeControlActionResult, RuntimeControlEnvironment, RuntimeControlView, RuntimeEntryView, RuntimeLifecycleState, RuntimePendingRestart, RuntimeServiceState, SearchConfigUpdate, SearchConfigView, SearchProviderConfigView, SearchProviderName, SearchProviderSpecView, SecretProviderEnvView, SecretProviderExecView, SecretProviderFileView, SecretProviderView, SecretRefView, SecretSourceView, SecretsConfigUpdate, SecretsView, ServerPathBreadcrumbView, ServerPathBrowseView, ServerPathEntryView, ServerPathReadView, SessionConfigView, SessionEntryView, SessionEventView, SessionHistoryView, SessionMessageView, SessionPatchUpdate, SessionPatchValidationError, SessionSkillEntryView, SessionTypeDescribeParams, SessionsListView, TavilySearchDepthValue, UiNcpAgent, UiNcpAssetPutView, UiNcpAssetView, UiNcpSessionListView, UiNcpSessionMessagesView, UiNcpSessionService, UiNcpStoredAssetRecord, type UiRemoteAccessHost, type UiRuntimeControlHost, type UiRuntimeUpdateHost, UiServerEvent, UiServerHandle, UiServerOptions, buildConfigMeta, buildConfigSchemaView, buildConfigView, createCustomProvider, createUiRouter, deleteCustomProvider, deleteSession, ensureUiBridgeSecret, executeConfigAction, getSessionHistory, getUiBridgeSecretPath, listSessions, loadConfigOrDefault, patchSession, readUiBridgeSecret, startUiServer, testProviderConnection, updateChannel, updateModel, updateProvider, updateRuntime, updateSearch, updateSecrets };
|
|
1407
|
+
export { AgentBindingView, AgentCreateRequest, AgentDeleteResult, AgentProfileView, AgentUpdateRequest, ApiError, ApiResponse, AppMetaView, AuthEnabledUpdateRequest, AuthLoginRequest, AuthPasswordUpdateRequest, AuthSetupRequest, AuthStatusView, BindingPeerView, BochaFreshnessValue, BootstrapPhase, BootstrapRemoteState, BootstrapStageState, BootstrapStatusView, ChannelAuthPollRequest, ChannelAuthPollResult, ChannelAuthStartRequest, ChannelAuthStartResult, ChannelSpecView, type ChatSessionTypeCtaView, type ChatSessionTypeOptionView, type ChatSessionTypesView, ConfigActionExecuteRequest, ConfigActionExecuteResult, ConfigActionManifest, ConfigActionType, ConfigMetaView, ConfigSchemaResponse, ConfigUiHint, ConfigUiHints, ConfigView, CronActionResult, CronCreateRequest, CronCreateResult, CronEnableRequest, CronJobStateView, CronJobView, CronListView, CronPayloadView, CronRunRequest, CronScheduleView, DEFAULT_SESSION_TYPE, MarketplaceApiConfig, MarketplaceInstallKind, MarketplaceInstallRequest, MarketplaceInstallResult, MarketplaceInstallSkillParams, MarketplaceInstallSpec, MarketplaceInstalledRecord, MarketplaceInstalledView, MarketplaceInstaller, MarketplaceItemSummary, MarketplaceItemType, MarketplaceItemView, MarketplaceListView, MarketplaceLocalizedTextMap, MarketplaceManageAction, MarketplaceManageRequest, MarketplaceManageResult, MarketplaceMcpContentView, MarketplaceMcpDoctorResult, MarketplaceMcpInstallKind, MarketplaceMcpInstallRequest, MarketplaceMcpInstallResult, MarketplaceMcpInstallSpec, MarketplaceMcpManageAction, MarketplaceMcpManageRequest, MarketplaceMcpManageResult, MarketplaceMcpTemplateInput, MarketplacePluginContentView, MarketplacePluginInstallKind, MarketplacePluginInstallRequest, MarketplacePluginInstallResult, MarketplacePluginManageAction, MarketplacePluginManageRequest, MarketplacePluginManageResult, MarketplaceRecommendationView, MarketplaceSkillContentView, MarketplaceSkillInstallKind, MarketplaceSkillInstallRequest, MarketplaceSkillInstallResult, MarketplaceSkillManageAction, MarketplaceSkillManageRequest, MarketplaceSkillManageResult, MarketplaceSort, NcpSessionSkillsView, ProviderAuthImportResult, ProviderAuthPollRequest, ProviderAuthPollResult, ProviderAuthStartRequest, ProviderAuthStartResult, ProviderConfigUpdate, ProviderConfigView, ProviderConnectionTestRequest, ProviderConnectionTestResult, ProviderCreateRequest, ProviderCreateResult, ProviderDeleteResult, ProviderSpecView, RemoteAccessView, RemoteAccountProfileUpdateRequest, RemoteAccountView, RemoteBrowserAuthPollRequest, RemoteBrowserAuthPollResult, RemoteBrowserAuthStartRequest, RemoteBrowserAuthStartResult, RemoteDoctorCheckView, RemoteDoctorView, RemoteLoginRequest, RemoteRuntimeView, RemoteServiceAction, RemoteServiceActionResult, RemoteServiceView, RemoteSettingsUpdateRequest, RemoteSettingsView, RuntimeActionCapability, RuntimeActionImpact, RuntimeConfigUpdate, RuntimeControlAction, RuntimeControlActionResult, RuntimeControlEnvironment, RuntimeControlView, RuntimeEntryView, RuntimeLifecycleState, RuntimePendingRestart, RuntimeServiceState, SearchConfigUpdate, SearchConfigView, SearchProviderConfigView, SearchProviderName, SearchProviderSpecView, SecretProviderEnvView, SecretProviderExecView, SecretProviderFileView, SecretProviderView, SecretRefView, SecretSourceView, SecretsConfigUpdate, SecretsView, ServerPathBreadcrumbView, ServerPathBrowseView, ServerPathEntryView, ServerPathReadView, SessionConfigView, SessionEntryView, SessionEventView, SessionHistoryView, SessionMessageView, SessionPatchUpdate, SessionPatchValidationError, SessionSkillEntryView, SessionTypeDescribeParams, SessionsListView, TavilySearchDepthValue, UiNcpAgent, UiNcpAssetPutView, UiNcpAssetView, UiNcpSessionListView, UiNcpSessionMessagesView, UiNcpSessionService, UiNcpStoredAssetRecord, type UiRemoteAccessHost, type UiRuntimeControlHost, type UiRuntimeUpdateHost, UiServerEvent, UiServerHandle, UiServerOptions, buildConfigMeta, buildConfigSchemaView, buildConfigView, createCustomProvider, createUiRouter, deleteCustomProvider, deleteSession, ensureUiBridgeSecret, executeConfigAction, getSessionHistory, getUiBridgeSecretPath, listSessions, loadConfigOrDefault, patchSession, readUiBridgeSecret, startUiServer, testProviderConnection, updateChannel, updateModel, updateProvider, updateRuntime, updateSearch, updateSecrets };
|
package/dist/index.js
CHANGED
|
@@ -5088,7 +5088,7 @@ function attachUiSocketServer(httpServer, authService, clients) {
|
|
|
5088
5088
|
});
|
|
5089
5089
|
return wss;
|
|
5090
5090
|
}
|
|
5091
|
-
function startUiServer(options) {
|
|
5091
|
+
async function startUiServer(options) {
|
|
5092
5092
|
const { applyLiveConfigReload, configPath, corsOrigins, cronService, getBootstrapStatus, getPluginChannelBindings, getPluginUiMetadata, host, initializeAgentHomeDirectory, marketplace, ncpAgent, ncpSessionService, port, productVersion, remoteAccess, runtimeControl, runtimeUpdate, staticDir } = options;
|
|
5093
5093
|
const app = new Hono();
|
|
5094
5094
|
app.use("/*", compress());
|
|
@@ -5140,10 +5140,13 @@ function startUiServer(options) {
|
|
|
5140
5140
|
getPluginUiMetadata
|
|
5141
5141
|
}));
|
|
5142
5142
|
if (staticDir) mountUiStaticAssets(app, staticDir);
|
|
5143
|
-
const server =
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5143
|
+
const server = await new Promise((resolve, reject) => {
|
|
5144
|
+
const httpServer = serve({
|
|
5145
|
+
fetch: app.fetch,
|
|
5146
|
+
port,
|
|
5147
|
+
hostname: host
|
|
5148
|
+
}, () => resolve(httpServer));
|
|
5149
|
+
httpServer.once("error", reject);
|
|
5147
5150
|
});
|
|
5148
5151
|
const wss = attachUiSocketServer(server, authService, clients);
|
|
5149
5152
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/server",
|
|
3
|
-
"version": "0.12.13-beta.
|
|
3
|
+
"version": "0.12.13-beta.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Nextclaw UI/API server.",
|
|
6
6
|
"type": "module",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"hono": "^4.6.2",
|
|
20
20
|
"ws": "^8.18.0",
|
|
21
21
|
"@nextclaw/core": "0.12.13-beta.1",
|
|
22
|
-
"@nextclaw/
|
|
23
|
-
"@nextclaw/
|
|
22
|
+
"@nextclaw/kernel": "0.1.2-beta.2",
|
|
23
|
+
"@nextclaw/mcp": "0.1.78-beta.1",
|
|
24
24
|
"@nextclaw/ncp": "0.5.6-beta.0",
|
|
25
|
-
"@nextclaw/
|
|
26
|
-
"@nextclaw/
|
|
27
|
-
"@nextclaw/
|
|
25
|
+
"@nextclaw/ncp-http-agent-server": "0.3.18-beta.1",
|
|
26
|
+
"@nextclaw/openclaw-compat": "1.0.13-beta.2",
|
|
27
|
+
"@nextclaw/runtime": "0.2.45-beta.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^20.17.6",
|