newtype-profile 1.0.29 → 1.0.30
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/README.md +4 -4
- package/README.zh-cn.md +4 -4
- package/dist/cli/index.js +2 -2
- package/dist/index.js +14 -14
- package/dist/shared/config-path.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,11 +85,11 @@ Then reference the local path in your config:
|
|
|
85
85
|
|
|
86
86
|
### Configure Agent Models
|
|
87
87
|
|
|
88
|
-
Create or edit the
|
|
88
|
+
Create or edit the newtype-profile config file.
|
|
89
89
|
|
|
90
|
-
**User-level**: `~/.config/opencode/
|
|
90
|
+
**User-level**: `~/.config/opencode/newtype-profile.json`
|
|
91
91
|
|
|
92
|
-
**Project-level**: `<project>/.opencode/
|
|
92
|
+
**Project-level**: `<project>/.opencode/newtype-profile.json`
|
|
93
93
|
|
|
94
94
|
```json
|
|
95
95
|
{
|
|
@@ -206,7 +206,7 @@ Override default settings in your config file:
|
|
|
206
206
|
|
|
207
207
|
### MCP Server Configuration
|
|
208
208
|
|
|
209
|
-
The plugin includes built-in MCP (Model Context Protocol) servers. Configure them in your `
|
|
209
|
+
The plugin includes built-in MCP (Model Context Protocol) servers. Configure them in your `newtype-profile.json`:
|
|
210
210
|
|
|
211
211
|
```json
|
|
212
212
|
{
|
package/README.zh-cn.md
CHANGED
|
@@ -85,11 +85,11 @@ bun run build
|
|
|
85
85
|
|
|
86
86
|
### 配置 Agent 模型
|
|
87
87
|
|
|
88
|
-
创建或编辑
|
|
88
|
+
创建或编辑 newtype-profile 配置文件。
|
|
89
89
|
|
|
90
|
-
**用户级**:`~/.config/opencode/
|
|
90
|
+
**用户级**:`~/.config/opencode/newtype-profile.json`
|
|
91
91
|
|
|
92
|
-
**项目级**:`<project>/.opencode/
|
|
92
|
+
**项目级**:`<project>/.opencode/newtype-profile.json`
|
|
93
93
|
|
|
94
94
|
```json
|
|
95
95
|
{
|
|
@@ -206,7 +206,7 @@ opencode
|
|
|
206
206
|
|
|
207
207
|
### MCP 服务器配置
|
|
208
208
|
|
|
209
|
-
插件内置了多个 MCP (Model Context Protocol) 服务器。在 `
|
|
209
|
+
插件内置了多个 MCP (Model Context Protocol) 服务器。在 `newtype-profile.json` 中配置:
|
|
210
210
|
|
|
211
211
|
```json
|
|
212
212
|
{
|
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.30",
|
|
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",
|
|
@@ -6549,7 +6549,7 @@ function getOpenCodeConfigPaths(options) {
|
|
|
6549
6549
|
configJson: join3(configDir, "opencode.json"),
|
|
6550
6550
|
configJsonc: join3(configDir, "opencode.jsonc"),
|
|
6551
6551
|
packageJson: join3(configDir, "package.json"),
|
|
6552
|
-
omoConfig: join3(configDir, "
|
|
6552
|
+
omoConfig: join3(configDir, "newtype-profile.json")
|
|
6553
6553
|
};
|
|
6554
6554
|
}
|
|
6555
6555
|
// src/shared/opencode-version.ts
|
package/dist/index.js
CHANGED
|
@@ -15751,9 +15751,9 @@ import * as fs5 from "fs";
|
|
|
15751
15751
|
function getUserConfigDir() {
|
|
15752
15752
|
if (process.platform === "win32") {
|
|
15753
15753
|
const crossPlatformDir = path3.join(os3.homedir(), ".config");
|
|
15754
|
-
const crossPlatformConfigPath = path3.join(crossPlatformDir, "opencode", "
|
|
15754
|
+
const crossPlatformConfigPath = path3.join(crossPlatformDir, "opencode", "newtype-profile.json");
|
|
15755
15755
|
const appdataDir = process.env.APPDATA || path3.join(os3.homedir(), "AppData", "Roaming");
|
|
15756
|
-
const appdataConfigPath = path3.join(appdataDir, "opencode", "
|
|
15756
|
+
const appdataConfigPath = path3.join(appdataDir, "opencode", "newtype-profile.json");
|
|
15757
15757
|
if (fs5.existsSync(crossPlatformConfigPath)) {
|
|
15758
15758
|
return crossPlatformDir;
|
|
15759
15759
|
}
|
|
@@ -16824,7 +16824,7 @@ function getOpenCodeConfigPaths(options) {
|
|
|
16824
16824
|
configJson: join26(configDir, "opencode.json"),
|
|
16825
16825
|
configJsonc: join26(configDir, "opencode.jsonc"),
|
|
16826
16826
|
packageJson: join26(configDir, "package.json"),
|
|
16827
|
-
omoConfig: join26(configDir, "
|
|
16827
|
+
omoConfig: join26(configDir, "newtype-profile.json")
|
|
16828
16828
|
};
|
|
16829
16829
|
}
|
|
16830
16830
|
// src/shared/opencode-version.ts
|
|
@@ -17009,11 +17009,11 @@ function getNotificationConflictWarning(pluginName) {
|
|
|
17009
17009
|
\u26A0\uFE0F Both oh-my-opencode and ${pluginName} listen to session.idle events.
|
|
17010
17010
|
Running both simultaneously can cause crashes on Windows.
|
|
17011
17011
|
|
|
17012
|
-
|
|
17012
|
+
newtype-profile's session-notification has been auto-disabled.
|
|
17013
17013
|
|
|
17014
|
-
To use
|
|
17014
|
+
To use newtype-profile's notifications instead, either:
|
|
17015
17015
|
1. Remove ${pluginName} from your opencode.json plugins
|
|
17016
|
-
2. Or set "notification": { "force_enable": true } in
|
|
17016
|
+
2. Or set "notification": { "force_enable": true } in newtype-profile.json`;
|
|
17017
17017
|
}
|
|
17018
17018
|
// src/hooks/think-mode/index.ts
|
|
17019
17019
|
var thinkModeState = new Map;
|
|
@@ -21570,7 +21570,7 @@ If ANY check fails -> REWRITE message.
|
|
|
21570
21570
|
|
|
21571
21571
|
### 5.5 Commit Footer & Co-Author (Configurable)
|
|
21572
21572
|
|
|
21573
|
-
**Check
|
|
21573
|
+
**Check newtype-profile.json for these flags:**
|
|
21574
21574
|
- \`git_master.commit_footer\` (default: true) - adds footer message
|
|
21575
21575
|
- \`git_master.include_co_authored_by\` (default: true) - adds co-author trailer
|
|
21576
21576
|
|
|
@@ -21591,7 +21591,7 @@ Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
|
|
21591
21591
|
git commit -m "{Commit Message}" -m "Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)" -m "Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>"
|
|
21592
21592
|
\`\`\`
|
|
21593
21593
|
|
|
21594
|
-
**To disable:** Set in
|
|
21594
|
+
**To disable:** Set in newtype-profile.json:
|
|
21595
21595
|
\`\`\`json
|
|
21596
21596
|
{ "git_master": { "commit_footer": false, "include_co_authored_by": false } }
|
|
21597
21597
|
\`\`\`
|
|
@@ -28809,8 +28809,8 @@ function loadJsonFile(path9) {
|
|
|
28809
28809
|
function getConfigPaths3() {
|
|
28810
28810
|
const cwd = process.cwd();
|
|
28811
28811
|
return {
|
|
28812
|
-
project: join50(cwd, ".opencode", "
|
|
28813
|
-
user: join50(homedir15(), ".config", "opencode", "
|
|
28812
|
+
project: join50(cwd, ".opencode", "newtype-profile.json"),
|
|
28813
|
+
user: join50(homedir15(), ".config", "opencode", "newtype-profile.json"),
|
|
28814
28814
|
opencode: join50(homedir15(), ".config", "opencode", "opencode.json")
|
|
28815
28815
|
};
|
|
28816
28816
|
}
|
|
@@ -29581,7 +29581,7 @@ function formatServerLookupError(result) {
|
|
|
29581
29581
|
``,
|
|
29582
29582
|
`Available servers: ${result.availableServers.slice(0, 10).join(", ")}${result.availableServers.length > 10 ? "..." : ""}`,
|
|
29583
29583
|
``,
|
|
29584
|
-
`To add a custom server, configure 'lsp' in
|
|
29584
|
+
`To add a custom server, configure 'lsp' in newtype-profile.json:`,
|
|
29585
29585
|
` {`,
|
|
29586
29586
|
` "lsp": {`,
|
|
29587
29587
|
` "my-server": {`,
|
|
@@ -49939,10 +49939,10 @@ function mergeConfigs(base, override) {
|
|
|
49939
49939
|
};
|
|
49940
49940
|
}
|
|
49941
49941
|
function loadPluginConfig(directory, ctx) {
|
|
49942
|
-
const userBasePath = path9.join(getUserConfigDir(), "opencode", "
|
|
49942
|
+
const userBasePath = path9.join(getUserConfigDir(), "opencode", "newtype-profile");
|
|
49943
49943
|
const userDetected = detectConfigFile(userBasePath);
|
|
49944
49944
|
const userConfigPath = userDetected.format !== "none" ? userDetected.path : userBasePath + ".json";
|
|
49945
|
-
const projectBasePath = path9.join(directory, ".opencode", "
|
|
49945
|
+
const projectBasePath = path9.join(directory, ".opencode", "newtype-profile");
|
|
49946
49946
|
const projectDetected = detectConfigFile(projectBasePath);
|
|
49947
49947
|
const projectConfigPath = projectDetected.format !== "none" ? projectDetected.path : projectBasePath + ".json";
|
|
49948
49948
|
let config3 = loadConfigFromPath2(userConfigPath, ctx) ?? {};
|
|
@@ -51039,7 +51039,7 @@ Chief \u8BF4\uFF1A"\u8C03\u7814 Dan Koe \u7684\u6210\u957F\u5386\u7A0B\uFF0C\u52
|
|
|
51039
51039
|
\u7ED9\u4E13\u4E1A Agent \u7684\u6BCF\u4E2A\u4EFB\u52A1\u5FC5\u987B\u662F**\u539F\u5B50\u7684**\uFF1A
|
|
51040
51040
|
- \u2705 "\u641C\u7D22 Dan Koe \u7684 YouTube \u9891\u9053\u6210\u957F\u6570\u636E"
|
|
51041
51041
|
- \u2705 "\u641C\u7D22 Dan Koe \u7684\u6838\u5FC3\u8BFE\u7A0B\u548C\u4EF7\u683C"
|
|
51042
|
-
- \
|
|
51042
|
+
- \u26A0\uFE0F "\u8C03\u7814 Dan Koe \u7684\u6240\u6709\u4FE1\u606F" \u2190 \u5BBD\u6CDB\u4EFB\u52A1\uFF0C\u4F60\u6765\u62C6\u89E3\u540E\u5206\u6D3E
|
|
51043
51043
|
</Dispatch_Logic>
|
|
51044
51044
|
|
|
51045
51045
|
<Output_Format>
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function getUserConfigDir(): string;
|
|
10
10
|
/**
|
|
11
|
-
* Returns the full path to the user-level
|
|
11
|
+
* Returns the full path to the user-level newtype-profile config file.
|
|
12
12
|
*/
|
|
13
13
|
export declare function getUserConfigPath(): string;
|
|
14
14
|
/**
|
|
15
|
-
* Returns the full path to the project-level
|
|
15
|
+
* Returns the full path to the project-level newtype-profile config file.
|
|
16
16
|
*/
|
|
17
17
|
export declare function getProjectConfigPath(directory: string): string;
|