fimo 0.16.0-staging.7 → 0.16.0-staging.8

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.
@@ -70,6 +70,8 @@ The working loop is local: run the app with the project's package-manager `dev`
70
70
 
71
71
  Keep `fimo validate --json` at the front of the project's `build` script, which is where the bundled templates put it. The hosted build runs that script, so validation runs on the exact code being published and a rejected build reports the failing rule instead of a generic build error. Removing it is the developer's call, but do not drop it while editing `package.json` for other reasons.
72
72
 
73
+ **`fimo validate` does not type check.** Run the project's own `typecheck` or `check` script after changing code.
74
+
73
75
  ## Decision Tree
74
76
 
75
77
  Load the matching reference when the user's request fires its trigger. Recipes that involve writing code also need the `fimo-code` skill's package references — they're called out where relevant.
@@ -78,7 +78,7 @@ There is no all-capabilities wildcard; keeping the list explicit makes each agen
78
78
  | `webhooks:write` | Create, modify, delete, or trigger webhooks | High |
79
79
  | `schedules:read` | Read schedule configs and run history | Low |
80
80
  | `schedules:write` | Create, change, or trigger scheduled runs | Critical |
81
- | `fimo:logs:read` | Read production logs | Low |
81
+ | `fimo:logs:read` | Read project deployment logs | Low |
82
82
  | `fimo:analytics:read` | Read analytics data | Low |
83
83
  | `fimo:preview:read` | Read a current preview URL | Low |
84
84
  | `fimo:history:read` | Read project restore points | Low |
@@ -92,6 +92,9 @@ If a capability is missing, the related command is denied and the agent should c
92
92
  blocker. Add the capability to `capabilities.yaml`, run `fimo agents validate <name>`, deploy the bundle, and start a
93
93
  new run. A denied capability does not grant access to anything else.
94
94
 
95
+ Studio chat and project-bound Slack turns receive `fimo:logs:read`. Autonomous agents receive it only when their
96
+ `capabilities.yaml` declares it; use `fimo logs` with the deploy guidance when diagnosing a failed preview.
97
+
95
98
  Example for a content editor that can read and update entries but cannot change schemas:
96
99
 
97
100
  ```yaml
@@ -48,6 +48,14 @@ When reporting the result, open `preview_url` for a person and use `sandbox_url`
48
48
 
49
49
  Public project variables managed with `fimo vars add` and `fimo vars update` are injected into preview/build/deploy runtimes. Project secrets are not injected into app builds; agents request secrets separately through their own config. See `references/project-vars-and-secrets.md`.
50
50
 
51
+ ## Diagnose a failed publication
52
+
53
+ Use the publication ID returned by the failed command: run `fimo publish inspect <id> --json` for its durable status, then `fimo publish logs <id> --json` for a bounded build-log tail. Logs come from the hosting provider and may be unavailable after its deployment is reclaimed.
54
+
55
+ ## Diagnose a failed preview deploy
56
+
57
+ If the sandbox fails to install dependencies or start the app, run `fimo logs --json` before retrying. Read the newest install and dev-server events first; when the response is truncated, use its `previousCursor` as `fimo logs --before <cursor> --json` to fetch the preceding page. Do not recreate or replace the sandbox before collecting logs, because that can discard the failure evidence.
58
+
51
59
  ## Framework hosting
52
60
 
53
61
  Fimo preview resolves `runtime.commands` override → package script → detected
@@ -112,6 +112,13 @@ Owned by the runtime lane; verified here read-only.
112
112
  unavailable in the report.
113
113
  - Deployment smoke is explicit owner opt-in; never run deploy or publish as a
114
114
  QA step.
115
+ - When an approved publication fails, inspect its returned publication ID with
116
+ `fimo publish inspect <id> --json`, then read its build evidence with
117
+ `fimo publish logs <id> --json` before retrying. Provider logs may become
118
+ unavailable after the deployment is reclaimed.
119
+ - When an approved preview deploy fails, capture `fimo logs --json` before
120
+ replacing or retrying the sandbox. Repair from that evidence, then make one
121
+ bounded retry.
115
122
 
116
123
  ## Behavior
117
124
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "bundled": true,
3
3
  "bundler": "esbuild",
4
- "bundledAt": "2026-08-21T13:03:13.526Z",
4
+ "bundledAt": "2026-08-21T16:01:52.520Z",
5
5
  "cliVersion": "0.15.0",
6
6
  "external": [
7
7
  "oxc-parser",