newtype-profile 1.0.3 → 1.0.5
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 +1 -1
- package/dist/index.js +14 -6
- package/dist/mcp/index.d.ts +2 -1
- package/dist/mcp/sequential-thinking.d.ts +6 -2
- package/package.json +1 -1
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.5",
|
|
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
|
@@ -48601,7 +48601,11 @@ function loadConfigFromPath2(configPath, ctx) {
|
|
|
48601
48601
|
});
|
|
48602
48602
|
return null;
|
|
48603
48603
|
}
|
|
48604
|
-
log(`Config loaded from ${configPath}`, {
|
|
48604
|
+
log(`Config loaded from ${configPath}`, {
|
|
48605
|
+
agents: result.data.agents,
|
|
48606
|
+
mcp: result.data.mcp,
|
|
48607
|
+
google_auth: result.data.google_auth
|
|
48608
|
+
});
|
|
48605
48609
|
return result.data;
|
|
48606
48610
|
}
|
|
48607
48611
|
} catch (err) {
|
|
@@ -48646,7 +48650,8 @@ function mergeConfigs(base, override) {
|
|
|
48646
48650
|
...override.disabled_skills ?? []
|
|
48647
48651
|
])
|
|
48648
48652
|
],
|
|
48649
|
-
claude_code: deepMerge(base.claude_code, override.claude_code)
|
|
48653
|
+
claude_code: deepMerge(base.claude_code, override.claude_code),
|
|
48654
|
+
mcp: deepMerge(base.mcp, override.mcp)
|
|
48650
48655
|
};
|
|
48651
48656
|
}
|
|
48652
48657
|
function loadPluginConfig(directory, ctx) {
|
|
@@ -48666,7 +48671,8 @@ function loadPluginConfig(directory, ctx) {
|
|
|
48666
48671
|
disabled_agents: config3.disabled_agents,
|
|
48667
48672
|
disabled_mcps: config3.disabled_mcps,
|
|
48668
48673
|
disabled_hooks: config3.disabled_hooks,
|
|
48669
|
-
claude_code: config3.claude_code
|
|
48674
|
+
claude_code: config3.claude_code,
|
|
48675
|
+
mcp: config3.mcp
|
|
48670
48676
|
});
|
|
48671
48677
|
return config3;
|
|
48672
48678
|
}
|
|
@@ -51135,10 +51141,8 @@ function createFilesystemMcp(config3) {
|
|
|
51135
51141
|
// src/mcp/sequential-thinking.ts
|
|
51136
51142
|
function createSequentialThinkingMcp() {
|
|
51137
51143
|
return {
|
|
51138
|
-
type: "stdio",
|
|
51139
51144
|
command: "npx",
|
|
51140
|
-
args: ["-y", "@modelcontextprotocol/server-sequential-thinking"]
|
|
51141
|
-
enabled: true
|
|
51145
|
+
args: ["-y", "@modelcontextprotocol/server-sequential-thinking"]
|
|
51142
51146
|
};
|
|
51143
51147
|
}
|
|
51144
51148
|
|
|
@@ -51147,6 +51151,7 @@ var alwaysEnabledMcps = {
|
|
|
51147
51151
|
websearch
|
|
51148
51152
|
};
|
|
51149
51153
|
function createBuiltinMcps(disabledMcps = [], mcpConfig) {
|
|
51154
|
+
log("[MCP] createBuiltinMcps called", { disabledMcps, mcpConfig });
|
|
51150
51155
|
const mcps = {};
|
|
51151
51156
|
for (const [name, config3] of Object.entries(alwaysEnabledMcps)) {
|
|
51152
51157
|
if (!disabledMcps.includes(name)) {
|
|
@@ -51155,8 +51160,10 @@ function createBuiltinMcps(disabledMcps = [], mcpConfig) {
|
|
|
51155
51160
|
}
|
|
51156
51161
|
if (!disabledMcps.includes("sequential-thinking")) {
|
|
51157
51162
|
const seqThinkingConfig = mcpConfig?.["sequential-thinking"];
|
|
51163
|
+
log("[MCP] sequential-thinking config", { seqThinkingConfig, willEnable: seqThinkingConfig !== false });
|
|
51158
51164
|
if (seqThinkingConfig !== false) {
|
|
51159
51165
|
mcps["sequential-thinking"] = createSequentialThinkingMcp();
|
|
51166
|
+
log("[MCP] sequential-thinking added to mcps", { mcpKeys: Object.keys(mcps) });
|
|
51160
51167
|
}
|
|
51161
51168
|
}
|
|
51162
51169
|
if (mcpConfig?.tavily && !disabledMcps.includes("tavily")) {
|
|
@@ -51168,6 +51175,7 @@ function createBuiltinMcps(disabledMcps = [], mcpConfig) {
|
|
|
51168
51175
|
if (mcpConfig?.filesystem && !disabledMcps.includes("filesystem")) {
|
|
51169
51176
|
mcps.filesystem = createFilesystemMcp(mcpConfig.filesystem);
|
|
51170
51177
|
}
|
|
51178
|
+
log("[MCP] Final mcps object", { mcpKeys: Object.keys(mcps), mcps });
|
|
51171
51179
|
return mcps;
|
|
51172
51180
|
}
|
|
51173
51181
|
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type StdioMcpConfig } from "./tavily";
|
|
2
|
+
import { type LocalMcpConfig } from "./sequential-thinking";
|
|
2
3
|
import type { McpConfig } from "./types";
|
|
3
4
|
export { McpNameSchema, type McpName, McpConfigSchema, type McpConfig } from "./types";
|
|
4
5
|
export type { StdioMcpConfig } from "./tavily";
|
|
@@ -8,5 +9,5 @@ type RemoteMcpConfig = {
|
|
|
8
9
|
enabled: boolean;
|
|
9
10
|
headers?: Record<string, string>;
|
|
10
11
|
};
|
|
11
|
-
type AnyMcpConfig = RemoteMcpConfig | StdioMcpConfig;
|
|
12
|
+
type AnyMcpConfig = RemoteMcpConfig | StdioMcpConfig | LocalMcpConfig;
|
|
12
13
|
export declare function createBuiltinMcps(disabledMcps?: string[], mcpConfig?: McpConfig): Record<string, AnyMcpConfig>;
|
|
@@ -1,2 +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;
|