enterprise-delivery 0.1.0 → 0.1.1

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 CHANGED
@@ -50,7 +50,7 @@ These files are part of the same source of truth as stories, changes, risks, dec
50
50
 
51
51
  ## npm and Codex Install
52
52
 
53
- Install the package into your local Codex plugin marketplace:
53
+ Install the package into the current project's local Codex plugin marketplace:
54
54
 
55
55
  ```bash
56
56
  npx enterprise-delivery install codex
@@ -59,16 +59,16 @@ npx enterprise-delivery install codex
59
59
  The command copies the Enterprise Delivery plugin payload into:
60
60
 
61
61
  ```text
62
- ~/.agents/plugins/plugins/enterprise-delivery/
62
+ ./.agents/plugins/plugins/enterprise-delivery/
63
63
  ```
64
64
 
65
65
  It also creates or updates:
66
66
 
67
67
  ```text
68
- ~/.agents/plugins/marketplace.json
68
+ ./.agents/plugins/marketplace.json
69
69
  ```
70
70
 
71
- The command is safe to rerun. It replaces the managed `enterprise-delivery` plugin copy and preserves unrelated marketplace entries.
71
+ The command is safe to rerun. It replaces the managed `enterprise-delivery` plugin copy in the project and preserves unrelated project marketplace entries.
72
72
 
73
73
  Claude support is reserved for a later adapter:
74
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enterprise-delivery",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "enterprise-delivery": "scripts/enterprise-delivery-validate.mjs"
package/src/cli.mjs CHANGED
@@ -15,7 +15,7 @@ export async function runCli(argv, cwd) {
15
15
  if (parsed.command === 'init') {
16
16
  validationResult = initializeEnterprise(parsed.root);
17
17
  } else if (parsed.command === 'install' && parsed.adapter === 'codex') {
18
- validationResult = installCodexPlugin();
18
+ validationResult = installCodexPlugin({ projectRoot: parsed.root });
19
19
  } else if (parsed.command === 'install' && parsed.adapter === 'claude') {
20
20
  validationResult = installClaudePlaceholder();
21
21
  } else if (parsed.command === 'validate' && parsed.gate === 'repo') {
@@ -1,5 +1,4 @@
1
1
  import fs from 'node:fs';
2
- import os from 'node:os';
3
2
  import path from 'node:path';
4
3
  import { fileURLToPath } from 'node:url';
5
4
 
@@ -30,12 +29,12 @@ const PAYLOAD_PATHS = [
30
29
  ];
31
30
 
32
31
  export function installCodexPlugin(options = {}) {
33
- const homeDir = options.homeDir || os.homedir();
34
- if (!homeDir) {
35
- throw new Error('Could not determine home directory for Codex plugin installation.');
32
+ const projectRoot = options.projectRoot || process.cwd();
33
+ if (!projectRoot) {
34
+ throw new Error('Could not determine project directory for Codex plugin installation.');
36
35
  }
37
36
 
38
- const marketplaceRoot = path.join(homeDir, '.agents', 'plugins');
37
+ const marketplaceRoot = path.join(projectRoot, '.agents', 'plugins');
39
38
  const pluginsRoot = path.join(marketplaceRoot, 'plugins');
40
39
  const pluginDir = path.join(pluginsRoot, PLUGIN_NAME);
41
40
  const marketplacePath = path.join(marketplaceRoot, 'marketplace.json');