@merittdev/horus 0.1.14 → 0.1.15
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/dist/index.cjs +32 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -50314,7 +50314,7 @@ init_cjs_shims();
|
|
|
50314
50314
|
|
|
50315
50315
|
// ../../packages/core/src/version.ts
|
|
50316
50316
|
init_cjs_shims();
|
|
50317
|
-
var HORUS_VERSION = true ? "0.1.
|
|
50317
|
+
var HORUS_VERSION = true ? "0.1.15" : "dev";
|
|
50318
50318
|
var PINNED_AXON_VERSION = "1.0.7";
|
|
50319
50319
|
var PINNED_SOURCE_VERSION = PINNED_AXON_VERSION;
|
|
50320
50320
|
|
|
@@ -74428,6 +74428,29 @@ async function runInvestigations(opts) {
|
|
|
74428
74428
|
// ../../packages/cli/src/commands/replay.ts
|
|
74429
74429
|
init_cjs_shims();
|
|
74430
74430
|
var import_picocolors13 = __toESM(require_picocolors(), 1);
|
|
74431
|
+
|
|
74432
|
+
// ../../packages/cli/src/lib/ai-provider.ts
|
|
74433
|
+
init_cjs_shims();
|
|
74434
|
+
var DEFAULT_MODEL = "claude-opus-4-8";
|
|
74435
|
+
async function buildNarrativeProvider(opts) {
|
|
74436
|
+
let apiKey;
|
|
74437
|
+
let savedModel;
|
|
74438
|
+
try {
|
|
74439
|
+
const config = await loadConfig(opts.config);
|
|
74440
|
+
const ai = resolveAiSettings(config);
|
|
74441
|
+
apiKey = ai.anthropicApiKey;
|
|
74442
|
+
savedModel = ai.model;
|
|
74443
|
+
} catch {
|
|
74444
|
+
}
|
|
74445
|
+
const model = opts.modelOverride ?? savedModel ?? DEFAULT_MODEL;
|
|
74446
|
+
const provider = new AnthropicNarrativeProvider({
|
|
74447
|
+
model,
|
|
74448
|
+
...apiKey !== void 0 ? { apiKey } : {}
|
|
74449
|
+
});
|
|
74450
|
+
return { provider, model };
|
|
74451
|
+
}
|
|
74452
|
+
|
|
74453
|
+
// ../../packages/cli/src/commands/replay.ts
|
|
74431
74454
|
async function runReplay(id, opts) {
|
|
74432
74455
|
const { db, sql: sql2 } = createDb(await resolveDbUrl(opts.config));
|
|
74433
74456
|
try {
|
|
@@ -74454,7 +74477,10 @@ async function runReplay(id, opts) {
|
|
|
74454
74477
|
console.log(import_picocolors13.default.dim("[ai] Stored judgment replayed. Use --refresh-ai to regenerate."));
|
|
74455
74478
|
} else {
|
|
74456
74479
|
const narrativeInput = buildNarrativeInput(report);
|
|
74457
|
-
const provider =
|
|
74480
|
+
const { provider } = await buildNarrativeProvider({
|
|
74481
|
+
config: opts.config,
|
|
74482
|
+
modelOverride: opts.aiModel
|
|
74483
|
+
});
|
|
74458
74484
|
const { output, fromProvider, degraded, validationErrors } = await renderNarrative(
|
|
74459
74485
|
narrativeInput,
|
|
74460
74486
|
{ provider }
|
|
@@ -74574,7 +74600,10 @@ async function runPostmortem(id, opts) {
|
|
|
74574
74600
|
}
|
|
74575
74601
|
} else {
|
|
74576
74602
|
const narrativeInput = buildNarrativeInput(report);
|
|
74577
|
-
const provider =
|
|
74603
|
+
const { provider } = await buildNarrativeProvider({
|
|
74604
|
+
config: opts.config,
|
|
74605
|
+
modelOverride: opts.aiModel
|
|
74606
|
+
});
|
|
74578
74607
|
const { output, fromProvider, degraded, validationErrors } = await renderNarrative(
|
|
74579
74608
|
narrativeInput,
|
|
74580
74609
|
{ provider }
|