naiad-cli 0.2.29 → 0.2.31

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.
@@ -8,6 +8,7 @@ import {
8
8
  type SimpleStreamOptions,
9
9
  type ToolCall,
10
10
  createAssistantMessageEventStream,
11
+ calculateCost,
11
12
  } from "@mariozechner/pi-ai";
12
13
  import { execSync, execFileSync, spawn } from "child_process";
13
14
  import * as readline from "readline";
@@ -165,7 +166,7 @@ export default function (pi: ExtensionAPI) {
165
166
  // ignore parse errors
166
167
  }
167
168
  if (naiadModels.length === 0) {
168
- naiadModels = [{ id: process.env.NAIAD_MODEL ?? "llama-3.1-8b", display_name: "Naiad Model" }];
169
+ naiadModels = [{ id: process.env.NAIAD_MODEL ?? "meta-llama/llama-3.1-8b-instruct", display_name: "Naiad Model" }];
169
170
  }
170
171
 
171
172
  // Event forwarding via HTTP callback (for interactive mode)
@@ -475,6 +476,7 @@ export default function (pi: ExtensionAPI) {
475
476
  }
476
477
 
477
478
  finishCurrentBlock(currentBlock);
479
+ calculateCost(mdl, output.usage);
478
480
  stream.push({ type: "done", reason: output.stopReason as "stop" | "length" | "toolUse", message: output });
479
481
  stream.end();
480
482
  } catch (error) {
@@ -546,9 +548,12 @@ When you're done, provide a clear, actionable summary the caller can act on.`;
546
548
  promptSnippet:
547
549
  "Consult a powerful reasoning model for deep analysis, debugging, code review, or planning (read-only).",
548
550
  promptGuidelines: [
549
- "Use the `seer` tool for complex debugging where you need to trace logic across many files, code review, architecture analysis, or planning complex refactors.",
551
+ "Use the `seer` tool for code reviews and architecture feedback, finding difficult bugs in codepaths that flow across many files, planning complex implementations or refactors, and answering complex technical questions that require deep reasoning.",
552
+ "Before attempting a multi-file refactor or debugging a subtle bug that spans several modules, consult the Seer first to get a plan.",
553
+ "If you find yourself uncertain about the right approach or stuck after a failed attempt, consult the Seer for an alternative point of view.",
554
+ "Treat the Seer's response as an advisory opinion, not a directive. After receiving the Seer's response, do an independent investigation using the Seer's opinion as a starting point, then come up with an updated approach which you should act on.",
550
555
  "The Seer cannot modify files — you act on its analysis.",
551
- "Don't overuse the Seer it's slower and more expensive than doing simple analysis yourself. Use it when the task genuinely benefits from deeper reasoning.",
556
+ "Do NOT use the Seer for simple file reads or searches (use read, grep, find directly), basic code modifications, or tasks you can handle yourself. It is slower and more expensive — only use it when the task genuinely benefits from deeper reasoning.",
552
557
  ],
553
558
  parameters: Type.Object({
554
559
  task: Type.String({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naiad-cli",
3
- "version": "0.2.29",
3
+ "version": "0.2.31",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "naiad": "./dist/index.js"