claude-teammate 0.1.310 → 0.1.312
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/package.json +1 -1
- package/src/claude/prompts.js +12 -4
package/package.json
CHANGED
package/src/claude/prompts.js
CHANGED
|
@@ -32,6 +32,14 @@ const LANGUAGE_PRESERVATION_RULES = [
|
|
|
32
32
|
"When writing Vietnamese, always use proper Vietnamese diacritics (e.g. 'Ho so nang luc' is wrong; 'Hồ sơ năng lực' is correct)."
|
|
33
33
|
].join(" ");
|
|
34
34
|
|
|
35
|
+
// Only the 4 typographic characters below may be ASCII-folded. This rule must
|
|
36
|
+
// never be generalized into "non-ASCII not allowed in code" — it does not touch
|
|
37
|
+
// letters with diacritics (Vietnamese accents, đ, etc.), which stay exactly as written.
|
|
38
|
+
const SMART_PUNCTUATION_RULE =
|
|
39
|
+
"When editing code or markup, only these typographic characters are disallowed and must be replaced: " +
|
|
40
|
+
'smart quotes -> ", em/en dashes -> -. ' +
|
|
41
|
+
"This applies ONLY to those characters. Never alter letters with diacritics or any other natural-language text; keep it exactly as written.";
|
|
42
|
+
|
|
35
43
|
export function buildRepoSelectionSystemPrompt() {
|
|
36
44
|
return [
|
|
37
45
|
"You are selecting the single repository that a Jira implementation task should use.",
|
|
@@ -338,8 +346,8 @@ export function buildGitHubPRImplementationSystemPrompt() {
|
|
|
338
346
|
"Implement the plan from the pull request description.",
|
|
339
347
|
"Read the epic memory snapshot before making changes so you can reuse known repo-specific build or verification knowledge and avoid repeating past mistakes.",
|
|
340
348
|
"Run only the commands needed to inspect, edit, and test.",
|
|
341
|
-
'When editing code or markup, smart quotes and em/en dashes are not allowed; replace them if encountered: smart quotes -> ", em/en dashes -> -.',
|
|
342
349
|
LANGUAGE_PRESERVATION_RULES,
|
|
350
|
+
SMART_PUNCTUATION_RULE,
|
|
343
351
|
"Only perform frontend/browser verification when the task explicitly asks for UI validation, when the latest human feedback asks for visual confirmation, or when the affected change is clearly user-facing and the verification path is obvious from the repository or epic memory.",
|
|
344
352
|
"When frontend/browser verification is needed, prefer the narrowest useful check, such as an existing targeted test or a short focused Playwright flow, instead of broad exploratory verification.",
|
|
345
353
|
"Do not spend significant time inferring how to start the app or configuring Playwright unless that verification is necessary to confirm the requested change.",
|
|
@@ -396,7 +404,7 @@ ${formatPriorWorkContext(input)}
|
|
|
396
404
|
Instructions:
|
|
397
405
|
- Checkout the branch above in this repository.
|
|
398
406
|
- Implement the plan described in the pull request body.
|
|
399
|
-
-
|
|
407
|
+
- Only these typographic characters are disallowed in code/markup and must be replaced: smart quotes -> ", em/en dashes -> -. This does not apply to diacritics or other natural-language text — keep those exactly as written.
|
|
400
408
|
- If the latest human PR comment requests a change or reports a problem, address that feedback as part of this implementation run.
|
|
401
409
|
- Only use frontend/browser verification when it is needed to confirm the requested change. If verification is needed, prefer existing targeted checks or the most direct focused Playwright flow you can determine from the repository or epic memory.
|
|
402
410
|
- Do not spend significant time inferring app startup or Playwright setup unless visual confirmation is actually necessary for this PR.
|
|
@@ -478,8 +486,8 @@ export function buildGitHubPRImplementationStepSystemPrompt() {
|
|
|
478
486
|
"Implement only the specific step described — do not implement other parts of the larger plan.",
|
|
479
487
|
"Read the epic memory snapshot before making changes so you can reuse known repo-specific knowledge and avoid repeating past mistakes.",
|
|
480
488
|
"Run only the commands needed to inspect, edit, and test this specific step.",
|
|
481
|
-
"When editing code or markup, smart quotes and em/en dashes are not allowed; replace them if encountered.",
|
|
482
489
|
LANGUAGE_PRESERVATION_RULES,
|
|
490
|
+
SMART_PUNCTUATION_RULE,
|
|
483
491
|
"Do not run git add, git commit, or git push. The outer worker will handle all git operations.",
|
|
484
492
|
"If you are blocked on this step, return result=stuck with a concise reason.",
|
|
485
493
|
"Return only structured output matching the provided schema.",
|
|
@@ -512,7 +520,7 @@ ${formatPriorWorkContext(input)}
|
|
|
512
520
|
Instructions:
|
|
513
521
|
- Checkout the branch above in this repository.
|
|
514
522
|
- Implement only the step described above. Do not implement other parts of the plan.
|
|
515
|
-
-
|
|
523
|
+
- Only these typographic characters are disallowed in code/markup and must be replaced: smart quotes -> ", em/en dashes -> -. This does not apply to diacritics or other natural-language text — keep those exactly as written.
|
|
516
524
|
- Do not commit or push; leave modified files in the working tree.
|
|
517
525
|
- Return summary as 1-2 sentences describing what changed in this step.
|
|
518
526
|
- If successful, return result=implemented.
|