tauri-plugin-askit-api 0.9.0 → 0.10.0
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-js/index.cjs +10 -3
- package/dist-js/index.d.ts +2 -3
- package/dist-js/index.js +9 -3
- package/package.json +1 -1
package/dist-js/index.cjs
CHANGED
|
@@ -13,6 +13,12 @@ async function getAgentDefinitions() {
|
|
|
13
13
|
async function getAgentSpec(agentId) {
|
|
14
14
|
return await core.invoke("plugin:askit|get_agent_spec", { agentId });
|
|
15
15
|
}
|
|
16
|
+
async function updateAgentSpec(agentId, value) {
|
|
17
|
+
await core.invoke("plugin:askit|update_agent_spec", {
|
|
18
|
+
agentId,
|
|
19
|
+
value,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
16
22
|
// stream
|
|
17
23
|
async function getAgentStreamInfo(id) {
|
|
18
24
|
return await core.invoke("plugin:askit|get_agent_stream_info", { id });
|
|
@@ -23,8 +29,8 @@ async function getAgentStreamInfos() {
|
|
|
23
29
|
async function getAgentStreamSpec(id) {
|
|
24
30
|
return await core.invoke("plugin:askit|get_agent_stream_spec", { id });
|
|
25
31
|
}
|
|
26
|
-
async function
|
|
27
|
-
await core.invoke("plugin:askit|
|
|
32
|
+
async function updateAgentStreamSpec(id, value) {
|
|
33
|
+
await core.invoke("plugin:askit|update_agent_stream_spec", { id, value });
|
|
28
34
|
}
|
|
29
35
|
async function newAgentStream(name) {
|
|
30
36
|
return await core.invoke("plugin:askit|new_agent_stream", { name });
|
|
@@ -133,7 +139,6 @@ exports.removeAgentStream = removeAgentStream;
|
|
|
133
139
|
exports.removeChannel = removeChannel;
|
|
134
140
|
exports.renameAgentStream = renameAgentStream;
|
|
135
141
|
exports.setAgentConfigs = setAgentConfigs;
|
|
136
|
-
exports.setAgentStreamSpec = setAgentStreamSpec;
|
|
137
142
|
exports.setGlobalConfigs = setGlobalConfigs;
|
|
138
143
|
exports.setGlobalConfigsMap = setGlobalConfigsMap;
|
|
139
144
|
exports.startAgent = startAgent;
|
|
@@ -141,4 +146,6 @@ exports.startAgentStream = startAgentStream;
|
|
|
141
146
|
exports.stopAgent = stopAgent;
|
|
142
147
|
exports.stopAgentStream = stopAgentStream;
|
|
143
148
|
exports.uniqueStreamName = uniqueStreamName;
|
|
149
|
+
exports.updateAgentSpec = updateAgentSpec;
|
|
150
|
+
exports.updateAgentStreamSpec = updateAgentStreamSpec;
|
|
144
151
|
exports.writeBoard = writeBoard;
|
package/dist-js/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export type AgentStreamInfo = {
|
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
running: boolean;
|
|
5
|
-
run_on_start: boolean;
|
|
6
5
|
};
|
|
7
6
|
export type AgentDefinitions = Record<string, AgentDefinition>;
|
|
8
7
|
export type AgentDefinition = {
|
|
@@ -31,7 +30,6 @@ export type AgentConfigSpec = {
|
|
|
31
30
|
export type AgentStreamSpec = {
|
|
32
31
|
agents: AgentSpec[];
|
|
33
32
|
channels: ChannelSpec[];
|
|
34
|
-
run_on_start?: boolean | null;
|
|
35
33
|
viewport: Viewport | null;
|
|
36
34
|
};
|
|
37
35
|
export type AgentConfigsMap = Record<string, AgentConfigs>;
|
|
@@ -65,10 +63,11 @@ export type BoardMessage = {
|
|
|
65
63
|
export declare function getAgentDefinition(): Promise<AgentDefinition | null>;
|
|
66
64
|
export declare function getAgentDefinitions(): Promise<AgentDefinitions>;
|
|
67
65
|
export declare function getAgentSpec(agentId: string): Promise<AgentSpec | null>;
|
|
66
|
+
export declare function updateAgentSpec(agentId: string, value: Partial<AgentSpec>): Promise<void>;
|
|
68
67
|
export declare function getAgentStreamInfo(id: string): Promise<AgentStreamInfo | null>;
|
|
69
68
|
export declare function getAgentStreamInfos(): Promise<AgentStreamInfo[]>;
|
|
70
69
|
export declare function getAgentStreamSpec(id: string): Promise<AgentStreamSpec | null>;
|
|
71
|
-
export declare function
|
|
70
|
+
export declare function updateAgentStreamSpec(id: string, value: Partial<AgentStreamSpec>): Promise<void>;
|
|
72
71
|
export declare function newAgentStream(name: string): Promise<[string, string]>;
|
|
73
72
|
export declare function renameAgentStream(id: string, name: string): Promise<string>;
|
|
74
73
|
export declare function uniqueStreamName(name: string): Promise<string>;
|
package/dist-js/index.js
CHANGED
|
@@ -11,6 +11,12 @@ async function getAgentDefinitions() {
|
|
|
11
11
|
async function getAgentSpec(agentId) {
|
|
12
12
|
return await invoke("plugin:askit|get_agent_spec", { agentId });
|
|
13
13
|
}
|
|
14
|
+
async function updateAgentSpec(agentId, value) {
|
|
15
|
+
await invoke("plugin:askit|update_agent_spec", {
|
|
16
|
+
agentId,
|
|
17
|
+
value,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
14
20
|
// stream
|
|
15
21
|
async function getAgentStreamInfo(id) {
|
|
16
22
|
return await invoke("plugin:askit|get_agent_stream_info", { id });
|
|
@@ -21,8 +27,8 @@ async function getAgentStreamInfos() {
|
|
|
21
27
|
async function getAgentStreamSpec(id) {
|
|
22
28
|
return await invoke("plugin:askit|get_agent_stream_spec", { id });
|
|
23
29
|
}
|
|
24
|
-
async function
|
|
25
|
-
await invoke("plugin:askit|
|
|
30
|
+
async function updateAgentStreamSpec(id, value) {
|
|
31
|
+
await invoke("plugin:askit|update_agent_stream_spec", { id, value });
|
|
26
32
|
}
|
|
27
33
|
async function newAgentStream(name) {
|
|
28
34
|
return await invoke("plugin:askit|new_agent_stream", { name });
|
|
@@ -112,4 +118,4 @@ async function setGlobalConfigsMap(configs) {
|
|
|
112
118
|
await invoke("plugin:askit|set_global_configs_map", { configs });
|
|
113
119
|
}
|
|
114
120
|
|
|
115
|
-
export { addAgent, addAgentStream, addAgentsAndChannels, addChannel, getAgentDefinition, getAgentDefinitions, getAgentSpec, getAgentStreamInfo, getAgentStreamInfos, getAgentStreamSpec, getGlobalConfigs, getGlobalConfigsMap, newAgentSpec, newAgentStream, removeAgent, removeAgentStream, removeChannel, renameAgentStream, setAgentConfigs,
|
|
121
|
+
export { addAgent, addAgentStream, addAgentsAndChannels, addChannel, getAgentDefinition, getAgentDefinitions, getAgentSpec, getAgentStreamInfo, getAgentStreamInfos, getAgentStreamSpec, getGlobalConfigs, getGlobalConfigsMap, newAgentSpec, newAgentStream, removeAgent, removeAgentStream, removeChannel, renameAgentStream, setAgentConfigs, setGlobalConfigs, setGlobalConfigsMap, startAgent, startAgentStream, stopAgent, stopAgentStream, uniqueStreamName, updateAgentSpec, updateAgentStreamSpec, writeBoard };
|