@somewhere-cloud/cli 0.38.147 → 0.38.149

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.38.149
4
+
5
+ - The local browser and Playwright test fixtures wait for an app's SDK session check after navigation.
6
+
7
+ ## 0.38.148
8
+
9
+ - `somewhere advisor` in a folder linked to an app, while signed in, sends the app's overview and its last deploy (after a failed deploy, the failure's file, line and message), read with your own sign-in, and says so in one line. `--no-context` sends the question alone.
10
+ - Follow-up questions in that folder carry the last three questions and answers for 30 minutes, kept in `.somewhere/advisor-conversation.json`; `--new` starts over.
11
+
3
12
  ## 0.38.147
4
13
 
5
14
  - `somewhere git connect` returns the browser to https://somewhere.cloud/app.
package/README.md CHANGED
@@ -339,10 +339,12 @@ await expectStatus(await user.request('/api/auth/me'), 200);
339
339
  The app must mount the packaged auth handler at `/api/auth`. `createUser` creates
340
340
  an independent throwaway user at the platform test domain; it does not use admin
341
341
  credentials. `signIn(url, email, password)` supports an existing test user.
342
- Sessions retain cookies and send the app Origin. `session.data(table, contract,
343
- { operation: 'list' })` posts the browser runtime shape; supply the deployed
344
- browser client's contract digest. `expectRefusal(response, 403, 'DATA_ACCESS_DENIED')`
345
- requires both the exact status and code: malformed 400 requests fail.
342
+ From the linked app folder, `session.data('notes', { operation: 'list' })` sends
343
+ the signed-in session, app Origin and deployed contract. For a shell probe, run
344
+ `somewhere test-users prepare alice`, then `somewhere data list notes --as alice`.
345
+ The command prints the HTTP status, outcome and rows or error as JSON.
346
+ `expectRefusal(response, 403, 'DATA_ACCESS_DENIED')` checks the exact status and
347
+ code. For an empty scoped read, also check that the owner can read the same fixture.
346
348
 
347
349
  Browser tests can call `waitForApp(page, 'signed-in')` or `'signed-out'`; omit the
348
350
  state for either ready state. Add `data-app-state` to your own app's confirmed auth