@fluxlay/cli 1.3.1 → 1.3.2

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 CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  CLI for building, developing, and publishing [Fluxlay](https://fluxlay.com) wallpapers.
4
4
 
5
+ - Documentation: <https://fluxlay.com/docs/developer/tutorials/getting-started>
6
+ - CLI reference: <https://fluxlay.com/docs/developer/reference/cli/commands>
7
+ - Manifest reference: <https://fluxlay.com/docs/developer/reference/cli/manifest>
8
+ - Examples: <https://github.com/fluxlay/examples>
9
+
5
10
  ## Installation
6
11
 
7
12
  ```sh
@@ -14,7 +19,7 @@ bun add -g @fluxlay/cli
14
19
 
15
20
  ### `fluxlay login`
16
21
 
17
- Authenticate with Fluxlay. Opens a browser window for sign-in and stores the session locally.
22
+ Authenticate with your Fluxlay account via device authorization. A browser window opens for sign-in and a confirmation user code is shown. Once approved, the session is stored locally.
18
23
 
19
24
  ```sh
20
25
  fluxlay login
@@ -38,25 +43,43 @@ fluxlay whoami
38
43
 
39
44
  ### `fluxlay dev [dir]`
40
45
 
41
- Start a development server for a wallpaper project. The Fluxlay app will hot-reload as you edit files.
46
+ Start a development server for live-previewing a wallpaper. The desktop app hot-reloads as you edit files.
42
47
 
43
48
  ```sh
44
49
  fluxlay dev
45
50
  fluxlay dev ./my-wallpaper
46
51
  ```
47
52
 
53
+ | Argument | Description | Default |
54
+ | -------- | ----------------- | ----------------------- |
55
+ | `dir` | Project directory | `.` (current directory) |
56
+
57
+ Behavior:
58
+
59
+ 1. Validate `fluxlay.yaml`.
60
+ 2. Find an available port starting from 3000.
61
+ 3. Start the Vite dev server.
62
+ 4. Write `dev.json` to the app data directory.
63
+ 5. The desktop app renders the wallpaper with HMR.
64
+
48
65
  ### `fluxlay build [dir]`
49
66
 
50
- Build and package a wallpaper into a `.fluxlay` file.
67
+ Build a wallpaper into an encrypted `.fluxlay` package.
51
68
 
52
69
  ```sh
53
70
  fluxlay build
54
71
  fluxlay build ./my-wallpaper -o output.fluxlay
55
72
  ```
56
73
 
57
- | Option | Default | Description |
58
- | --------------------- | ------------------- | --------------- |
59
- | `-o, --output <name>` | `wallpaper.fluxlay` | Output filename |
74
+ | Argument / Option | Description | Default |
75
+ | --------------------- | ----------------- | ------------------- |
76
+ | `dir` | Project directory | `.` |
77
+ | `-o, --output <name>` | Output filename | `wallpaper.fluxlay` |
78
+
79
+ Requires a logged-in session and a `kind` field in `fluxlay.yaml`. Behavior depends on `kind`:
80
+
81
+ - `kind: web` — runs the Vite build and packages `dist/`.
82
+ - `kind: video` / `kind: image` — packages the single media file specified by `source` (Vite build is skipped).
60
83
 
61
84
  ### `fluxlay publish [dir]`
62
85
 
@@ -67,16 +90,27 @@ fluxlay publish
67
90
  fluxlay publish ./my-wallpaper
68
91
  ```
69
92
 
70
- publish の挙動は `fluxlay.yaml` `kind` フィールドで決まります(CLI フラグでの上書きはありません)。
93
+ | Argument | Description | Default |
94
+ | -------- | ----------------- | ------- |
95
+ | `dir` | Project directory | `.` |
71
96
 
72
- - `kind: web` Vite ビルド成果物 (`dist/`) をバンドル化
73
- - `kind: video` / `kind: image` — Vite ビルドはスキップ。`source:` で指定されたメディアファイル単体を `media.<ext>` としてパッケージし、HTML はアプリ側が配信時に動的生成する
97
+ Requires a logged-in session and completed onboarding. Publish behavior is determined by the `kind` field in `fluxlay.yaml` (there is no CLI flag override):
98
+
99
+ 1. Validate `fluxlay.yaml` (`kind` is required).
100
+ 2. Generate a content encryption key.
101
+ 3. Register the version with the API.
102
+ 4. Bundle according to `kind`:
103
+ - `web`: package the Vite build output (`dist/`).
104
+ - `video` / `image`: package the media file specified by `source` as `media.<ext>` (Vite build is skipped). HTML is generated dynamically by the desktop app at delivery time.
105
+ 5. Encrypt and upload.
106
+ 6. Notify the API on completion.
74
107
 
75
108
  ## Project Structure
76
109
 
77
110
  A Fluxlay wallpaper project requires a `fluxlay.yaml` manifest at the root:
78
111
 
79
112
  ```yaml
113
+ schemaVersion: 1
80
114
  name: My Wallpaper
81
115
  slug: my-wallpaper
82
116
  version: 0.1.0
@@ -85,23 +119,27 @@ description: |
85
119
  A description of your wallpaper.
86
120
  ```
87
121
 
88
- ### `fluxlay.yaml` のフィールド
122
+ ### `fluxlay.yaml` fields
123
+
124
+ | Field | Required | Description |
125
+ | --------------- | ------------------------------ | --------------------------------------------------------------- |
126
+ | `schemaVersion` | ✓ | Manifest schema version (currently only `1`) |
127
+ | `name` | ✓ | Display name |
128
+ | `slug` | ✓ | URL-safe unique identifier (lowercase letters, digits, hyphens) |
129
+ | `version` | ✓ | Semantic version |
130
+ | `kind` | ✓ | Bundle type: `web` / `video` / `image` |
131
+ | `source` | when `kind` is `video`/`image` | Path to the media file to publish (relative to project root) |
132
+ | `description` | | Short description shown in the store listing |
133
+ | `properties` | | Custom property definitions (user-tweakable variables) |
134
+ | `shell` | | Declared external shell commands |
135
+ | `network` | | Allowed network origins |
89
136
 
90
- | フィールド | 必須 | 説明 |
91
- | ------------- | ---------------------- | ----------------------------------------------------------- |
92
- | `name` | ✓ | 壁紙名 |
93
- | `slug` | ✓ | URL スラッグ(小文字英数字とハイフン) |
94
- | `version` | ✓ | セマンティックバージョン |
95
- | `kind` | ✓ | バンドル種別 `web` / `video` / `image` |
96
- | `source` | `video`/`image` の場合 | publish 対象となるメディアファイルのパス(root からの相対) |
97
- | `description` | | 説明文 |
98
- | `properties` | | カスタムプロパティ定義 |
99
- | `shell` | | 外部コマンド宣言 |
100
- | `network` | | 許可するネットワーク origin |
137
+ For the full schema (including `properties` types and per-type fields), see the [manifest reference](https://fluxlay.com/docs/developer/reference/cli/manifest). Sample projects are available at <https://github.com/fluxlay/examples>.
101
138
 
102
- #### 動画/画像壁紙の例
139
+ #### Video / image wallpaper example
103
140
 
104
141
  ```yaml
142
+ schemaVersion: 1
105
143
  name: My Video Wallpaper
106
144
  slug: my-video-wp
107
145
  version: 0.1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxlay/cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "CLI for building, developing, and publishing Fluxlay wallpapers",
5
5
  "keywords": [
6
6
  "cli",