create-op-node 0.15.0 → 0.15.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/README.md CHANGED
@@ -72,7 +72,7 @@ The chosen models flow two places:
72
72
  1. **Ollama**: bootstrap pulls + warms them so the daemon has them
73
73
  resident before the stack comes up. The embedding model pulls first
74
74
  (small, fast feedback); the LLM pulls second (can be tens of GB).
75
- 2. **The node `.env`**: bootstrap writes `LLM_MODEL`, `EMBEDDINGS_MODEL`,
75
+ 2. **The node `.env`**: bootstrap writes `LLM_MODEL`, `EMBEDDINGS_OLLAMA_MODEL`,
76
76
  and `EMBEDDINGS_PROVIDER` into a managed block of the region repo's
77
77
  `.env`, which docker compose auto-loads. This is the **single source of
78
78
  truth** — every service (and every future partial recreate) resolves
@@ -91,9 +91,10 @@ The chosen models flow two places:
91
91
 
92
92
  > **`--embeddings-provider` picks where embeddings run.** The default is
93
93
  > `xenova` (in-process), which bundles its own embedding model and ignores
94
- > `EMBEDDINGS_MODEL`. Pass `--embeddings-provider ollama` to use the host
95
- > daemon with `--embedding-model` — the value is written to `.env` as the
96
- > single source of truth. See `docs/provider-pattern.md`.
94
+ > `EMBEDDINGS_OLLAMA_MODEL`. Pass `--embeddings-provider ollama` to use the host
95
+ > daemon with `--embedding-model` — the value is written to `.env` (as
96
+ > `EMBEDDINGS_OLLAMA_MODEL`, the key the backend reads) as the single source of
97
+ > truth. See `docs/provider-pattern.md`.
97
98
 
98
99
  > **Template contract**: for `LLM_MODEL` to actually change the running
99
100
  > model, the region repo's `docker-compose-prod.yml` must use
package/dist/cli.js CHANGED
@@ -2223,7 +2223,7 @@ var MANAGED_END = "# <<< op-node managed <<<";
2223
2223
  var MANAGED_KEYS = [
2224
2224
  "LLM_MODEL",
2225
2225
  "EMBEDDINGS_PROVIDER",
2226
- "EMBEDDINGS_MODEL",
2226
+ "EMBEDDINGS_OLLAMA_MODEL",
2227
2227
  "NODE_ENV"
2228
2228
  ];
2229
2229
  var ENV_VALUE_RE = /^[A-Za-z0-9][A-Za-z0-9._:/-]*$/;
@@ -2231,7 +2231,7 @@ function selectionToPairs(sel) {
2231
2231
  return [
2232
2232
  ["LLM_MODEL", sel.llmModel],
2233
2233
  ["EMBEDDINGS_PROVIDER", sel.embeddingsProvider],
2234
- ["EMBEDDINGS_MODEL", sel.embeddingModel],
2234
+ ["EMBEDDINGS_OLLAMA_MODEL", sel.embeddingModel],
2235
2235
  ["NODE_ENV", sel.nodeEnv]
2236
2236
  ];
2237
2237
  }
@@ -2336,7 +2336,7 @@ async function readEnvModelConfig(repoDir) {
2336
2336
  const map = parseEnvContent(content);
2337
2337
  const cfg = {};
2338
2338
  const llm = map.get("LLM_MODEL");
2339
- const emb = map.get("EMBEDDINGS_MODEL");
2339
+ const emb = map.get("EMBEDDINGS_OLLAMA_MODEL");
2340
2340
  const prov = map.get("EMBEDDINGS_PROVIDER");
2341
2341
  const node = map.get("NODE_ENV");
2342
2342
  if (llm !== void 0) cfg.llmModel = llm;
@@ -3029,7 +3029,7 @@ function buildComposeEnv(args) {
3029
3029
  ...secrets.promptServiceApiKey !== void 0 ? { PROMPT_SERVICE_API_KEY: secrets.promptServiceApiKey } : {},
3030
3030
  ...secrets.promptServiceApiKeys !== void 0 ? { PROMPT_SERVICE_API_KEYS: secrets.promptServiceApiKeys } : {},
3031
3031
  ...secrets.promptServiceAdminApiKeys !== void 0 ? { PROMPT_SERVICE_ADMIN_API_KEYS: secrets.promptServiceAdminApiKeys } : {}
3032
- // Model config (LLM_MODEL / EMBEDDINGS_MODEL / NODE_ENV) is intentionally
3032
+ // Model config (LLM_MODEL / EMBEDDINGS_OLLAMA_MODEL / NODE_ENV) is intentionally
3033
3033
  // NOT injected here — it lives in the node's `.env` (runEnvFilePhase),
3034
3034
  // which docker compose auto-loads. Injecting it into the subprocess env
3035
3035
  // would shadow `.env` (shell env > .env) and reintroduce the drift the
@@ -5445,7 +5445,7 @@ function withDefaultSubcommand(argv, known) {
5445
5445
  }
5446
5446
 
5447
5447
  // src/cli.ts
5448
- var VERSION = "0.15.0";
5448
+ var VERSION = "0.15.1";
5449
5449
  var program = new Command();
5450
5450
  program.name("create-op-node").description(
5451
5451
  "Interactive bootstrap for an Opus Populi federation node.\nCloudflare infrastructure \u2192 Mac Studio \u2192 live public API."