newtype-profile 1.0.9 → 1.0.11
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/cli/index.js
CHANGED
|
@@ -2253,7 +2253,7 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
2253
2253
|
var require_package = __commonJS((exports, module) => {
|
|
2254
2254
|
module.exports = {
|
|
2255
2255
|
name: "newtype-profile",
|
|
2256
|
-
version: "1.0.
|
|
2256
|
+
version: "1.0.11",
|
|
2257
2257
|
description: "AI Agent Collaboration System for Content Creation - Based on oh-my-opencode",
|
|
2258
2258
|
main: "dist/index.js",
|
|
2259
2259
|
types: "dist/index.d.ts",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Confidence-based routing for fact-check results
|
|
3
|
+
*
|
|
4
|
+
* Parses confidence scores from fact-checker output and generates
|
|
5
|
+
* routing recommendations for the orchestrator.
|
|
6
|
+
*/
|
|
7
|
+
export interface ConfidenceResult {
|
|
8
|
+
confidence: number | null;
|
|
9
|
+
recommendation: "pass" | "polish" | "rewrite" | null;
|
|
10
|
+
directive: string | null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Extract confidence score from fact-checker output
|
|
14
|
+
* Looks for pattern: **CONFIDENCE: X.XX**
|
|
15
|
+
*/
|
|
16
|
+
export declare function extractConfidence(output: string): number | null;
|
|
17
|
+
/**
|
|
18
|
+
* Determine routing recommendation based on confidence score
|
|
19
|
+
*/
|
|
20
|
+
export declare function getRecommendation(confidence: number): "pass" | "polish" | "rewrite";
|
|
21
|
+
/**
|
|
22
|
+
* Build routing directive for Chief based on confidence
|
|
23
|
+
*/
|
|
24
|
+
export declare function buildConfidenceDirective(confidence: number, sessionId: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Analyze fact-check output and generate routing result
|
|
27
|
+
*/
|
|
28
|
+
export declare function analyzeFactCheckOutput(output: string, sessionId: string): ConfidenceResult;
|
|
29
|
+
/**
|
|
30
|
+
* Check if output is from a fact-check task
|
|
31
|
+
*/
|
|
32
|
+
export declare function isFactCheckOutput(output: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -22893,6 +22893,77 @@ function clearTrackerForSession(sessionId) {
|
|
|
22893
22893
|
sessionTrackers.delete(sessionId);
|
|
22894
22894
|
}
|
|
22895
22895
|
|
|
22896
|
+
// src/hooks/chief-orchestrator/confidence-router.ts
|
|
22897
|
+
function extractConfidence(output) {
|
|
22898
|
+
const match = output.match(/\*\*CONFIDENCE:\s*(\d+\.?\d*)\*\*/i);
|
|
22899
|
+
if (match) {
|
|
22900
|
+
const value = parseFloat(match[1]);
|
|
22901
|
+
if (!isNaN(value) && value >= 0 && value <= 1) {
|
|
22902
|
+
return value;
|
|
22903
|
+
}
|
|
22904
|
+
}
|
|
22905
|
+
return null;
|
|
22906
|
+
}
|
|
22907
|
+
function getRecommendation(confidence) {
|
|
22908
|
+
if (confidence >= 0.8) {
|
|
22909
|
+
return "pass";
|
|
22910
|
+
} else if (confidence >= 0.5) {
|
|
22911
|
+
return "polish";
|
|
22912
|
+
} else {
|
|
22913
|
+
return "rewrite";
|
|
22914
|
+
}
|
|
22915
|
+
}
|
|
22916
|
+
function buildConfidenceDirective(confidence, sessionId) {
|
|
22917
|
+
const recommendation = getRecommendation(confidence);
|
|
22918
|
+
const confidencePercent = Math.round(confidence * 100);
|
|
22919
|
+
switch (recommendation) {
|
|
22920
|
+
case "pass":
|
|
22921
|
+
return `[FACT-CHECK PASSED]
|
|
22922
|
+
Confidence: ${confidencePercent}% (HIGH)
|
|
22923
|
+
Action: Content verified. Ready for delivery.`;
|
|
22924
|
+
case "polish":
|
|
22925
|
+
return `[FACT-CHECK: NEEDS POLISH]
|
|
22926
|
+
Confidence: ${confidencePercent}% (MEDIUM)
|
|
22927
|
+
Action: Send to Editor for refinement.
|
|
22928
|
+
|
|
22929
|
+
REQUIRED: Call chief_task with:
|
|
22930
|
+
category="editing"
|
|
22931
|
+
prompt="Polish the content based on fact-check feedback. Address minor uncertainties while preserving verified claims."
|
|
22932
|
+
resume="${sessionId}"`;
|
|
22933
|
+
case "rewrite":
|
|
22934
|
+
return `[FACT-CHECK: NEEDS REWRITE]
|
|
22935
|
+
Confidence: ${confidencePercent}% (LOW)
|
|
22936
|
+
Action: Significant issues found. Send back to Writer.
|
|
22937
|
+
|
|
22938
|
+
REQUIRED: Call chief_task with:
|
|
22939
|
+
category="writing"
|
|
22940
|
+
prompt="Rewrite the content addressing the fact-check issues. Focus on: [list specific issues from fact-check report]"
|
|
22941
|
+
resume="${sessionId}"
|
|
22942
|
+
|
|
22943
|
+
NOTE: Max 2 rewrite attempts. If still failing after 2 rewrites, escalate to user.`;
|
|
22944
|
+
}
|
|
22945
|
+
}
|
|
22946
|
+
function analyzeFactCheckOutput(output, sessionId) {
|
|
22947
|
+
const confidence = extractConfidence(output);
|
|
22948
|
+
if (confidence === null) {
|
|
22949
|
+
return {
|
|
22950
|
+
confidence: null,
|
|
22951
|
+
recommendation: null,
|
|
22952
|
+
directive: null
|
|
22953
|
+
};
|
|
22954
|
+
}
|
|
22955
|
+
const recommendation = getRecommendation(confidence);
|
|
22956
|
+
const directive = buildConfidenceDirective(confidence, sessionId);
|
|
22957
|
+
return {
|
|
22958
|
+
confidence,
|
|
22959
|
+
recommendation,
|
|
22960
|
+
directive
|
|
22961
|
+
};
|
|
22962
|
+
}
|
|
22963
|
+
function isFactCheckOutput(output) {
|
|
22964
|
+
return output.includes("CONFIDENCE:") || output.toLowerCase().includes("fact-check") || output.includes("\u6838\u67E5") || output.includes("verification");
|
|
22965
|
+
}
|
|
22966
|
+
|
|
22896
22967
|
// src/hooks/chief-orchestrator/index.ts
|
|
22897
22968
|
var HOOK_NAME6 = "chief-orchestrator";
|
|
22898
22969
|
var ALLOWED_PATH_PREFIX2 = ".chief/";
|
|
@@ -23465,12 +23536,28 @@ ${buildOrchestratorReminder(boulderState.plan_name, progress, subagentSessionId)
|
|
|
23465
23536
|
const category = categoryMatch?.[1];
|
|
23466
23537
|
const summarized = summarizeOutput(output.output, { category });
|
|
23467
23538
|
const formattedSummary = formatSummarizedOutput(summarized);
|
|
23539
|
+
let confidenceDirective = "";
|
|
23540
|
+
if (isFactCheckOutput(output.output)) {
|
|
23541
|
+
const confidenceResult = analyzeFactCheckOutput(output.output, subagentSessionId);
|
|
23542
|
+
if (confidenceResult.directive) {
|
|
23543
|
+
confidenceDirective = `
|
|
23544
|
+
|
|
23545
|
+
---
|
|
23546
|
+
${confidenceResult.directive}
|
|
23547
|
+
---`;
|
|
23548
|
+
log(`[${HOOK_NAME6}] Confidence routing detected`, {
|
|
23549
|
+
sessionID: input.sessionID,
|
|
23550
|
+
confidence: confidenceResult.confidence,
|
|
23551
|
+
recommendation: confidenceResult.recommendation
|
|
23552
|
+
});
|
|
23553
|
+
}
|
|
23554
|
+
}
|
|
23468
23555
|
output.output = `${formattedSummary}
|
|
23469
23556
|
|
|
23470
23557
|
${progressTable}
|
|
23471
23558
|
|
|
23472
23559
|
${fileChanges ? `
|
|
23473
|
-
${fileChanges}` : ""}
|
|
23560
|
+
${fileChanges}` : ""}${confidenceDirective}
|
|
23474
23561
|
<system-reminder>
|
|
23475
23562
|
${buildStandaloneVerificationReminder(subagentSessionId)}
|
|
23476
23563
|
</system-reminder>`;
|
|
@@ -44501,7 +44588,22 @@ Approach:
|
|
|
44501
44588
|
- Official documents over media reports
|
|
44502
44589
|
- Academic/peer-reviewed over informal
|
|
44503
44590
|
- Note confidence levels for each claim
|
|
44504
|
-
</Category_Context
|
|
44591
|
+
</Category_Context>
|
|
44592
|
+
|
|
44593
|
+
<Output_Format>
|
|
44594
|
+
CRITICAL: You MUST end your response with a confidence score in this EXACT format:
|
|
44595
|
+
|
|
44596
|
+
---
|
|
44597
|
+
**CONFIDENCE: X.XX**
|
|
44598
|
+
|
|
44599
|
+
Where X.XX is a number between 0.00 and 1.00:
|
|
44600
|
+
- 0.90-1.00: All claims verified with authoritative sources
|
|
44601
|
+
- 0.70-0.89: Most claims verified, minor uncertainties
|
|
44602
|
+
- 0.50-0.69: Some claims unverified or conflicting sources
|
|
44603
|
+
- 0.00-0.49: Significant issues, major claims unverified or false
|
|
44604
|
+
|
|
44605
|
+
This score determines whether the content passes review or needs revision.
|
|
44606
|
+
</Output_Format>`;
|
|
44505
44607
|
var ARCHIVE_CATEGORY_PROMPT_APPEND = `<Category_Context>
|
|
44506
44608
|
You are working on ARCHIVE/KNOWLEDGE-BASE tasks.
|
|
44507
44609
|
|
|
@@ -44582,11 +44684,11 @@ Approach:
|
|
|
44582
44684
|
</Category_Context>`;
|
|
44583
44685
|
var DEFAULT_CATEGORIES = {
|
|
44584
44686
|
research: {
|
|
44585
|
-
model: "google/antigravity-gemini-3-
|
|
44687
|
+
model: "google/antigravity-gemini-3-flash",
|
|
44586
44688
|
temperature: 0.5
|
|
44587
44689
|
},
|
|
44588
44690
|
"fact-check": {
|
|
44589
|
-
model: "google/antigravity-gemini-3-
|
|
44691
|
+
model: "google/antigravity-gemini-3-flash",
|
|
44590
44692
|
temperature: 0.2
|
|
44591
44693
|
},
|
|
44592
44694
|
archive: {
|
|
@@ -48911,35 +49013,49 @@ function getModelLimit(state2, providerID, modelID) {
|
|
|
48911
49013
|
var DEFAULT_MODEL = "anthropic/claude-opus-4-5";
|
|
48912
49014
|
function createChiefAgent(model = DEFAULT_MODEL) {
|
|
48913
49015
|
return {
|
|
48914
|
-
description: "Chief
|
|
49016
|
+
description: "Chief - thought partner for exploration, coordinator for execution. Opinionated, direct, challenges flawed thinking.",
|
|
48915
49017
|
mode: "primary",
|
|
48916
49018
|
model,
|
|
48917
49019
|
temperature: 0.3,
|
|
48918
49020
|
prompt: `<Role>
|
|
48919
|
-
You are "Chief" \u2014
|
|
49021
|
+
You are "Chief" \u2014 a thought partner who happens to have a team.
|
|
48920
49022
|
|
|
48921
|
-
**Mode 1 -
|
|
49023
|
+
**Mode 1 - Thought Partner**: When users want to explore ideas, you think WITH them. You have your own opinions. You challenge flawed logic directly. You're not a facilitator \u2014 you're a sparring partner.
|
|
48922
49024
|
|
|
48923
|
-
**Mode 2 - Execution Coordinator**: When users have clear deliverables, you decompose
|
|
49025
|
+
**Mode 2 - Execution Coordinator**: When users have clear deliverables, you decompose, delegate, and deliver.
|
|
48924
49026
|
|
|
48925
|
-
You
|
|
49027
|
+
You switch modes based on user intent.
|
|
48926
49028
|
</Role>
|
|
48927
49029
|
|
|
49030
|
+
<Philosophy>
|
|
49031
|
+
## How You Think
|
|
49032
|
+
- **Go Fundamental**: Dig into principles, not surface-level tools. Why does this work? What's the underlying mechanism?
|
|
49033
|
+
- **First-Party Sources First**: Official docs, original papers, author's own words. Be skeptical of second-hand interpretations, especially media reports.
|
|
49034
|
+
- **Systematic Thinking**: Everything can become a workflow. Seek reusable patterns, not one-off solutions.
|
|
49035
|
+
- **Anti-Fragile by Default**: Multiple backups, no single point of failure, keep options open.
|
|
49036
|
+
|
|
49037
|
+
## Your Stance
|
|
49038
|
+
- You are NOT a neutral information courier. You have opinions.
|
|
49039
|
+
- When you spot a logical flaw, you say it directly: "This has a problem\u2014"
|
|
49040
|
+
- You might be wrong. User can push back. That's how good thinking happens.
|
|
49041
|
+
- You don't lecture. Your values show through your judgments, not through preaching.
|
|
49042
|
+
</Philosophy>
|
|
49043
|
+
|
|
48928
49044
|
<Core_Capabilities>
|
|
48929
|
-
## As
|
|
48930
|
-
1. **
|
|
48931
|
-
2. **
|
|
48932
|
-
3. **
|
|
48933
|
-
4. **
|
|
48934
|
-
5. **
|
|
48935
|
-
6. **Silent
|
|
49045
|
+
## As Thought Partner
|
|
49046
|
+
1. **Cut to the Core**: What's the REAL question here? Strip away noise.
|
|
49047
|
+
2. **Find Contradictions**: Does user's logic contradict itself?
|
|
49048
|
+
3. **Challenge Directly**: "I disagree. Here's why\u2014" (not "Have you considered...")
|
|
49049
|
+
4. **Give Judgment**: State your view clearly, don't just list options
|
|
49050
|
+
5. **Iterate Together**: User pushes back, you refine, repeat until clarity
|
|
49051
|
+
6. **Silent Research**: Dispatch agents in background while discussing \u2014 user doesn't need to know
|
|
48936
49052
|
|
|
48937
49053
|
## As Execution Coordinator
|
|
48938
|
-
1. **Intent
|
|
48939
|
-
2. **
|
|
48940
|
-
3. **
|
|
48941
|
-
4. **Quality Gate**:
|
|
48942
|
-
5. **
|
|
49054
|
+
1. **Parse Intent**: What does user actually want, including unstated needs?
|
|
49055
|
+
2. **Decompose**: Break into atomic tasks
|
|
49056
|
+
3. **Dispatch**: Right specialist, right time, parallel when possible
|
|
49057
|
+
4. **Quality Gate**: You review everything before delivery
|
|
49058
|
+
5. **Iterate**: Writer \u21C4 Editor ping-pong, max 3 rounds
|
|
48943
49059
|
</Core_Capabilities>
|
|
48944
49060
|
|
|
48945
49061
|
<Mode_Detection>
|
|
@@ -48957,72 +49073,96 @@ You seamlessly switch between modes based on user intent.
|
|
|
48957
49073
|
- Deadlines or concrete deliverables mentioned
|
|
48958
49074
|
</Mode_Detection>
|
|
48959
49075
|
|
|
48960
|
-
<
|
|
48961
|
-
##
|
|
48962
|
-
1. **
|
|
48963
|
-
2. **
|
|
48964
|
-
3. **
|
|
48965
|
-
4. **
|
|
48966
|
-
5. **
|
|
49076
|
+
<Discussion_Behavior>
|
|
49077
|
+
## Engagement Style
|
|
49078
|
+
1. **Get to the Point**: "The real question is..." / "\u4F60\u771F\u6B63\u60F3\u95EE\u7684\u662F..."
|
|
49079
|
+
2. **Expose the Gap**: "Your logic breaks here\u2014" / "\u8FD9\u91CC\u6709\u4E2A\u77DB\u76FE\u2014"
|
|
49080
|
+
3. **State Your View**: "I think X because Y" \u2014 not "Some might argue X"
|
|
49081
|
+
4. **Welcome Pushback**: Being challenged means we're getting somewhere
|
|
49082
|
+
5. **Know When to Stop**: If we're going in circles, call it out
|
|
48967
49083
|
|
|
48968
|
-
## Silent Delegation
|
|
49084
|
+
## Silent Delegation
|
|
48969
49085
|
When you notice:
|
|
48970
|
-
-
|
|
48971
|
-
-
|
|
48972
|
-
-
|
|
49086
|
+
- Factual claim needs verification \u2192 dispatch **researcher** or **fact-checker** in background
|
|
49087
|
+
- Need existing materials \u2192 dispatch **archivist** in background
|
|
49088
|
+
- Complex document needs extraction \u2192 dispatch **extractor** in background
|
|
48973
49089
|
|
|
48974
|
-
|
|
49090
|
+
Weave results into conversation naturally. Don't announce "checking with my team."
|
|
48975
49091
|
|
|
48976
49092
|
## Transition to Execution
|
|
48977
|
-
When discussion
|
|
48978
|
-
- Summarize what
|
|
49093
|
+
When discussion crystallizes into a task:
|
|
49094
|
+
- Summarize what we decided
|
|
48979
49095
|
- Confirm the deliverable
|
|
48980
49096
|
- Switch to execution mode
|
|
48981
|
-
|
|
48982
|
-
</Discussion_Mode_Behavior>
|
|
49097
|
+
</Discussion_Behavior>
|
|
48983
49098
|
|
|
48984
49099
|
<Your_Team>
|
|
48985
49100
|
| Agent | Role | When to Use |
|
|
48986
49101
|
|-------|------|-------------|
|
|
48987
|
-
| **researcher** | External intelligence |
|
|
49102
|
+
| **researcher** | External intelligence | New info, trends, competitive analysis |
|
|
48988
49103
|
| **fact-checker** | Verify claims | Before finalizing factual content |
|
|
48989
|
-
| **archivist** | Internal knowledge base |
|
|
49104
|
+
| **archivist** | Internal knowledge base | Existing materials, find connections |
|
|
48990
49105
|
| **extractor** | Format processing | PDF, images, documents need extraction |
|
|
48991
49106
|
| **writer** | Draft creation | Ready to produce content |
|
|
48992
49107
|
| **editor** | Polish and refine | Draft needs improvement |
|
|
48993
49108
|
</Your_Team>
|
|
48994
49109
|
|
|
48995
|
-
<
|
|
48996
|
-
##
|
|
49110
|
+
<Execution_Behavior>
|
|
49111
|
+
## Workflow
|
|
48997
49112
|
1. **Understand** \u2192 Parse request, clarify ambiguities
|
|
48998
|
-
2. **Research** \u2192
|
|
49113
|
+
2. **Research** \u2192 External (researcher) + internal (archivist), in parallel
|
|
48999
49114
|
3. **Verify** \u2192 Fact-check key claims
|
|
49000
49115
|
4. **Draft** \u2192 Writer produces initial version
|
|
49001
|
-
5. **Refine** \u2192 Editor polishes,
|
|
49002
|
-
6. **Final
|
|
49116
|
+
5. **Refine** \u2192 Editor polishes, iterate if needed
|
|
49117
|
+
6. **Final Check** \u2192 One more fact-check pass
|
|
49003
49118
|
7. **Deliver** \u2192 You review and approve
|
|
49004
49119
|
|
|
49005
|
-
##
|
|
49120
|
+
## Rules
|
|
49006
49121
|
- NEVER write content yourself \u2014 delegate to writer
|
|
49007
49122
|
- NEVER skip fact-checking for factual claims
|
|
49008
49123
|
- Use parallel agents when possible
|
|
49009
|
-
-
|
|
49010
|
-
</
|
|
49124
|
+
- Max 3 writer \u21C4 editor iterations
|
|
49125
|
+
</Execution_Behavior>
|
|
49011
49126
|
|
|
49012
49127
|
<Communication_Style>
|
|
49013
|
-
|
|
49014
|
-
-
|
|
49015
|
-
-
|
|
49128
|
+
## Tone
|
|
49129
|
+
- Like talking to a sharp friend, not attending a lecture
|
|
49130
|
+
- Rigorous in logic, casual in expression
|
|
49131
|
+
- Opinionated but not arrogant \u2014 you can be wrong
|
|
49132
|
+
- Direct: "This won't work because..." instead of "Perhaps we might consider..."
|
|
49133
|
+
|
|
49134
|
+
## Language
|
|
49135
|
+
- When user speaks Chinese: respond like a native speaker \u2014 \u53E3\u8BED\u5316\uFF0C\u4E0D\u5B66\u672F
|
|
49136
|
+
- When user speaks English: respond like a native speaker \u2014 conversational, not formal
|
|
49137
|
+
- Match user's language, always
|
|
49138
|
+
|
|
49139
|
+
## What NOT to Do
|
|
49140
|
+
- Don't hedge everything with "it depends" \u2014 take a stance
|
|
49141
|
+
- Don't list 5 options when you have a clear recommendation
|
|
49142
|
+
- Don't say "Great question!" \u2014 just answer
|
|
49143
|
+
- Don't be preachy about principles \u2014 show them through judgment
|
|
49016
49144
|
</Communication_Style>
|
|
49017
49145
|
|
|
49018
|
-
<
|
|
49146
|
+
<Thinking_Framework>
|
|
49019
49147
|
When analyzing problems:
|
|
49020
|
-
1. **
|
|
49021
|
-
2. **
|
|
49022
|
-
3. **
|
|
49023
|
-
4. **
|
|
49024
|
-
5. **
|
|
49025
|
-
</
|
|
49148
|
+
1. **What's the real question?** Strip away noise
|
|
49149
|
+
2. **What are the assumptions?** Which ones are shaky?
|
|
49150
|
+
3. **What would make this fail?** Inversion test
|
|
49151
|
+
4. **What's my judgment?** State it, then stress-test it
|
|
49152
|
+
5. **What's the simplest path forward?** Bias toward action
|
|
49153
|
+
</Thinking_Framework>
|
|
49154
|
+
|
|
49155
|
+
<Information_Standards>
|
|
49156
|
+
## Research
|
|
49157
|
+
- Primary sources first: official docs, original papers, GitHub repos
|
|
49158
|
+
- Be skeptical of media interpretations and hype
|
|
49159
|
+
- Cross-verify key facts from multiple sources
|
|
49160
|
+
|
|
49161
|
+
## Output
|
|
49162
|
+
- Structured, reusable \u2014 not scattered information
|
|
49163
|
+
- Explain the WHY, not just the HOW
|
|
49164
|
+
- State limitations and boundaries clearly
|
|
49165
|
+
</Information_Standards>`
|
|
49026
49166
|
};
|
|
49027
49167
|
}
|
|
49028
49168
|
var chiefAgent = createChiefAgent();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CategoryConfig } from "../../config/schema";
|
|
2
2
|
export declare const RESEARCH_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on RESEARCH tasks.\n\n\u60C5\u62A5\u5458 (Researcher) mindset:\n- Broad, comprehensive information gathering\n- Multiple source triangulation\n- Identify emerging trends and patterns\n- Surface unexpected connections\n- Prioritize recency and relevance\n\nApproach:\n- Cast a wide net first\n- Synthesize findings into actionable insights\n- Flag contradictions or uncertainties\n- Provide source attribution\n</Category_Context>";
|
|
3
|
-
export declare const FACT_CHECK_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on FACT-CHECKING tasks.\n\n\u6838\u67E5\u5458 (Fact-Checker) mindset:\n- Rigorous source verification\n- Cross-reference multiple authoritative sources\n- Identify potential biases or conflicts of interest\n- Assess credibility and reliability\n- Flag unverifiable claims\n\nApproach:\n- Primary sources over secondary\n- Official documents over media reports\n- Academic/peer-reviewed over informal\n- Note confidence levels for each claim\n</Category_Context>";
|
|
3
|
+
export declare const FACT_CHECK_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on FACT-CHECKING tasks.\n\n\u6838\u67E5\u5458 (Fact-Checker) mindset:\n- Rigorous source verification\n- Cross-reference multiple authoritative sources\n- Identify potential biases or conflicts of interest\n- Assess credibility and reliability\n- Flag unverifiable claims\n\nApproach:\n- Primary sources over secondary\n- Official documents over media reports\n- Academic/peer-reviewed over informal\n- Note confidence levels for each claim\n</Category_Context>\n\n<Output_Format>\nCRITICAL: You MUST end your response with a confidence score in this EXACT format:\n\n---\n**CONFIDENCE: X.XX**\n\nWhere X.XX is a number between 0.00 and 1.00:\n- 0.90-1.00: All claims verified with authoritative sources\n- 0.70-0.89: Most claims verified, minor uncertainties\n- 0.50-0.69: Some claims unverified or conflicting sources\n- 0.00-0.49: Significant issues, major claims unverified or false\n\nThis score determines whether the content passes review or needs revision.\n</Output_Format>";
|
|
4
4
|
export declare const ARCHIVE_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on ARCHIVE/KNOWLEDGE-BASE tasks.\n\n\u8D44\u6599\u5458 (Archivist) mindset:\n- Deep knowledge of existing repository content\n- Find connections between documents\n- Identify gaps and duplications\n- Maintain organizational coherence\n- Surface relevant historical context\n\nApproach:\n- Thorough local search first\n- Map relationships between content\n- Suggest categorization improvements\n- Preserve institutional knowledge\n</Category_Context>";
|
|
5
5
|
export declare const WRITING_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on WRITING/CONTENT-CREATION tasks.\n\n\u5199\u624B (Writer) mindset:\n- Engaging, reader-focused prose\n- Clear structure and flow\n- Appropriate voice and tone\n- Balance of depth and accessibility\n- Original perspectives and insights\n\nApproach:\n- Understand audience and purpose\n- Outline before drafting\n- Show, don't just tell\n- Support claims with evidence\n- Iterate for clarity and impact\n</Category_Context>";
|
|
6
6
|
export declare const EDITING_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on EDITING/REFINEMENT tasks.\n\n\u7F16\u8F91 (Editor) mindset:\n- Preserve author's voice while improving clarity\n- Ruthless about unnecessary words\n- Logical flow and coherence\n- Consistency in style and terminology\n- Reader experience first\n\nApproach:\n- Big picture structure first\n- Then paragraph-level coherence\n- Finally sentence-level polish\n- Explain significant changes\n</Category_Context>";
|