@llamaventures/cli 1.9.1 → 1.10.0
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/bin/llama-mcp.mjs +12 -2
- package/bin/llama.mjs +7 -2
- package/package.json +1 -1
package/bin/llama-mcp.mjs
CHANGED
|
@@ -971,20 +971,30 @@ server.registerTool(
|
|
|
971
971
|
"Trigger server-side regeneration of the deal memo. Synchronous: " +
|
|
972
972
|
"returns the final result (version, model, duration_ms, degraded) " +
|
|
973
973
|
"once the composer finishes. Typical duration 2-3 minutes. Use " +
|
|
974
|
-
"tier='opus' for high-stakes deals (higher cost, deeper analysis)."
|
|
974
|
+
"tier='opus' for high-stakes deals (higher cost, deeper analysis). " +
|
|
975
|
+
"Pass `instructions` to steer THIS regeneration (e.g. 'focus on team " +
|
|
976
|
+
"risk', 'frame as a follow-on') — applied across all panels, never " +
|
|
977
|
+
"overrides the facts or the verdict.",
|
|
975
978
|
inputSchema: {
|
|
976
979
|
dealId: z.string().describe("deal uuid"),
|
|
977
980
|
tier: z
|
|
978
981
|
.enum(["sonnet", "opus"])
|
|
979
982
|
.optional()
|
|
980
983
|
.describe("LLM tier (default: sonnet)"),
|
|
984
|
+
instructions: z
|
|
985
|
+
.string()
|
|
986
|
+
.optional()
|
|
987
|
+
.describe(
|
|
988
|
+
"Free-text steering for this regeneration only, e.g. 'focus on team risk'. Applied to all panels; never overrides verified facts or the verdict anchor."
|
|
989
|
+
),
|
|
981
990
|
},
|
|
982
991
|
},
|
|
983
|
-
async ({ dealId, tier }) =>
|
|
992
|
+
async ({ dealId, tier, instructions }) =>
|
|
984
993
|
callApi("POST", `/api/deals/${encodeURIComponent(dealId)}/memo`, {
|
|
985
994
|
action: "regenerate",
|
|
986
995
|
stream: false,
|
|
987
996
|
model: tier ?? "sonnet",
|
|
997
|
+
instructions: instructions || undefined,
|
|
988
998
|
})
|
|
989
999
|
);
|
|
990
1000
|
|
package/bin/llama.mjs
CHANGED
|
@@ -358,7 +358,7 @@ Wiki:
|
|
|
358
358
|
|
|
359
359
|
Memo (long-form HTML investment memo — Memo tab in the UI):
|
|
360
360
|
llama memo show <dealId> [--out <path>] [--json] # default: html → stdout (pipeable to file / browser)
|
|
361
|
-
llama memo regenerate <dealId> [--opus]
|
|
361
|
+
llama memo regenerate <dealId> [--opus] [--instructions "..."] # --instructions steers THIS run (e.g. "focus on team risk"); progress → stderr
|
|
362
362
|
llama memo save <dealId> --file <path> # paste a hand-written HTML as manual override
|
|
363
363
|
llama memo reset <dealId> [--all] # default drops manual override; --all drops every version
|
|
364
364
|
|
|
@@ -1964,7 +1964,9 @@ Routing — is this the right command?
|
|
|
1964
1964
|
if (sub === "regenerate") {
|
|
1965
1965
|
const dealId = rest[0];
|
|
1966
1966
|
if (!dealId) {
|
|
1967
|
-
throw new Error(
|
|
1967
|
+
throw new Error(
|
|
1968
|
+
'Usage: llama memo regenerate <dealId> [--opus] [--instructions "..."]'
|
|
1969
|
+
);
|
|
1968
1970
|
}
|
|
1969
1971
|
const { flags } = parseFlags(rest.slice(1));
|
|
1970
1972
|
const tier = flags.opus ? "opus" : "sonnet";
|
|
@@ -1983,6 +1985,9 @@ Routing — is this the right command?
|
|
|
1983
1985
|
action: "regenerate",
|
|
1984
1986
|
stream: true,
|
|
1985
1987
|
model: tier,
|
|
1988
|
+
instructions: flags.instructions
|
|
1989
|
+
? String(flags.instructions)
|
|
1990
|
+
: undefined,
|
|
1986
1991
|
}),
|
|
1987
1992
|
}
|
|
1988
1993
|
);
|