@lumpcode/core 0.0.4 → 0.0.6
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 +58 -29
- package/dist/helpers/collectStepsForContext/main.d.ts +2 -5
- package/dist/helpers/collectStepsForContext/main.d.ts.map +1 -1
- package/dist/helpers/executeStepsForContextList/main.d.ts +3 -3
- package/dist/helpers/executeStepsForContextList/main.d.ts.map +1 -1
- package/dist/helpers/getCodeBasePaths/main.d.ts +3 -2
- package/dist/helpers/getCodeBasePaths/main.d.ts.map +1 -1
- package/dist/helpers/getContextStatus/main.d.ts +2 -2
- package/dist/helpers/getContextStatus/main.d.ts.map +1 -1
- package/dist/helpers/getToDoContextList/main.d.ts +2 -1
- package/dist/helpers/getToDoContextList/main.d.ts.map +1 -1
- package/dist/index.cjs +160 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +158 -56
- package/dist/index.js.map +1 -1
- package/dist/types/CommandFn.d.ts +1 -0
- package/dist/types/CommandFn.d.ts.map +1 -1
- package/dist/types/ExecFailureData.d.ts +12 -0
- package/dist/types/ExecFailureData.d.ts.map +1 -0
- package/dist/types/Logger.d.ts +8 -0
- package/dist/types/Logger.d.ts.map +1 -0
- package/dist/types/Step.d.ts +1 -0
- package/dist/types/Step.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/usages/runLump/main.d.ts +2 -2
- package/dist/usages/runLump/main.d.ts.map +1 -1
- package/dist/utils/createConsoleLogger/index.d.ts +2 -0
- package/dist/utils/createConsoleLogger/index.d.ts.map +1 -0
- package/dist/utils/createConsoleLogger/main.d.ts +7 -0
- package/dist/utils/createConsoleLogger/main.d.ts.map +1 -0
- package/dist/utils/formatExecFailureMessage/index.d.ts +2 -0
- package/dist/utils/formatExecFailureMessage/index.d.ts.map +1 -0
- package/dist/utils/formatExecFailureMessage/main.d.ts +6 -0
- package/dist/utils/formatExecFailureMessage/main.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/noopLogger/index.d.ts +2 -0
- package/dist/utils/noopLogger/index.d.ts.map +1 -0
- package/dist/utils/noopLogger/main.d.ts +3 -0
- package/dist/utils/noopLogger/main.d.ts.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# @lumpcode/core
|
|
2
2
|
|
|
3
|
-
The core engine of Lumpcode mainly exporting the `runLump` function.
|
|
3
|
+
The core engine of Lumpcode, mainly exporting the `runLump` function.
|
|
4
4
|
|
|
5
|
-
`runLump`
|
|
5
|
+
`runLump` drives one **agent loop** over a context list in a single invocation. Each context is a unit of work (often a file or a logical group of files). Lumpcode scans your codebase, builds a list of contexts, filters out those already completed (each completed context is materialized as exactly one normalized commit on a remote branch), then runs your prompts on the rest, managing git branches and commits and tracking progress via normalized commit messages.
|
|
6
|
+
|
|
7
|
+
**Agent loop campaigns** (`.lumpcode/lumps/` configs, daemon scheduling, `lump-status`, `clean`) are CLI-only. Core runs one agent loop per `runLump` call; use your own scheduler or the CLI to manage campaigns.
|
|
6
8
|
|
|
7
9
|
`runLump` is very configurable but comes with sensible default behaviors.
|
|
8
10
|
|
|
9
|
-
> **
|
|
11
|
+
> **Important:** `@lumpcode/core` is the engine only. For **agent loop campaign** management (project bootstrap, `.lumpcode/lumps/` configs, background daemon, status, and cleanup), use the [Lumpcode CLI](../apps/cli/README.md) (`npm install -g @lumpcode/cli`).
|
|
10
12
|
|
|
11
13
|
## Installation
|
|
12
14
|
|
|
@@ -76,8 +78,8 @@ interface Context {
|
|
|
76
78
|
}
|
|
77
79
|
```
|
|
78
80
|
|
|
79
|
-
- **`
|
|
80
|
-
- **`
|
|
81
|
+
- `**priority**` — Lower values are processed first. Defaults to `0`.
|
|
82
|
+
- `**dependsOnContexts**` — Context names that must be `finished` before this context is eligible. If any dependency is still `toDo` or `branchPushed`, the context is excluded from the current batch. Core resolves each entry marker commit with your `gitCommitMessageFn`. The [Lumpcode CLI](../apps/cli/README.md) can wire **cross-lump** dependencies between lumps in the same project — see [CLI lump config](../apps/cli/DOCS/lump-config.md#context-ordering-and-cross-lump-dependencies).
|
|
81
83
|
|
|
82
84
|
### CodeBasePath
|
|
83
85
|
|
|
@@ -98,13 +100,15 @@ A mutable `Record<string, unknown>` that persists across prompt executions withi
|
|
|
98
100
|
|
|
99
101
|
An array of `Step` objects that are executed sequentially for each context. Each `Step` groups the following fields:
|
|
100
102
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
|
104
|
-
| `
|
|
105
|
-
| `
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
103
|
+
|
|
104
|
+
| Field | Type | Description |
|
|
105
|
+
| ------------------- | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
106
|
+
| `promptFn` | `PromptFn | undefined` | Optional. Generates the prompt string from the current context, run state, and variables. When omitted, `commandFn` receives an empty prompt string. |
|
|
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
|
+
| `stepVariables` | `StepVariables | undefined` | Optional extra variables passed into `promptFn`, `commandFn`, and `postCommandExecFn`. |
|
|
109
|
+
| `postCommandExecFn` | `PostCommandExecFn | undefined` | Optional hook called after the command finishes, receiving the command output. |
|
|
110
|
+
| `timeoutMillis` | `number | undefined` | Maximum time in milliseconds allowed for the command execution. Defaults to `1800000` (30 minutes). |
|
|
111
|
+
|
|
108
112
|
|
|
109
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.
|
|
110
114
|
|
|
@@ -118,7 +122,7 @@ Elements in the array can also be **functions** that return more `Steps` at runt
|
|
|
118
122
|
|
|
119
123
|
Absolute path to the root of the project Lumpcode will operate on. This directory is scanned to build the list of `CodeBasePath` entries.
|
|
120
124
|
|
|
121
|
-
We recommend pointing `projectRoot` to a **separate copy** of your project rather than the directory you are manually working in, so that Lumpcode's git operations don't interfere with your own work. Where prompts and git commands actually run is determined by [
|
|
125
|
+
We recommend pointing `projectRoot` to a **separate copy** of your project rather than the directory you are manually working in, so that Lumpcode's git operations don't interfere with your own work. Where prompts and git commands actually run is determined by `[setupWorkspaceFn](#setupworkspacefn)` (see `workspacePath` there). The [Lumpcode CLI](../apps/cli/README.md) handles this isolated copy for you.
|
|
122
126
|
|
|
123
127
|
#### `baseBranch`
|
|
124
128
|
|
|
@@ -167,11 +171,13 @@ The array of prompt items (or dynamic prompt-generating functions) to execute fo
|
|
|
167
171
|
|
|
168
172
|
How many contexts to include in a single branch. For example, `1` means each context gets its own branch; `5` groups up to five contexts per branch.
|
|
169
173
|
|
|
170
|
-
#### `
|
|
174
|
+
#### `logger`
|
|
175
|
+
|
|
176
|
+
**Type:** `Logger` -- **Default:** `createConsoleLogger({})` when omitted
|
|
171
177
|
|
|
172
|
-
|
|
178
|
+
Optional operational logger. CLI callers should pass an explicit logger from `createCliLogger` (after OR-merging lump `verbose` with `--verbose`). Library callers omit it for quiet defaults (info/warn/error only, no verbose detail).
|
|
173
179
|
|
|
174
|
-
|
|
180
|
+
See [Logging](#logging) below.
|
|
175
181
|
|
|
176
182
|
#### `getKeepHistoryFilePathFn`
|
|
177
183
|
|
|
@@ -179,7 +185,7 @@ When `true`, logs extra diagnostic information during workspace setup and prompt
|
|
|
179
185
|
|
|
180
186
|
When this function returns a non-empty path for a context, the engine appends one JSON object per prompt step (after each successful agent command) to that file. The file is a JSON array; each element has the same shape as `postCommandExecFn` input (`commandResult`, `context`, `prompt`, `stepIndex`, `contextRunState`, `lumpVariables`, optional `stepVariables`, `projectRoot`). Parent directories are created with `mkdir(..., { recursive: true })` before the initial `[]` write.
|
|
181
187
|
|
|
182
|
-
The Lumpcode CLI sets this from lump config
|
|
188
|
+
The Lumpcode CLI sets this from lump config `**keepHistory: true`**, writing to `.lumpcode/lumps/<lumpName>/history/<contextName>.json`. Library callers can supply a custom function for other paths or naming.
|
|
183
189
|
|
|
184
190
|
## Advanced Parameters
|
|
185
191
|
|
|
@@ -224,7 +230,7 @@ Called after each context finishes. Use it for cleanup or logging.
|
|
|
224
230
|
|
|
225
231
|
### `gitCommitMessageFn`
|
|
226
232
|
|
|
227
|
-
**Type:** `GitCommitMessageFn` -- **Default:** ``
|
|
233
|
+
**Type:** `GitCommitMessageFn` -- **Default:** ``LUMP:${context.name}``
|
|
228
234
|
|
|
229
235
|
```typescript
|
|
230
236
|
type GitCommitMessageFn = (input: {
|
|
@@ -244,13 +250,13 @@ Customize the git add command. Receives `{ baseBranch, branchName, contextList,
|
|
|
244
250
|
|
|
245
251
|
### `gitCommitCommandFn`
|
|
246
252
|
|
|
247
|
-
**Type:** `GitCommitCommandFn` -- **Default:** ``
|
|
253
|
+
**Type:** `GitCommitCommandFn` -- **Default:** ``git commit -m "${commitMessage}"``
|
|
248
254
|
|
|
249
255
|
Customize the git commit command. Receives the same input as `gitAddCommandFn` plus `{ commitMessage }`. Invoked **once per context**, producing exactly one commit per context on the work branch.
|
|
250
256
|
|
|
251
257
|
### `gitPushCommandFn`
|
|
252
258
|
|
|
253
|
-
**Type:** `GitPushCommandFn` -- **Default:** ``
|
|
259
|
+
**Type:** `GitPushCommandFn` -- **Default:** ``git push origin ${branchName}``
|
|
254
260
|
|
|
255
261
|
Customize the git push command. Invoked **once per branch**, after all per-context commits are made.
|
|
256
262
|
|
|
@@ -284,6 +290,26 @@ An alternative **git-worktree-based** implementation is exported as `defaultSetu
|
|
|
284
290
|
|
|
285
291
|
Cleans up the workspace after all contexts on a branch are done. The default switches back to the base branch only. A worktree variant is exported as `defaultTeardownWorkspaceFnWithWorktree`.
|
|
286
292
|
|
|
293
|
+
## Logging
|
|
294
|
+
|
|
295
|
+
Operational runtime output uses a small shared `**Logger`** type exported from `@lumpcode/core`:
|
|
296
|
+
|
|
297
|
+
```typescript
|
|
298
|
+
type Logger = {
|
|
299
|
+
error: (message: string) => void;
|
|
300
|
+
warn: (message: string) => void;
|
|
301
|
+
info: (message: string) => void;
|
|
302
|
+
verbose: (message: string) => void;
|
|
303
|
+
child: (prefix: string) => Logger;
|
|
304
|
+
};
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
- `**createConsoleLogger({ verbose?, json?, prefix? })**` — console-backed implementation (`error` always prints; `verbose` gated by `verbose`; when `json: true`, non-error levels are suppressed).
|
|
308
|
+
- `**noopLogger**` — no-op logger for tests.
|
|
309
|
+
- `**formatExecFailureMessage({ label, failure })**` — user-facing shell/git failure strings.
|
|
310
|
+
|
|
311
|
+
Pass `**logger**` on `RunLumpInput`. When omitted, the engine uses `createConsoleLogger({})` (operational errors/warnings/progress only; no verbose detail unless the logger you pass enables it).
|
|
312
|
+
|
|
287
313
|
## Return Value
|
|
288
314
|
|
|
289
315
|
`runLump` returns a `Promise` that resolves to a discriminated union:
|
|
@@ -392,7 +418,7 @@ const steps: Steps = [
|
|
|
392
418
|
|
|
393
419
|
Lumpcode uses normalized git commit messages to record which contexts have already been processed. Each completed context contributes **exactly one commit** whose subject equals `gitCommitMessageFn({ context, ... })`. On every subsequent call to `runLump`, contexts whose normalized commit message is already present on a remote branch are skipped so the run only works on what remains. This lets you call `runLump` repeatedly (e.g. in a cron job) and each invocation picks up where the previous one left off, progressively working through the full context list without ever re-processing a context.
|
|
394
420
|
|
|
395
|
-
> If you'd rather not wire up your own scheduler, the [Lumpcode CLI](
|
|
421
|
+
> If you'd rather not wire up your own scheduler, the [Lumpcode CLI](../apps/cli/README.md) ships a built-in daemon (`lumpcode start`) that calls `runLump` on a tick, with concurrent-branch limits and per-lump enable/disable already wired in.
|
|
396
422
|
|
|
397
423
|
### Commit message naming
|
|
398
424
|
|
|
@@ -402,17 +428,21 @@ By default, a context named `my_component_ts` produces a commit with the subject
|
|
|
402
428
|
LUMP:my_component_ts
|
|
403
429
|
```
|
|
404
430
|
|
|
405
|
-
You can customize this via the [
|
|
431
|
+
You can customize this via the `[gitCommitMessageFn](#gitcommitmessagefn)` parameter. The returned subject **must be unique per context** -- it is the only thing tying the commit back to its context.
|
|
406
432
|
|
|
407
433
|
### Context statuses
|
|
408
434
|
|
|
435
|
+
CLI users: marker format is `LUMP: <lumpName> - <contextName>` — see [concepts.md](../apps/cli/DOCS/concepts.md).
|
|
436
|
+
|
|
409
437
|
When filtering contexts, Lumpcode resolves each context's normalized commit message to one of three statuses:
|
|
410
438
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
|
414
|
-
| `
|
|
415
|
-
| `
|
|
439
|
+
|
|
440
|
+
| Status | Meaning | Effect |
|
|
441
|
+
| -------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
|
|
442
|
+
| `toDo` | No commit with the context's normalized message exists on any remote ref. | Will be processed (unless blocked by `dependsOnContexts`). |
|
|
443
|
+
| `branchPushed` | A commit with the context's normalized message exists on a remote branch other than the base branch. | Skipped. |
|
|
444
|
+
| `finished` | A commit with the context's normalized message is reachable from `origin/<baseBranch>`. | Skipped. |
|
|
445
|
+
|
|
416
446
|
|
|
417
447
|
A context with `dependsOnContexts` is only eligible when **all** of its listed dependencies have the `finished` status. This means the dependency's commit must be reachable from the remote base branch. Contexts stuck at `branchPushed` do not satisfy the dependency.
|
|
418
448
|
|
|
@@ -482,6 +512,5 @@ flowchart TD
|
|
|
482
512
|
TeardownWorkspace --> Done["Return Success or Failure"]
|
|
483
513
|
```
|
|
484
514
|
|
|
485
|
-
## Going further
|
|
486
515
|
|
|
487
|
-
|
|
516
|
+
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type { Context, ContextList, LumpVariables, PostCommandExecFn, Step, Steps, SetupFn } from '../../types';
|
|
1
|
+
import type { CommandDescriptor, Context, ContextList, LumpVariables, PostCommandExecFn, Step, Steps, SetupFn } from '../../types';
|
|
2
2
|
export type CollectedStep = {
|
|
3
3
|
stepIndex: number | number[];
|
|
4
4
|
prompt?: string;
|
|
5
|
-
command:
|
|
6
|
-
executable: string;
|
|
7
|
-
args: string[];
|
|
8
|
-
} | null;
|
|
5
|
+
command: CommandDescriptor | null;
|
|
9
6
|
postCommandExecFn?: PostCommandExecFn;
|
|
10
7
|
stepVariables?: Step['stepVariables'];
|
|
11
8
|
timeoutMillis?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/collectStepsForContext/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,WAAW,EAEX,aAAa,EACb,iBAAiB,EAEjB,IAAI,EACJ,KAAK,EACL,OAAO,EACV,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,aAAa,GAAG;IACxB,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/collectStepsForContext/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,iBAAiB,EACjB,OAAO,EACP,WAAW,EAEX,aAAa,EACb,iBAAiB,EAEjB,IAAI,EACJ,KAAK,EACL,OAAO,EACV,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,aAAa,GAAG;IACxB,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,aAAa,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,wBAAsB,sBAAsB,CACxC,MAAM,EAAE,4BAA4B,GACrC,OAAO,CAAC,aAAa,EAAE,CAAC,CA4F1B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ContextList, ContextRunState, Failure } from "../../types";
|
|
1
|
+
import { ContextList, ContextRunState, Failure, Logger } from "../../types";
|
|
2
2
|
import type { RunLumpInput } from '../../usages';
|
|
3
3
|
export type ExecuteStepsForContextListParams = Required<Pick<RunLumpInput, 'baseBranch' | 'branchFn' | 'lumpVariables' | 'steps' | 'setupFn' | 'teardownFn' | 'gitAddCommandFn' | 'gitCommitCommandFn' | 'gitPushCommandFn' | 'gitCommitMessageFn' | 'projectRoot' | 'setupWorkspaceFn' | 'teardownWorkspaceFn' | 'getKeepHistoryFilePathFn'>> & {
|
|
4
4
|
contextList: ContextList;
|
|
5
|
-
|
|
5
|
+
logger?: Logger;
|
|
6
6
|
};
|
|
7
|
-
export declare function executeStepsForContextList({ baseBranch, branchFn, lumpVariables, contextList, gitAddCommandFn, gitCommitCommandFn, gitPushCommandFn, gitCommitMessageFn, projectRoot, steps, setupFn, setupWorkspaceFn, teardownFn, teardownWorkspaceFn, getKeepHistoryFilePathFn,
|
|
7
|
+
export declare function executeStepsForContextList({ baseBranch, branchFn, lumpVariables, contextList, gitAddCommandFn, gitCommitCommandFn, gitPushCommandFn, gitCommitMessageFn, projectRoot, steps, setupFn, setupWorkspaceFn, teardownFn, teardownWorkspaceFn, getKeepHistoryFilePathFn, logger: loggerInput, }: ExecuteStepsForContextListParams): Promise<Failure<{
|
|
8
8
|
message: string;
|
|
9
9
|
}> | import("../../types").Success<{
|
|
10
10
|
branchName: string;
|
|
@@ -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,
|
|
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,EAIT,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjD,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CAAC,IAAI,CACxD,YAAY,EACV,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,CAAC,EAC7C,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;aAgEa,MAAM;;;;;IAyOrD;AAED,MAAM,MAAM,gCAAgC,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CodeBasePath } from '../../types';
|
|
2
|
-
export declare function getCodeBasePaths({ cwd, }: {
|
|
1
|
+
import { CodeBasePath, Logger } from '../../types';
|
|
2
|
+
export declare function getCodeBasePaths({ cwd, logger: loggerInput, }: {
|
|
3
3
|
cwd: string;
|
|
4
|
+
logger?: Logger;
|
|
4
5
|
}): Promise<import("../../types").Failure<{
|
|
5
6
|
message: string;
|
|
6
7
|
}> | import("../../types").Success<CodeBasePath[]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/getCodeBasePaths/main.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/getCodeBasePaths/main.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEnD,wBAAsB,gBAAgB,CAAC,EACnC,GAAG,EACH,MAAM,EAAE,WAAW,GACtB,EAAE;IACC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;;oDAoBA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContextStatus, LumpVariables } from "../../types";
|
|
1
|
+
import { ContextStatus, Logger, LumpVariables } from "../../types";
|
|
2
2
|
import { GitCommitMessageFn } from "../../types/GitCommitMessageFn";
|
|
3
3
|
export declare function getContextStatus(params: {
|
|
4
4
|
contextName: string;
|
|
@@ -8,6 +8,6 @@ export declare function getContextStatus(params: {
|
|
|
8
8
|
lumpVariables?: LumpVariables;
|
|
9
9
|
contextVariables?: Record<string, string>;
|
|
10
10
|
remoteName?: string;
|
|
11
|
-
|
|
11
|
+
logger?: Logger;
|
|
12
12
|
}): Promise<ContextStatus>;
|
|
13
13
|
//# 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,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
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,MAAM,EAAE;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,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,CA6EzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetContextListFn, LumpVariables } from "../../types";
|
|
1
|
+
import { GetContextListFn, Logger, LumpVariables } from "../../types";
|
|
2
2
|
import { GitCommitMessageFn } from "../../types/GitCommitMessageFn";
|
|
3
3
|
export declare function getToDoContextList(params: {
|
|
4
4
|
getContextListFn: GetContextListFn;
|
|
@@ -6,6 +6,7 @@ export declare function getToDoContextList(params: {
|
|
|
6
6
|
gitCommitMessageFn: GitCommitMessageFn;
|
|
7
7
|
projectRoot: string;
|
|
8
8
|
baseBranch: string;
|
|
9
|
+
logger?: Logger;
|
|
9
10
|
}): Promise<import("../../types").Failure<{
|
|
10
11
|
message: string;
|
|
11
12
|
}> | import("../../types").Success<import("../../types").Context[]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/helpers/getToDoContextList/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
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,MAAM,EAAE;IAC7C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;;qEA8DA"}
|