oh-my-mango 0.0.1 → 0.0.3
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/bin/oh-my-mango.js +0 -0
- package/dist/src/cli/init.d.ts.map +1 -1
- package/dist/src/cli/init.js +6 -2
- package/dist/src/cli/init.js.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +15 -3
- package/dist/src/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
package/dist/bin/oh-my-mango.js
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/init.ts"],"names":[],"mappings":"AAUA,wBAAsB,IAAI,kBAOzB"}
|
package/dist/src/cli/init.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import * as fs from "fs/promises";
|
|
2
|
-
|
|
2
|
+
import * as os from "os";
|
|
3
|
+
import * as path from "path";
|
|
4
|
+
const CONFIG_DIR = path.join(os.homedir(), ".config", "opencode");
|
|
5
|
+
const CONFIG_PATH = path.join(CONFIG_DIR, "opencode.json");
|
|
3
6
|
const SCHEMA = "https://opencode.ai/config.json";
|
|
4
7
|
export async function init() {
|
|
8
|
+
await fs.mkdir(CONFIG_DIR, { recursive: true });
|
|
5
9
|
const config = await loadOrCreateConfig();
|
|
6
10
|
config.plugin = config.plugin || [];
|
|
7
11
|
if (!config.plugin.includes("oh-my-mango"))
|
|
8
12
|
config.plugin.push("oh-my-mango");
|
|
9
13
|
await fs.writeFile(CONFIG_PATH, JSON.stringify(config, null, 2));
|
|
10
|
-
console.log("oh-my-mango plugin registered in opencode.json");
|
|
14
|
+
console.log("oh-my-mango plugin registered in ~/.config/opencode/opencode.json");
|
|
11
15
|
}
|
|
12
16
|
async function loadOrCreateConfig() {
|
|
13
17
|
try {
|
package/dist/src/cli/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/cli/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/cli/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAA;AACxB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAI5B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,CAAA;AACjE,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,CAAA;AAC1D,MAAM,MAAM,GAAG,iCAAiC,CAAA;AAEhD,MAAM,CAAC,KAAK,UAAU,IAAI;IACxB,MAAM,EAAE,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAG,MAAM,kBAAkB,EAAE,CAAA;IACzC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,EAAE,CAAA;IACnC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC;QAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IAC7E,MAAM,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;IAChE,OAAO,CAAC,GAAG,CAAC,mEAAmE,CAAC,CAAA;AAClF,CAAC;AAED,KAAK,UAAU,kBAAkB;IAC/B,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAA;IAC5D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAA;IAC5B,CAAC;AACH,CAAC"}
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,QAAA,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,QAAA,MAAM,MAAM,EAAE,MAeb,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
const plugin = async (
|
|
2
|
-
|
|
3
|
-
return {
|
|
1
|
+
const plugin = async () => {
|
|
2
|
+
console.log("[oh-my-mango] initialized");
|
|
3
|
+
return {
|
|
4
|
+
config: async (config) => {
|
|
5
|
+
config.agent = {
|
|
6
|
+
...config.agent,
|
|
7
|
+
mango: {
|
|
8
|
+
prompt: "",
|
|
9
|
+
description: "oh-my-mango 기본 에이전트",
|
|
10
|
+
mode: "primary",
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
config.default_agent = "mango";
|
|
14
|
+
},
|
|
15
|
+
};
|
|
4
16
|
};
|
|
5
17
|
export default plugin;
|
|
6
18
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAW,KAAK,IAAI,EAAE;IAChC,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IACxC,OAAO;QACL,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACvB,MAAM,CAAC,KAAK,GAAG;gBACb,GAAG,MAAM,CAAC,KAAK;gBACf,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE;oBACV,WAAW,EAAE,qBAAqB;oBAClC,IAAI,EAAE,SAAS;iBAChB;aACF,CACA;YAAC,MAAqC,CAAC,aAAa,GAAG,OAAO,CAAA;QACjE,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"homepage": "https://github.com/ensia96/oh-my-mango#readme",
|
|
15
15
|
"keywords": ["agent", "ai", "divide-and-conquer", "multi-agent", "opencode", "opencode-plugin", "orchestration"],
|
|
16
16
|
"license": "MIT",
|
|
17
|
-
"main": "dist/index.js",
|
|
17
|
+
"main": "dist/src/index.js",
|
|
18
18
|
"name": "oh-my-mango",
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"opencode-ai": ">=1.0.0"
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"prepublishOnly": "bun run build"
|
|
29
29
|
},
|
|
30
30
|
"type": "module",
|
|
31
|
-
"types": "dist/index.d.ts",
|
|
32
|
-
"version": "0.0.
|
|
31
|
+
"types": "dist/src/index.d.ts",
|
|
32
|
+
"version": "0.0.3"
|
|
33
33
|
}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,QAAA,MAAM,MAAM,EAAE,MAGb,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/dist/index.js
DELETED
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAW,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IAC1C,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAyB,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,CAAC,CAAA;IAC7G,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
|