@withone/cli 1.20.0 → 1.20.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.
@@ -92,7 +92,7 @@ var OneApi = class {
92
92
  return allPlatforms;
93
93
  }
94
94
  async searchActions(platform, query, agentType) {
95
- const isKnowledgeAgent = !agentType || agentType === "knowledge";
95
+ const isKnowledgeAgent = agentType === "knowledge";
96
96
  const queryParams = {
97
97
  query,
98
98
  limit: "5"
@@ -187,7 +187,7 @@ var OneApi = class {
187
187
  return { data: knowledge, etag: result.etag, status: result.status };
188
188
  }
189
189
  async searchActionsWithMeta(platform, query, agentType, ifNoneMatch) {
190
- const isKnowledgeAgent = !agentType || agentType === "knowledge";
190
+ const isKnowledgeAgent = agentType === "knowledge";
191
191
  const queryParams = {
192
192
  query,
193
193
  limit: "5"
@@ -782,7 +782,7 @@ async function executeSubflowStep(step, context, api, permissions, allowedAction
782
782
  if (flowStack.includes(resolvedKey)) {
783
783
  throw new Error(`Circular flow detected: ${[...flowStack, resolvedKey].join(" \u2192 ")}`);
784
784
  }
785
- const { loadFlow: loadFlow2 } = await import("./flow-runner-RFLXA3YY.js");
785
+ const { loadFlow: loadFlow2 } = await import("./flow-runner-UWZL2FPJ.js");
786
786
  const subFlow = loadFlow2(resolvedKey);
787
787
  const subContext = await executeFlow(
788
788
  subFlow,
@@ -4,7 +4,7 @@ import {
4
4
  loadFlow,
5
5
  resolveFlowPath,
6
6
  saveFlow
7
- } from "./chunk-CJBJQPHS.js";
7
+ } from "./chunk-DPOG6BQ5.js";
8
8
  export {
9
9
  FlowRunner,
10
10
  listFlows,
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  loadFlow,
12
12
  resolveFlowPath,
13
13
  saveFlow
14
- } from "./chunk-CJBJQPHS.js";
14
+ } from "./chunk-DPOG6BQ5.js";
15
15
 
16
16
  // src/index.ts
17
17
  import { createRequire as createRequire2 } from "module";
@@ -1689,7 +1689,7 @@ async function actionsSearchCommand(platform, query, options) {
1689
1689
  const spinner5 = createSpinner();
1690
1690
  spinner5.start(`Searching actions on ${pc6.cyan(platform)} for "${query}"...`);
1691
1691
  try {
1692
- const agentType = knowledgeAgent ? "knowledge" : options.type;
1692
+ const agentType = knowledgeAgent ? "knowledge" : options.type || "execute";
1693
1693
  const useCache = options.cache !== false;
1694
1694
  const cachePath = searchCachePath(platform, query, agentType || "knowledge");
1695
1695
  const cached = useCache ? readCache(cachePath) : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withone/cli",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "CLI for managing One",
5
5
  "type": "module",
6
6
  "files": [
@@ -36,4 +36,4 @@
36
36
  "engines": {
37
37
  "node": ">=18"
38
38
  }
39
- }
39
+ }