hanseol-dev 4.5.3-dev.3 → 4.5.3-dev.4
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/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/prompts/agents/planning.d.ts.map +1 -1
- package/dist/prompts/agents/planning.js +30 -1
- package/dist/prompts/agents/planning.js.map +1 -1
- package/dist/prompts/system/plan-execute.d.ts.map +1 -1
- package/dist/prompts/system/plan-execute.js +30 -10
- package/dist/prompts/system/plan-execute.js.map +1 -1
- package/dist/tools/llm/simple/user-interaction-tools.d.ts.map +1 -1
- package/dist/tools/llm/simple/user-interaction-tools.js +3 -17
- package/dist/tools/llm/simple/user-interaction-tools.js.map +1 -1
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const BACKUPS_DIR: string;
|
|
|
6
6
|
export declare const PROJECTS_DIR: string;
|
|
7
7
|
export declare const CREDENTIALS_FILE_PATH: string;
|
|
8
8
|
export declare const APP_NAME = "hanseol-dev";
|
|
9
|
-
export declare const APP_VERSION = "4.5.3-dev.
|
|
9
|
+
export declare const APP_VERSION = "4.5.3-dev.4";
|
|
10
10
|
export declare const DASHBOARD_URL = "https://52.78.246.50.nip.io";
|
|
11
11
|
export declare const ONCE_URL = "https://52.78.246.50.nip.io:5090";
|
|
12
12
|
export declare const FREE_URL = "https://52.78.246.50.nip.io:6090";
|
package/dist/constants.js
CHANGED
|
@@ -8,7 +8,7 @@ export const BACKUPS_DIR = path.join(LOCAL_HOME_DIR, 'backups');
|
|
|
8
8
|
export const PROJECTS_DIR = path.join(LOCAL_HOME_DIR, 'projects');
|
|
9
9
|
export const CREDENTIALS_FILE_PATH = path.join(LOCAL_HOME_DIR, 'credentials.json');
|
|
10
10
|
export const APP_NAME = 'hanseol-dev';
|
|
11
|
-
export const APP_VERSION = '4.5.3-dev.
|
|
11
|
+
export const APP_VERSION = '4.5.3-dev.4';
|
|
12
12
|
export const DASHBOARD_URL = 'https://52.78.246.50.nip.io';
|
|
13
13
|
export const ONCE_URL = 'https://52.78.246.50.nip.io:5090';
|
|
14
14
|
export const FREE_URL = 'https://52.78.246.50.nip.io:6090';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planning.d.ts","sourceRoot":"","sources":["../../../src/prompts/agents/planning.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"planning.d.ts","sourceRoot":"","sources":["../../../src/prompts/agents/planning.ts"],"names":[],"mappings":"AAoPA,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,EAAE,iBAAiB,GAAE,MAAW,GAAG,MAAM,CAarG;AAMD,eAAO,MAAM,sBAAsB,QAWlC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -122,7 +122,36 @@ Before creating TODOs, consider:
|
|
|
122
122
|
- What is the end goal the user is trying to achieve?
|
|
123
123
|
- What would a human colleague do to complete this job?
|
|
124
124
|
|
|
125
|
-
### Rule 4:
|
|
125
|
+
### Rule 4: THINK BEFORE PLANNING
|
|
126
|
+
|
|
127
|
+
**Don't hide confusion. Surface tradeoffs.**
|
|
128
|
+
|
|
129
|
+
- If multiple interpretations exist, use ask_to_user to clarify — never pick silently
|
|
130
|
+
- If a simpler approach exists, propose it first
|
|
131
|
+
- If you have assumptions, state them explicitly in the TODO description
|
|
132
|
+
|
|
133
|
+
### Rule 5: SCOPE CONTROL — Plan only what was asked
|
|
134
|
+
|
|
135
|
+
Every TODO must trace directly to the user's request.
|
|
136
|
+
|
|
137
|
+
- No "while we're at it" refactoring/improvement TODOs
|
|
138
|
+
- If 3 TODOs can do the job, don't write 8
|
|
139
|
+
- Each TODO must clearly map to a part of the user's request
|
|
140
|
+
|
|
141
|
+
This does NOT conflict with Enterprise Quality:
|
|
142
|
+
- Error handling/edge cases for the feature you're building → YES ✅
|
|
143
|
+
- Adding unrequested features/refactoring → NO ❌
|
|
144
|
+
|
|
145
|
+
### Rule 6: SUCCESS CRITERIA
|
|
146
|
+
|
|
147
|
+
**Each TODO must embed how to verify completion.**
|
|
148
|
+
|
|
149
|
+
❌ Bad TODO: "Implement login"
|
|
150
|
+
✅ Good TODO: "Implement login API (POST /auth/login → returns JWT, 401 on wrong password)"
|
|
151
|
+
|
|
152
|
+
You should be able to judge "done or not" from the TODO title alone.
|
|
153
|
+
|
|
154
|
+
### Rule 7: MESSAGE STRUCTURE
|
|
126
155
|
Messages use XML tags to separate context:
|
|
127
156
|
- \`<CONVERSATION_HISTORY>\`: Previous conversation (user messages, assistant responses, tool calls/results in chronological order). This is READ-ONLY context.
|
|
128
157
|
- \`<CURRENT_REQUEST>\`: The NEW request you must plan for NOW.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planning.js","sourceRoot":"","sources":["../../../src/prompts/agents/planning.ts"],"names":[],"mappings":"AAaA,MAAM,oBAAoB,GAAG
|
|
1
|
+
{"version":3,"file":"planning.js","sourceRoot":"","sources":["../../../src/prompts/agents/planning.ts"],"names":[],"mappings":"AAaA,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgO5B,CAAC;AAOF,MAAM,UAAU,yBAAyB,CAAC,WAAmB,EAAE,oBAA4B,EAAE;IAC3F,MAAM,WAAW,GAAG;;;;;EAKpB,WAAW;EACX,iBAAiB;;;CAGlB,CAAC;IAEA,OAAO,oBAAoB,GAAG,WAAW,CAAC;AAC5C,CAAC;AAMD,MAAM,CAAC,MAAM,sBAAsB,GAAG,oBAAoB,GAAG;;;;;;;;;;;CAW5D,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-execute.d.ts","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"plan-execute.d.ts","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,0BAA0B,QA+JtC,CAAC;AAMF,eAAO,MAAM,wBAAwB,6rBAOsD,CAAC;AAS5F,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAoB/D;AAGD,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAE9D,eAAe,0BAA0B,CAAC"}
|
|
@@ -64,16 +64,34 @@ ${TOOL_CALL_FORMAT_GUIDE}
|
|
|
64
64
|
|
|
65
65
|
## Execution Rules
|
|
66
66
|
|
|
67
|
-
1. **Read before modify**
|
|
68
|
-
2. **Use tools**
|
|
69
|
-
3. **
|
|
70
|
-
|
|
67
|
+
1. **Read before modify** — Always read existing code first
|
|
68
|
+
2. **Use tools** — Perform actual work, don't just describe
|
|
69
|
+
3. **Stay focused** — Only work on TODOs, no unrelated features
|
|
70
|
+
|
|
71
|
+
### SURGICAL CHANGES — Touch only what the TODO requires
|
|
72
|
+
|
|
73
|
+
- Do NOT "improve" adjacent code, comments, or formatting
|
|
74
|
+
- Do NOT refactor code that isn't part of the TODO
|
|
75
|
+
- Match existing code style exactly, even if you'd do it differently
|
|
76
|
+
- If YOUR changes make something unused, remove it. But do NOT touch pre-existing dead code.
|
|
77
|
+
|
|
78
|
+
**Test: Every changed line must trace directly to a TODO item.**
|
|
79
|
+
|
|
80
|
+
### SIMPLICITY — Minimum code that solves the problem
|
|
81
|
+
|
|
82
|
+
- No abstractions for single-use code
|
|
83
|
+
- No speculative "flexibility" or "configurability" that wasn't requested
|
|
84
|
+
- If 200 lines could be 50, write 50
|
|
85
|
+
|
|
86
|
+
This does NOT conflict with Enterprise Quality:
|
|
87
|
+
- Error handling for features you're building → YES ✅
|
|
88
|
+
- Error handling for impossible scenarios → NO ❌
|
|
71
89
|
|
|
72
90
|
${CODEBASE_FIRST_RULE}
|
|
73
91
|
|
|
74
92
|
## CRITICAL: Tool Error Handling
|
|
75
93
|
|
|
76
|
-
**On tool error:** Read the error, investigate the cause, then retry with corrected parameters.
|
|
94
|
+
**On tool error:** Read the error, investigate the cause, then retry with corrected parameters.
|
|
77
95
|
|
|
78
96
|
**NEVER call the same tool with the same arguments twice.** If a tool succeeded, move on. If a tool failed, change your approach or parameters before retrying.
|
|
79
97
|
|
|
@@ -134,13 +152,13 @@ Do NOT re-execute tools from history. Do NOT confuse tools used in history with
|
|
|
134
152
|
**STOP immediately when ANY of these conditions are met:**
|
|
135
153
|
1. ✅ All TODOs are "completed" or "failed" → deliver final response
|
|
136
154
|
2. ✅ User explicitly says "stop", "cancel", or "enough"
|
|
137
|
-
3. ✅ Same tool call with same arguments returns same error 2+ times → mark TODO "failed"
|
|
155
|
+
3. ✅ Same tool call with same arguments returns same error 2+ times → change approach or mark TODO "failed"
|
|
138
156
|
4. ✅ TODO context keeps repeating but no progress → mark remaining as "completed"
|
|
139
157
|
|
|
140
158
|
**NEVER do these:**
|
|
141
159
|
1. ❌ Do NOT stop after completing just ONE TODO — continue to the next
|
|
142
160
|
2. ❌ Do NOT call the same tool with identical arguments expecting different results
|
|
143
|
-
3. ❌ Do NOT retry a failed approach
|
|
161
|
+
3. ❌ Do NOT retry a failed approach with the same parameters — try an alternative or mark "failed"
|
|
144
162
|
4. ❌ Do NOT leave TODOs as "in_progress" when moving to the next — update status first
|
|
145
163
|
`;
|
|
146
164
|
export const VISION_VERIFICATION_RULE = `## CRITICAL: Screenshot Verification
|
|
@@ -160,11 +178,13 @@ export function getCriticalReminders(hasVision) {
|
|
|
160
178
|
'5. Use tell_to_user to report progress between tasks — the user should know what you\'re doing.',
|
|
161
179
|
'6. Call final_response ONLY when ALL TODOs are completed or failed.',
|
|
162
180
|
'7. VERIFY every result before marking complete. Run, test, read — never assume correctness.',
|
|
163
|
-
'8.
|
|
164
|
-
'9.
|
|
181
|
+
'8. Enterprise quality — always check error handling, edge cases, and related files.',
|
|
182
|
+
'9. Default to Korean — switch language only when user inputs in another language.',
|
|
183
|
+
'10. SURGICAL — do NOT modify code outside the TODO scope. No "improving" adjacent code.',
|
|
184
|
+
'11. SIMPLICITY — minimum code to solve the problem. No single-use abstractions. No unrequested features.',
|
|
165
185
|
];
|
|
166
186
|
if (hasVision) {
|
|
167
|
-
items.push('
|
|
187
|
+
items.push('12. If the result is visually verifiable, TAKE A SCREENSHOT and confirm it with your eyes.');
|
|
168
188
|
}
|
|
169
189
|
return `## REMEMBER\n${items.join('\n')}`;
|
|
170
190
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-execute.js","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,CAAC,MAAM,0BAA0B,GAAG;;EAExC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDtB,yBAAyB;;EAEzB,iBAAiB;;EAEjB,sBAAsB
|
|
1
|
+
{"version":3,"file":"plan-execute.js","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B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,CAE5C;AAwHD,eAAO,MAAM,aAAa,EAAE,aAK3B,CAAC;AASF,eAAO,MAAM,sBAAsB,EAAE,aAAa,EAGjD,CAAC;AAKF,eAAO,MAAM,UAAU,EAAE,aAAa,EAA2B,CAAC;AAElE,eAAe,sBAAsB,CAAC"}
|
|
@@ -45,10 +45,7 @@ export const tellToUserTool = {
|
|
|
45
45
|
};
|
|
46
46
|
let askUserCallback = null;
|
|
47
47
|
export function setAskUserCallback(callback) {
|
|
48
|
-
logger.
|
|
49
|
-
hasCallback: !!callback,
|
|
50
|
-
stack: new Error().stack?.split('\n').slice(1, 3).join(' | '),
|
|
51
|
-
});
|
|
48
|
+
logger.flow('Setting ask-user callback');
|
|
52
49
|
askUserCallback = callback;
|
|
53
50
|
}
|
|
54
51
|
export function clearAskUserCallback() {
|
|
@@ -123,26 +120,15 @@ async function executeAskToUser(args) {
|
|
|
123
120
|
};
|
|
124
121
|
}
|
|
125
122
|
if (!askUserCallback) {
|
|
126
|
-
logger.warn('
|
|
127
|
-
question: question?.substring(0, 50),
|
|
128
|
-
optionCount: options?.length,
|
|
129
|
-
stack: new Error().stack?.split('\n').slice(1, 4).join(' | '),
|
|
130
|
-
});
|
|
123
|
+
logger.warn('Ask-user callback not set');
|
|
131
124
|
return {
|
|
132
125
|
success: false,
|
|
133
126
|
error: 'User interaction is not available in current context',
|
|
134
127
|
};
|
|
135
128
|
}
|
|
136
129
|
try {
|
|
137
|
-
logger.
|
|
138
|
-
question: question?.substring(0, 50),
|
|
139
|
-
optionCount: options?.length,
|
|
140
|
-
});
|
|
130
|
+
logger.flow('Asking user question');
|
|
141
131
|
const response = await askUserCallback({ question, options });
|
|
142
|
-
logger.info('[BUG-DIAG] askUserCallback returned', {
|
|
143
|
-
selectedOption: response?.selectedOption,
|
|
144
|
-
isOther: response?.isOther,
|
|
145
|
-
});
|
|
146
132
|
logger.debug('User responded', { selectedOption: response.selectedOption, isOther: response.isOther });
|
|
147
133
|
const resultText = response.isOther && response.customText
|
|
148
134
|
? `User provided custom response: "${response.customText}"`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-interaction-tools.js","sourceRoot":"","sources":["../../../../src/tools/llm/simple/user-interaction-tools.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAUlD,IAAI,kBAAkB,GAA8B,IAAI,CAAC;AAKzD,MAAM,UAAU,qBAAqB,CAAC,QAAmC;IACvE,kBAAkB,GAAG,QAAQ,CAAC;AAChC,CAAC;AAKD,MAAM,uBAAuB,GAAmB;IAC9C,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE;;qDAEoC;QACjD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;;;;sCAKe;iBAC7B;aACF;YACD,QAAQ,EAAE,CAAC,SAAS,CAAC;SACtB;KACF;CACF,CAAC;AAKF,KAAK,UAAU,iBAAiB,CAAC,IAA6B;IAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAW,CAAC;IAE1C,IAAI,kBAAkB,EAAE,CAAC;QACvB,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO;QACL,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,yBAAyB,OAAO,EAAE;KAC3C,CAAC;AACJ,CAAC;AAKD,MAAM,CAAC,MAAM,cAAc,GAAkB;IAC3C,UAAU,EAAE,uBAAuB;IACnC,OAAO,EAAE,iBAAiB;IAC1B,UAAU,EAAE,CAAC,YAAY,CAAmB;IAC5C,WAAW,EAAE,sBAAsB;CACpC,CAAC;AA4BF,IAAI,eAAe,GAA2B,IAAI,CAAC;AAKnD,MAAM,UAAU,kBAAkB,CAAC,QAAyB;IAC1D,MAAM,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":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