@lumpcode/core 0.0.9 → 0.0.11

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 (38) hide show
  1. package/dist/helpers/executeStepsForContextList/main.d.ts.map +1 -1
  2. package/dist/helpers/getContextStatus/main.d.ts.map +1 -1
  3. package/dist/index.cjs +35 -52
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.js +35 -51
  6. package/dist/index.js.map +1 -1
  7. package/dist/utils/appendMissingGitignoreLines/index.d.ts +2 -0
  8. package/dist/utils/appendMissingGitignoreLines/index.d.ts.map +1 -0
  9. package/dist/utils/appendMissingGitignoreLines/main.d.ts +6 -0
  10. package/dist/utils/appendMissingGitignoreLines/main.d.ts.map +1 -0
  11. package/dist/utils/historyFile/main.d.ts.map +1 -1
  12. package/dist/utils/index.d.ts +2 -3
  13. package/dist/utils/index.d.ts.map +1 -1
  14. package/dist/utils/isProcessAlive/index.d.ts +2 -0
  15. package/dist/utils/isProcessAlive/index.d.ts.map +1 -0
  16. package/dist/utils/isProcessAlive/main.d.ts +6 -0
  17. package/dist/utils/isProcessAlive/main.d.ts.map +1 -0
  18. package/dist/utils/nodeErrnoCode/index.d.ts +2 -0
  19. package/dist/utils/nodeErrnoCode/index.d.ts.map +1 -0
  20. package/dist/utils/nodeErrnoCode/main.d.ts +3 -0
  21. package/dist/utils/nodeErrnoCode/main.d.ts.map +1 -0
  22. package/dist/utils/parseGitLogHashSubjectLines/index.d.ts +2 -0
  23. package/dist/utils/parseGitLogHashSubjectLines/index.d.ts.map +1 -0
  24. package/dist/utils/parseGitLogHashSubjectLines/main.d.ts +7 -0
  25. package/dist/utils/parseGitLogHashSubjectLines/main.d.ts.map +1 -0
  26. package/dist/utils/pathExists/index.d.ts +2 -0
  27. package/dist/utils/pathExists/index.d.ts.map +1 -0
  28. package/dist/utils/pathExists/main.d.ts +3 -0
  29. package/dist/utils/pathExists/main.d.ts.map +1 -0
  30. package/dist/utils/readJsonFile/index.d.ts +2 -0
  31. package/dist/utils/readJsonFile/index.d.ts.map +1 -0
  32. package/dist/utils/readJsonFile/main.d.ts +21 -0
  33. package/dist/utils/readJsonFile/main.d.ts.map +1 -0
  34. package/dist/utils/resolveBundledAssetPath/index.d.ts +2 -0
  35. package/dist/utils/resolveBundledAssetPath/index.d.ts.map +1 -0
  36. package/dist/utils/resolveBundledAssetPath/main.d.ts +3 -0
  37. package/dist/utils/resolveBundledAssetPath/main.d.ts.map +1 -0
  38. package/package.json +1 -1
@@ -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/utils/appendMissingGitignoreLines/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { Failure, Success } from '../../types';
2
+ export declare function appendMissingGitignoreLines(input: {
3
+ projectRoot: string;
4
+ lines: readonly string[];
5
+ }): Promise<Success<void> | Failure<string>>;
6
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/appendMissingGitignoreLines/main.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKpD,wBAAsB,2BAA2B,CAAC,KAAK,EAAE;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAsB3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/historyFile/main.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KA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AAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAiBrD;AAED,wBAAsB,gBAAgB,CAAC,EACnC,QAAQ,EACR,OAAO,GACV,EAAE;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,YAAY,EAAE,CAAC;CAC3B,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAc3C;AAED,wBAAsB,kBAAkB,CAAC,EACrC,QAAQ,EACR,KAAK,GACR,EAAE;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,YAAY,CAAC;CACvB,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAsB3C"}
@@ -1,12 +1,11 @@
1
1
  export * from './set';
2
2
  export * from './success';
3
3
  export * from './failure';
4
- export * from './decision';
5
4
  export * from './shellSingleQuote';
6
- export * from './shellBestEffort';
7
5
  export * from './resolveSpawnExecutable';
8
6
  export * from './createConsoleLogger';
9
- export * from './noopLogger';
10
7
  export * from './formatExecFailureMessage';
11
8
  export * from './historyFile';
9
+ export * from './pathExists';
10
+ export * from './parseGitLogHashSubjectLines';
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,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/utils/isProcessAlive/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type IsProcessAliveOptions = {
2
+ onProbeError?: 'throw' | 'alive' | 'dead';
3
+ };
4
+ /** Returns whether a process id is still running (signal 0 probe). */
5
+ export declare function isProcessAlive(pid: number, options?: IsProcessAliveOptions): boolean;
6
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/isProcessAlive/main.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG;IAChC,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;CAC7C,CAAC;AAEF,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAUpF"}
@@ -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/utils/nodeErrnoCode/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Node-style `code` from a caught unknown error (e.g. `ENOENT`), or undefined. */
2
+ export declare function nodeErrnoCode(error: unknown): string | undefined;
3
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/nodeErrnoCode/main.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAMhE"}
@@ -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/utils/parseGitLogHashSubjectLines/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type GitLogHashSubjectLine = {
2
+ hash: string;
3
+ subject: string;
4
+ };
5
+ /** Parses `git log --format='%H %s'` lines into commit hash and subject pairs. */
6
+ export declare function parseGitLogHashSubjectLines(stdout: string): GitLogHashSubjectLine[];
7
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/parseGitLogHashSubjectLines/main.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,kFAAkF;AAClF,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,qBAAqB,EAAE,CAYnF"}
@@ -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/utils/pathExists/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Returns whether `filePath` is accessible to this process (typically exists). */
2
+ export declare function pathExists(filePath: string): Promise<boolean>;
3
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/pathExists/main.ts"],"names":[],"mappings":"AAEA,mFAAmF;AACnF,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOnE"}
@@ -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/utils/readJsonFile/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { Failure, Success } from '../../types';
2
+ export type ReadJsonFileIfMissing<T> = 'fail' | 'undefined' | {
3
+ defaultValue: T;
4
+ };
5
+ type ReadJsonFileBaseInput = {
6
+ filePath: string;
7
+ missingFileFailure?: string;
8
+ };
9
+ export declare function readJsonFile<T>(input: ReadJsonFileBaseInput & {
10
+ ifMissing: 'undefined';
11
+ }): Promise<Success<T | undefined> | Failure<string>>;
12
+ export declare function readJsonFile<T>(input: ReadJsonFileBaseInput & {
13
+ ifMissing: {
14
+ defaultValue: T;
15
+ };
16
+ }): Promise<Success<T> | Failure<string>>;
17
+ export declare function readJsonFile<T>(input: ReadJsonFileBaseInput & {
18
+ ifMissing?: 'fail';
19
+ }): Promise<Success<T> | Failure<string>>;
20
+ export {};
21
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/readJsonFile/main.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKpD,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI,MAAM,GAAG,WAAW,GAAG;IAAE,YAAY,EAAE,CAAC,CAAA;CAAE,CAAC;AAElF,KAAK,qBAAqB,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,wBAAsB,YAAY,CAAC,CAAC,EAChC,KAAK,EAAE,qBAAqB,GAAG;IAAE,SAAS,EAAE,WAAW,CAAA;CAAE,GAC1D,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;AACrD,wBAAsB,YAAY,CAAC,CAAC,EAChC,KAAK,EAAE,qBAAqB,GAAG;IAAE,SAAS,EAAE;QAAE,YAAY,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,GAClE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;AACzC,wBAAsB,YAAY,CAAC,CAAC,EAChC,KAAK,EAAE,qBAAqB,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACtD,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { resolveBundledAssetPath } from './main';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/resolveBundledAssetPath/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Resolves a path to CLI-shipped assets (schemas, presets, sidecars) in SEA, ncc bundle, or dev source layouts. */
2
+ export declare function resolveBundledAssetPath(callerDir: string, bundledRelativePath: string, devSourceRelativePath: string): string;
3
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/resolveBundledAssetPath/main.ts"],"names":[],"mappings":"AAIA,oHAAoH;AACpH,wBAAgB,uBAAuB,CACnC,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,qBAAqB,EAAE,MAAM,GAC9B,MAAM,CAIR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumpcode/core",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Core engine for Lumpcode agent loops — runLump orchestrates prompts across contexts with git-tracked progress",
5
5
  "keywords": [
6
6
  "lumpcode",