@deslop/stash 0.1.1073 → 0.1.1075

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/README.md CHANGED
@@ -31,27 +31,23 @@ The CLI saves the entry through the server's RPC, waits until the server has rea
31
31
  - **Note page.** A reading page like Mail's message: preview, title, author, app and date, the summary, then the AI's notes in the system body font, with headings, bold names and tappable links. Tags follow; the transcript, the source text and the words in the images stay on the server for search and the CLI. The app's logo opens the link; the menu shares, regenerates or deletes. A note the server could not read shows why and a Try Again button.
32
32
  - **Native module.** `modules/native` checks the clipboard without reading it and adds the bottom-bar search field through `@expo/ui`'s modifier API. The logos come from `@deslop/components-mobile`, which renders svgl's SVGs natively and cuts out their white parts for menu icons.
33
33
  - **Share extension.** `@bacons/apple-targets` adds `targets/share` at prebuild. It finds the server in the app's `StashServer` Info.plist key and uploads from the App Group `group.<app bundle id>`. A failed background upload is not reported, because the sheet has already closed.
34
- - **Variants.** `APP_VARIANT` from `eas.json` picks `development` or `production`; the development build installs beside the TestFlight one. `APPLE_TEAM_ID` comes from the EAS environment.
34
+ - **Variants.** `APP_VARIANT` from `eas.json` picks `development` for the simulator build, as `stash dev` with the bundle identifier `xyz.mp281x.stash.dev`, or `production`. `APPLE_TEAM_ID` comes from the EAS environment.
35
35
 
36
36
  ## Releases
37
37
 
38
38
  On main, `deploy.yaml` compares `apps/stash`, `packages` and the lockfile with the commit of the last EAS Update. When they changed, a known native fingerprint ships the JavaScript as a new update; a new one first builds on GitHub's `xcode-27` runner with `eas build --local` and submits to TestFlight. A newer merge cancels the older run, and the next one ships both. Each release is version `0.1.<run>` with build number `<run>`.
39
39
 
40
- ## Development build
40
+ ## Simulator
41
41
 
42
- `vp -C apps/stash run dev` serves Metro on localhost and writes the tailnet URL into its manifest; `sudo tailscale serve --bg --https=8081 http://localhost:<Metro port>` lets stash dev reach it. Metro picks 8082 when that serve already holds 8081, so point it at the port Metro prints. Use `localhost`, not `127.0.0.1`: Metro listens on `::1`.
43
-
44
- On the iOS Simulator, each branch push leaves the build as the artifact `stash-simulator-<fingerprint>`:
42
+ CI builds the app for the iOS Simulator once per native fingerprint, as the artifact `stash-simulator-<fingerprint>` of the branch's CI run. The app holds the JavaScript of the commit that built it, so replace its bundle with the branch's own before you install it. `device_open` returns the `agent-device` command and its flags.
45
43
 
46
44
  ```bash
47
45
  gh run download <run id> --name stash-simulator-<fingerprint> --dir /tmp/stash-sim && tar -xzf /tmp/stash-sim/simulator.tar.gz -C /tmp/stash-sim
46
+ APP_VARIANT=development vp -C apps/stash exec expo export:embed --platform ios --dev false --bundle-output /tmp/stash-sim/stashdev.app/main.jsbundle --assets-dest /tmp/stash-sim/stashdev.app
48
47
  <agent-device> install xyz.mp281x.stash.dev /tmp/stash-sim/stashdev.app <flags>
49
- <agent-device> open xyz.mp281x.stash.dev 'stash-dev://expo-development-client/?url=https%3A%2F%2F<worker>.tailnet-8c4c.ts.net%3A8081' <flags>
50
- <agent-device> alert accept <flags>
48
+ <agent-device> open xyz.mp281x.stash.dev <flags>
51
49
  ```
52
50
 
53
- `device_open` returns the `agent-device` command and its flags. The first open asks to open the link in stash dev, and the first launch shows the developer menu.
54
-
55
51
  ## Checks before a build
56
52
 
57
53
  ```bash
package/dist/cli.js CHANGED
@@ -7523,7 +7523,7 @@ const runWith = (command, config) => {
7523
7523
  };
7524
7524
  //#endregion
7525
7525
  //#region package.json
7526
- var version = "0.1.1073";
7526
+ var version = "0.1.1075";
7527
7527
  //#endregion
7528
7528
  //#region src/main.cli.ts
7529
7529
  function section(title, text) {
package/dist/server.js CHANGED
@@ -118984,13 +118984,12 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
118984
118984
  var import_src = require_src$1();
118985
118985
  var import_src$1 = require_src();
118986
118986
  var import_index_shim = require_index_shim();
118987
- const layerRpcSerialization = layerSchemaBinary();
118988
118987
  function layer(applicationName) {
118989
118988
  return mergeAll(unwrap$2(map$1(pipe(URL$4("VITE_OTEL_URL"), withDefault(new URL("http://localhost:4318"))), (url) => layer$1(() => ({
118990
118989
  logRecordProcessor: new import_src$9.BatchLogRecordProcessor({ exporter: new import_src.OTLPLogExporter({ url: new URL("/v1/logs", url).href }) }),
118991
118990
  resource: { serviceName: `${applicationName}-server` },
118992
118991
  spanProcessor: new import_index_shim.BatchSpanProcessor(new import_src$1.OTLPTraceExporter({ url: new URL("/v1/traces", url).href }))
118993
- })))), layerRpcSerialization);
118992
+ })))), layerSchemaBinary());
118994
118993
  }
118995
118994
  layer$5({
118996
118995
  index: "index.html",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deslop/stash",
3
- "version": "0.1.1073",
3
+ "version": "0.1.1075",
4
4
  "description": "A personal inbox for links and notes: the server, the iOS app, and a CLI that saves to it.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,7 +38,6 @@
38
38
  "cheerio": "latest",
39
39
  "expo-clipboard": "^58.0.3",
40
40
  "expo-crypto": "^58.0.6",
41
- "expo-dev-client": "^58.0.13",
42
41
  "expo-file-system": "^58.0.9",
43
42
  "expo-updates": "^58.0.16",
44
43
  "onnxruntime-common": "1.30.0",
@@ -50,7 +49,6 @@
50
49
  },
51
50
  "scripts": {
52
51
  "build": "rm -rf dist && vp pack",
53
- "dev": "EXPO_PACKAGER_PROXY_URL=https://dev.tailnet-8c4c.ts.net:8081 expo start --dev-client --localhost",
54
52
  "preview": "vp run build && HOST=127.0.0.1 PORT=5017 node --env-file-if-exists=$HOME/.deslop/stash.env ./dist/server.js"
55
53
  }
56
54
  }