@h-rig/run-worker 0.0.6-alpha.160 → 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.
- package/dist/src/autohost.js +9 -1
- package/dist/src/extension.js +9 -1
- package/dist/src/index.js +9 -1
- package/dist/src/plugin.js +9 -1
- package/package.json +4 -4
package/dist/src/autohost.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@rig/contracts";
|
|
12
12
|
import { Duration, Effect as Effect2, Fiber, Stream as Stream2 } from "effect";
|
|
13
13
|
import { defineCapability as defineCapability2 } from "@rig/core/capability";
|
|
14
|
-
import { requireInstalledCapability, loadCapabilityForRoot } from "@rig/core/capability-loaders";
|
|
14
|
+
import { installCapability, requireInstalledCapability, loadCapabilityForRoot } from "@rig/core/capability-loaders";
|
|
15
15
|
import { resolveOwnerNamespaceKey } from "@rig/core/remote-config";
|
|
16
16
|
|
|
17
17
|
// packages/run-worker/src/host-kernel.ts
|
|
@@ -847,6 +847,14 @@ async function maybeStartRunProcessAutohost(api, ctx) {
|
|
|
847
847
|
if (!runId)
|
|
848
848
|
throw new Error("OMP session id is required when RIG_RUN_PROCESS=1; RIG_RUN_ID is only a dispatch handle.");
|
|
849
849
|
const projectRoot = process.env.PROJECT_RIG_ROOT ?? process.cwd();
|
|
850
|
+
const taskDataService = await loadCapabilityForRoot(projectRoot, TaskDataCap);
|
|
851
|
+
if (taskDataService) {
|
|
852
|
+
installCapability(TaskDataCap, taskDataService);
|
|
853
|
+
}
|
|
854
|
+
const runCloseoutService = await loadCapabilityForRoot(projectRoot, RunCloseoutCap);
|
|
855
|
+
if (runCloseoutService) {
|
|
856
|
+
installCapability(RunCloseoutCap, runCloseoutService);
|
|
857
|
+
}
|
|
850
858
|
const journal = await createRunJournal(ctx.sessionManager, runId);
|
|
851
859
|
const placementTransport = await loadCapabilityForRoot(projectRoot, PlacementTransportCap);
|
|
852
860
|
if (!placementTransport) {
|
package/dist/src/extension.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@rig/contracts";
|
|
12
12
|
import { Duration, Effect as Effect2, Fiber, Stream as Stream2 } from "effect";
|
|
13
13
|
import { defineCapability as defineCapability2 } from "@rig/core/capability";
|
|
14
|
-
import { requireInstalledCapability, loadCapabilityForRoot } from "@rig/core/capability-loaders";
|
|
14
|
+
import { installCapability, requireInstalledCapability, loadCapabilityForRoot } from "@rig/core/capability-loaders";
|
|
15
15
|
import { resolveOwnerNamespaceKey } from "@rig/core/remote-config";
|
|
16
16
|
|
|
17
17
|
// packages/run-worker/src/host-kernel.ts
|
|
@@ -847,6 +847,14 @@ async function maybeStartRunProcessAutohost(api, ctx) {
|
|
|
847
847
|
if (!runId)
|
|
848
848
|
throw new Error("OMP session id is required when RIG_RUN_PROCESS=1; RIG_RUN_ID is only a dispatch handle.");
|
|
849
849
|
const projectRoot = process.env.PROJECT_RIG_ROOT ?? process.cwd();
|
|
850
|
+
const taskDataService = await loadCapabilityForRoot(projectRoot, TaskDataCap);
|
|
851
|
+
if (taskDataService) {
|
|
852
|
+
installCapability(TaskDataCap, taskDataService);
|
|
853
|
+
}
|
|
854
|
+
const runCloseoutService = await loadCapabilityForRoot(projectRoot, RunCloseoutCap);
|
|
855
|
+
if (runCloseoutService) {
|
|
856
|
+
installCapability(RunCloseoutCap, runCloseoutService);
|
|
857
|
+
}
|
|
850
858
|
const journal = await createRunJournal(ctx.sessionManager, runId);
|
|
851
859
|
const placementTransport = await loadCapabilityForRoot(projectRoot, PlacementTransportCap);
|
|
852
860
|
if (!placementTransport) {
|
package/dist/src/index.js
CHANGED
|
@@ -753,7 +753,7 @@ import {
|
|
|
753
753
|
} from "@rig/contracts";
|
|
754
754
|
import { Duration, Effect as Effect2, Fiber, Stream as Stream2 } from "effect";
|
|
755
755
|
import { defineCapability as defineCapability2 } from "@rig/core/capability";
|
|
756
|
-
import { requireInstalledCapability, loadCapabilityForRoot } from "@rig/core/capability-loaders";
|
|
756
|
+
import { installCapability, requireInstalledCapability, loadCapabilityForRoot } from "@rig/core/capability-loaders";
|
|
757
757
|
import { resolveOwnerNamespaceKey } from "@rig/core/remote-config";
|
|
758
758
|
function syntheticRegistryOwner(namespaceKey) {
|
|
759
759
|
const githubUserId = namespaceKey.startsWith("gh:") ? namespaceKey.slice(3) : namespaceKey;
|
|
@@ -861,6 +861,14 @@ async function maybeStartRunProcessAutohost(api, ctx) {
|
|
|
861
861
|
if (!runId)
|
|
862
862
|
throw new Error("OMP session id is required when RIG_RUN_PROCESS=1; RIG_RUN_ID is only a dispatch handle.");
|
|
863
863
|
const projectRoot = process.env.PROJECT_RIG_ROOT ?? process.cwd();
|
|
864
|
+
const taskDataService = await loadCapabilityForRoot(projectRoot, TaskDataCap);
|
|
865
|
+
if (taskDataService) {
|
|
866
|
+
installCapability(TaskDataCap, taskDataService);
|
|
867
|
+
}
|
|
868
|
+
const runCloseoutService = await loadCapabilityForRoot(projectRoot, RunCloseoutCap);
|
|
869
|
+
if (runCloseoutService) {
|
|
870
|
+
installCapability(RunCloseoutCap, runCloseoutService);
|
|
871
|
+
}
|
|
864
872
|
const journal = await createRunJournal(ctx.sessionManager, runId);
|
|
865
873
|
const placementTransport = await loadCapabilityForRoot(projectRoot, PlacementTransportCap);
|
|
866
874
|
if (!placementTransport) {
|
package/dist/src/plugin.js
CHANGED
|
@@ -1900,7 +1900,7 @@ import {
|
|
|
1900
1900
|
} from "@rig/contracts";
|
|
1901
1901
|
import { Duration, Effect as Effect2, Fiber, Stream as Stream2 } from "effect";
|
|
1902
1902
|
import { defineCapability as defineCapability4 } from "@rig/core/capability";
|
|
1903
|
-
import { requireInstalledCapability, loadCapabilityForRoot as loadCapabilityForRoot3 } from "@rig/core/capability-loaders";
|
|
1903
|
+
import { installCapability, requireInstalledCapability, loadCapabilityForRoot as loadCapabilityForRoot3 } from "@rig/core/capability-loaders";
|
|
1904
1904
|
import { resolveOwnerNamespaceKey as resolveOwnerNamespaceKey2 } from "@rig/core/remote-config";
|
|
1905
1905
|
function syntheticRegistryOwner(namespaceKey) {
|
|
1906
1906
|
const githubUserId = namespaceKey.startsWith("gh:") ? namespaceKey.slice(3) : namespaceKey;
|
|
@@ -2008,6 +2008,14 @@ async function maybeStartRunProcessAutohost(api, ctx) {
|
|
|
2008
2008
|
if (!runId)
|
|
2009
2009
|
throw new Error("OMP session id is required when RIG_RUN_PROCESS=1; RIG_RUN_ID is only a dispatch handle.");
|
|
2010
2010
|
const projectRoot = process.env.PROJECT_RIG_ROOT ?? process.cwd();
|
|
2011
|
+
const taskDataService = await loadCapabilityForRoot3(projectRoot, TaskDataCap);
|
|
2012
|
+
if (taskDataService) {
|
|
2013
|
+
installCapability(TaskDataCap, taskDataService);
|
|
2014
|
+
}
|
|
2015
|
+
const runCloseoutService = await loadCapabilityForRoot3(projectRoot, RunCloseoutCap);
|
|
2016
|
+
if (runCloseoutService) {
|
|
2017
|
+
installCapability(RunCloseoutCap, runCloseoutService);
|
|
2018
|
+
}
|
|
2011
2019
|
const journal = await createRunJournal(ctx.sessionManager, runId);
|
|
2012
2020
|
const placementTransport = await loadCapabilityForRoot3(projectRoot, PlacementTransportCap);
|
|
2013
2021
|
if (!placementTransport) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-rig/run-worker",
|
|
3
|
-
"version": "0.0.6-alpha.
|
|
3
|
+
"version": "0.0.6-alpha.162",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Rig package",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"@oh-my-pi/omp-stats": "16.0.4",
|
|
34
34
|
"@oh-my-pi/pi-coding-agent": "16.0.4",
|
|
35
35
|
"@oh-my-pi/pi-utils": "16.0.4",
|
|
36
|
-
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.
|
|
37
|
-
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.
|
|
38
|
-
"@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.6-alpha.
|
|
36
|
+
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.162",
|
|
37
|
+
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.162",
|
|
38
|
+
"@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.6-alpha.162",
|
|
39
39
|
"effect": "4.0.0-beta.90"
|
|
40
40
|
}
|
|
41
41
|
}
|