@wrongstack/cli 1.0.27 → 1.0.28

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.
@@ -16,7 +16,7 @@ var loaders = {
16
16
  tools: async () => (await import("./tools-skills-GH24UCBY.js")).toolsCmd,
17
17
  skills: async () => (await import("./tools-skills-GH24UCBY.js")).skillsCmd,
18
18
  "skill-suggest": async () => (await import("./skill-suggest-L2EVWB6R.js")).skillSuggestCmd,
19
- typesafe: async () => (await import("./typesafe-U7YB2RRV.js")).typesafeCmd,
19
+ typesafe: async () => (await import("./typesafe-WA5O3KVS.js")).typesafeCmd,
20
20
  providers: async () => (await import("./providers-models-5Z2PJTEW.js")).providersCmd,
21
21
  models: async () => (await import("./providers-models-5Z2PJTEW.js")).modelsCmd,
22
22
  mcp: async () => (await import("./mcp-LBS45HWZ.js")).mcpCmd,
@@ -55,4 +55,4 @@ export {
55
55
  subcommands,
56
56
  subcommandNames
57
57
  };
58
- //# sourceMappingURL=chunk-N57IU5FG.js.map
58
+ //# sourceMappingURL=chunk-3ZTLPNEQ.js.map
@@ -112,17 +112,20 @@ function normalizeTuiThinkingWord(value) {
112
112
  // src/services/run-git.ts
113
113
  import { spawn } from "node:child_process";
114
114
  import { toErrorMessage } from "@wrongstack/core/utils";
115
- async function runGit(args, cwd) {
115
+ async function runGit(args, cwd, env) {
116
116
  try {
117
117
  return await new Promise((resolve, reject) => {
118
118
  const child = spawn("git", args, {
119
119
  cwd,
120
+ ...env ? { env: { ...process.env, ...env } } : {},
120
121
  stdio: ["ignore", "pipe", "pipe"],
121
122
  signal: AbortSignal.timeout(3e4),
122
123
  windowsHide: true
123
124
  });
124
125
  let stdout = "";
125
126
  let stderr = "";
127
+ child.stdout?.setEncoding("utf8");
128
+ child.stderr?.setEncoding("utf8");
126
129
  child.stdout?.on("data", (d) => {
127
130
  stdout += d;
128
131
  });
@@ -154,4 +157,4 @@ export {
154
157
  normalizeTuiThinkingWord,
155
158
  runGit
156
159
  };
157
- //# sourceMappingURL=chunk-HDMFKTT3.js.map
160
+ //# sourceMappingURL=chunk-7IQWQCBH.js.map
@@ -22,7 +22,7 @@ async function handleHelpVersionShortCircuit(argv) {
22
22
  }
23
23
  if (earlyFlags["help"] === true) {
24
24
  if (positional.length > 0) {
25
- const { subcommandNames } = await import("./subcommands-BHQYLDSD.js");
25
+ const { subcommandNames } = await import("./subcommands-SRRB3RAS.js");
26
26
  if (subcommandNames.includes(positional[0])) {
27
27
  const first = positional[0];
28
28
  const deep = positional[1];
@@ -43,4 +43,4 @@ async function handleHelpVersionShortCircuit(argv) {
43
43
  export {
44
44
  handleHelpVersionShortCircuit
45
45
  };
46
- //# sourceMappingURL=chunk-HFZH2XJN.js.map
46
+ //# sourceMappingURL=chunk-L5TD7UIG.js.map
@@ -27,14 +27,14 @@ import {
27
27
  } from "./chunk-EWKESL4L.js";
28
28
  import {
29
29
  subcommands
30
- } from "./chunk-N57IU5FG.js";
30
+ } from "./chunk-3ZTLPNEQ.js";
31
31
  import {
32
32
  renderDeepHelp,
33
33
  renderFocusedHelp
34
34
  } from "./chunk-EPR42SWM.js";
35
35
  import {
36
36
  handleHelpVersionShortCircuit
37
- } from "./chunk-HFZH2XJN.js";
37
+ } from "./chunk-L5TD7UIG.js";
38
38
  import {
39
39
  DEFAULT_PORT
40
40
  } from "./chunk-ENRYW73H.js";
@@ -3442,4 +3442,4 @@ async function initializeCli(argv) {
3442
3442
  export {
3443
3443
  initializeCli
3444
3444
  };
3445
- //# sourceMappingURL=cli-context-C7RBSWHF.js.map
3445
+ //# sourceMappingURL=cli-context-O2SHBDFH.js.map