@withone/cli 1.42.0 → 1.43.3
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/README.md +57 -17
- package/dist/chunk-3ZJVO4GP.js +59 -0
- package/dist/chunk-44CV5IMX.js +38 -0
- package/dist/chunk-AU2ZEEMS.js +477 -0
- package/dist/chunk-C3ORS3RG.js +762 -0
- package/dist/{chunk-PK2RAVAF.js → chunk-EMAQVPRD.js} +6 -36
- package/dist/chunk-IAFQVFCB.js +1708 -0
- package/dist/chunk-MRGKKO54.js +158 -0
- package/dist/embedding-O4XWBL6T.js +10 -0
- package/dist/{flow-runner-Y2CXXU3U.js → flow-runner-XSJ4US5S.js} +2 -1
- package/dist/index.js +2856 -1691
- package/dist/migrate-BEARUBLO.js +16 -0
- package/dist/runtime-NVC7KAJZ.js +15 -0
- package/dist/sql-EGTWQIU5.js +11 -0
- package/package.json +6 -2
- package/profiles/attio/attioCompanies.json +5 -3
- package/profiles/attio/attioPeople.json +5 -4
- package/skills/one/SKILL.md +83 -10
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getByDotPath,
|
|
3
|
+
setByDotPath
|
|
4
|
+
} from "./chunk-44CV5IMX.js";
|
|
5
|
+
|
|
1
6
|
// src/lib/flow-runner.ts
|
|
2
7
|
import fs2 from "fs";
|
|
3
8
|
import path2 from "path";
|
|
@@ -571,40 +576,6 @@ function validateActionInput(action, args) {
|
|
|
571
576
|
return { valid: false, missing };
|
|
572
577
|
}
|
|
573
578
|
|
|
574
|
-
// src/lib/dot-path.ts
|
|
575
|
-
function getByDotPath(obj, dotPath) {
|
|
576
|
-
const parts = dotPath.split(".").flatMap((part) => {
|
|
577
|
-
const bracketMatch = part.match(/^([^[]+)\[(\d+)\]$/);
|
|
578
|
-
if (bracketMatch) {
|
|
579
|
-
return [bracketMatch[1], bracketMatch[2]];
|
|
580
|
-
}
|
|
581
|
-
return [part];
|
|
582
|
-
});
|
|
583
|
-
let current = obj;
|
|
584
|
-
for (const part of parts) {
|
|
585
|
-
if (current === null || current === void 0) return void 0;
|
|
586
|
-
if (Array.isArray(current) && /^\d+$/.test(part)) {
|
|
587
|
-
current = current[parseInt(part, 10)];
|
|
588
|
-
} else if (typeof current === "object") {
|
|
589
|
-
current = current[part];
|
|
590
|
-
} else {
|
|
591
|
-
return void 0;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
return current;
|
|
595
|
-
}
|
|
596
|
-
function setByDotPath(obj, dotPath, value) {
|
|
597
|
-
const parts = dotPath.split(".");
|
|
598
|
-
let current = obj;
|
|
599
|
-
for (let i = 0; i < parts.length - 1; i++) {
|
|
600
|
-
if (current[parts[i]] === void 0 || current[parts[i]] === null) {
|
|
601
|
-
current[parts[i]] = {};
|
|
602
|
-
}
|
|
603
|
-
current = current[parts[i]];
|
|
604
|
-
}
|
|
605
|
-
current[parts[parts.length - 1]] = value;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
579
|
// src/lib/flow-engine.ts
|
|
609
580
|
var execAsync = promisify(exec);
|
|
610
581
|
function sleep2(ms) {
|
|
@@ -1140,7 +1111,7 @@ async function executeSubflowStep(step, context, api, permissions, allowedAction
|
|
|
1140
1111
|
if (flowStack.includes(resolvedKey)) {
|
|
1141
1112
|
throw new Error(`Circular flow detected: ${[...flowStack, resolvedKey].join(" \u2192 ")}`);
|
|
1142
1113
|
}
|
|
1143
|
-
const { loadFlowWithMeta: loadFlowWithMeta2 } = await import("./flow-runner-
|
|
1114
|
+
const { loadFlowWithMeta: loadFlowWithMeta2 } = await import("./flow-runner-XSJ4US5S.js");
|
|
1144
1115
|
const { flow: subFlow, rootDir: subRootDir } = loadFlowWithMeta2(resolvedKey);
|
|
1145
1116
|
const subContext = await executeFlow(
|
|
1146
1117
|
subFlow,
|
|
@@ -2794,7 +2765,6 @@ export {
|
|
|
2794
2765
|
getStepTypeDescriptor,
|
|
2795
2766
|
getNestedStepsKeys,
|
|
2796
2767
|
generateFlowGuide,
|
|
2797
|
-
getByDotPath,
|
|
2798
2768
|
FlowRunner,
|
|
2799
2769
|
resolveFlowPath,
|
|
2800
2770
|
getFlowRootDir,
|