daedalus-cli 3.22.2 → 3.22.3
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.22.3](https://github.com/bgill55/daedalus/compare/v3.22.2...v3.22.3) (2026-08-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **commands:** prohibit empty template placeholders in ENHANCE_SYSTEM_PROMPT to prevent LLM text-echo repetition loops ([42695d7](https://github.com/bgill55/daedalus/commit/42695d766f12c62b13254a8fbaa6bc03253a4cd8))
|
|
7
|
+
|
|
1
8
|
## [3.22.2](https://github.com/bgill55/daedalus/compare/v3.22.1...v3.22.2) (2026-08-09)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Command, CommandContext } from './types.js';
|
|
2
|
-
export declare const ENHANCE_SYSTEM_PROMPT = "You are an expert prompt engineer for AI coding agents. \nExpand the user's raw or casual request into a crisp, high-yield engineering prompt for Daedalus.\nRules for the generated prompt:\n1. Direct the agent to inspect relevant files and codebase context before answering.\n2. Direct the agent to format its output cleanly with Markdown section headers, comparison tables, and bullet points.\n3. Specify concrete target deliverables (e.g. architecture table,
|
|
2
|
+
export declare const ENHANCE_SYSTEM_PROMPT = "You are an expert prompt engineer for AI coding agents. \nExpand the user's raw or casual request into a crisp, high-yield engineering prompt for Daedalus.\nRules for the generated prompt:\n1. Direct the agent to inspect relevant files and codebase context before answering.\n2. Direct the agent to format its output cleanly with Markdown section headers, comparison tables, and bullet points.\n3. Specify concrete target deliverables (e.g. architecture table, code quality table, top 3 security/performance recommendations).\n4. NEVER request plain text without formatting or forbid markdown formatting.\n5. NEVER output empty template placeholders, empty table cells (e.g. \"| Aspect | | |\"), or bracketed fill-ins (e.g. \"[Specific recommendation]\"). Instead, write clear instructions directing the agent to analyze and populate those sections.\n6. Return ONLY the final enhanced prompt text without meta-commentary, introductory remarks, or surrounding quote marks.";
|
|
3
3
|
export declare function enhancePrompt(rawPrompt: string, ctx: CommandContext): Promise<string>;
|
|
4
4
|
export declare const enhanceCommand: Command;
|
|
5
5
|
//# sourceMappingURL=enhance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enhance.d.ts","sourceRoot":"","sources":["../../src/commands/enhance.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"enhance.d.ts","sourceRoot":"","sources":["../../src/commands/enhance.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,qBAAqB,g9BAQuF,CAAC;AAE1H,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoB3F;AAED,eAAO,MAAM,cAAc,EAAE,OAyD5B,CAAC"}
|
package/dist/commands/enhance.js
CHANGED
|
@@ -7,9 +7,10 @@ Expand the user's raw or casual request into a crisp, high-yield engineering pro
|
|
|
7
7
|
Rules for the generated prompt:
|
|
8
8
|
1. Direct the agent to inspect relevant files and codebase context before answering.
|
|
9
9
|
2. Direct the agent to format its output cleanly with Markdown section headers, comparison tables, and bullet points.
|
|
10
|
-
3. Specify concrete target deliverables (e.g. architecture table,
|
|
10
|
+
3. Specify concrete target deliverables (e.g. architecture table, code quality table, top 3 security/performance recommendations).
|
|
11
11
|
4. NEVER request plain text without formatting or forbid markdown formatting.
|
|
12
|
-
5.
|
|
12
|
+
5. NEVER output empty template placeholders, empty table cells (e.g. "| Aspect | | |"), or bracketed fill-ins (e.g. "[Specific recommendation]"). Instead, write clear instructions directing the agent to analyze and populate those sections.
|
|
13
|
+
6. Return ONLY the final enhanced prompt text without meta-commentary, introductory remarks, or surrounding quote marks.`;
|
|
13
14
|
export async function enhancePrompt(rawPrompt, ctx) {
|
|
14
15
|
const fullPrompt = `${ENHANCE_SYSTEM_PROMPT}\n\nUser request to enhance: "${rawPrompt}"`;
|
|
15
16
|
try {
|
|
@@ -23,7 +24,12 @@ export async function enhancePrompt(rawPrompt, ctx) {
|
|
|
23
24
|
catch (_err) {
|
|
24
25
|
// Fallback if model call fails
|
|
25
26
|
}
|
|
26
|
-
return `
|
|
27
|
+
return `Perform a comprehensive technical audit of the codebase:
|
|
28
|
+
1. Inspect project structure, configuration files, and core source files.
|
|
29
|
+
2. Provide a Project Overview table listing Component, Responsibility, and Key Files.
|
|
30
|
+
3. Provide a Code Quality Assessment table evaluating Type Safety, Error Handling, Code Organization, Test Coverage, and Documentation with Rating and Notes for each.
|
|
31
|
+
4. List Top 5 specific security and performance recommendations with rationale.
|
|
32
|
+
5. Summarize overall codebase health and production readiness.`;
|
|
27
33
|
}
|
|
28
34
|
export const enhanceCommand = {
|
|
29
35
|
name: '/enhance',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enhance.js","sourceRoot":"","sources":["../../src/commands/enhance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAG3D,MAAM,CAAC,MAAM,qBAAqB,GAAG
|
|
1
|
+
{"version":3,"file":"enhance.js","sourceRoot":"","sources":["../../src/commands/enhance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MA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