newtype-profile 1.0.11 → 1.0.12

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.11",
2256
+ version: "1.0.12",
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",
package/dist/index.js CHANGED
@@ -44721,6 +44721,14 @@ var CATEGORY_PROMPT_APPENDS = {
44721
44721
  extraction: EXTRACTION_CATEGORY_PROMPT_APPEND,
44722
44722
  quick: QUICK_CATEGORY_PROMPT_APPEND
44723
44723
  };
44724
+ var AGENT_TO_CATEGORY_MAP = {
44725
+ "fact-checker": "fact-check",
44726
+ researcher: "research",
44727
+ archivist: "archive",
44728
+ writer: "writing",
44729
+ editor: "editing",
44730
+ extractor: "extraction"
44731
+ };
44724
44732
  var BUILTIN_CATEGORIES = Object.keys(DEFAULT_CATEGORIES).join(", ");
44725
44733
  var CHIEF_TASK_DESCRIPTION = `Spawn agent task with category-based or direct agent selection.
44726
44734
 
@@ -45101,6 +45109,10 @@ ${textContent || "(No text output)"}`;
45101
45109
  if (!agentToUse) {
45102
45110
  return `\u274C Agent name cannot be empty.`;
45103
45111
  }
45112
+ const mappedCategory = AGENT_TO_CATEGORY_MAP[agentToUse];
45113
+ if (mappedCategory) {
45114
+ categoryPromptAppend = CATEGORY_PROMPT_APPENDS[mappedCategory];
45115
+ }
45104
45116
  try {
45105
45117
  const agentsResult = await client2.app.agents();
45106
45118
  const agents = agentsResult.data ?? agentsResult;
@@ -9,4 +9,10 @@ export declare const QUICK_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are
9
9
  export declare const DEFAULT_CATEGORIES: Record<string, CategoryConfig>;
10
10
  export declare const CATEGORY_PROMPT_APPENDS: Record<string, string>;
11
11
  export declare const CATEGORY_DESCRIPTIONS: Record<string, string>;
12
+ /**
13
+ * Maps agent names to their corresponding category for prompt append injection.
14
+ * When chief_task is called with subagent_type, we still want to inject
15
+ * the category-specific prompt (e.g., CONFIDENCE format for fact-checker).
16
+ */
17
+ export declare const AGENT_TO_CATEGORY_MAP: Record<string, string>;
12
18
  export declare const CHIEF_TASK_DESCRIPTION: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newtype-profile",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "AI Agent Collaboration System for Content Creation - Based on oh-my-opencode",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",