@phren/cli 0.2.5 → 0.2.6
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.
|
@@ -17,6 +17,7 @@ import * as fs from "fs";
|
|
|
17
17
|
import * as path from "path";
|
|
18
18
|
import { createHash } from "crypto";
|
|
19
19
|
import { callLlm } from "./dedup.js";
|
|
20
|
+
import { bootstrapPhrenDotEnv } from "../phren-dotenv.js";
|
|
20
21
|
import { readProjectTopics, topicReferencePath } from "../project-topics.js";
|
|
21
22
|
import { storeAwareProjectPath } from "../store-routing.js";
|
|
22
23
|
import { atomicWriteText, debugLog } from "../phren-paths.js";
|
|
@@ -268,6 +269,10 @@ function countOpenTasks(tasksPath) {
|
|
|
268
269
|
}
|
|
269
270
|
/** Summarize every topic file of a project and refresh the "What phren knows" block in summary.md. */
|
|
270
271
|
export async function summarizeProject(phrenPath, project, opts = {}) {
|
|
272
|
+
// The store's .env carries the LLM endpoint and model; a CLI path that has
|
|
273
|
+
// not touched a feature flag yet has not loaded it.
|
|
274
|
+
if (opts.llm)
|
|
275
|
+
bootstrapPhrenDotEnv(phrenPath);
|
|
271
276
|
const topics = readProjectTopics(phrenPath, project).topics;
|
|
272
277
|
const results = [];
|
|
273
278
|
const seen = new Set();
|