tauri-plugin-askit-api 0.2.0 → 0.2.1

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 CHANGED
@@ -42,7 +42,7 @@ async function stopAgentFlow(flowName) {
42
42
  }
43
43
  // nodes
44
44
  async function newAgentFlowNode(defName) {
45
- await core.invoke('plugin:askit|new_agent_flow_node', { defName });
45
+ return await core.invoke('plugin:askit|new_agent_flow_node', { defName });
46
46
  }
47
47
  async function addAgentFlowNode(flowName, node) {
48
48
  await core.invoke('plugin:askit|add_agent_flow_node', { flowName, node });
@@ -97,7 +97,7 @@ export declare function insertAgentFlow(agentFlow: AgentFlow): Promise<void>;
97
97
  export declare function copySubFlow(nodes: AgentFlowNode[], edges: AgentFlowEdge[]): Promise<[AgentFlowNode[], AgentFlowEdge[]]>;
98
98
  export declare function startAgentFlow(flowName: string): Promise<void>;
99
99
  export declare function stopAgentFlow(flowName: string): Promise<void>;
100
- export declare function newAgentFlowNode(defName: string): Promise<void>;
100
+ export declare function newAgentFlowNode(defName: string): Promise<AgentFlowNode>;
101
101
  export declare function addAgentFlowNode(flowName: string, node: AgentFlowNode): Promise<void>;
102
102
  export declare function removeAgentFlowNode(flowName: string, nodeId: string): Promise<void>;
103
103
  export declare function addAgentFlowEdge(flowName: string, edge: AgentFlowEdge): Promise<void>;
package/dist-js/index.js CHANGED
@@ -40,7 +40,7 @@ async function stopAgentFlow(flowName) {
40
40
  }
41
41
  // nodes
42
42
  async function newAgentFlowNode(defName) {
43
- await invoke('plugin:askit|new_agent_flow_node', { defName });
43
+ return await invoke('plugin:askit|new_agent_flow_node', { defName });
44
44
  }
45
45
  async function addAgentFlowNode(flowName, node) {
46
46
  await invoke('plugin:askit|add_agent_flow_node', { flowName, node });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tauri-plugin-askit-api",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "license": "MIT OR Apache-2.0",
5
5
  "author": "Akira Ishino",
6
6
  "description": "Tauri plugin for Agent Stream Kit",