sf snapshot: uncommitted changes after 827m inactivity
This commit is contained in:
parent
6f32f9287a
commit
af2f86c3c2
2 changed files with 4 additions and 21 deletions
|
|
@ -2109,30 +2109,13 @@ export async function buildExecuteTaskPrompt(
|
|||
// Only include knowledge if it has content (not a "not found" result)
|
||||
// #4782 phase 3: knowledge and graph moved to composer computed registry.
|
||||
// The composer produces inline blocks including the computed knowledge/graph entries.
|
||||
// Note: slice-plan and task-plan are returned as null from the resolver — they
|
||||
// are already passed as separate template variables ({{taskPlanInline}}, {{slicePlanExcerpt}})
|
||||
// and adding them to the composer would render them twice.
|
||||
const { inline: composedInlines } = await composeUnitContext("execute-task", {
|
||||
base,
|
||||
resolveArtifact: async (key) => {
|
||||
switch (key) {
|
||||
case "task-plan":
|
||||
return taskPlanContent
|
||||
? [
|
||||
"## Inlined Task Plan (authoritative local execution contract)",
|
||||
`Source: \`${taskPlanRelPath}\``,
|
||||
"",
|
||||
taskPlanContent.trim(),
|
||||
].join("\n")
|
||||
: [
|
||||
"## Inlined Task Plan (authoritative local execution contract)",
|
||||
`Task plan not found at dispatch time. Read \`${taskPlanRelPath}\` before executing.`,
|
||||
].join("\n");
|
||||
case "slice-plan": {
|
||||
return slicePlanContent
|
||||
? extractSliceExecutionExcerpt(
|
||||
slicePlanContent,
|
||||
relSliceFile(base, mid, sid, "PLAN"),
|
||||
)
|
||||
: null;
|
||||
}
|
||||
case "prior-task-summaries": {
|
||||
if (priorSummaries.length === 0) return null;
|
||||
const lines = priorSummaries.map((p) => `- \`${p}\``).join("\n");
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ SF extension source code is at: `{{sfSourceDir}}`
|
|||
| **Forensics & recovery** | `forensics.ts` `session-forensics.ts` `crash-recovery.ts` `session-lock.ts` |
|
||||
| **Metrics & telemetry** | `metrics.ts` `skill-telemetry.ts` `token-counter.ts` |
|
||||
| **Health & diagnostics** | `doctor.ts` `doctor-types.ts` `doctor-checks.ts` `doctor-format.ts` `doctor-environment.ts` |
|
||||
| **Prompts & context** | `prompt-loader.ts` `prompt-cache-optimizer.ts` `context-budget.ts` |
|
||||
| **Prompts & context** | `prompt-loader.ts` `context-budget.ts` |
|
||||
| **Git & worktrees** | `git-service.ts` `worktree.ts` `worktree-manager.ts` `git-self-heal.ts` |
|
||||
| **Commands** | `commands.ts` `commands-inspect.ts` `commands-maintenance.ts` |
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue