eitri-cli 1.52.0-beta.2 → 1.52.0-beta.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.
@@ -3,28 +3,10 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
- export interface AppCheckoutArguments {
7
- verbose?: boolean
8
- }
9
- export interface AppCleanArguments {
10
- verbose?: boolean
11
- full?: boolean
12
- }
13
- export interface CreateAppArguments {
14
- applicationName: string
15
- verbose?: boolean
16
- }
17
6
  export interface PublishArgs {
18
7
  environment: string
19
8
  message?: string
20
9
  }
21
- export interface StartArguments {
22
- shared?: boolean
23
- verbose?: boolean
24
- skipLibs?: boolean
25
- playground?: boolean
26
- initializationParams?: string
27
- }
28
10
  export interface SelectArgs {
29
11
  name?: string
30
12
  local?: boolean
@@ -64,6 +46,24 @@ export interface SnapshotArgs {
64
46
  branchName?: string
65
47
  verbose?: boolean
66
48
  }
49
+ export interface AppCheckoutArguments {
50
+ verbose?: boolean
51
+ }
52
+ export interface AppCleanArguments {
53
+ verbose?: boolean
54
+ full?: boolean
55
+ }
56
+ export interface CreateAppArguments {
57
+ applicationName: string
58
+ verbose?: boolean
59
+ }
60
+ export interface StartArguments {
61
+ shared?: boolean
62
+ verbose?: boolean
63
+ skipLibs?: boolean
64
+ playground?: boolean
65
+ initializationParams?: string
66
+ }
67
67
  export declare function publish(args: PublishArgs): Promise<void>
68
68
  export declare function runTest(args: TestingArgs): Promise<void>
69
69
  export declare function eitriLibs(eitriLibsArgs: EitriLibsArguments): Promise<void>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.52.0-beta.2",
3
+ "version": "1.52.0-beta.3",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -13,8 +13,7 @@
13
13
  "docsify:run": "cd docsify && docsify serve",
14
14
  "build": "echo \"no build\"",
15
15
  "release": "semantic-release",
16
- "release:dry": "semantic-release --dry-run",
17
- "prepare": "husky install"
16
+ "release:dry": "semantic-release --dry-run"
18
17
  },
19
18
  "engines": {
20
19
  "node": ">=16.0.0",
@@ -34,7 +33,6 @@
34
33
  "@semantic-release/changelog": "6.0.3",
35
34
  "@semantic-release/git": "10.0.1",
36
35
  "axios": "1.13.6",
37
- "husky": "8.0.3",
38
36
  "jest": "29.7.0",
39
37
  "lint-staged": "9.5.0",
40
38
  "playwright": "1.58.2",
package/CLAUDE.md DELETED
@@ -1,71 +0,0 @@
1
- # CLAUDE.md
2
-
3
- This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
-
5
- ## Setup
6
-
7
- Prerequisites: Node.js >= 16, Rust and Cargo installed.
8
-
9
- ```bash
10
- # Root dependencies
11
- npm i
12
-
13
- # Build the Rust native module (required before running)
14
- cd eitri-cli-v2 && npm i && npm run build && cd ..
15
- ```
16
-
17
- ## Common Commands
18
-
19
- ```bash
20
- # Run tests
21
- npm test # or: npm run test-eitri
22
-
23
- # Lint with auto-fix
24
- npm run linter
25
-
26
- # Install and run locally
27
- ./install-dev.sh # Linux/MacOS
28
- ./install-dev.bat # Windows
29
- eitri <command>
30
- ```
31
-
32
- Jest test timeout is 100 seconds. Run a single test file with:
33
- ```bash
34
- NODE_APP_INSTANCE=eitri npx jest --detectOpenHandles path/to/test.js
35
- ```
36
-
37
- ## Architecture
38
-
39
- This is a **hybrid Node.js + Rust CLI** (the `eitri` binary) for developing Eitri-Apps on the Eitri mobile platform.
40
-
41
- ### Entry Flow
42
-
43
- 1. `index-eitri.js` (bin entry) — sets `NODE_APP_INSTANCE=eitri`, generates a UUID session ID, calls `index.js`
44
- 2. `index.js` — Commander.js v9 CLI parser; loads config from `config/` via `NODE_CONFIG_DIR`; delegates to Rust or JS handlers
45
- 3. **Rust layer**: `eitri-cli-v2/` — NAPI-RS native bindings compiled to platform-specific `.node` files. Most active commands live here.
46
- 4. **JS layer**: `src/modules/` — legacy commands still in JavaScript
47
-
48
- ### Command Routing
49
-
50
- Commands implemented in Rust (`eitri-cli-v2/src/commands/`), called via NAPI bindings:
51
- - `login`, `create`, `start`, `push-version`, `clean`, `test`, `publish`, `doctor`, `libs`, `gpt`, `self-update`
52
-
53
- Commands still in JavaScript (`src/modules/`):
54
- - `vegvisir` / `workspace` — workspace management (list, use, create, current, clean)
55
- - `app` — multi-app orchestration (start, logs, clean, create, checkout, snapshot)
56
- - `agents` — AI agent environment setup (LLM env vars)
57
-
58
- Pre-command middleware (in `index.js`) runs connection checks and update checks before most commands, skipping them for `version`, `-v`, and `self-update`.
59
-
60
- ### Configuration
61
-
62
- Environment configs in `config/` use the `node-config` pattern, selected by `NODE_APP_INSTANCE` (always `eitri`) and `NODE_CONFIG_DIR`. Files: `default-eitri.js`, `dev.js`, `prod-eitri.js`, etc.
63
-
64
- ### Release Workflow
65
-
66
- Uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) — required for automated versioning via semantic-release.
67
-
68
- - Branch from `beta` → PR to `beta` → merging publishes a `beta` NPM prerelease
69
- - PR from `beta` → `master` → merging publishes a stable NPM release
70
-
71
- Allowed commit types: `build`, `chore`, `ci`, `docs`, `feat`, `fix`, `perf`, `refactor`, `revert`, `style`, `test`