mycomesh-consumer 0.1.3 → 0.1.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.
package/README.md CHANGED
@@ -47,6 +47,24 @@ local proxy running. Consumer network traffic is direct by default. Use
47
47
  hosts are translated to `host.docker.internal`. Dedicated
48
48
  `MYCOMESH_CONSUMER_*_PROXY` variables remain available for operators.
49
49
 
50
+ Upgrading the npm package does not require clearing a Session. The Consumer
51
+ volume is intentionally reused so its API key, identity and verified Session
52
+ route survive restarts. If the browser page is stuck on an old local record,
53
+ close that tab and reopen the printed onboarding URL, or clear site data for
54
+ `http://127.0.0.1:8110` in the browser. To reset all local Consumer state,
55
+ stop it first and remove only the named volume:
56
+
57
+ ```sh
58
+ mycomesh-consumer --stop
59
+ docker volume ls --filter name=mycomesh-consumer_mycomesh-consumer-data
60
+ docker volume rm mycomesh-consumer_mycomesh-consumer-data
61
+ ```
62
+
63
+ This removes the local API key, identity, wallet metadata and SQLite Session
64
+ records. It does not close or refund an already-open on-chain V5 Session; let
65
+ that Session expire or submit the contract's close transaction separately
66
+ before treating its escrow as available.
67
+
50
68
  The existing stateless API commands remain available. For example:
51
69
 
52
70
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mycomesh-consumer",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Local-first MycoMesh Consumer launcher and OpenAI-compatible request CLI.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -187,11 +187,16 @@ if ! command -v "$CODEX_COMMAND" >/dev/null 2>&1; then
187
187
  fi
188
188
 
189
189
  printf '%s\n' "Opening Codex through the local MycoMesh Consumer."
190
- exec "$CODEX_COMMAND" \
190
+ codex_command=(
191
+ "$CODEX_COMMAND"
191
192
  -c 'model="gpt-5.5"' \
192
193
  -c 'model_provider="mycomesh"' \
193
194
  -c 'model_providers.mycomesh.name="MycoMesh"' \
194
195
  -c 'model_providers.mycomesh.base_url="http://127.0.0.1:8110/v1"' \
195
196
  -c 'model_providers.mycomesh.env_key="MYCOMESH_API_KEY"' \
196
- -c 'model_providers.mycomesh.wire_api="responses"' \
197
- "${CODEX_ARGS[@]}"
197
+ -c 'model_providers.mycomesh.wire_api="responses"'
198
+ )
199
+ if ((${#CODEX_ARGS[@]})); then
200
+ codex_command+=("${CODEX_ARGS[@]}")
201
+ fi
202
+ exec "${codex_command[@]}"
package/src/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { once } from "node:events";
2
2
  import { readFile } from "node:fs/promises";
3
3
 
4
- const CLI_VERSION = "0.1.3";
4
+ const CLI_VERSION = "0.1.5";
5
5
  // The npm client is local-first. A public Gateway is an explicit override;
6
6
  // the default remains the loopback Consumer edge so a blocked domain cannot
7
7
  // strand the Codex client.
package/src/consumer.mjs CHANGED
@@ -2,7 +2,7 @@ import { spawn as defaultSpawn } from "node:child_process";
2
2
  import { createRequire } from "node:module";
3
3
  import { fileURLToPath } from "node:url";
4
4
 
5
- const CONSUMER_RELEASE_VERSION = "0.1.3";
5
+ const CONSUMER_RELEASE_VERSION = "0.1.5";
6
6
  const DEFAULT_NODE_IMAGE =
7
7
  "ghcr.io/charleslzp/mycomesh-node@sha256:86c44b7807057904446f74528e4e4ed7c863edcbd833c3688975d6d4ca8c480d";
8
8
  const API_COMMANDS = new Set(["health", "models", "responses", "chat"]);