@kaddo/cli 3.10.0 → 3.10.1
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.js +12 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5976,7 +5976,7 @@ function flowForState(state) {
|
|
|
5976
5976
|
}
|
|
5977
5977
|
function buildUnderstandPlan(dir, config) {
|
|
5978
5978
|
const state = config.project.state;
|
|
5979
|
-
const flow = flowForState(state);
|
|
5979
|
+
const flow = flowForState(state).filter((s) => !exists(join(dir, s.output)));
|
|
5980
5980
|
const steps = flow.map((s) => {
|
|
5981
5981
|
const installed = agentIsInstalled(dir, s.agent);
|
|
5982
5982
|
return { agent: s.agent, output: s.output, installed };
|
|
@@ -6077,24 +6077,26 @@ function renderUnderstandTerminal(plan) {
|
|
|
6077
6077
|
lines.push(`Team: ${project.teamSize}`);
|
|
6078
6078
|
lines.push(`Structure: ${project.structure}`);
|
|
6079
6079
|
lines.push("");
|
|
6080
|
-
lines.push("Recommended flow:");
|
|
6081
|
-
steps.forEach((s, i) => {
|
|
6082
|
-
const flag = s.installed ? "" : " (not installed)";
|
|
6083
|
-
lines.push(` ${i + 1}. ${agentName(s.agent)} \u2192 ${s.output}${flag}`);
|
|
6084
|
-
});
|
|
6085
|
-
lines.push("");
|
|
6086
6080
|
const first2 = steps[0];
|
|
6087
6081
|
if (first2) {
|
|
6082
|
+
lines.push("Foundational knowledge still needed:");
|
|
6083
|
+
steps.forEach((s, i) => {
|
|
6084
|
+
const flag = s.installed ? "" : " (not installed)";
|
|
6085
|
+
lines.push(` ${i + 1}. ${agentName(s.agent)} \u2192 ${s.output}${flag}`);
|
|
6086
|
+
});
|
|
6087
|
+
lines.push("");
|
|
6088
6088
|
lines.push(`First step: use ${agentName(first2.agent)}.`);
|
|
6089
6089
|
lines.push("");
|
|
6090
6090
|
lines.push(` Context: ${plan.contextPackPath}`);
|
|
6091
6091
|
lines.push(` Agent prompt: knowledge/agents/${first2.agent}`);
|
|
6092
6092
|
lines.push(` Expected output: ${first2.output}`);
|
|
6093
6093
|
lines.push("");
|
|
6094
|
+
lines.push("Instructions:");
|
|
6095
|
+
lines.push(" Open your preferred LLM chat, paste the context pack, then paste the agent");
|
|
6096
|
+
lines.push(" prompt. Ask the LLM to generate the expected output and save it in the target file.");
|
|
6097
|
+
} else {
|
|
6098
|
+
lines.push("Foundational knowledge looks complete \u2014 see the phase recommendation below.");
|
|
6094
6099
|
}
|
|
6095
|
-
lines.push("Instructions:");
|
|
6096
|
-
lines.push(" Open your preferred LLM chat, paste the context pack, then paste the agent");
|
|
6097
|
-
lines.push(" prompt. Ask the LLM to generate the expected output and save it in the target file.");
|
|
6098
6100
|
lines.push("");
|
|
6099
6101
|
lines.push("Kaddo does not call an LLM. You stay in control of the interpretation.");
|
|
6100
6102
|
lines.push("");
|