create-aura-appliance 0.1.4 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-aura-appliance",
3
- "version": "0.1.4",
3
+ "version": "0.2.1",
4
4
  "description": "Interactive local and remote installer for the Aura appliance",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,7 +0,0 @@
1
- import type { CommandRunner } from './process.js';
2
- export interface OllamaProbeResult {
3
- reachable: boolean;
4
- models: string[];
5
- }
6
- export declare function probeOllama(runner: CommandRunner, url: string): Promise<OllamaProbeResult>;
7
- //# sourceMappingURL=modelroute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modelroute.d.ts","sourceRoot":"","sources":["../src/modelroute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAsBD,wBAAsB,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAehG"}
@@ -1,33 +0,0 @@
1
- // The operator types the OpenAI-compatible base URL (it becomes AURA_LLM_BASE_URL), but
2
- // Ollama's model list lives at /api/tags on the root, not under /v1.
3
- function tagsUrlFor(baseUrl) {
4
- return `${baseUrl.replace(/\/v1\/?$/, '')}/api/tags`;
5
- }
6
- // Aura runs the probed endpoint from inside a container, and an Ollama on the host is not
7
- // at 127.0.0.1 as seen from there (project memory: "Hyper-V port forwarding lies -- probe
8
- // via docker network, not 127.0.0.1"). create-aura itself runs BEFORE install.sh though, so
9
- // the aura_default compose network does not exist yet and --network aura_default would fail
10
- // on every fresh host. This mirrors the working host-reachability probe at
11
- // scripts/ingest_media_e2e.sh:27-28 instead: default bridge network plus --add-host
12
- // host.docker.internal:host-gateway, which is load-bearing on Linux where that name does not
13
- // resolve without it. alpine is the probe image because scripts/install.sh's ensure_embed_model already runs
14
- // `docker run --rm --volumes-from ... alpine`, so this installer already requires a host able
15
- // to pull it -- a second image would only add a failure mode.
16
- export async function probeOllama(runner, url) {
17
- const tagsUrl = tagsUrlFor(url);
18
- try {
19
- const result = await runner.run('docker', [
20
- 'run', '--rm', '--add-host', 'host.docker.internal:host-gateway', 'alpine',
21
- 'wget', '-qO-', '--timeout=5', tagsUrl,
22
- ]);
23
- const parsed = JSON.parse(result.stdout);
24
- const models = (parsed.models ?? [])
25
- .map((model) => model.name)
26
- .filter((name) => typeof name === 'string');
27
- return { reachable: true, models };
28
- }
29
- catch {
30
- return { reachable: false, models: [] };
31
- }
32
- }
33
- //# sourceMappingURL=modelroute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modelroute.js","sourceRoot":"","sources":["../src/modelroute.ts"],"names":[],"mappings":"AAWA,wFAAwF;AACxF,qEAAqE;AACrE,SAAS,UAAU,CAAC,OAAe;IACjC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,WAAW,CAAC;AACvD,CAAC;AAED,0FAA0F;AAC1F,0FAA0F;AAC1F,4FAA4F;AAC5F,4FAA4F;AAC5F,2EAA2E;AAC3E,oFAAoF;AACpF,6FAA6F;AAC7F,6GAA6G;AAC7G,8FAA8F;AAC9F,8DAA8D;AAC9D,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAAqB,EAAE,GAAW;IAClE,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;IAChC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE;YACxC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,mCAAmC,EAAE,QAAQ;YAC1E,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO;SACvC,CAA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