create-tether-app 0.1.0 → 0.1.3
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/README.md +56 -0
- package/dist/index.js +5 -2
- package/package.json +1 -1
- package/template/src-tauri/tauri.conf.json.template +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# create-tether-app
|
|
2
|
+
|
|
3
|
+
CLI to scaffold [Tether](https://github.com/FabianUB/tether) AI/ML desktop applications.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx create-tether-app my-app
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
| Flag | Description |
|
|
14
|
+
| ------------------ | ---------------------------------------------------------------- |
|
|
15
|
+
| `--llm <provider>` | LLM backend: `ollama` (default), `local-llm`, `openai`, `custom` |
|
|
16
|
+
| `-y, --yes` | Skip prompts, use defaults |
|
|
17
|
+
| `--tailwind` | Include Tailwind CSS |
|
|
18
|
+
| `--skip-install` | Skip dependency installation |
|
|
19
|
+
| `--use-npm` | Use npm instead of pnpm |
|
|
20
|
+
| `--use-yarn` | Use yarn instead of pnpm |
|
|
21
|
+
| `-v, --verbose` | Show detailed output |
|
|
22
|
+
| `--check` | Verify required dependencies are installed |
|
|
23
|
+
| `--list-templates` | Show available LLM backends |
|
|
24
|
+
| `--dry-run` | Preview without creating files |
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Interactive prompts
|
|
30
|
+
npx create-tether-app my-app
|
|
31
|
+
|
|
32
|
+
# Quick start with defaults
|
|
33
|
+
npx create-tether-app my-app -y
|
|
34
|
+
|
|
35
|
+
# With OpenAI backend
|
|
36
|
+
npx create-tether-app my-app --llm openai
|
|
37
|
+
|
|
38
|
+
# With Tailwind CSS
|
|
39
|
+
npx create-tether-app my-app --tailwind
|
|
40
|
+
|
|
41
|
+
# Check dependencies first
|
|
42
|
+
npx create-tether-app --check
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Requirements
|
|
46
|
+
|
|
47
|
+
- Node.js 18+
|
|
48
|
+
- pnpm 8+ (or npm/yarn)
|
|
49
|
+
- Python 3.11+
|
|
50
|
+
- [uv](https://docs.astral.sh/uv/)
|
|
51
|
+
- Rust (cargo)
|
|
52
|
+
|
|
53
|
+
## Links
|
|
54
|
+
|
|
55
|
+
- [Documentation](https://github.com/FabianUB/tether)
|
|
56
|
+
- [Issues](https://github.com/FabianUB/tether/issues)
|
package/dist/index.js
CHANGED
|
@@ -412,7 +412,10 @@ async function removeExampleComponents(targetDir) {
|
|
|
412
412
|
if (await fs2.pathExists(appPath)) {
|
|
413
413
|
let content = await fs2.readFile(appPath, "utf-8");
|
|
414
414
|
content = content.replace(/import.*Chat.*from.*\n?/g, "");
|
|
415
|
-
content = content.replace(
|
|
415
|
+
content = content.replace(
|
|
416
|
+
/\s*\{status === "connected" && <Chat\s*\/>\}/g,
|
|
417
|
+
""
|
|
418
|
+
);
|
|
416
419
|
await fs2.writeFile(appPath, content);
|
|
417
420
|
}
|
|
418
421
|
}
|
|
@@ -442,7 +445,7 @@ async function promptForOptions(options) {
|
|
|
442
445
|
{
|
|
443
446
|
type: "list",
|
|
444
447
|
name: "template",
|
|
445
|
-
message: "Select
|
|
448
|
+
message: "Select model source:",
|
|
446
449
|
choices: [
|
|
447
450
|
{
|
|
448
451
|
name: "Ollama - Run models locally via Ollama (Recommended)",
|
package/package.json
CHANGED