wile 0.4.0 → 0.4.2

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/cli.js +11 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7878,6 +7878,17 @@ var resolveAgentDir = () => {
7878
7878
  if (override && existsSync3(override)) {
7879
7879
  return override;
7880
7880
  }
7881
+ const initCwd = process.env.INIT_CWD;
7882
+ if (initCwd) {
7883
+ const initAgentDir = join3(initCwd, "packages", "agent");
7884
+ if (existsSync3(initAgentDir)) {
7885
+ return initAgentDir;
7886
+ }
7887
+ }
7888
+ const cwdAgentDir = join3(process.cwd(), "packages", "agent");
7889
+ if (existsSync3(cwdAgentDir)) {
7890
+ return cwdAgentDir;
7891
+ }
7881
7892
  const here = dirname(fileURLToPath(import.meta.url));
7882
7893
  const cliRoot = resolve(here, "..", "..", "..");
7883
7894
  const agentDir = join3(cliRoot, "..", "agent");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wile",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Autonomous AI coding agent that ships features while you sleep",
5
5
  "type": "module",
6
6
  "bin": {