offgrid-ai 0.6.1 → 0.6.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/benchmark.mjs +6 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "offgrid-ai",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Privacy-first CLI for running local LLMs — discover, configure, run, benchmark",
5
5
  "author": "Eeshan Srivastava (https://eeshans.com)",
6
6
  "type": "module",
package/src/benchmark.mjs CHANGED
@@ -166,6 +166,8 @@ async function prepareBenchmarkRun({ repoPath, benchmark, kind, modelId, modelSo
166
166
  : { metadata: "metadata.json", prompt: "prompt.md", html: "index.html", preview: "preview.png", video: "preview.webm", rawResponse: "response.raw.txt" },
167
167
  runner: {
168
168
  mode: modelSource === "cloud" ? "manual" : "external",
169
+ intendedRunner: profile ? "Pi" : undefined,
170
+ ...(profile ? { tool: "pi" } : {}),
169
171
  ...(modelSource ? { modelSource } : {}),
170
172
  ...(backendLabel ? { backendLabel } : {}),
171
173
  ...(profile?.baseUrl ? { baseUrl: profile.baseUrl } : {}),
@@ -190,16 +192,10 @@ async function prepareBenchmarkRun({ repoPath, benchmark, kind, modelId, modelSo
190
192
 
191
193
  console.log("");
192
194
  console.log(pc.bold("Next steps"));
193
- if (profile) {
194
- console.log(` 1. ${pc.cyan(`cd ${runDirectory}`)}`);
195
- console.log(` 2. ${pc.cyan(`offgrid-ai run ${profile.id}`)}`);
196
- console.log(` 3. In Pi, paste the prompt from ${pc.cyan("prompt.md")}`);
197
- console.log(` 4. View results: ${pc.cyan(`cd ${repoPath} && npm run dev`)}`);
198
- } else {
199
- console.log(` 1. ${pc.cyan(`cd ${runDirectory}`)}`);
200
- console.log(` 2. Copy the prompt from ${pc.cyan("prompt.md")} into your tool of choice`);
201
- console.log(` 3. View results: ${pc.cyan(`cd ${repoPath} && npm run dev`)}`);
202
- }
195
+ console.log(` 1. ${pc.cyan(`offgrid-ai run ${profile ? profile.id : "<profile>"}`)}`);
196
+ console.log(` 2. ${pc.cyan(`cd ${repoPath} && npm run dev`)}`);
197
+ console.log(` 3. In the gallery, find your run and copy the prompt from the run details`);
198
+ console.log(" 4. In Pi, paste the prompt");
203
199
 
204
200
  return runDirectory;
205
201
  }