@marina-cloud/cli 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. package/README.md +26 -3
  2. package/dist/marina.mjs +2718 -435
  3. package/package.json +10 -6
package/README.md CHANGED
@@ -17,7 +17,7 @@ For a complete first run, including the deployment skill and demo app:
17
17
  npm install -g @marina-cloud/cli && marina setup --skills --deploy-demo --json
18
18
  ```
19
19
 
20
- `marina setup` opens Clerk in the browser and delivers the resulting API key
20
+ `marina setup` opens Marina in the browser and delivers the resulting API key
21
21
  directly back to the CLI. For unattended environments, `MARINA_TOKEN` is the
22
22
  process-only credential override.
23
23
 
@@ -44,6 +44,7 @@ JSON result; progress stays on standard error.
44
44
  ```sh
45
45
  marina list --json
46
46
  marina status --app my-tool --json
47
+ marina logs --app my-tool
47
48
  marina deploy --json
48
49
  ```
49
50
 
@@ -51,6 +52,13 @@ Successful results have `schema_version: 1` and `ok: true`. Failures have
51
52
  `ok: false` and a stable `error.code`; exit codes distinguish errors,
52
53
  authentication failures, and deployment refusals.
53
54
 
55
+ `marina logs` always returns one structured JSON document, even without
56
+ `--json`; log bodies are never rendered as terminal text. It includes recent
57
+ deployment events, runtime invocations, console output, and exceptions. Use
58
+ `--level`, `--limit`, and `next_cursor` to filter or continue through older
59
+ entries. Build-log bodies are likewise omitted from human deploy output and
60
+ remain available in `deploy --json` and `deploys --json` results.
61
+
54
62
  ## Deploy a first demo
55
63
 
56
64
  `marina deploy demo --json` deploys the bundled, interactive Hello Marina
@@ -66,11 +74,26 @@ Add `marina.json` at the project root to give the app a portable name and icon:
66
74
  {
67
75
  "schema": 1,
68
76
  "name": "My App",
69
- "icon": "⛵",
70
- "type": "static"
77
+ "icon": "⛵"
71
78
  }
72
79
  ```
73
80
 
74
81
  For names, the CLI uses `--name`, then `marina.json`, then `package.json`, then
75
82
  the directory name. `.marina/project.json` only links the directory to an app
76
83
  after its first deploy; do not commit it.
84
+
85
+ Run `marina deploy .` from a project root by default. A non-empty
86
+ `package.json` `scripts.build` makes Marina install dependencies, run
87
+ `npm run build`, and publish the generated output—even when the source project
88
+ also has root `index.html`. A package without a build script can still deploy
89
+ as-is when root `index.html` exists. Build output must contain `index.html` in
90
+ `dist`, `build`, `out`, `public`, or `.output/public`.
91
+
92
+ Deploy source, not build output. `marina deploy dist` is refused with exit
93
+ code 3 when the target is the build output of a project that declares a build;
94
+ deploy the project root instead, and Marina runs the build itself. The server
95
+ likewise refuses uploads that are recognizably build output.
96
+
97
+ When a declared build fails, Marina can ask its publishing agent to retry or
98
+ minimally repair the build; there is no path that publishes existing output
99
+ instead of building.