affect-cli 0.0.0-stage → 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ludicrous
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/README.md CHANGED
@@ -1,3 +1,42 @@
1
- # Temporary Holding Version
1
+ # affect-cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Shared environment and deployment commands for [Affect](https://github.com/ludicroushq/affect). Requires Bun 1.4.2 or later and a project-local Convex CLI.
4
+
5
+ ```sh
6
+ bun add --dev --exact affect-cli
7
+ bunx --no-install affect --help
8
+ ```
9
+
10
+ Run commands from the application repository root:
11
+
12
+ - `affect env` prints shell exports from `env/{development,preview,production,ci}/.env`. It requires the matching `DOTENV_PRIVATE_KEY` when that file exists. Treat its output as secrets.
13
+ - `affect dotenvx -- …` forwards arguments to the bundled native dotenvx CLI, for example `affect dotenvx -- encrypt -f env/development/.env --no-armor --no-native`.
14
+ - `affect setup` initializes an anonymous local Convex backend only for a fresh project, or retries its environment import. It preserves existing linked deployments and credentials.
15
+ - `affect deploy` uses Convex's native deploy/build sequence, imports the selected backend environment, and builds the frontend. It requires `VERCEL_ENV=preview|production`, a matching deploy key in the encrypted file, and a branch name for previews. `--build` is its internal Convex callback.
16
+
17
+ Selection uses `VERCEL_ENV`, then `ci` for GitHub Actions/CI, otherwise `development`. Files stay in the application; cryptography stays in dotenvx. Deployment follows Affect's `apps/web` layout.
18
+
19
+ For Mise, install dependencies once, then use:
20
+
21
+ ```toml
22
+ [env]
23
+ _.source = { path = "node_modules/affect-cli/scripts/activate.sh", tools = true, redact = true }
24
+ _.file = { path = ".env.local", tools = true }
25
+
26
+ [tasks.setup]
27
+ run = "bun install --frozen-lockfile && bunx --no-install affect setup"
28
+ ```
29
+
30
+ The Bash bridge only exports the CLI's output into the parent shell. It does not change backend state.
31
+
32
+ ## Development and releases
33
+
34
+ ```sh
35
+ bun install --frozen-lockfile
36
+ bun run check
37
+ bun run changeset
38
+ bun run changeset version
39
+ bun run release
40
+ ```
41
+
42
+ Version `0.0.1` is prepared for the first publication; do not bump it before publishing. Future changes use Changesets. `release` publishes to npm and creates a Git tag, so run it only when ready to publish.