@lumpcode/cli-types 0.0.11 → 0.0.13

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 (2) hide show
  1. package/dist/index.d.ts +8 -4
  2. package/package.json +3 -2
package/dist/index.d.ts CHANGED
@@ -45,8 +45,12 @@ type ContextMatchFn = (params: {
45
45
 
46
46
  type ContextOptionsFn = (contextWithoutOptions: Omit<Context, 'options'>) => MaybePromise<Maybe<Context['options']>>;
47
47
 
48
- type LumpJsConfigSteps = Array<LumpJsConfigStep | ((input: Exclude<PromptFnInput, 'stepVariables'>) => MaybePromise<LumpJsConfigSteps>) | LumpJsConfigStep['promptTemplate']>;
48
+ type LumpJsConfigStepsFn = (input: Omit<PromptFnInput, 'stepVariables'>) => MaybePromise<LumpJsConfigSteps | LumpJsConfigStepsItem>;
49
+ type StepFn = LumpJsConfigStepsFn;
50
+ type LumpJsConfigStepsItem = LumpJsConfigStep | LumpJsConfigStepsFn | LumpJsConfigStep['promptTemplate'];
51
+ type LumpJsConfigSteps = Array<LumpJsConfigStepsItem>;
49
52
 
53
+ type LumpJsConfigSoloStep = LumpJsConfigStep | LumpJsConfigStep['promptTemplate'] | LumpJsConfigStep['promptFn'];
50
54
  type LumpJsConfig<V extends LumpVariables = LumpVariables> = MergeObjs<Omit<{
51
55
  [K in keyof RunLumpInput<V>]?: NonNullable<RunLumpInput<V>[K]> extends Function ? (RunLumpInput<V>[K] | FilePath) : RunLumpInput<V>[K];
52
56
  }, 'gitCommitMessageFn' | 'projectRoot' | 'branchFn' | 'baseBranch' | 'setupWorkspaceFn' | 'teardownWorkspaceFn' | 'gitAddCommandFn' | 'gitCommitCommandFn' | 'gitPushCommandFn'>, {
@@ -59,8 +63,8 @@ type LumpJsConfig<V extends LumpVariables = LumpVariables> = MergeObjs<Omit<{
59
63
  contextOptionsFn?: FilePath | ContextOptionsFn;
60
64
  disabled?: boolean | (() => MaybePromise<boolean>) | FilePath;
61
65
  maximumNumberOfConcurrentBranches?: number;
62
- prompt?: LumpJsConfigStep | LumpJsConfigStep['promptTemplate'] | LumpJsConfigStep['promptFn'];
63
- steps?: LumpJsConfigSteps;
66
+ prompt?: LumpJsConfigSoloStep;
67
+ steps?: LumpJsConfigSteps | LumpJsConfigStepsItem;
64
68
  registerCommands?: string[];
65
69
  keepHistory?: boolean;
66
70
  verbose?: boolean;
@@ -151,4 +155,4 @@ interface ProjectConfig {
151
155
  }
152
156
 
153
157
  export { defineBranchFn, defineCommand, defineCommandModule, defineCommandSetup, defineCommandTeardown, defineConfig, defineContextMatchFn, defineContextOptionsFn, defineGetContextListFn, defineGitAddCommandFn, defineGitCommitCommandFn, defineGitCommitMessageFn, defineGitPushCommandFn, definePostCommandExecFn, definePromptFn, defineSetupFn, defineStep, defineTeardownFn };
154
- export type { CommandModule, CommandTag, ContextMatchFn, ContextOptionsFn, FilePath, FilePathOrString, LocalConfig, LumpJsConfig, LumpJsConfigStep, LumpJsConfigSteps, LumpJsonConfig, LumpJsonConfigStep, MergeObjs, Mode, ProjectConfig };
158
+ export type { CommandModule, CommandTag, ContextMatchFn, ContextOptionsFn, FilePath, FilePathOrString, LocalConfig, LumpJsConfig, LumpJsConfigStep, LumpJsConfigSteps, LumpJsConfigStepsFn, LumpJsConfigStepsItem, LumpJsonConfig, LumpJsonConfigStep, MergeObjs, Mode, ProjectConfig, StepFn };
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@lumpcode/cli-types",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "Types and defineX helpers for Lumpcode CLI lump config and command modules",
5
5
  "keywords": [
6
6
  "lumpcode",
7
7
  "typescript",
8
8
  "types",
9
9
  "cli",
10
+ "loop-engineering",
10
11
  "agent-loop",
11
12
  "coding-agent",
12
13
  "lump-config"
@@ -36,7 +37,7 @@
36
37
  "build": "rollup -c"
37
38
  },
38
39
  "dependencies": {
39
- "@lumpcode/core": "^0.0.11"
40
+ "@lumpcode/core": "^0.0.13"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@rollup/plugin-commonjs": "^28.0.1",