mycomesh-consumer 0.1.1 → 0.1.2
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/package.json +1 -1
- package/scripts/start-consumer.sh +6 -2
- package/src/cli.mjs +1 -1
- package/src/consumer.mjs +2 -2
package/package.json
CHANGED
|
@@ -169,7 +169,11 @@ while ! curl --noproxy '*' --fail --silent --max-time 3 http://127.0.0.1:8110/re
|
|
|
169
169
|
sleep 2
|
|
170
170
|
done
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
if ! codex_env="$("$DOCKER" compose --project-name "$PROJECT_NAME" --file "$COMPOSE_FILE" exec -T consumer python -m gateway.local_consumer codex-env)"; then
|
|
173
|
+
die "could not load Codex credentials from the local Consumer"
|
|
174
|
+
fi
|
|
175
|
+
eval "$codex_env"
|
|
176
|
+
unset codex_env
|
|
173
177
|
if ! command -v "$CODEX_COMMAND" >/dev/null 2>&1; then
|
|
174
178
|
printf "error: Consumer is ready, but '%s' is not installed on this host\n" "$CODEX_COMMAND" >&2
|
|
175
179
|
exit 127
|
|
@@ -177,7 +181,7 @@ fi
|
|
|
177
181
|
|
|
178
182
|
printf '%s\n' "Opening Codex through the local MycoMesh Consumer."
|
|
179
183
|
exec "$CODEX_COMMAND" \
|
|
180
|
-
-c 'model="
|
|
184
|
+
-c 'model="gpt-5.5"' \
|
|
181
185
|
-c 'model_provider="mycomesh"' \
|
|
182
186
|
-c 'model_providers.mycomesh.name="MycoMesh"' \
|
|
183
187
|
-c 'model_providers.mycomesh.base_url="http://127.0.0.1:8110/v1"' \
|
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.
|
|
4
|
+
const CLI_VERSION = "0.1.2";
|
|
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,9 +2,9 @@ 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.
|
|
5
|
+
const CONSUMER_RELEASE_VERSION = "0.1.2";
|
|
6
6
|
const DEFAULT_NODE_IMAGE =
|
|
7
|
-
"ghcr.io/charleslzp/mycomesh-node@sha256:
|
|
7
|
+
"ghcr.io/charleslzp/mycomesh-node@sha256:341fff4ee5d1d820d2149c5b1fc4de619ef0abbb41c83408ad8a9f8bfbf31d10";
|
|
8
8
|
const API_COMMANDS = new Set(["health", "models", "responses", "chat"]);
|
|
9
9
|
const API_VALUE_OPTIONS = new Set([
|
|
10
10
|
"--base-url",
|