@by-association-only/harness-app 0.1.0 → 0.1.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/dist/harness.mjs CHANGED
@@ -1265,7 +1265,7 @@ const verifySkillBlocks = [
1265
1265
  skill("verify-setup", [
1266
1266
  "- The store is the app's dev store, `[build] dev_store_url` in `shopify.app.toml`, the one place it's named, and `pnpm verify doctor` prints it. A feature that needs a second store, such as one that copies between stores, names it in its feature file's frontmatter, and every app command takes `--shop <domain>` for it.",
1267
1267
  "- `.env` holds the app's key and secret. `pnpm worktree` pulls it into a new worktree (`harness app pull-env`), and `shopify app env pull` refreshes it. A second config, `shopify.app.<config>.toml`, reads `.env.<config>` with `--app <config>`.",
1268
- "- The browser's login is a Shopify login: run `pnpm verify open https://admin.shopify.com/ --headed` and have a person log in once.",
1268
+ "- The browser's login is a Shopify login: run `pnpm verify login https://admin.shopify.com/` and have a person log in once.",
1269
1269
  "- The dev app's URL is the branch router, so prove a branch on its own stage. Deploy it with `pnpm exec harness app stage`, then start a flow with `{ \"step\": \"branch\", \"name\": \"w-<branch>\" }`, which sets the router's `__Host-branch` cookie in this checkout's browser, under Shopify's partition, for seven days. Without it the browser keeps its last choice, or gets `main`. A branch that changes `shopify.app.toml` or an extension takes the store's slot first."
1270
1270
  ]),
1271
1271
  skill("verify-doctor", [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@by-association-only/harness-app",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The Shopify app layer for @by-association-only/harness, on harness-unisian: unisian-next and every client app made from it.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -46,7 +46,7 @@
46
46
  "vite-plus": "catalog:"
47
47
  },
48
48
  "peerDependencies": {
49
- "@by-association-only/harness": "^0.3.2",
49
+ "@by-association-only/harness": "^0.3.2 || ^0.4.0",
50
50
  "@by-association-only/harness-unisian": "^0.2.1",
51
51
  "@effect/tsgo": ">=0.51.1 <1",
52
52
  "@effect/vitest": "^4.0.0",
@@ -19,7 +19,7 @@ Every page of {{name}} runs inside Shopify Admin: Polaris in the app's iframe, A
19
19
 
20
20
  ## Driving it
21
21
 
22
- Preconditions: `pnpm verify doctor` passes. A person has logged in to Shopify once in the harness's browser (`pnpm verify open https://admin.shopify.com/ --headed`); agents don't drive `accounts.shopify.com`.
22
+ Preconditions: `pnpm verify doctor` passes. A person has logged in to Shopify once in the harness's browser (`pnpm verify login https://admin.shopify.com/`); agents don't drive `accounts.shopify.com`.
23
23
 
24
24
  `pnpm verify open | text | click | type | select` build in every rule below when they get `--frame 'iframe[name=app-iframe]'`. The list is what they do, and what to do by hand if you ever drive the iframe another way.
25
25
 
@@ -38,6 +38,6 @@ Preconditions: `pnpm verify doctor` passes. A person has logged in to Shopify on
38
38
  - Opening one app's handle with another app's `.env` shows a session error, not a product bug.
39
39
  - An embedded browser in an editor has its own cookies, so it shows the Shopify login even when your everyday browser is logged in. The harness's browser has its own too, in `~/.harness/chrome-profile`.
40
40
  - Playwright attached to a running browser lists the app's frame with an empty URL (it's a cross-origin frame in its own process), so find it through `iframe[name=app-iframe]`, not the frame list.
41
- - A login in the harness's profile lasts as long as Shopify keeps the session. When `open` says Shopify wants a login, run it with `--headed` and log in again.
41
+ - A login in the harness's profile lasts as long as Shopify keeps the session. When `open` says Shopify wants a login, run `pnpm verify login https://admin.shopify.com/` and log in again.
42
42
 
43
43
  <!-- harness:end harness-app/embedded-admin -->