@lumpcode/core 0.0.12 → 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.
@@ -1,2 +1,3 @@
1
1
  export * from './main';
2
+ export * from './windowsNpmCmdShimBody';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/resolveSpawnExecutable/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/resolveSpawnExecutable/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,yBAAyB,CAAC"}
@@ -5,6 +5,10 @@ export type ResolvedSpawnCommand = {
5
5
  /**
6
6
  * Resolves bare executable names on Windows so npm-style `.cmd` shims and
7
7
  * extensionless Node entrypoints work with `child_process.spawn` (no shell).
8
+ *
9
+ * For Node agent CLIs installed via npm (copilot.cmd, cursor-agent.cmd, …),
10
+ * unwraps the shim to `node <entry.js> …args` so prompt argv is not mangled by
11
+ * cmd.exe / `%*`. Unrecognized `.cmd`/`.bat` files still wrap through cmd.exe.
8
12
  */
9
13
  export declare function resolveSpawnExecutable(executable: string, args: string[]): ResolvedSpawnCommand;
10
14
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/resolveSpawnExecutable/main.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAyFF;;;GAGG;AACH,wBAAgB,sBAAsB,CAClC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EAAE,GACf,oBAAoB,CAiCtB"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/utils/resolveSpawnExecutable/main.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AA2KF;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAClC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EAAE,GACf,oBAAoB,CAwCtB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Minimal npm-cmd-shim `.cmd` body (modern `"%_prog%"` + `"%dp0%\\…\\.js" %*` form).
3
+ * Shared by resolveSpawnExecutable / execBinary unit tests — do not duplicate.
4
+ */
5
+ export declare function npmCmdShimBody(relativeJsFromShimDir: string): string;
6
+ //# sourceMappingURL=npmCmdShimFixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npmCmdShimFixture.d.ts","sourceRoot":"","sources":["../../../src/utils/resolveSpawnExecutable/npmCmdShimFixture.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAsBpE"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Minimal Windows npm-cmd-shim `.cmd` body (modern `"%_prog%"` + `"%dp0%\\…\\.js" %*` form).
3
+ * Shared by core spawn tests and CLI e2e path-agent install — do not duplicate.
4
+ */
5
+ export declare function windowsNpmCmdShimBody(relativeJsFromShimDir: string): string;
6
+ //# sourceMappingURL=windowsNpmCmdShimBody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"windowsNpmCmdShimBody.d.ts","sourceRoot":"","sources":["../../../src/utils/resolveSpawnExecutable/windowsNpmCmdShimBody.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAsB3E"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Minimal Windows npm-cmd-shim `.cmd` body (modern `"%_prog%"` + `"%dp0%\\…\\.js" %*` form).
3
+ * Shared by resolveSpawnExecutable / execBinary unit tests — do not duplicate.
4
+ */
5
+ export declare function windowsNpmCmdShimBody(relativeJsFromShimDir: string): string;
6
+ //# sourceMappingURL=windowsNpmCmdShimFixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"windowsNpmCmdShimFixture.d.ts","sourceRoot":"","sources":["../../../src/utils/resolveSpawnExecutable/windowsNpmCmdShimFixture.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAsB3E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumpcode/core",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Core engine for Lumpcode agent loops — runLump orchestrates prompts across contexts with git-tracked progress",
5
5
  "keywords": [
6
6
  "lumpcode",