@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.
@@ -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-Y2CXXU3U.js");
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,