slopcode 0.0.0-dev-202603042323 → 0.0.0-dev-202603221603

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 (3) hide show
  1. package/README.md +1 -1
  2. package/bin/slopcode +14 -1
  3. package/package.json +13 -13
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm version](https://img.shields.io/npm/v/slopcode?style=flat-square)](https://www.npmjs.com/package/slopcode)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/slopcode?style=flat-square)](https://www.npmjs.com/package/slopcode)
5
5
 
6
- SlopCode is the open source AI coding agent focused on terminal workflows.
6
+ SlopCode is the open source AI slopcoding agent focused on terminal workflows.
7
7
 
8
8
  ## Install
9
9
 
package/bin/slopcode CHANGED
@@ -151,6 +151,19 @@ function names(prefix) {
151
151
 
152
152
  const resolvedNames = Array.from(new Set([...names("slopcode-bin"), ...names("slopcode")]))
153
153
 
154
+ function resolveBinary() {
155
+ for (const name of resolvedNames) {
156
+ try {
157
+ const candidate = require.resolve(`${name}/bin/${binary}`, {
158
+ paths: [scriptDir],
159
+ })
160
+ if (fs.existsSync(candidate)) return candidate
161
+ } catch {
162
+ continue
163
+ }
164
+ }
165
+ }
166
+
154
167
  function findBinary(startDir) {
155
168
  let current = startDir
156
169
  for (;;) {
@@ -169,7 +182,7 @@ function findBinary(startDir) {
169
182
  }
170
183
  }
171
184
 
172
- const resolved = findBinary(scriptDir)
185
+ const resolved = resolveBinary() || findBinary(scriptDir)
173
186
  if (!resolved) {
174
187
  console.error(
175
188
  "It seems that your package manager failed to install the right version of the slopcode CLI for your platform. You can try manually installing " +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slopcode",
3
- "description": "The open source AI coding agent.",
3
+ "description": "The open source AI slopcoding agent.",
4
4
  "homepage": "https://slopcode.dev",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,19 +34,19 @@
34
34
  "scripts": {
35
35
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
36
36
  },
37
- "version": "0.0.0-dev-202603042323",
37
+ "version": "0.0.0-dev-202603221603",
38
38
  "license": "MIT",
39
39
  "optionalDependencies": {
40
- "slopcode-bin-linux-x64": "0.0.0-dev-202603042323",
41
- "slopcode-bin-linux-x64-baseline-musl": "0.0.0-dev-202603042323",
42
- "slopcode-bin-windows-x64-baseline": "0.0.0-dev-202603042323",
43
- "slopcode-bin-linux-x64-baseline": "0.0.0-dev-202603042323",
44
- "slopcode-bin-windows-x64": "0.0.0-dev-202603042323",
45
- "slopcode-bin-darwin-x64-baseline": "0.0.0-dev-202603042323",
46
- "slopcode-bin-darwin-arm64": "0.0.0-dev-202603042323",
47
- "slopcode-bin-linux-x64-musl": "0.0.0-dev-202603042323",
48
- "slopcode-bin-darwin-x64": "0.0.0-dev-202603042323",
49
- "slopcode-bin-linux-arm64-musl": "0.0.0-dev-202603042323",
50
- "slopcode-bin-linux-arm64": "0.0.0-dev-202603042323"
40
+ "slopcode-bin-linux-x64-baseline-musl": "0.0.0-dev-202603221603",
41
+ "slopcode-bin-darwin-x64-baseline": "0.0.0-dev-202603221603",
42
+ "slopcode-bin-linux-arm64-musl": "0.0.0-dev-202603221603",
43
+ "slopcode-bin-darwin-x64": "0.0.0-dev-202603221603",
44
+ "slopcode-bin-windows-x64": "0.0.0-dev-202603221603",
45
+ "slopcode-bin-windows-x64-baseline": "0.0.0-dev-202603221603",
46
+ "slopcode-bin-linux-x64-baseline": "0.0.0-dev-202603221603",
47
+ "slopcode-bin-linux-x64-musl": "0.0.0-dev-202603221603",
48
+ "slopcode-bin-linux-arm64": "0.0.0-dev-202603221603",
49
+ "slopcode-bin-darwin-arm64": "0.0.0-dev-202603221603",
50
+ "slopcode-bin-linux-x64": "0.0.0-dev-202603221603"
51
51
  }
52
52
  }