@rbbtsn0w/adg 0.6.0-beta.5 → 0.6.0-beta.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/src/agents/codex.js +6 -5
- package/package.json +1 -1
package/dist/src/agents/codex.js
CHANGED
|
@@ -6,6 +6,7 @@ import { codexMarketplaceRoot, globalPluginsDir, marketplacePath } from "../path
|
|
|
6
6
|
import { readMarketplace, writeMarketplace } from "../marketplace.js";
|
|
7
7
|
import { makeCli, skippedResult } from "./base.js";
|
|
8
8
|
const UNRECOGNIZED_PLUGIN_LIST = "codex plugin list returned unrecognized output";
|
|
9
|
+
const MARKETPLACE = "adg";
|
|
9
10
|
/**
|
|
10
11
|
* Codex agent.
|
|
11
12
|
*
|
|
@@ -19,16 +20,16 @@ function codexHome(env) {
|
|
|
19
20
|
}
|
|
20
21
|
const { available, run } = makeCli("codex", { probeArgs: ["plugin", "--help"] });
|
|
21
22
|
/**
|
|
22
|
-
* Codex's
|
|
23
|
-
* and explicit stores get a store-scoped name to avoid colliding with
|
|
24
|
-
* or another project's configured marketplace.
|
|
23
|
+
* Keep Codex's global marketplace identity aligned with the Claude projection.
|
|
24
|
+
* Project and explicit stores get a store-scoped name to avoid colliding with
|
|
25
|
+
* the global store or another project's configured marketplace.
|
|
25
26
|
*/
|
|
26
27
|
export function codexMarketplaceName(pluginsDir) {
|
|
27
28
|
const normalized = resolve(pluginsDir);
|
|
28
29
|
if (normalized === resolve(globalPluginsDir()))
|
|
29
|
-
return
|
|
30
|
+
return MARKETPLACE;
|
|
30
31
|
const hash = createHash("sha1").update(normalized.split("\\").join("/")).digest("hex").slice(0, 8);
|
|
31
|
-
return
|
|
32
|
+
return `${MARKETPLACE}-${hash}`;
|
|
32
33
|
}
|
|
33
34
|
/** Ensure the generated Codex marketplace export uses this store's scoped name. */
|
|
34
35
|
export function writeCodexMarketplaceName(pluginsDir) {
|