oh-my-opencode-cohub 1.0.13 → 1.0.14
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/index.d.ts.map +1 -1
- package/dist/index.js +11 -6
- package/package.json +1 -1
package/dist/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,CAAC;AAqClD,wBAAwB;AACxB,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAalD,CAAC;AAwEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,wrBAA+B,CAAC;AAEhE,QAAA,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAqClD,wBAAwB;AACxB,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAalD,CAAC;AAwEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,wrBAA+B,CAAC;AAEhE,QAAA,MAAM,WAAW,EAAE,MAqNlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -730,17 +730,22 @@ var CoHubPlugin = async (input, options) => {
|
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
syncAgentConfig();
|
|
733
|
+
const agentConfigs = {};
|
|
734
|
+
for (const agent of agents) {
|
|
735
|
+
agentConfigs[agent.name] = {
|
|
736
|
+
...agent.config,
|
|
737
|
+
name: agent.name,
|
|
738
|
+
description: agent.description
|
|
739
|
+
};
|
|
740
|
+
}
|
|
733
741
|
return {
|
|
734
742
|
name: "oh-my-opencode-cohub",
|
|
743
|
+
agent: agentConfigs,
|
|
735
744
|
config: async (cfg) => {
|
|
736
745
|
const c = cfg;
|
|
737
746
|
c.agent ??= {};
|
|
738
|
-
for (const
|
|
739
|
-
c.agent[
|
|
740
|
-
...agent.config,
|
|
741
|
-
name: agent.name,
|
|
742
|
-
description: agent.description
|
|
743
|
-
};
|
|
747
|
+
for (const [name, config] of Object.entries(agentConfigs)) {
|
|
748
|
+
c.agent[name] = config;
|
|
744
749
|
}
|
|
745
750
|
try {
|
|
746
751
|
fs2.writeFileSync(path2.join(STATE_DIR, "config-hook-ran.json"), JSON.stringify({ ran: true, count: agents.length }));
|