@swifty.js/larky 0.0.10 → 0.0.11-alpha

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 hangtiancheng
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,117 +1,49 @@
1
1
  {
2
2
  "name": "@swifty.js/larky",
3
- "version": "0.0.10",
4
- "description": "Larky - Dual-process CLI coding agent",
3
+ "version": "0.0.11-alpha",
4
+ "description": "Larky - Dual CLI coding agent",
5
5
  "keywords": [
6
6
  "ai",
7
7
  "cli",
8
8
  "coding-agent",
9
9
  "larky",
10
- "larky.js"
10
+ "swifty.js"
11
11
  ],
12
- "homepage": "https://github.com/hangtiancheng/larky-cli",
12
+ "homepage": "https://github.com/hangtiancheng/swifty-cli",
13
13
  "bugs": {
14
- "url": "https://github.com/hangtiancheng/larky-cli/issues"
14
+ "url": "https://github.com/hangtiancheng/swifty-cli/issues"
15
15
  },
16
16
  "license": "MIT",
17
17
  "author": "https://github.com/hangtiancheng",
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "https://github.com/hangtiancheng/larky-cli.git",
20
+ "url": "https://github.com/hangtiancheng/swifty-cli.git",
21
21
  "directory": "apps/larky"
22
22
  },
23
23
  "bin": {
24
- "larky": "dist/cli/main.js"
24
+ "swifty": "src/swifty.js",
25
+ "swiftx": "src/swiftx.js"
25
26
  },
26
27
  "files": [
27
- "dist",
28
- "README.md",
29
- "kill.mjs",
30
- "LICENSE",
31
- "PROTOCOL.md"
28
+ "src"
32
29
  ],
33
30
  "type": "module",
34
31
  "publishConfig": {
35
32
  "access": "public"
36
33
  },
37
- "scripts": {
38
- "fe:dev": "cd src/remote/fe && tsup --watch",
39
- "fe:build": "cd src/remote/fe && tsup",
40
- "fe:preview": "pnpm dlx serve src/remote/fe/dist",
41
- "build": "tsup",
42
- "typecheck": "tsc --noEmit -p tsconfig.json",
43
- "lint": "eslint ./scripts ./src ./tests",
44
- "lint:fix": "eslint --fix ./scripts ./src ./tests",
45
- "format": "oxfmt --write ./",
46
- "test": "vitest run",
47
- "test:watch": "vitest",
48
- "test:coverage": "vitest run --coverage",
49
- "doc": "tsx ./scripts/gen-protocol-doc.ts",
50
- "dev": "tsx ./src/dev.ts",
51
- "core": "tsx ./src/core/app.ts",
52
- "cli": "tsx ./src/cli/main.ts",
53
- "prepublishOnly": "pnpm build",
54
- "add:user": "npm adduser --registry=https://registry.npmjs.org/",
55
- "publish:latest": "npm publish --access public --registry=https://registry.npmjs.org/",
56
- "publish:alpha": "npm publish --access public --registry=https://registry.npmjs.org/ --tag alpha",
57
- "publish:beta": "npm publish --access public --registry=https://registry.npmjs.org/ --tag beta",
58
- "publish:rc": "npm publish --access public --registry=https://registry.npmjs.org/ --tag rc",
59
- "publish:canary": "npm publish --access public --registry=https://registry.npmjs.org/ --tag canary",
60
- "publish:nightly": "npm publish --access public --registry=https://registry.npmjs.org/ --tag nightly",
61
- "publish:dev": "npm publish --access public --registry=https://registry.npmjs.org/ --tag dev"
62
- },
63
34
  "dependencies": {
64
- "@anthropic-ai/sdk": "^0.104.2",
65
- "@modelcontextprotocol/sdk": "^1.30.0",
66
- "chalk": "^5.6.2",
67
- "dompurify": "^3.4.12",
68
- "fuse.js": "^7.5.0",
69
- "ink": "^7.1.1",
70
- "ink-spinner": "^5.0.0",
71
- "ink-text-input": "^6.0.0",
72
- "js-yaml": "^4.3.0",
73
- "koa": "^3.2.1",
74
- "marked": "^18.0.7",
75
- "openai": "^6.49.0",
76
- "picomatch": "^4.0.5",
77
- "pino": "^10.3.1",
78
- "react": "19.2.7",
79
- "react-dom": "19.2.7",
80
- "sharp": "^0.35.3",
81
- "ws": "^8.21.1",
82
- "zod": "^4.4.3"
35
+ "@swifty.js/swifty": "0.0.8",
36
+ "@swifty.js/swiftx": "0.0.5"
83
37
  },
84
- "devDependencies": {
85
- "@eslint/js": "^9.39.5",
86
- "@swifty.js/glob-addon": "workspace:*",
87
- "@swifty.js/glob-wasm": "workspace:*",
88
- "@swifty.js/marked-terminal": "workspace:*",
89
- "@tailwindcss/postcss": "^4.3.3",
90
- "@types/js-yaml": "^4.0.9",
91
- "@types/koa": "^3.0.3",
92
- "@types/node": "^24.13.3",
93
- "@types/picomatch": "^4.0.3",
94
- "@types/react": "^19.2.18",
95
- "@types/react-dom": "^19.2.4",
96
- "@types/ws": "^8.18.1",
97
- "@vitest/coverage-v8": "^4.1.10",
98
- "concurrently": "^9.2.4",
99
- "eslint": "^9.39.5",
100
- "eslint-plugin-import": "^2.32.0",
101
- "eslint-plugin-react-hooks": "^5.2.0",
102
- "eslint-plugin-react-refresh": "^0.5.3",
103
- "eslint-plugin-unicorn": "^65.0.1",
104
- "globals": "^17.8.0",
105
- "ink-testing-library": "^4.0.0",
106
- "oxfmt": "^0.53.0",
107
- "pino-pretty": "^13.1.3",
108
- "postcss": "^8.5.25",
109
- "tailwindcss": "^4.3.3",
110
- "tsup": "^8.5.1",
111
- "tsx": "^4.23.1",
112
- "typescript": "^5.9.3",
113
- "typescript-eslint": "^8.65.0",
114
- "vitest": "^4.1.10"
115
- },
116
- "packageManager": "pnpm@10.33.1"
117
- }
38
+ "devDependencies": {},
39
+ "scripts": {
40
+ "add:user": "npm adduser --registry=https://registry.npmjs.org/",
41
+ "publish:latest": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/",
42
+ "publish:alpha": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/ --tag alpha",
43
+ "publish:beta": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/ --tag beta",
44
+ "publish:rc": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/ --tag rc",
45
+ "publish:canary": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/ --tag canary",
46
+ "publish:nightly": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/ --tag nightly",
47
+ "publish:dev": "pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/ --tag dev"
48
+ }
49
+ }
package/src/swiftx.js ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
3
+ import { pathToFileURL } from "node:url";
4
+
5
+ const require = createRequire(import.meta.url);
6
+ const entry = require.resolve("@swifty.js/swiftx/src/index.js");
7
+ await import(pathToFileURL(entry).href);
package/src/swifty.js ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
3
+ import { pathToFileURL } from "node:url";
4
+
5
+ const require = createRequire(import.meta.url);
6
+ const entry = require.resolve("@swifty.js/swifty/dist/main.js");
7
+ await import(pathToFileURL(entry).href);