@answerlayer/cli 0.1.13 → 0.1.14
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 +2 -1
- package/package.json +1 -1
- package/src/local.js +4 -4
package/README.md
CHANGED
|
@@ -136,7 +136,8 @@ answerlayer local start
|
|
|
136
136
|
|
|
137
137
|
`local init` selects the CLI's supported public image by default. Use
|
|
138
138
|
`--image <tag-or-digest>` to select a different published version and `--port`
|
|
139
|
-
to change the local port.
|
|
139
|
+
to change the local port. Fresh runtimes use `http://127.0.0.1:8172`; existing
|
|
140
|
+
runtimes keep their previously selected port. The CLI:
|
|
140
141
|
|
|
141
142
|
1. Verifies Docker, its architecture and version, the port, and available disk.
|
|
142
143
|
2. Pulls the public AnswerLayer image and pins its resolved immutable digest.
|
package/package.json
CHANGED
package/src/local.js
CHANGED
|
@@ -9,7 +9,7 @@ import { AnswerLayerClient } from "./client.js";
|
|
|
9
9
|
import { defaultConfigPath, readConfig, writeConfig } from "./config.js";
|
|
10
10
|
|
|
11
11
|
export const DEFAULT_LOCAL_IMAGE = "public.ecr.aws/s8d9x7y7/answerlayer:1.20.3";
|
|
12
|
-
const DEFAULT_PORT =
|
|
12
|
+
const DEFAULT_PORT = 8172;
|
|
13
13
|
const MINIMUM_FREE_BYTES = 2 * 1024 * 1024 * 1024;
|
|
14
14
|
const PROVIDER_VALIDATION_TIMEOUT_MS = 15_000;
|
|
15
15
|
const LOCAL_DEMO_VERSION = "retail-v1";
|
|
@@ -1375,10 +1375,10 @@ const COMPOSE_FILE = [
|
|
|
1375
1375
|
" RESULT_GC_INTERVAL_SECONDS: \"0\"",
|
|
1376
1376
|
" TELEMETRY_PUSH_INTERVAL_SECONDS: \"0\"",
|
|
1377
1377
|
" METER_SYNC_INTERVAL_SECONDS: \"0\"",
|
|
1378
|
-
" FRONTEND_BASE_URL: http://127.0.0.1:${ANSWERLAYER_PORT:-
|
|
1379
|
-
" CORS_ORIGINS: http://127.0.0.1:${ANSWERLAYER_PORT:-
|
|
1378
|
+
" FRONTEND_BASE_URL: http://127.0.0.1:${ANSWERLAYER_PORT:-8172}",
|
|
1379
|
+
" CORS_ORIGINS: http://127.0.0.1:${ANSWERLAYER_PORT:-8172},http://localhost:${ANSWERLAYER_PORT:-8172}",
|
|
1380
1380
|
" ports:",
|
|
1381
|
-
" - \"127.0.0.1:${ANSWERLAYER_PORT:-
|
|
1381
|
+
" - \"127.0.0.1:${ANSWERLAYER_PORT:-8172}:8000\"",
|
|
1382
1382
|
" depends_on:",
|
|
1383
1383
|
" postgres:",
|
|
1384
1384
|
" condition: service_healthy",
|