@flowy-agent-store/client 0.1.0-beta.8 → 0.1.0-beta.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/index.cjs +31 -1
- package/dist/index.d.cts +16 -1
- package/dist/index.d.mts +16 -1
- package/dist/index.mjs +31 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -276,7 +276,7 @@ var WebSocketTransport = class {
|
|
|
276
276
|
/** Header the server mints the per-call connection id under. */
|
|
277
277
|
const CONNECTION_HEADER = "x-app-server-connection-id";
|
|
278
278
|
/** Protocol version this binding announces on the one-shot handshake. */
|
|
279
|
-
const PROTOCOL_VERSION = "fp-
|
|
279
|
+
const PROTOCOL_VERSION = "fp-13";
|
|
280
280
|
/**
|
|
281
281
|
* Protocol method → REST route. Verified from handler bodies, not from the
|
|
282
282
|
* route list (a route existing does not prove which method it mirrors).
|
|
@@ -571,6 +571,17 @@ const HTTP_ROUTES = {
|
|
|
571
571
|
path: "/markets/:marketplace_id/entries/:entry_name/import",
|
|
572
572
|
source: "market_entry_import_route() -> market_entry_import_impl"
|
|
573
573
|
},
|
|
574
|
+
"market/settings": {
|
|
575
|
+
verb: "GET",
|
|
576
|
+
path: "/market-settings",
|
|
577
|
+
source: "market_settings_route() -> market_settings_impl"
|
|
578
|
+
},
|
|
579
|
+
"market/settings-set": {
|
|
580
|
+
verb: "POST",
|
|
581
|
+
path: "/market-settings",
|
|
582
|
+
body: ["auto_update_interval_hours", "entry_auto_update_kinds"],
|
|
583
|
+
source: "market_settings_set_route() -> market_settings_set_impl"
|
|
584
|
+
},
|
|
574
585
|
"store/list": {
|
|
575
586
|
verb: "GET",
|
|
576
587
|
path: "/store",
|
|
@@ -2226,6 +2237,25 @@ var AppServerClient = class {
|
|
|
2226
2237
|
entry_name: entryName
|
|
2227
2238
|
});
|
|
2228
2239
|
}
|
|
2240
|
+
/**
|
|
2241
|
+
* The host's market policy: sweep cadence, auto-upgrade kind whitelist and the
|
|
2242
|
+
* last sweep's reading (doc `37` §3.2).
|
|
2243
|
+
*
|
|
2244
|
+
* Host-level rather than per-market: it answers "when does the sweep run and
|
|
2245
|
+
* what may it touch", while {@link setMarketplaceAutoUpdate} answers "which
|
|
2246
|
+
* market participates".
|
|
2247
|
+
*/
|
|
2248
|
+
async getMarketSettings() {
|
|
2249
|
+
return this.transport.request("market/settings", {});
|
|
2250
|
+
}
|
|
2251
|
+
/**
|
|
2252
|
+
* Update the host's market policy. An absent field is left alone; the host
|
|
2253
|
+
* writes the value into its `config.toml` and answers with the file re-read,
|
|
2254
|
+
* so a caller can never see an optimistic echo.
|
|
2255
|
+
*/
|
|
2256
|
+
async setMarketSettings(patch) {
|
|
2257
|
+
return this.transport.request("market/settings-set", patch);
|
|
2258
|
+
}
|
|
2229
2259
|
/** All store items across enabled marketplaces (display + install state). */
|
|
2230
2260
|
async listStore() {
|
|
2231
2261
|
return this.transport.request("store/list", {});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentDetail, AgentRunInput, AgentSummary, AnswerDecisionInput, CancelRunInput, ClientCapabilities, ClientInfo, ConnectorCallResult, ConnectorCredential, ConnectorDetail, ConnectorProbeResult, ConnectorRegistration, ConnectorStatusView, ConnectorSummary, ContextUsage, ConversationCreateInput, ConversationEvent, ConversationMessage, ConversationMessagesPage, ConversationMessagesQuery, ConversationModelOptions, ConversationSendReceipt, ConversationUpdateInput, ConversationView, ExpertPack, ImportDetail, ImportRequest, ImportResult, ImportSummary, InitializeResult, InstallOutcome, InstallRequest, InstallResult, InstallStatus, MarketplaceAddRequest, MarketplaceDetail, MarketplaceRefreshResult, MarketplaceRemoveResult, MarketplaceSummary, MentionRef, ModelSummary, OAuthStartResult, OAuthStatusView, ProviderWithModel, RunEvent, RunEventsQuery, RunPlan, RunReceipt, RunResult, RunStatus, RunView, ServerNotification, SkillDetail, SkillFileContent, SkillFileList, SkillSummary, SteerRunInput, StoreInstallResult, StoreItem, StoreItemKind, StoreList, TeamDetail, TeamRunInput, TeamRunReceipt, TeamSummary, WorkspaceRevokeResult, WorkspaceView } from "@flowy-agent-store/protocol";
|
|
1
|
+
import { AgentDetail, AgentRunInput, AgentSummary, AnswerDecisionInput, CancelRunInput, ClientCapabilities, ClientInfo, ConnectorCallResult, ConnectorCredential, ConnectorDetail, ConnectorProbeResult, ConnectorRegistration, ConnectorStatusView, ConnectorSummary, ContextUsage, ConversationCreateInput, ConversationEvent, ConversationMessage, ConversationMessagesPage, ConversationMessagesQuery, ConversationModelOptions, ConversationSendReceipt, ConversationUpdateInput, ConversationView, ExpertPack, ImportDetail, ImportRequest, ImportResult, ImportSummary, InitializeResult, InstallOutcome, InstallRequest, InstallResult, InstallStatus, MarketSettings, MarketSettingsPatch, MarketplaceAddRequest, MarketplaceDetail, MarketplaceRefreshResult, MarketplaceRemoveResult, MarketplaceSummary, MentionRef, ModelSummary, OAuthStartResult, OAuthStatusView, ProviderWithModel, RunEvent, RunEventsQuery, RunPlan, RunReceipt, RunResult, RunStatus, RunView, ServerNotification, SkillDetail, SkillFileContent, SkillFileList, SkillSummary, SteerRunInput, StoreInstallResult, StoreItem, StoreItemKind, StoreList, TeamDetail, TeamRunInput, TeamRunReceipt, TeamSummary, WorkspaceRevokeResult, WorkspaceView } from "@flowy-agent-store/protocol";
|
|
2
2
|
//#region src/transport.d.ts
|
|
3
3
|
export type NotificationListener = (notification: ServerNotification) => void;
|
|
4
4
|
/**
|
|
@@ -1035,6 +1035,21 @@ export declare class AppServerClient {
|
|
|
1035
1035
|
refreshMarketplace(marketplaceId: string): Promise<MarketplaceRefreshResult>;
|
|
1036
1036
|
/** Import one discovered marketplace entry (provenance linked). */
|
|
1037
1037
|
importMarketplaceEntry(marketplaceId: string, entryName: string): Promise<ImportResult>;
|
|
1038
|
+
/**
|
|
1039
|
+
* The host's market policy: sweep cadence, auto-upgrade kind whitelist and the
|
|
1040
|
+
* last sweep's reading (doc `37` §3.2).
|
|
1041
|
+
*
|
|
1042
|
+
* Host-level rather than per-market: it answers "when does the sweep run and
|
|
1043
|
+
* what may it touch", while {@link setMarketplaceAutoUpdate} answers "which
|
|
1044
|
+
* market participates".
|
|
1045
|
+
*/
|
|
1046
|
+
getMarketSettings(): Promise<MarketSettings>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Update the host's market policy. An absent field is left alone; the host
|
|
1049
|
+
* writes the value into its `config.toml` and answers with the file re-read,
|
|
1050
|
+
* so a caller can never see an optimistic echo.
|
|
1051
|
+
*/
|
|
1052
|
+
setMarketSettings(patch: MarketSettingsPatch): Promise<MarketSettings>;
|
|
1038
1053
|
/** All store items across enabled marketplaces (display + install state). */
|
|
1039
1054
|
listStore(): Promise<StoreList>;
|
|
1040
1055
|
/** One-click install: import (when missing) + register in one call. */
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentDetail, AgentRunInput, AgentSummary, AnswerDecisionInput, CancelRunInput, ClientCapabilities, ClientInfo, ConnectorCallResult, ConnectorCredential, ConnectorDetail, ConnectorProbeResult, ConnectorRegistration, ConnectorStatusView, ConnectorSummary, ContextUsage, ConversationCreateInput, ConversationEvent, ConversationMessage, ConversationMessagesPage, ConversationMessagesQuery, ConversationModelOptions, ConversationSendReceipt, ConversationUpdateInput, ConversationView, ExpertPack, ImportDetail, ImportRequest, ImportResult, ImportSummary, InitializeResult, InstallOutcome, InstallRequest, InstallResult, InstallStatus, MarketplaceAddRequest, MarketplaceDetail, MarketplaceRefreshResult, MarketplaceRemoveResult, MarketplaceSummary, MentionRef, ModelSummary, OAuthStartResult, OAuthStatusView, ProviderWithModel, RunEvent, RunEventsQuery, RunPlan, RunReceipt, RunResult, RunStatus, RunView, ServerNotification, SkillDetail, SkillFileContent, SkillFileList, SkillSummary, SteerRunInput, StoreInstallResult, StoreItem, StoreItemKind, StoreList, TeamDetail, TeamRunInput, TeamRunReceipt, TeamSummary, WorkspaceRevokeResult, WorkspaceView } from "@flowy-agent-store/protocol";
|
|
1
|
+
import { AgentDetail, AgentRunInput, AgentSummary, AnswerDecisionInput, CancelRunInput, ClientCapabilities, ClientInfo, ConnectorCallResult, ConnectorCredential, ConnectorDetail, ConnectorProbeResult, ConnectorRegistration, ConnectorStatusView, ConnectorSummary, ContextUsage, ConversationCreateInput, ConversationEvent, ConversationMessage, ConversationMessagesPage, ConversationMessagesQuery, ConversationModelOptions, ConversationSendReceipt, ConversationUpdateInput, ConversationView, ExpertPack, ImportDetail, ImportRequest, ImportResult, ImportSummary, InitializeResult, InstallOutcome, InstallRequest, InstallResult, InstallStatus, MarketSettings, MarketSettingsPatch, MarketplaceAddRequest, MarketplaceDetail, MarketplaceRefreshResult, MarketplaceRemoveResult, MarketplaceSummary, MentionRef, ModelSummary, OAuthStartResult, OAuthStatusView, ProviderWithModel, RunEvent, RunEventsQuery, RunPlan, RunReceipt, RunResult, RunStatus, RunView, ServerNotification, SkillDetail, SkillFileContent, SkillFileList, SkillSummary, SteerRunInput, StoreInstallResult, StoreItem, StoreItemKind, StoreList, TeamDetail, TeamRunInput, TeamRunReceipt, TeamSummary, WorkspaceRevokeResult, WorkspaceView } from "@flowy-agent-store/protocol";
|
|
2
2
|
//#region src/transport.d.ts
|
|
3
3
|
export type NotificationListener = (notification: ServerNotification) => void;
|
|
4
4
|
/**
|
|
@@ -1035,6 +1035,21 @@ export declare class AppServerClient {
|
|
|
1035
1035
|
refreshMarketplace(marketplaceId: string): Promise<MarketplaceRefreshResult>;
|
|
1036
1036
|
/** Import one discovered marketplace entry (provenance linked). */
|
|
1037
1037
|
importMarketplaceEntry(marketplaceId: string, entryName: string): Promise<ImportResult>;
|
|
1038
|
+
/**
|
|
1039
|
+
* The host's market policy: sweep cadence, auto-upgrade kind whitelist and the
|
|
1040
|
+
* last sweep's reading (doc `37` §3.2).
|
|
1041
|
+
*
|
|
1042
|
+
* Host-level rather than per-market: it answers "when does the sweep run and
|
|
1043
|
+
* what may it touch", while {@link setMarketplaceAutoUpdate} answers "which
|
|
1044
|
+
* market participates".
|
|
1045
|
+
*/
|
|
1046
|
+
getMarketSettings(): Promise<MarketSettings>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Update the host's market policy. An absent field is left alone; the host
|
|
1049
|
+
* writes the value into its `config.toml` and answers with the file re-read,
|
|
1050
|
+
* so a caller can never see an optimistic echo.
|
|
1051
|
+
*/
|
|
1052
|
+
setMarketSettings(patch: MarketSettingsPatch): Promise<MarketSettings>;
|
|
1038
1053
|
/** All store items across enabled marketplaces (display + install state). */
|
|
1039
1054
|
listStore(): Promise<StoreList>;
|
|
1040
1055
|
/** One-click install: import (when missing) + register in one call. */
|
package/dist/index.mjs
CHANGED
|
@@ -275,7 +275,7 @@ var WebSocketTransport = class {
|
|
|
275
275
|
/** Header the server mints the per-call connection id under. */
|
|
276
276
|
const CONNECTION_HEADER = "x-app-server-connection-id";
|
|
277
277
|
/** Protocol version this binding announces on the one-shot handshake. */
|
|
278
|
-
const PROTOCOL_VERSION = "fp-
|
|
278
|
+
const PROTOCOL_VERSION = "fp-13";
|
|
279
279
|
/**
|
|
280
280
|
* Protocol method → REST route. Verified from handler bodies, not from the
|
|
281
281
|
* route list (a route existing does not prove which method it mirrors).
|
|
@@ -570,6 +570,17 @@ const HTTP_ROUTES = {
|
|
|
570
570
|
path: "/markets/:marketplace_id/entries/:entry_name/import",
|
|
571
571
|
source: "market_entry_import_route() -> market_entry_import_impl"
|
|
572
572
|
},
|
|
573
|
+
"market/settings": {
|
|
574
|
+
verb: "GET",
|
|
575
|
+
path: "/market-settings",
|
|
576
|
+
source: "market_settings_route() -> market_settings_impl"
|
|
577
|
+
},
|
|
578
|
+
"market/settings-set": {
|
|
579
|
+
verb: "POST",
|
|
580
|
+
path: "/market-settings",
|
|
581
|
+
body: ["auto_update_interval_hours", "entry_auto_update_kinds"],
|
|
582
|
+
source: "market_settings_set_route() -> market_settings_set_impl"
|
|
583
|
+
},
|
|
573
584
|
"store/list": {
|
|
574
585
|
verb: "GET",
|
|
575
586
|
path: "/store",
|
|
@@ -2225,6 +2236,25 @@ var AppServerClient = class {
|
|
|
2225
2236
|
entry_name: entryName
|
|
2226
2237
|
});
|
|
2227
2238
|
}
|
|
2239
|
+
/**
|
|
2240
|
+
* The host's market policy: sweep cadence, auto-upgrade kind whitelist and the
|
|
2241
|
+
* last sweep's reading (doc `37` §3.2).
|
|
2242
|
+
*
|
|
2243
|
+
* Host-level rather than per-market: it answers "when does the sweep run and
|
|
2244
|
+
* what may it touch", while {@link setMarketplaceAutoUpdate} answers "which
|
|
2245
|
+
* market participates".
|
|
2246
|
+
*/
|
|
2247
|
+
async getMarketSettings() {
|
|
2248
|
+
return this.transport.request("market/settings", {});
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* Update the host's market policy. An absent field is left alone; the host
|
|
2252
|
+
* writes the value into its `config.toml` and answers with the file re-read,
|
|
2253
|
+
* so a caller can never see an optimistic echo.
|
|
2254
|
+
*/
|
|
2255
|
+
async setMarketSettings(patch) {
|
|
2256
|
+
return this.transport.request("market/settings-set", patch);
|
|
2257
|
+
}
|
|
2228
2258
|
/** All store items across enabled marketplaces (display + install state). */
|
|
2229
2259
|
async listStore() {
|
|
2230
2260
|
return this.transport.request("store/list", {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowy-agent-store/client",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.9",
|
|
4
4
|
"description": "Transport-agnostic App Server client (docs/agent-store/07 §2.2)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@flowy-agent-store/protocol": "0.1.0-beta.
|
|
28
|
+
"@flowy-agent-store/protocol": "0.1.0-beta.9"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsdown",
|