@lumpcode/core 0.0.15 → 0.1.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.
Files changed (52) hide show
  1. package/README.md +7 -1
  2. package/dist/helpers/execBinary/main.d.ts +19 -5
  3. package/dist/helpers/execBinary/main.d.ts.map +1 -1
  4. package/dist/helpers/executeStepsForContextList/main.d.ts +10 -3
  5. package/dist/helpers/executeStepsForContextList/main.d.ts.map +1 -1
  6. package/dist/helpers/getContextStatus/main.d.ts +5 -0
  7. package/dist/helpers/getContextStatus/main.d.ts.map +1 -1
  8. package/dist/helpers/getToDoContextList/main.d.ts +6 -0
  9. package/dist/helpers/getToDoContextList/main.d.ts.map +1 -1
  10. package/dist/helpers/index.d.ts +1 -0
  11. package/dist/helpers/index.d.ts.map +1 -1
  12. package/dist/helpers/refreshRemoteTrackingRefs/index.d.ts +2 -0
  13. package/dist/helpers/refreshRemoteTrackingRefs/index.d.ts.map +1 -0
  14. package/dist/helpers/refreshRemoteTrackingRefs/main.d.ts +11 -0
  15. package/dist/helpers/refreshRemoteTrackingRefs/main.d.ts.map +1 -0
  16. package/dist/index.cjs +469 -172
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.js +467 -174
  19. package/dist/index.js.map +1 -1
  20. package/dist/testing/processTreeChild.d.cts +2 -0
  21. package/dist/testing/processTreeChild.d.cts.map +1 -0
  22. package/dist/testing/processTreeTestHelpers.d.ts +12 -0
  23. package/dist/testing/processTreeTestHelpers.d.ts.map +1 -0
  24. package/dist/testing/sigtermIgnorantTreeChild.d.cts +2 -0
  25. package/dist/testing/sigtermIgnorantTreeChild.d.cts.map +1 -0
  26. package/dist/types/ExecShellFn.d.ts +16 -0
  27. package/dist/types/ExecShellFn.d.ts.map +1 -0
  28. package/dist/types/ExecuteStepsFailureData.d.ts +6 -0
  29. package/dist/types/ExecuteStepsFailureData.d.ts.map +1 -0
  30. package/dist/types/ExecuteStepsFailureReason.d.ts +2 -0
  31. package/dist/types/ExecuteStepsFailureReason.d.ts.map +1 -0
  32. package/dist/types/GitAddCommandFn.d.ts +7 -1
  33. package/dist/types/GitAddCommandFn.d.ts.map +1 -1
  34. package/dist/types/GitCommitCommandFn.d.ts +7 -1
  35. package/dist/types/GitCommitCommandFn.d.ts.map +1 -1
  36. package/dist/types/GitPushCommandFn.d.ts +7 -1
  37. package/dist/types/GitPushCommandFn.d.ts.map +1 -1
  38. package/dist/types/index.d.ts +2 -0
  39. package/dist/types/index.d.ts.map +1 -1
  40. package/dist/usages/runLump/main.d.ts +10 -5
  41. package/dist/usages/runLump/main.d.ts.map +1 -1
  42. package/dist/utils/index.d.ts +3 -0
  43. package/dist/utils/index.d.ts.map +1 -1
  44. package/dist/utils/isProcessAlive/index.d.ts +2 -1
  45. package/dist/utils/isProcessAlive/index.d.ts.map +1 -1
  46. package/dist/utils/killProcessTree/index.d.ts +2 -0
  47. package/dist/utils/killProcessTree/index.d.ts.map +1 -0
  48. package/dist/utils/killProcessTree/main.d.ts +11 -0
  49. package/dist/utils/killProcessTree/main.d.ts.map +1 -0
  50. package/dist/utils/nodeErrnoCode/index.d.ts +1 -1
  51. package/dist/utils/nodeErrnoCode/index.d.ts.map +1 -1
  52. package/package.json +1 -1
package/README.md CHANGED
@@ -107,7 +107,7 @@ An array of `Step` objects that are executed sequentially for each context. Each
107
107
  | `commandFn` | `CommandFn` | Required. Returns `{ executable, args, env? }` to run a subprocess, or `null` / `undefined` to skip execution while still running `postCommandExecFn`. Optional `env` merges over the parent process environment for that command only. |
108
108
  | `stepVariables` | `StepVariables | undefined` | Optional extra variables passed into `promptFn`, `commandFn`, and `postCommandExecFn`. |
109
109
  | `postCommandExecFn` | `PostCommandExecFn | undefined` | Optional hook called after the command finishes, receiving the command output. May return `void` / `undefined` / `[]` (no-op) or a `Steps` array to run nested follow-on steps under this leaf. |
110
- | `timeoutMillis` | `number | undefined` | Maximum time in milliseconds allowed for the command execution. Defaults to `1800000` (30 minutes). |
110
+ | `timeoutMillis` | `number | undefined` | Maximum time in milliseconds allowed for the command execution. On expiry the process tree is terminated and the step fails with a timeout. Defaults to `1800000` (30 minutes). |
111
111
 
112
112
 
113
113
  Elements in the array can also be **functions** that return more `Steps` at runtime, enabling dynamic and recursive prompt chains. See [Recursive Steps](#recursive-steps) for details.
@@ -179,6 +179,12 @@ Optional operational logger. CLI callers should pass an explicit logger from `cr
179
179
 
180
180
  See [Logging](#logging) below.
181
181
 
182
+ #### `signal`
183
+
184
+ **Type:** `AbortSignal` -- **Default:** none
185
+
186
+ When aborted, the engine kills the in-flight command process tree and stops the step walk (even if the step has `continueOnError: true`). Step `timeoutMillis` expiry also terminates the process tree before failing the step.
187
+
182
188
  #### `getKeepHistoryFilePathFn`
183
189
 
184
190
  **Type:** `(context: Context) => string | undefined` -- **Default:** `() => undefined`
@@ -1,15 +1,29 @@
1
1
  import { type SpawnOptions } from 'node:child_process';
2
2
  import { Failure, Success } from '../../types';
3
- export declare function execBinary(binaryPath: string, args: string[], timeoutMillis?: number, options?: SpawnOptions): Promise<Success<{
4
- stdout: string;
5
- stderr: string;
6
- }> | Failure<{
3
+ export type ExecBinaryFailureReason = 'timeout' | 'aborted' | 'exit' | 'spawn';
4
+ export type ExecBinaryInput = {
5
+ binaryPath: string;
6
+ args: string[];
7
+ timeoutMillis?: number;
8
+ cwd?: string;
9
+ env?: NodeJS.ProcessEnv;
10
+ stdio?: SpawnOptions['stdio'];
11
+ signal?: AbortSignal;
12
+ /** Grace before SIGKILL after SIGTERM on cancel/timeout. Default 5000. */
13
+ killGraceMs?: number;
14
+ };
15
+ export type ExecBinaryFailure = {
7
16
  message: string;
8
17
  binaryPath: string;
9
18
  args: string[];
10
19
  code?: number;
11
20
  stdout?: string;
12
21
  stderr?: string;
13
- }>>;
22
+ reason?: ExecBinaryFailureReason;
23
+ };
24
+ export declare function execBinary(input: ExecBinaryInput): Promise<Success<{
25
+ stdout: string;
26
+ stderr: string;
27
+ }> | Failure<ExecBinaryFailure>>;
14
28
  export type ExecBinaryResponse = ReturnType<typeof execBinary>;
15
29
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/execBinary/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG/C,wBAAgB,UAAU,CACtB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EAAE,EACd,aAAa,GAAE,MAAuB,EACtC,OAAO,CAAC,EAAE,YAAY,GACvB,OAAO,CACN,OAAO,CAAC;IACJ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC,GAAG,OAAO,CAAC;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CACL,CA4DA;AAED,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/execBinary/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEjF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG/C,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/E,MAAM,MAAM,eAAe,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC9B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,uBAAuB,CAAC;CACpC,CAAC;AAEF,wBAAgB,UAAU,CACtB,KAAK,EAAE,eAAe,GACvB,OAAO,CAAC,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAqHnF;AAED,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -1,12 +1,19 @@
1
- import { ContextList, ContextRunState, Failure, Logger, LumpVariables, StepVariables } from "../../types";
1
+ import { ContextList, ContextRunState, ExecuteStepsFailureData, Failure, Logger, LumpVariables, StepVariables } from "../../types";
2
2
  import type { RunLumpInput } from '../../usages';
3
3
  export type ExecuteStepsForContextListParams<V extends LumpVariables = LumpVariables, SV extends StepVariables = StepVariables> = Required<Pick<RunLumpInput<V, SV>, 'baseBranch' | 'branchFn' | 'lumpVariables' | 'steps' | 'setupFn' | 'teardownFn' | 'gitAddCommandFn' | 'gitCommitCommandFn' | 'gitPushCommandFn' | 'gitCommitMessageFn' | 'projectRoot' | 'setupWorkspaceFn' | 'teardownWorkspaceFn' | 'getKeepHistoryFilePathFn'>> & {
4
4
  contextList: ContextList;
5
5
  logger?: Logger;
6
+ /** When aborted, in-flight commands are killed and the step walk stops (ignores continueOnError). */
7
+ signal?: AbortSignal;
6
8
  };
7
- export declare function executeStepsForContextList<V extends LumpVariables = LumpVariables, SV extends StepVariables = StepVariables>({ baseBranch, branchFn, lumpVariables, contextList, gitAddCommandFn, gitCommitCommandFn, gitPushCommandFn, gitCommitMessageFn, projectRoot, steps, setupFn, setupWorkspaceFn, teardownFn, teardownWorkspaceFn, getKeepHistoryFilePathFn, logger: loggerInput, }: ExecuteStepsForContextListParams<V, SV>): Promise<Failure<{
9
+ export declare function executeStepsForContextList<V extends LumpVariables = LumpVariables, SV extends StepVariables = StepVariables>({ baseBranch, branchFn, lumpVariables, contextList, gitAddCommandFn, gitCommitCommandFn, gitPushCommandFn, gitCommitMessageFn, projectRoot, steps, setupFn, setupWorkspaceFn, teardownFn, teardownWorkspaceFn, getKeepHistoryFilePathFn, logger: loggerInput, signal, }: ExecuteStepsForContextListParams<V, SV>): Promise<Failure<{
8
10
  message: string;
9
- }> | import("../..").Success<{
11
+ info: {
12
+ command: string;
13
+ stdout: any;
14
+ stderr: any;
15
+ };
16
+ }> | Failure<ExecuteStepsFailureData> | import("../..").Success<{
10
17
  branchName: string;
11
18
  contextNames: string[];
12
19
  contextRunStateList: ContextRunState[];
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/executeStepsForContextList/main.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,WAAW,EACX,eAAe,EACf,OAAO,EACP,MAAM,EACN,aAAa,EAIb,aAAa,EAChB,MAAM,aAAa,CAAC;AAUrB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,gCAAgC,CACxC,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,EAAE,SAAS,aAAa,GAAG,aAAa,IACxC,QAAQ,CAAC,IAAI,CACb,YAAY,CAAC,CAAC,EAAE,EAAE,CAAC,EACjB,YAAY,GACZ,UAAU,GACV,eAAe,GACf,OAAO,GACP,SAAS,GACT,YAAY,GACZ,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,oBAAoB,GACpB,aAAa,GACb,kBAAkB,GAClB,qBAAqB,GACrB,0BAA0B,CAC/B,CAAC,GAAG;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,wBAAsB,0BAA0B,CAC5C,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,EAAE,SAAS,aAAa,GAAG,aAAa,EAC1C,EACE,UAAU,EACV,QAAQ,EACR,aAAa,EACb,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,KAAK,EACL,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,wBAAwB,EACxB,MAAM,EAAE,WAAW,GACtB,EAAE,gCAAgC,CAAC,CAAC,EAAE,EAAE,CAAC;aAqEM,MAAM;;;;;IAwOrD;AAED,MAAM,MAAM,gCAAgC,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/executeStepsForContextList/main.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,OAAO,EACP,MAAM,EACN,aAAa,EAMb,aAAa,EAChB,MAAM,aAAa,CAAC;AASrB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA4BjD,MAAM,MAAM,gCAAgC,CACxC,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,EAAE,SAAS,aAAa,GAAG,aAAa,IACxC,QAAQ,CAAC,IAAI,CACb,YAAY,CAAC,CAAC,EAAE,EAAE,CAAC,EACjB,YAAY,GACZ,UAAU,GACV,eAAe,GACf,OAAO,GACP,SAAS,GACT,YAAY,GACZ,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,oBAAoB,GACpB,aAAa,GACb,kBAAkB,GAClB,qBAAqB,GACrB,0BAA0B,CAC/B,CAAC,GAAG;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qGAAqG;IACrG,MAAM,CAAC,EAAE,WAAW,CAAC;CACxB,CAAA;AAED,wBAAsB,0BAA0B,CAC5C,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,EAAE,SAAS,aAAa,GAAG,aAAa,EAC1C,EACE,UAAU,EACV,QAAQ,EACR,aAAa,EACb,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,KAAK,EACL,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,wBAAwB,EACxB,MAAM,EAAE,WAAW,EACnB,MAAM,GACT,EAAE,gCAAgC,CAAC,CAAC,EAAE,EAAE,CAAC;;;;;;;;;;;IAuUzC;AAED,MAAM,MAAM,gCAAgC,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC"}
@@ -9,5 +9,10 @@ export declare function getContextStatus<V extends LumpVariables = LumpVariables
9
9
  contextVariables?: Record<string, string>;
10
10
  remoteName?: string;
11
11
  logger?: Logger;
12
+ /**
13
+ * When true, skip network fetch and read existing remote-tracking refs only.
14
+ * Callers that batch status must refresh once first (e.g. `refreshRemoteTrackingRefs`).
15
+ */
16
+ skipFetch?: boolean;
12
17
  }): Promise<ContextStatus>;
13
18
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/getContextStatus/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAIpE,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,MAAM,EAAE;IACpF,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,aAAa,CAAC,CAoEzB"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/getContextStatus/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAKpE,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,MAAM,EAAE;IACpF,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAAC,aAAa,CAAC,CAwEzB"}
@@ -1,5 +1,6 @@
1
1
  import { GetContextListFn, Logger, LumpVariables } from "../../types";
2
2
  import { GitCommitMessageFn } from "../../types/GitCommitMessageFn";
3
+ import { type RefreshRemoteTrackingRefsFn } from "../refreshRemoteTrackingRefs";
3
4
  export declare function getToDoContextList<V extends LumpVariables = LumpVariables>(params: {
4
5
  getContextListFn: GetContextListFn<V>;
5
6
  lumpVariables: V;
@@ -7,6 +8,11 @@ export declare function getToDoContextList<V extends LumpVariables = LumpVariabl
7
8
  projectRoot: string;
8
9
  baseBranch: string;
9
10
  logger?: Logger;
11
+ /**
12
+ * One refresh before status reads. Defaults to unlocked core refresh.
13
+ * CLI injects a git-common-dir-locked wrapper.
14
+ */
15
+ refreshRemoteTrackingRefsFn?: RefreshRemoteTrackingRefsFn;
10
16
  }): Promise<import("../..").Failure<{
11
17
  message: string;
12
18
  }> | import("../..").Success<import("../..").Context<Record<string, string | number | boolean>>[]>>;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/getToDoContextList/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,wBAAsB,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,MAAM,EAAE;IACtF,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACtC,aAAa,EAAE,CAAC,CAAC;IACjB,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;;oGA8DA"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/getToDoContextList/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAEH,KAAK,2BAA2B,EACnC,MAAM,8BAA8B,CAAC;AAEtC,wBAAsB,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,MAAM,EAAE;IACtF,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACtC,aAAa,EAAE,CAAC,CAAC;IACjB,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;CAC7D;;oGAkFA"}
@@ -5,5 +5,6 @@ export * from './executeStepsForContextList';
5
5
  export * from './getCodeBasePaths';
6
6
  export * from './getContextStatus';
7
7
  export * from './getToDoContextList';
8
+ export * from './refreshRemoteTrackingRefs';
8
9
  export * from './validateContextListNames';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './main';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/refreshRemoteTrackingRefs/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Failure, Success } from '../../types';
2
+ export type RefreshRemoteTrackingRefsFn = (input: {
3
+ projectRoot: string;
4
+ remoteName?: string;
5
+ }) => Promise<Success<void> | Failure<string>>;
6
+ /**
7
+ * Refreshes remote-tracking refs for status / planning (one network fetch).
8
+ * Uses `--no-write-fetch-head` so concurrent preflight/pull paths are safer.
9
+ */
10
+ export declare const refreshRemoteTrackingRefs: RefreshRemoteTrackingRefsFn;
11
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/refreshRemoteTrackingRefs/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAIpD,MAAM,MAAM,2BAA2B,GAAG,CAAC,KAAK,EAAE;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,KAAK,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,2BAUvC,CAAC"}