@h-rig/repos-plugin 0.0.6-alpha.156 → 0.0.6-alpha.158

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.
@@ -7,7 +7,7 @@
7
7
  * this service shares the same state, matching the pre-extraction behaviour
8
8
  * where these functions operated on a single runtime-global map.
9
9
  */
10
- import type { ManagedRepoService } from "@rig/runtime/control-plane/managed-repo-service-port";
10
+ import type { ManagedRepoService } from "@rig/contracts";
11
11
  export declare const managedRepoService: ManagedRepoService;
12
12
  /** Lazy-import handle for the config-light capability `run()` in plugin.ts. */
13
13
  export declare const svc: ManagedRepoService;
@@ -51,15 +51,15 @@ function repoRegistrationToManagedEntry(reg) {
51
51
  alias: reg.defaultPath ?? reg.id,
52
52
  defaultBranch: reg.defaultBranch,
53
53
  defaultRemoteUrl: reg.url,
54
- remoteEnvVar: reg.remoteEnvVar,
55
- checkoutEnvVar: reg.checkoutEnvVar
54
+ ...reg.remoteEnvVar !== undefined ? { remoteEnvVar: reg.remoteEnvVar } : {},
55
+ ...reg.checkoutEnvVar !== undefined ? { checkoutEnvVar: reg.checkoutEnvVar } : {}
56
56
  };
57
57
  }
58
58
 
59
59
  // packages/repos-plugin/src/layout.ts
60
60
  import { existsSync } from "fs";
61
61
  import { basename, dirname, join, resolve } from "path";
62
- import { resolveMonorepoRoot } from "@rig/runtime/layout";
62
+ import { resolveMonorepoRoot } from "@rig/core/layout";
63
63
  function resolveRepoStateDir(projectRoot) {
64
64
  const normalizedProjectRoot = resolve(projectRoot);
65
65
  const projectParent = dirname(normalizedProjectRoot);
@@ -120,7 +120,7 @@ import { existsSync as existsSync2, mkdirSync, realpathSync } from "fs";
120
120
  import { resolve as resolve2 } from "path";
121
121
 
122
122
  // packages/repos-plugin/src/mirror/state.ts
123
- import { readAuthorityProjectStateJson, writeAuthorityProjectStateJson } from "@rig/runtime/control-plane/json-files";
123
+ import { readAuthorityProjectStateJson, writeAuthorityProjectStateJson } from "@rig/core/json-files";
124
124
  var STATE_VERSION = 1;
125
125
  function defaultMirrorState(projectRoot, repoId) {
126
126
  const layout = resolveManagedRepoLayout(projectRoot, repoId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/repos-plugin",
3
- "version": "0.0.6-alpha.156",
3
+ "version": "0.0.6-alpha.158",
4
4
  "type": "module",
5
5
  "description": "First-party managed-repo (registry/layout/mirror) capability plugin for Rig.",
6
6
  "license": "UNLICENSED",
@@ -29,8 +29,7 @@
29
29
  "module": "./dist/src/index.js",
30
30
  "types": "./dist/src/index.d.ts",
31
31
  "dependencies": {
32
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.156",
33
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.156",
34
- "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.156"
32
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.158",
33
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.158"
35
34
  }
36
35
  }