@h-rig/transport-plugin 0.0.6-alpha.161 → 0.0.6-alpha.162

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.
@@ -697,6 +697,8 @@ async function spawnRunProcess(input, deps = {}) {
697
697
  identityAssignments.push(`RIG_GITHUB_NAMESPACE_KEY=${sh(namespaceKey)}`);
698
698
  const registryBaseUrl2 = resolveRegistryBaseUrl2(input.projectRoot, env);
699
699
  const runtimeEnvB64 = remoteRuntimeEnvPayload(env);
700
+ const rigfigPath = resolve2(input.projectRoot, ".rig", "rigfig.toml");
701
+ const rigfigB64 = existsSync2(rigfigPath) ? readFileSync2(rigfigPath).toString("base64") : "";
700
702
  const remoteAuthState = `"${authMaterialization.remoteAuthPath}"`;
701
703
  const remoteStateDir = `"${authMaterialization.remoteStateDir}"`;
702
704
  const runInvocation = [
@@ -726,6 +728,7 @@ try {
726
728
  "set -e",
727
729
  "IFS= read -r __RIG_GH_AUTH_B64 || true",
728
730
  "IFS= read -r __RIG_RUNTIME_ENV_B64 || true",
731
+ "IFS= read -r __RIG_RIGFIG_B64 || true",
729
732
  "__RIG_AUTH_FILE=$(mktemp)",
730
733
  "__RIG_RUNTIME_ENV_FILE=$(mktemp)",
731
734
  "__RIG_GIT_HELPER=$(mktemp)",
@@ -744,6 +747,8 @@ try {
744
747
  `git reset --hard ${sh(operatorHead)} --quiet`,
745
748
  "bun install --silent || bun install",
746
749
  `mkdir -p "$CHECKOUT/.rig/state"`,
750
+ `mkdir -p "$CHECKOUT/.rig"`,
751
+ `if [ -n "$__RIG_RIGFIG_B64" ]; then printf %s "$__RIG_RIGFIG_B64" | base64 -d > "$CHECKOUT/.rig/rigfig.toml"; fi`,
747
752
  `if [ -s "$__RIG_AUTH_FILE" ]; then cp "$__RIG_AUTH_FILE" "$CHECKOUT/.rig/state/github-auth.json" && chmod 600 "$CHECKOUT/.rig/state/github-auth.json"; fi`,
748
753
  ...buildRemoteRigRunResolutionShell(`https://${DEFAULT_RIG_BACKBONE_HOST}/install`),
749
754
  runInvocation
@@ -761,6 +766,7 @@ try {
761
766
  try {
762
767
  child.stdin?.write(`${authStateB64}
763
768
  ${runtimeEnvB64}
769
+ ${rigfigB64}
764
770
  `);
765
771
  child.stdin?.end();
766
772
  } catch {}
package/dist/src/index.js CHANGED
@@ -627,6 +627,8 @@ async function spawnRunProcess(input, deps = {}) {
627
627
  identityAssignments.push(`RIG_GITHUB_NAMESPACE_KEY=${sh(namespaceKey)}`);
628
628
  const registryBaseUrl2 = resolveRegistryBaseUrl2(input.projectRoot, env);
629
629
  const runtimeEnvB64 = remoteRuntimeEnvPayload(env);
630
+ const rigfigPath = resolve2(input.projectRoot, ".rig", "rigfig.toml");
631
+ const rigfigB64 = existsSync2(rigfigPath) ? readFileSync2(rigfigPath).toString("base64") : "";
630
632
  const remoteAuthState = `"${authMaterialization.remoteAuthPath}"`;
631
633
  const remoteStateDir = `"${authMaterialization.remoteStateDir}"`;
632
634
  const runInvocation = [
@@ -656,6 +658,7 @@ try {
656
658
  "set -e",
657
659
  "IFS= read -r __RIG_GH_AUTH_B64 || true",
658
660
  "IFS= read -r __RIG_RUNTIME_ENV_B64 || true",
661
+ "IFS= read -r __RIG_RIGFIG_B64 || true",
659
662
  "__RIG_AUTH_FILE=$(mktemp)",
660
663
  "__RIG_RUNTIME_ENV_FILE=$(mktemp)",
661
664
  "__RIG_GIT_HELPER=$(mktemp)",
@@ -674,6 +677,8 @@ try {
674
677
  `git reset --hard ${sh(operatorHead)} --quiet`,
675
678
  "bun install --silent || bun install",
676
679
  `mkdir -p "$CHECKOUT/.rig/state"`,
680
+ `mkdir -p "$CHECKOUT/.rig"`,
681
+ `if [ -n "$__RIG_RIGFIG_B64" ]; then printf %s "$__RIG_RIGFIG_B64" | base64 -d > "$CHECKOUT/.rig/rigfig.toml"; fi`,
677
682
  `if [ -s "$__RIG_AUTH_FILE" ]; then cp "$__RIG_AUTH_FILE" "$CHECKOUT/.rig/state/github-auth.json" && chmod 600 "$CHECKOUT/.rig/state/github-auth.json"; fi`,
678
683
  ...buildRemoteRigRunResolutionShell(`https://${DEFAULT_RIG_BACKBONE_HOST}/install`),
679
684
  runInvocation
@@ -691,6 +696,7 @@ try {
691
696
  try {
692
697
  child.stdin?.write(`${authStateB64}
693
698
  ${runtimeEnvB64}
699
+ ${rigfigB64}
694
700
  `);
695
701
  child.stdin?.end();
696
702
  } catch {}
@@ -627,6 +627,8 @@ async function spawnRunProcess(input, deps = {}) {
627
627
  identityAssignments.push(`RIG_GITHUB_NAMESPACE_KEY=${sh(namespaceKey)}`);
628
628
  const registryBaseUrl2 = resolveRegistryBaseUrl2(input.projectRoot, env);
629
629
  const runtimeEnvB64 = remoteRuntimeEnvPayload(env);
630
+ const rigfigPath = resolve2(input.projectRoot, ".rig", "rigfig.toml");
631
+ const rigfigB64 = existsSync2(rigfigPath) ? readFileSync2(rigfigPath).toString("base64") : "";
630
632
  const remoteAuthState = `"${authMaterialization.remoteAuthPath}"`;
631
633
  const remoteStateDir = `"${authMaterialization.remoteStateDir}"`;
632
634
  const runInvocation = [
@@ -656,6 +658,7 @@ try {
656
658
  "set -e",
657
659
  "IFS= read -r __RIG_GH_AUTH_B64 || true",
658
660
  "IFS= read -r __RIG_RUNTIME_ENV_B64 || true",
661
+ "IFS= read -r __RIG_RIGFIG_B64 || true",
659
662
  "__RIG_AUTH_FILE=$(mktemp)",
660
663
  "__RIG_RUNTIME_ENV_FILE=$(mktemp)",
661
664
  "__RIG_GIT_HELPER=$(mktemp)",
@@ -674,6 +677,8 @@ try {
674
677
  `git reset --hard ${sh(operatorHead)} --quiet`,
675
678
  "bun install --silent || bun install",
676
679
  `mkdir -p "$CHECKOUT/.rig/state"`,
680
+ `mkdir -p "$CHECKOUT/.rig"`,
681
+ `if [ -n "$__RIG_RIGFIG_B64" ]; then printf %s "$__RIG_RIGFIG_B64" | base64 -d > "$CHECKOUT/.rig/rigfig.toml"; fi`,
677
682
  `if [ -s "$__RIG_AUTH_FILE" ]; then cp "$__RIG_AUTH_FILE" "$CHECKOUT/.rig/state/github-auth.json" && chmod 600 "$CHECKOUT/.rig/state/github-auth.json"; fi`,
678
683
  ...buildRemoteRigRunResolutionShell(`https://${DEFAULT_RIG_BACKBONE_HOST}/install`),
679
684
  runInvocation
@@ -691,6 +696,7 @@ try {
691
696
  try {
692
697
  child.stdin?.write(`${authStateB64}
693
698
  ${runtimeEnvB64}
699
+ ${rigfigB64}
694
700
  `);
695
701
  child.stdin?.end();
696
702
  } catch {}
@@ -697,6 +697,8 @@ async function spawnRunProcess(input, deps = {}) {
697
697
  identityAssignments.push(`RIG_GITHUB_NAMESPACE_KEY=${sh(namespaceKey)}`);
698
698
  const registryBaseUrl2 = resolveRegistryBaseUrl2(input.projectRoot, env);
699
699
  const runtimeEnvB64 = remoteRuntimeEnvPayload(env);
700
+ const rigfigPath = resolve2(input.projectRoot, ".rig", "rigfig.toml");
701
+ const rigfigB64 = existsSync2(rigfigPath) ? readFileSync2(rigfigPath).toString("base64") : "";
700
702
  const remoteAuthState = `"${authMaterialization.remoteAuthPath}"`;
701
703
  const remoteStateDir = `"${authMaterialization.remoteStateDir}"`;
702
704
  const runInvocation = [
@@ -726,6 +728,7 @@ try {
726
728
  "set -e",
727
729
  "IFS= read -r __RIG_GH_AUTH_B64 || true",
728
730
  "IFS= read -r __RIG_RUNTIME_ENV_B64 || true",
731
+ "IFS= read -r __RIG_RIGFIG_B64 || true",
729
732
  "__RIG_AUTH_FILE=$(mktemp)",
730
733
  "__RIG_RUNTIME_ENV_FILE=$(mktemp)",
731
734
  "__RIG_GIT_HELPER=$(mktemp)",
@@ -744,6 +747,8 @@ try {
744
747
  `git reset --hard ${sh(operatorHead)} --quiet`,
745
748
  "bun install --silent || bun install",
746
749
  `mkdir -p "$CHECKOUT/.rig/state"`,
750
+ `mkdir -p "$CHECKOUT/.rig"`,
751
+ `if [ -n "$__RIG_RIGFIG_B64" ]; then printf %s "$__RIG_RIGFIG_B64" | base64 -d > "$CHECKOUT/.rig/rigfig.toml"; fi`,
747
752
  `if [ -s "$__RIG_AUTH_FILE" ]; then cp "$__RIG_AUTH_FILE" "$CHECKOUT/.rig/state/github-auth.json" && chmod 600 "$CHECKOUT/.rig/state/github-auth.json"; fi`,
748
753
  ...buildRemoteRigRunResolutionShell(`https://${DEFAULT_RIG_BACKBONE_HOST}/install`),
749
754
  runInvocation
@@ -761,6 +766,7 @@ try {
761
766
  try {
762
767
  child.stdin?.write(`${authStateB64}
763
768
  ${runtimeEnvB64}
769
+ ${rigfigB64}
764
770
  `);
765
771
  child.stdin?.end();
766
772
  } catch {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/transport-plugin",
3
- "version": "0.0.6-alpha.161",
3
+ "version": "0.0.6-alpha.162",
4
4
  "type": "module",
5
5
  "description": "The collab transport backbone plugin: run dispatch (local + remote placement), relay-registry room registration, run discovery (FS-watch + registry SSE merge), and relay/registry URL resolution. Provides the `transport` capability and a run-discovery capability.",
6
6
  "license": "UNLICENSED",
@@ -49,9 +49,9 @@
49
49
  "module": "./dist/src/index.js",
50
50
  "types": "./dist/src/index.d.ts",
51
51
  "dependencies": {
52
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.161",
53
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.161",
54
- "@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.6-alpha.161",
52
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.162",
53
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.162",
54
+ "@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.6-alpha.162",
55
55
  "effect": "4.0.0-beta.90"
56
56
  }
57
57
  }