@lumpcode/cli-types 0.1.1 → 0.2.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.
package/dist/index.cjs CHANGED
@@ -36,15 +36,13 @@ function defineGetContextListFn(fn) {
36
36
  return fn;
37
37
  }
38
38
 
39
- const defineGitAddCommandFn = (identity);
40
-
41
- const defineGitCommitCommandFn = (identity);
39
+ const defineGitAddCommitFn = (identity);
42
40
 
43
41
  function defineGitCommitMessageFn(fn) {
44
42
  return fn;
45
43
  }
46
44
 
47
- const defineGitPushCommandFn = (identity);
45
+ const defineGitPushFn = (identity);
48
46
 
49
47
  function definePostCommandExecFn(fn) {
50
48
  return fn;
@@ -75,10 +73,9 @@ exports.defineConfig = defineConfig;
75
73
  exports.defineContextMatchFn = defineContextMatchFn;
76
74
  exports.defineContextOptionsFn = defineContextOptionsFn;
77
75
  exports.defineGetContextListFn = defineGetContextListFn;
78
- exports.defineGitAddCommandFn = defineGitAddCommandFn;
79
- exports.defineGitCommitCommandFn = defineGitCommitCommandFn;
76
+ exports.defineGitAddCommitFn = defineGitAddCommitFn;
80
77
  exports.defineGitCommitMessageFn = defineGitCommitMessageFn;
81
- exports.defineGitPushCommandFn = defineGitPushCommandFn;
78
+ exports.defineGitPushFn = defineGitPushFn;
82
79
  exports.definePostCommandExecFn = definePostCommandExecFn;
83
80
  exports.definePromptFn = definePromptFn;
84
81
  exports.defineSetupFn = defineSetupFn;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { LumpVariables, BranchFn, StepVariables, CommandFn, SetupFn, TeardownFn, ContextList, MaybePromise, PromptFnInput, PostCommandExecFn, Step, PromptFn, CodeBasePath, Maybe, Context, GetContextListFnOutput, RunLumpInput, GitAddCommandFn, GitCommitCommandFn, GitCommitMessageFn, GitPushCommandFn } from '@lumpcode/core';
2
- export { AsyncFnSuccess, BranchFn, CodeBasePath, CommandFn, Context, ContextList, ContextRunState, ContextStatus, ExtractSuccess, GetContextListFnOutput, GitAddCommandFn, GitCommitCommandFn, GitCommitMessageFn, GitPushCommandFn, LumpVariables, Maybe, MaybePromise, PostCommandExecFn, PromptFn, PromptFnInput, SetupFn, Step, StepVariables, Steps, TeardownFn } from '@lumpcode/core';
1
+ import { LumpVariables, BranchFn, StepVariables, CommandFn, SetupFn, TeardownFn, ContextList, MaybePromise, PromptFnInput, PostCommandExecFn, Step, PromptFn, CodeBasePath, Maybe, Context, GetContextListFnOutput, RunLumpInput, GitAddCommitFn, GitCommitMessageFn, GitPushFn } from '@lumpcode/core';
2
+ export { AsyncFnSuccess, BranchFn, CodeBasePath, CommandFn, Context, ContextList, ContextRunState, ContextStatus, ExtractSuccess, GetContextListFnOutput, GitAddCommitFn, GitCommitMessageFn, GitPushFn, LumpVariables, Maybe, MaybePromise, PostCommandExecFn, PromptFn, PromptFnInput, SetupFn, Step, StepVariables, Steps, TeardownFn } from '@lumpcode/core';
3
3
  import * as z from 'zod';
4
4
 
5
5
  declare function defineBranchFn<V extends LumpVariables = LumpVariables>(fn: NoInfer<BranchFn<V>>): BranchFn<V>;
@@ -75,7 +75,7 @@ type GetContextListFn<V extends LumpVariables = LumpVariables> = (params: GetCon
75
75
  type LumpJsConfigSoloStep<V extends LumpVariables = LumpVariables, SV extends StepVariables = StepVariables> = LumpJsConfigStep<V, SV> | LumpJsConfigStep<V, SV>['promptTemplate'] | LumpJsConfigStep<V, SV>['promptFn'];
76
76
  type LumpJsConfig<V extends LumpVariables = LumpVariables, SV extends StepVariables = StepVariables> = MergeObjs<Omit<{
77
77
  [K in keyof RunLumpInput<V, SV>]?: NonNullable<RunLumpInput<V, SV>[K]> extends Function ? (RunLumpInput<V, SV>[K] | FilePath) : RunLumpInput<V, SV>[K];
78
- }, 'gitCommitMessageFn' | 'projectRoot' | 'branchFn' | 'baseBranch' | 'setupWorkspaceFn' | 'teardownWorkspaceFn' | 'gitAddCommandFn' | 'gitCommitCommandFn' | 'gitPushCommandFn' | 'getContextListFn' | 'refreshRemoteTrackingRefsFn'>, {
78
+ }, 'gitCommitMessageFn' | 'projectRoot' | 'branchFn' | 'baseBranch' | 'setupWorkspaceFn' | 'teardownWorkspaceFn' | 'gitAddCommitFn' | 'gitPushFn' | 'getContextListFn' | 'refreshRemoteTrackingRefsFn'>, {
79
79
  /**
80
80
  * Execution integration branch. Exact string, `BaseBranchFn`, or FilePath to a module.
81
81
  * Omit → concrete effective discovery branch. Pattern strings are rejected at resolve.
@@ -110,13 +110,11 @@ declare const defineContextOptionsFn: (e: ContextOptionsFn) => ContextOptionsFn;
110
110
 
111
111
  declare function defineGetContextListFn<V extends LumpVariables = LumpVariables>(fn: NoInfer<GetContextListFn<V>>): GetContextListFn<V>;
112
112
 
113
- declare const defineGitAddCommandFn: (e: GitAddCommandFn) => GitAddCommandFn;
114
-
115
- declare const defineGitCommitCommandFn: (e: GitCommitCommandFn) => GitCommitCommandFn;
113
+ declare const defineGitAddCommitFn: (e: GitAddCommitFn) => GitAddCommitFn;
116
114
 
117
115
  declare function defineGitCommitMessageFn<V extends LumpVariables = LumpVariables>(fn: NoInfer<GitCommitMessageFn<V>>): GitCommitMessageFn<V>;
118
116
 
119
- declare const defineGitPushCommandFn: (e: GitPushCommandFn) => GitPushCommandFn;
117
+ declare const defineGitPushFn: (e: GitPushFn) => GitPushFn;
120
118
 
121
119
  declare function definePostCommandExecFn<V extends LumpVariables = LumpVariables, SV extends StepVariables = StepVariables>(fn: NoInfer<LumpJsConfigPostCommandExecFn<V, SV>>): LumpJsConfigPostCommandExecFn<V, SV>;
122
120
 
@@ -197,5 +195,5 @@ type ProjectJsonConfig = Pick<ResolvedProjectLocalConfig, 'projectName' | 'prima
197
195
  */
198
196
  type ProjectConfig = ProjectJsonConfig;
199
197
 
200
- export { defineBranchFn, defineCommand, defineCommandModule, defineCommandSetup, defineCommandTeardown, defineConfig, defineContextMatchFn, defineContextOptionsFn, defineGetContextListFn, defineGitAddCommandFn, defineGitCommitCommandFn, defineGitCommitMessageFn, defineGitPushCommandFn, definePostCommandExecFn, definePromptFn, defineSetupFn, defineStep, defineTeardownFn };
198
+ export { defineBranchFn, defineCommand, defineCommandModule, defineCommandSetup, defineCommandTeardown, defineConfig, defineContextMatchFn, defineContextOptionsFn, defineGetContextListFn, defineGitAddCommitFn, defineGitCommitMessageFn, defineGitPushFn, definePostCommandExecFn, definePromptFn, defineSetupFn, defineStep, defineTeardownFn };
201
199
  export type { BaseBranchFn, BaseBranchFnInput, CommandModule, CommandTag, ContextMatchFn, ContextOptionsFn, FilePath, FilePathOrString, GetContextListFn, GetContextListFnInput, LocalConfig, LumpJsConfig, LumpJsConfigPostCommandExecFn, LumpJsConfigStep, LumpJsConfigSteps, LumpJsConfigStepsFn, LumpJsConfigStepsItem, LumpJsonConfig, LumpJsonConfigStep, MergeObjs, Mode, ProjectConfig, StepFn };
package/dist/index.js CHANGED
@@ -34,15 +34,13 @@ function defineGetContextListFn(fn) {
34
34
  return fn;
35
35
  }
36
36
 
37
- const defineGitAddCommandFn = (identity);
38
-
39
- const defineGitCommitCommandFn = (identity);
37
+ const defineGitAddCommitFn = (identity);
40
38
 
41
39
  function defineGitCommitMessageFn(fn) {
42
40
  return fn;
43
41
  }
44
42
 
45
- const defineGitPushCommandFn = (identity);
43
+ const defineGitPushFn = (identity);
46
44
 
47
45
  function definePostCommandExecFn(fn) {
48
46
  return fn;
@@ -64,4 +62,4 @@ function defineTeardownFn(fn) {
64
62
  return fn;
65
63
  }
66
64
 
67
- export { defineBranchFn, defineCommand, defineCommandModule, defineCommandSetup, defineCommandTeardown, defineConfig, defineContextMatchFn, defineContextOptionsFn, defineGetContextListFn, defineGitAddCommandFn, defineGitCommitCommandFn, defineGitCommitMessageFn, defineGitPushCommandFn, definePostCommandExecFn, definePromptFn, defineSetupFn, defineStep, defineTeardownFn };
65
+ export { defineBranchFn, defineCommand, defineCommandModule, defineCommandSetup, defineCommandTeardown, defineConfig, defineContextMatchFn, defineContextOptionsFn, defineGetContextListFn, defineGitAddCommitFn, defineGitCommitMessageFn, defineGitPushFn, definePostCommandExecFn, definePromptFn, defineSetupFn, defineStep, defineTeardownFn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumpcode/cli-types",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Types and defineX helpers for Lumpcode CLI lump config and command modules",
5
5
  "keywords": [
6
6
  "lumpcode",
@@ -37,7 +37,7 @@
37
37
  "build": "rollup -c"
38
38
  },
39
39
  "dependencies": {
40
- "@lumpcode/core": "^0.1.1"
40
+ "@lumpcode/core": "^0.2.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@rollup/plugin-commonjs": "^28.0.1",