@swifty.js/larky 0.0.11-alpha → 0.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swifty.js/larky",
3
- "version": "0.0.11-alpha",
3
+ "version": "0.0.12",
4
4
  "description": "Larky - Dual CLI coding agent",
5
5
  "keywords": [
6
6
  "ai",
@@ -22,7 +22,8 @@
22
22
  },
23
23
  "bin": {
24
24
  "swifty": "src/swifty.js",
25
- "swiftx": "src/swiftx.js"
25
+ "swiftx": "src/swiftx.js",
26
+ "larky": "src/larky.js"
26
27
  },
27
28
  "files": [
28
29
  "src"
@@ -32,12 +33,12 @@
32
33
  "access": "public"
33
34
  },
34
35
  "dependencies": {
35
- "@swifty.js/swifty": "0.0.8",
36
+ "@swifty.js/swifty": "0.0.9",
36
37
  "@swifty.js/swiftx": "0.0.5"
37
38
  },
38
39
  "devDependencies": {},
39
40
  "scripts": {
40
- "add:user": "npm adduser --registry=https://registry.npmjs.org/",
41
+ "add:user": "pnpm adduser --registry=https://registry.npmjs.org/",
41
42
  "publish:latest": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/",
42
43
  "publish:alpha": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/ --tag alpha",
43
44
  "publish:beta": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/ --tag beta",
package/src/larky.js ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ const entry = Math.random() < 0.5 ? "./swifty.js" : "./swiftx.js";
3
+
4
+ // await import(entry)
5
+
6
+ (async () => {
7
+ await import(entry);
8
+ })();
package/src/swiftx.js CHANGED
@@ -4,4 +4,9 @@ import { pathToFileURL } from "node:url";
4
4
 
5
5
  const require = createRequire(import.meta.url);
6
6
  const entry = require.resolve("@swifty.js/swiftx/src/index.js");
7
- await import(pathToFileURL(entry).href);
7
+
8
+ // await import(pathToFileURL(entry).href);
9
+
10
+ (async () => {
11
+ await import(pathToFileURL(entry).href);
12
+ })();
package/src/swifty.js CHANGED
@@ -4,4 +4,9 @@ import { pathToFileURL } from "node:url";
4
4
 
5
5
  const require = createRequire(import.meta.url);
6
6
  const entry = require.resolve("@swifty.js/swifty/dist/main.js");
7
- await import(pathToFileURL(entry).href);
7
+
8
+ // await import(pathToFileURL(entry).href);
9
+
10
+ (async () => {
11
+ await import(pathToFileURL(entry).href);
12
+ })();