swytchcode 2.5.0 → 2.5.1

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.
package/bin/swytchcode.js CHANGED
@@ -267,6 +267,11 @@ const isNpx =
267
267
 
268
268
  const userArgs = process.argv.slice(2);
269
269
 
270
+ // Legacy support: npx swytchcode <canonical_id> → npx swytchcode exec <canonical_id>
271
+ if (userArgs.length > 0 && /^[\w]+\.[\w.]+$/.test(userArgs[0]) && !userArgs[0].startsWith('-')) {
272
+ userArgs.unshift('exec');
273
+ }
274
+
270
275
  // ─── Normal pass-through (not npx, or npx with args) ────────────────────────
271
276
  if (!isNpx || userArgs.length > 0) {
272
277
  const result = spawnBin(binPath, userArgs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swytchcode",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Execution authority layer for API integrations",
5
5
  "keywords": [
6
6
  "api",
@@ -23,11 +23,11 @@
23
23
  "README.md"
24
24
  ],
25
25
  "optionalDependencies": {
26
- "swytchcode-cli-darwin-arm64": "2.5.0",
27
- "swytchcode-cli-darwin-x64": "2.5.0",
28
- "swytchcode-cli-linux-arm64": "2.5.0",
29
- "swytchcode-cli-linux-x64": "2.5.0",
30
- "swytchcode-cli-win32-arm64": "2.5.0",
31
- "swytchcode-cli-win32-x64": "2.5.0"
26
+ "swytchcode-cli-darwin-arm64": "2.5.1",
27
+ "swytchcode-cli-darwin-x64": "2.5.1",
28
+ "swytchcode-cli-linux-arm64": "2.5.1",
29
+ "swytchcode-cli-linux-x64": "2.5.1",
30
+ "swytchcode-cli-win32-arm64": "2.5.1",
31
+ "swytchcode-cli-win32-x64": "2.5.1"
32
32
  }
33
33
  }