newtype-profile 1.0.5 → 1.0.6

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.5",
2256
+ version: "1.0.6",
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
@@ -51092,10 +51092,9 @@ var websearch = {
51092
51092
  // src/mcp/tavily.ts
51093
51093
  function createTavilyMcp(config3) {
51094
51094
  return {
51095
- type: "stdio",
51096
- command: "npx",
51097
- args: ["-y", "tavily-mcp@latest"],
51098
- env: {
51095
+ type: "local",
51096
+ command: ["npx", "-y", "tavily-mcp@latest"],
51097
+ environment: {
51099
51098
  TAVILY_API_KEY: config3.api_key
51100
51099
  },
51101
51100
  enabled: true
@@ -51104,17 +51103,16 @@ function createTavilyMcp(config3) {
51104
51103
 
51105
51104
  // src/mcp/firecrawl.ts
51106
51105
  function createFirecrawlMcp(config3) {
51107
- const env = {
51106
+ const environment = {
51108
51107
  FIRECRAWL_API_KEY: config3.api_key
51109
51108
  };
51110
51109
  if (config3.api_url) {
51111
- env.FIRECRAWL_API_URL = config3.api_url;
51110
+ environment.FIRECRAWL_API_URL = config3.api_url;
51112
51111
  }
51113
51112
  return {
51114
- type: "stdio",
51115
- command: "npx",
51116
- args: ["-y", "firecrawl-mcp"],
51117
- env,
51113
+ type: "local",
51114
+ command: ["npx", "-y", "firecrawl-mcp"],
51115
+ environment,
51118
51116
  enabled: true
51119
51117
  };
51120
51118
  }
@@ -51131,9 +51129,8 @@ function expandPath(p2) {
51131
51129
  function createFilesystemMcp(config3) {
51132
51130
  const expandedDirs = config3.directories.map(expandPath);
51133
51131
  return {
51134
- type: "stdio",
51135
- command: "npx",
51136
- args: ["-y", "@modelcontextprotocol/server-filesystem", ...expandedDirs],
51132
+ type: "local",
51133
+ command: ["npx", "-y", "@modelcontextprotocol/server-filesystem", ...expandedDirs],
51137
51134
  enabled: true
51138
51135
  };
51139
51136
  }
@@ -51141,8 +51138,9 @@ function createFilesystemMcp(config3) {
51141
51138
  // src/mcp/sequential-thinking.ts
51142
51139
  function createSequentialThinkingMcp() {
51143
51140
  return {
51144
- command: "npx",
51145
- args: ["-y", "@modelcontextprotocol/server-sequential-thinking"]
51141
+ type: "local",
51142
+ command: ["npx", "-y", "@modelcontextprotocol/server-sequential-thinking"],
51143
+ enabled: true
51146
51144
  };
51147
51145
  }
51148
51146
 
@@ -1,3 +1,3 @@
1
1
  import type { McpFilesystemConfig } from "./types";
2
- import type { StdioMcpConfig } from "./tavily";
3
- export declare function createFilesystemMcp(config: McpFilesystemConfig): StdioMcpConfig;
2
+ import type { McpLocalConfig } from "./types-local";
3
+ export declare function createFilesystemMcp(config: McpFilesystemConfig): McpLocalConfig;
@@ -1,3 +1,3 @@
1
1
  import type { McpFirecrawlConfig } from "./types";
2
- import type { StdioMcpConfig } from "./tavily";
3
- export declare function createFirecrawlMcp(config: McpFirecrawlConfig): StdioMcpConfig;
2
+ import type { McpLocalConfig } from "./types-local";
3
+ export declare function createFirecrawlMcp(config: McpFirecrawlConfig): McpLocalConfig;
@@ -1,13 +1,6 @@
1
- import { type StdioMcpConfig } from "./tavily";
2
- import { type LocalMcpConfig } from "./sequential-thinking";
1
+ import type { McpLocalConfig, McpRemoteConfig } from "./types-local";
3
2
  import type { McpConfig } from "./types";
4
3
  export { McpNameSchema, type McpName, McpConfigSchema, type McpConfig } from "./types";
5
- export type { StdioMcpConfig } from "./tavily";
6
- type RemoteMcpConfig = {
7
- type: "remote";
8
- url: string;
9
- enabled: boolean;
10
- headers?: Record<string, string>;
11
- };
12
- type AnyMcpConfig = RemoteMcpConfig | StdioMcpConfig | LocalMcpConfig;
4
+ export { type McpLocalConfig, type McpRemoteConfig } from "./types-local";
5
+ type AnyMcpConfig = McpRemoteConfig | McpLocalConfig;
13
6
  export declare function createBuiltinMcps(disabledMcps?: string[], mcpConfig?: McpConfig): Record<string, AnyMcpConfig>;
@@ -1,6 +1,2 @@
1
- export type LocalMcpConfig = {
2
- command: string;
3
- args: string[];
4
- env?: Record<string, string>;
5
- };
6
- export declare function createSequentialThinkingMcp(): LocalMcpConfig;
1
+ import type { McpLocalConfig } from "./types-local";
2
+ export declare function createSequentialThinkingMcp(): McpLocalConfig;
@@ -1,9 +1,3 @@
1
1
  import type { McpTavilyConfig } from "./types";
2
- export type StdioMcpConfig = {
3
- type: "stdio";
4
- command: string;
5
- args: string[];
6
- env?: Record<string, string>;
7
- enabled: boolean;
8
- };
9
- export declare function createTavilyMcp(config: McpTavilyConfig): StdioMcpConfig;
2
+ import type { McpLocalConfig } from "./types-local";
3
+ export declare function createTavilyMcp(config: McpTavilyConfig): McpLocalConfig;
@@ -0,0 +1,12 @@
1
+ export type McpLocalConfig = {
2
+ type: "local";
3
+ command: string[];
4
+ environment?: Record<string, string>;
5
+ enabled: boolean;
6
+ };
7
+ export type McpRemoteConfig = {
8
+ type: "remote";
9
+ url: string;
10
+ headers?: Record<string, string>;
11
+ enabled: boolean;
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newtype-profile",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
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",